@font-face{
    font-family:"Roboto";
    font-style:normal;
    font-weight:400;
    font-display:swap;
    src:url("../fonts/Roboto-Regular.woff2") format("woff2");
}
@font-face{
    font-family:"Roboto";
    font-style:normal;
    font-weight:500;
    font-display:swap;
    src:url("../fonts/Roboto-Medium.woff2") format("woff2");
}
@font-face{
    font-family:"Roboto";
    font-style:normal;
    font-weight:700;
    font-display:swap;
    src:url("../fonts/Roboto-Bold.woff2") format("woff2");
}

:root {
    --header-h: 76px; /* подстрой при необходимости */
    --mobile-bottombar-h: 72px; /* высота панели на мобилке */
    --bg: #f3f5f7;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #d1d5db;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    --radius: 14px;
    --hero: #eef0f2;
    --gold: #d9c9af;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
    margin: 0;
    font-family:Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size:16px;
    line-height: 30px;
    padding-top: var(--header-h);
}

a {
    color: inherit;
}
.container {
    width: min(1170px, calc(100% - 32px));
    margin: 0 auto;
}
.site-header {
    border-bottom: 1px solid #e5e7eb;
    background-color: #2b2932;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.header__inner {
    display: flex;
    align-items: center;
    padding: 14px 0;
}
.brand {
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2px;
    color: var(--card);
}

.header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.brand{display:inline-flex; align-items:center; text-decoration:none}
.brand__logo{display:block; height:48px; width:auto}

.topbar__right{
    display:flex;
    align-items:center;
    gap:10px;
}

.mt-2 {
    margin-top: 1em;
}
.mt-3 {
    margin-top: 1.5em;
}

.mt-4 {
    margin-top: 2em;
}

.mt-5 {
    margin-top: 2.5em;
}

.mb-1 {
    margin-bottom: 1.5em;
}


/* =========================
   Buttons (base + glint)
   ========================= */

/* Base button */
.btn{
    position: relative;
    appearance: none;
    border: 0;
    border-radius: 4px;
    padding: 14px 28px;
    font: 700 20px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    cursor: pointer;
    white-space: nowrap;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    transition: transform .12s ease, filter .12s ease;
    margin-right: .4em;
}

.btn:active{ transform: translateY(1px); }
.btn:hover{ filter: brightness(1.03); }

/* Glint overlay (moving highlight) */
.btn::before{
    content: "";
    position: absolute;
    top: -35%;
    left: -60%;
    width: 55%;
    height: 170%;
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
    filter: blur(.2px);
}

/* Keyframes: left -> right */
@keyframes btn-glint{
    0%   { left: -60%; opacity: 0; }
    10%  { opacity: .65; }
    45%  { opacity: .55; }
    100% { left: 120%; opacity: 0; }
}

/* =========================
   Ghost (blue) - L -> R
   ========================= */
.btn--ghost{
    background: linear-gradient(90deg, #0f5f8a 0%, #1a86bf 55%, #0f5f8a 100%);
    border: 1px solid rgba(255,255,255,.14);
}

.btn--ghost::before{
    background: linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(155,220,255,.70) 45%,
            rgba(255,255,255,0) 100%
    );
    animation: btn-glint 2.4s ease-in-out infinite;
    animation-direction: normal; /* left -> right */
}

/* =========================
   Primary (orange) - R -> L
   ========================= */
.btn--primary{
    background: linear-gradient(90deg, #ff7a00 0%, #ffb100 55%, #ff7a00 100%);
}

.btn--primary::before{
    background: linear-gradient(
            90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,238,170,.75) 45%,
            rgba(255,255,255,0) 100%
    );
    animation: btn-glint 2.4s ease-in-out infinite;
    animation-direction: reverse; /* right -> left */
}

/* Optional: focus */
.btn:focus-visible{
    outline: 3px solid rgba(255,255,255,.35);
    outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
    .btn--ghost::before,
    .btn--primary::before{
        animation: none;
        opacity: 0;
    }
}

/* Different timing to desync */
.btn--ghost::before{
    animation-duration: 2.7s;
    animation-delay: .15s;
}

.btn--primary::before{
    animation-duration: 3.2s;
    animation-delay: .85s;
}

.buttons {
    display: block;
    margin: 2em auto;
    text-align: center;
}


.hero {
    background: linear-gradient(#f4f6f8, #eef1f3);
    padding: 34px 0 26px;
}
.hero__title {
    margin: 0;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.3px;
}
.lead {
    padding: 20px 0 6px;
}
.lead__inner p {
    margin: 0 0 12px;
}
.main {
    padding: 12px 0 34px;
    background: white;
}
.article {
    background: var(--card);
    padding: 22px;
}
.figure {
    margin: 14px 0;
}
.figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}
.section + .section {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}
.h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.22;
}
.h3 {
    margin: 1em 0 10px;
    font-size: 18px;
    line-height: 1.25;
}
p {
    margin: 0 0 15px;
    font-weight: 400;
}
.card {
   margin: 14px 0;
    padding: 14px 14px 6px;
    /*   border: 1px solid #e5e7eb;
      border-radius: 14px;
      background: #fafafa;*/
}
.card__body p:last-child {
    margin-bottom: 0;
}

/* Quick links / Table of Contents */
.quick-links {
    padding: 10px 0 16px;
}

.quick-links h2 {
    line-height: 17px;
}

.toc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.toc__summary {
    list-style: none;
    cursor: default;
    padding: 0px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 80%;
}
.toc__summary::-webkit-details-marker {
    display: none;
}
.toc__body {
    padding: 12px 14px;
}
.toc ol {
    margin: 0;
    padding-left: 28px;
}
.toc li {
    margin: 0;
}
.toc a {
    text-decoration: none;
    font-size: 90%;
}

.toc a:hover {
    text-decoration: underline;
}

.toc__sub {
    color: var(--text);
}
.toc ol ol {
    margin-top: 6px;
}

/* TOC toggle icon */
.toc__summary{
    position: relative;
    padding-right: 44px; /* space for icon */
}

.toc__summary::after{
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-50%) rotate(45deg); /* closed: down chevron */
    transition: transform .18s ease;
}

.toc[open] .toc__summary::after{
    transform: translateY(-50%) rotate(-135deg); /* open: up chevron */
}

/* Breadcrumbs */
.breadcrumbs{
    padding: 12px 0;
}

.breadcrumbs__list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: .92;
}

.breadcrumbs__item:not(:last-child)::after{
    content: "›";
    opacity: .6;
}

.breadcrumbs__link{
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.breadcrumbs__link:hover{
    background: rgba(255,255,255,.07);
}

.breadcrumbs__current{
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
}

/* Mobile spacing */
@media (max-width: 768px){
    .breadcrumbs{
        padding: 10px 0;
    }
    .breadcrumbs__item{
        font-size: 13px;
    }
    .breadcrumbs__link,
    .breadcrumbs__current{
        padding: 6px 9px;
    }
}



/* Footer */
.site-footer {
    background-color: #2b2932;
    border-top: 1px solid #e5e7eb;
    padding: 18px 0;
}
/*.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
} */
.footer__copy {
    color: var(--card);
}
.footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__menu li {margin-left: 8px}

.footer__menu a {
    text-decoration: none;
    color: var(--card);
}
.footer__menu a:hover {
    text-decoration: underline;
}





/* Responsive */
@media (max-width: 900px){
    .footer__inner{
        padding: 24px 0 14px;
    }
    .footer__grid{
        gap: 18px;
    }
}

@media (max-width: 560px){
    .footer__grid--2{
        grid-template-columns: 1fr;
    }
    .footer__inner{
        padding: 22px 0 14px;
    }
    .footer__title{
        font-size: 17px;
    }
    .footer__copy{
        font-size: 13px;
    }
}



.kpi-list{
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.kpi-item{
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: #fafafa;
}

.kpi-ico{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 18px;
    line-height: 1;
}

.kpi-text{
    color: var(--text);
}

.kpi-text strong{
    font-weight: 700;
}

@media (min-width: 720px){
    .kpi-list{
        grid-template-columns: 1fr 1fr;
    }

}

.table-wrap{
    overflow-x: auto;
    margin-top: 12px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.table{
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.table th,
.table td{
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.table thead th{
    background: #f9fafb;
    font-weight: 700;
}

.table tbody tr:last-child td{
    border-bottom: 0;
}

.faq{
    margin: 10px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.faq__q{
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq__q::-webkit-details-marker{display:none}

.faq__q::after{
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s ease;
    flex: 0 0 auto;
}

.faq[open] .faq__q::after{
    transform: rotate(-135deg);
}

.faq__a{
    padding: 0 14px 12px;
    border-top: 1px solid #eef2f7;
}

.faq__a .p:last-child{margin-bottom:0}

/* Mobile */
@media (max-width: 768px){
    .site-footer{
        padding: 20px 0;
    }

    .footer__inner{
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .footer__copy{
        text-align: center;
        opacity: .9;
    }

    .footer__menu{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .footer__menu li{
        margin: 0;
    }

    .footer__menu a{
        width: 100%;
        justify-content: center;
        padding: 12px 10px;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
    }

    .footer__menu a:active{
        transform: translateY(1px);
    }
}

/* Very small screens: 1 column */
@media (max-width: 420px){
    .footer__menu{
        grid-template-columns: 1fr;
    }
}

/* Hidden by default (desktop/tablet) */
.mobile-bottombar{
    display: none;
}

/* Mobile: fixed bottom actions */
@media (max-width: 768px){
    .mobile-bottombar{
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(20, 19, 24, .78);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255,255,255,.10);
    }

    .mobile-bottombar__btn{
        flex: 1;
        width: 100%;
        justify-content: center;
        padding: 11px 12px 14px; /* чуть крупнее для пальца */
        border-radius: 4px;
    }

    /* чтобы страница не пряталась под фикс. панелью */
    body{
        padding-bottom: var(--mobile-bottombar-h);
    }

    /* если ты используешь scroll-padding-top для fixed header - оставляем как есть */
}

/* Optional: if very small screens, a bit tighter */
@media (max-width: 360px){
    .mobile-bottombar{
        padding: 8px 10px;
    }
    .mobile-bottombar__btn{
        padding: 12px 10px;
    }
}



@media (max-width: 760px){
    .topbar__right {
        display: none;
    }
    .brand__logo {
        width: 37%;
        height: auto;
    }
}

/* =========================
   Footer (site-footer) — FINAL (2 columns)
   ========================= */

.site-footer{
    margin-top: 40px;
    background: #0b0b0f;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 28px 0 16px;
}

.footer__inner{
    padding: 0;
}

/* 2 columns grid */
.footer__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__col{
    min-width: 0;
    max-width: 280px;
}

/* Titles + lists */
.footer__title{
    margin: 0 0 14px;
    font-size: 100%;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .92;
    color: var(--gold);
}

.footer__list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
}

.footer__list a{
    color: var(--gold);
    text-decoration: none;
    font-size: 90%;
    line-height: 1.35;
    display: inline-flex;
    padding: 2px 2px;
}

.footer__list a:hover{
    color: #fff;
    text-decoration: underline;
}

/* Bottom */
.footer__bottom{
    margin-top: 18px;
    padding-top: 14px;
    text-align: center;
}

.footer__copy{
    color: rgba(255,255,255,.72);
    font-size: 13px;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 560px){
    .footer__grid{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .footer__col{
        max-width: none;
    }
}

/* Footer: center columns like the reference */
.site-footer{
    padding: 34px 0 18px; /* чуть больше воздуха сверху как в референсе */
}

.footer__grid{
    /* чтобы колонки не липли к краю, а стояли “внутри” как в референсе */
    max-width: 920px;      /* подгонишь: 860–980 по вкусу */
    margin: 0 auto;        /* центрируем сетку */
    padding: 0 36px;       /* “внутренний отступ” слева/справа */
    gap: 72px;             /* больше расстояния между колонками */
    justify-content: space-between;
}

/* чтобы текст не выглядел “разъехавшимся” */
.footer__col{
    max-width: 320px;
    text-align: center;
}

/* нижняя линия и копирайт должны совпадать по ширине с колонками */
.footer__bottom{
    max-width: 920px;
    margin: 18px auto 0;
    padding: 14px 36px 0;
}

@media (max-width: 900px){
    .footer__grid,
    .footer__bottom{
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
    .footer__grid{
        gap: 36px;
    }
}

@media (max-width: 560px){
    .footer__grid{
        padding-left: 14px;
        padding-right: 14px;
        gap: 18px;
    }
    .footer__bottom{
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Lead: 2-column layout */
.lead__grid{
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 28px;
    align-items: center;
}

.lead__media{
    margin: 0;
}

.lead__media img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* если у тебя уже есть радиусы — можно убрать */
}

/* Mobile */
@media (max-width: 860px){
    .lead__grid{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .lead__media{
        order: -1; /* если хочешь, чтобы картинка была сверху на мобиле */
    }
}

/* Section split (media + content) */
.section__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.section__media{
    margin: 0;
}

.section__media img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Mobile */
@media (max-width: 860px){
    .section__grid{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .section__grid img {
        width: 100%;
    }

}



/* Card: text left, image right */
.card__split{
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start;
}

.card__split-media{
    margin: 0;
}

.card__split-media img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 860px){
    .card__split{
        grid-template-columns: 1fr;
    }
}


.rg-split{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items:start;
    margin-top: 14px;
}

.rg-split__content{
    display:flex;
    flex-direction:column;
    gap: 16px;
}


.rg-split__media{
    margin: 0 0 14px 0;
}

.rg-split__media img{
    width: 100%;
    height: auto;
    display:block;
    border-radius: 14px;
}

@media (max-width: 860px){
    .rg-split{
        grid-template-columns: 1fr;
    }
    .rg-split__aside{
        position: static;
    }
}

/* Split section: text left, media right */
.split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.split__col {
    min-width: 0;
}

.split__col--text {
    flex: 1 1 60%;
}

.split__col--media {
    flex: 0 0 38%;
}

.figure--sticky {
    position: sticky;
    top: 1rem;
}

.split__col--media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .split {
        flex-direction: column;
    }

    .split__col--media {
        flex-basis: auto;
        width: 100%;
    }

    .figure--sticky {
        position: static;
    }
}

/* Header navigation + mobile menu (HTML5-valid, minimal) */
        .header-nav{ display:flex; align-items:center; }
        .header-nav__list{
            display:flex;
            gap:14px;
            list-style:none;
            margin:0; padding:0;
            font-size: 90%;
        }
        .header-nav__list a { text-decoration:none;
            color: var(--gold);}

        .header-burger{
            display:none;
            align-items:center;
            justify-content:center;
            width:44px;
            height:44px;
            border:1px solid rgba(255,255,255,.15);
            background: transparent;
            border-radius: 10px;
            cursor:pointer;
            color: var(--gold);
        }
        .header-burger__icon{
            width:30px;
            height:14px;
            position:relative;
        }
        .header-burger__icon::before,
        .header-burger__icon::after,
        .header-burger__icon span{
            content:"";
            position:absolute;
            left:0;
            right:0;
            height:2px;
            background: currentColor;
            border-radius: 99px;
        }
        .header-burger__icon::before{ top:0; }
        .header-burger__icon span{ top:6px; }
        .header-burger__icon::after{ bottom:0; }

        .mobile-menu-overlay{
            position:fixed;
            inset:0;
            background: rgba(0,0,0,.55);
            opacity:0;
            pointer-events:none;
            transition: opacity .18s ease;
            z-index:1100;
        }
        .mobile-menu{
            position:fixed;
            top:0;
            right:0;
            height:100dvh;
            width:min(86vw, 360px);
            transform: translateX(100%);
            transition: transform .18s ease;
            z-index:1101;
            background: rgba(20, 19, 24, .96);
            backdrop-filter: blur(10px);
            border-left: 1px solid rgba(255,255,255,.10);
            padding: 16px;
            display:flex;
            flex-direction:column;
            gap: 14px;
        }
        .mobile-menu__top{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap: 12px;
        }
        .mobile-menu__title{ font-weight:700; margin:0; }
        .mobile-menu__close{
            width:44px;
            height:44px;
           border-radius: 10px;
            border:1px solid var(--gold);
            background: transparent;
            cursor:pointer;
            color: var(--gold);
        }
        .mobile-menu__nav{ margin-top: 6px; }
        .mobile-menu__list{
            list-style:none;
            margin:0;
            padding:0;
            display:flex;
            flex-direction:column;
            gap: 10px;
        }
        .mobile-menu__list a{
            display:block;
            padding: 2px 12px;
            text-decoration:none;
            color: var(--gold);
        }
        .mobile-menu__actions{
            margin-top:auto;
            display:grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

        /* Responsive behavior */
        @media (max-width: 980px){
                .header-nav{ display:none; }
                .header-burger{ display:inline-flex; }
        }

        body.is-mobile-menu-open{ overflow:hidden; }
        body.is-mobile-menu-open .mobile-menu-overlay{
            opacity:1;
            pointer-events:auto;
        }
        body.is-mobile-menu-open .mobile-menu{
            transform: translateX(0);
        }
