/* ============================================================
   iOPERATOR — дизайн-система
   Premium corporate technology / network engineering
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
    /* Поверхности */
    --white: #ffffff;
    --surface-1: #f7f9fc;
    --surface-2: #f2f5f8;
    --surface-3: #eaeff6;

    /* Глубокий синий */
    --navy-900: #071a2b;
    --navy-800: #0b2540;
    --navy-700: #123b63;
    --navy-600: #1a4e7f;

    /* Акценты */
    --blue: #1677ff;
    --blue-dark: #0f5ed6;
    --cyan: #27b6ff;
    --aqua: #28d7e5;

    /* Текст */
    --ink: #0a1c2e;
    --ink-2: #3d5266;
    --ink-3: #64798d;
    --ink-inv: #eaf2fb;
    --ink-inv-2: #a8c0d6;

    /* Линии */
    --line: #e2e9f2;
    --line-2: #d3dded;
    --line-dark: rgba(255, 255, 255, .13);

    /* Тени */
    --shadow-xs: 0 1px 2px rgba(7, 26, 43, .05);
    --shadow-sm: 0 2px 8px rgba(7, 26, 43, .06);
    --shadow-md: 0 10px 30px -12px rgba(7, 26, 43, .16);
    --shadow-lg: 0 28px 60px -28px rgba(7, 26, 43, .28);
    --shadow-blue: 0 16px 40px -16px rgba(22, 119, 255, .5);

    /* Радиусы */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Раскладка */
    --container: 1560px;
    --container-narrow: 1180px;
    --gutter: clamp(18px, 3.4vw, 64px);
    --section-y: clamp(64px, 6.2vw, 128px);

    /* Шапка */
    --header-h: 96px;
    --header-h-scrolled: 74px;

    /* Шрифты */
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    /* Типографика */
    --fs-h1: clamp(2.35rem, 1.35rem + 3.5vw, 4.75rem);
    --fs-h2: clamp(1.85rem, 1.2rem + 2.3vw, 3.375rem);
    --fs-h3: clamp(1.3rem, 1.05rem + .85vw, 1.875rem);
    --fs-h4: clamp(1.125rem, 1rem + .45vw, 1.375rem);
    --fs-body: clamp(1.0625rem, 1.0rem + .28vw, 1.25rem);
    --fs-lead: clamp(1.1875rem, 1.05rem + .62vw, 1.5rem);
    --fs-small: clamp(.9375rem, .9rem + .18vw, 1.0625rem);
    --fs-nav: clamp(1rem, .95rem + .18vw, 1.125rem);
    --fs-phone: clamp(1.25rem, 1.05rem + .55vw, 1.5rem);

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Сброс ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.62;
    color: var(--ink-2);
    background: var(--white);
    /*
     * clip, а не hidden: hidden на body делает его прокручиваемым контейнером
     * и ломает position: sticky у шапки. clip обрезает так же, но контейнер
     * прокрутки не создаёт.
     */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

/*
 * Блокировка прокрутки под открытым меню или модальным окном.
 * position: fixed нужен, чтобы iOS не уводил страницу наверх;
 * смещение top и компенсация полосы прокрутки задаются из JS.
 */
body.is-locked {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    overflow-wrap: break-word;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -.022em;
    margin: 0 0 .5em;
    font-weight: 800;
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -.032em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.028em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .18s var(--ease);
}

a:hover { color: var(--blue-dark); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .5em; }

strong, b { color: var(--ink); font-weight: 700; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/*
 * Выделение текста. На тёмных секциях и в подвале синее системное
 * выделение сливалось с фоном — задаём собственную пару цветов
 * с гарантированным контрастом в обе стороны.
 */
::selection {
    background: var(--select-bg, #bfe0ff);
    color: var(--select-fg, #06192b);
    text-shadow: none;
}
::-moz-selection {
    background: var(--select-bg, #bfe0ff);
    color: var(--select-fg, #06192b);
    text-shadow: none;
}

/* На тёмном фоне выделение делаем ярко-бирюзовым с тёмным текстом */
.section--dark,
.hero,
.page-hero,
.footer,
.cta-band,
.tile,
.compare__col--good,
.price-card--accent {
    --select-bg: #4fe3ef;
    --select-fg: #06202c;
}

/* Ссылки внутри тёмных блоков выделяются так же читаемо */
.section--dark a::selection,
.footer a::selection,
.hero a::selection,
.page-hero a::selection {
    background: #4fe3ef;
    color: #06202c;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -100px;
    z-index: 999;
    background: var(--navy-800);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--r-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Раскладка ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section--tint { background: var(--surface-1); }
.section--tint2 { background: var(--surface-2); }
.section--tight { padding-block: clamp(44px, 4vw, 80px); }

.section--dark {
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(22, 119, 255, .26), transparent 62%),
        radial-gradient(900px 520px at 92% 8%, rgba(40, 215, 229, .16), transparent 60%),
        linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d2c4c 100%);
    color: var(--ink-inv-2);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section--dark strong { color: #fff; }
.section--dark a { color: var(--aqua); }

/* Технологическая сетка поверх тёмных секций */
.section--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}

.section > .container { position: relative; z-index: 2; }

/* ---------- 4. Заголовки секций ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: clamp(.8125rem, .78rem + .12vw, .9375rem);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--aqua));
    border-radius: 2px;
}

.section--dark .eyebrow { color: var(--aqua); }

.section-head {
    max-width: 940px;
    margin-bottom: clamp(36px, 3.6vw, 68px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }

.section-head p {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--ink-2);
    margin-top: 6px;
}

.section--dark .section-head p { color: var(--ink-inv-2); }

.section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(24px, 3vw, 72px);
    align-items: end;
}

.section-head--split h2 { margin-bottom: 0; }

/* ---------- 5. Кнопки ---------- */
.btn {
    --btn-bg: var(--blue);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    padding: 18px 32px;
    min-height: 60px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    text-align: center;
    transition: transform .18s var(--ease), box-shadow .22s var(--ease),
                background-color .18s var(--ease), color .18s var(--ease),
                border-color .18s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(135deg, var(--blue) 0%, #2a92ff 55%, var(--cyan) 100%);
    box-shadow: var(--shadow-blue);
}
.btn--primary:hover { box-shadow: 0 22px 50px -18px rgba(22, 119, 255, .65); }

.btn--dark { background: var(--navy-800); }
.btn--dark:hover { background: var(--navy-700); }

.btn--ghost {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--line-2);
}
.btn--ghost:hover {
    color: var(--navy-800);
    border-color: var(--blue);
    background: rgba(22, 119, 255, .05);
}

.btn--ghost-light {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    border-color: rgba(255, 255, 255, .26);
    backdrop-filter: blur(8px);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.btn--white { background: #fff; color: var(--navy-800); }
.btn--white:hover { color: var(--navy-900); box-shadow: var(--shadow-lg); }

.btn--sm { min-height: 48px; padding: 12px 22px; font-size: 1rem; }
.btn--lg { min-height: 68px; padding: 20px 40px; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }
.btn--block { width: 100%; }

.btn__icon { width: 20px; height: 20px; flex: none; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ---------- 6. Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.header.is-scrolled {
    box-shadow: 0 6px 28px -14px rgba(7, 26, 43, .28);
    background: rgba(255, 255, 255, .96);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 40px);
    height: var(--header-h);
    transition: height .25s var(--ease);
}

.header.is-scrolled .header__inner { height: var(--header-h-scrolled); }

/* Логотип */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: none;
    color: var(--navy-900);
}
.logo:hover { color: var(--navy-900); }

.logo__mark {
    width: clamp(38px, 3vw, 46px);
    height: clamp(38px, 3vw, 46px);
    flex: none;
    transition: transform .3s var(--ease);
}
.logo:hover .logo__mark { transform: scale(1.05); }

.logo__text { display: flex; flex-direction: column; line-height: 1; }

.logo__name {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--navy-900);
    white-space: nowrap;
}
.logo__name i { font-style: normal; color: var(--blue); }

.logo__tag {
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-top: 5px;
    white-space: nowrap;
}

/* Навигация */
.nav { margin-left: auto; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item { position: relative; margin: 0; }

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-nav);
    font-weight: 500;
    color: var(--navy-800);
    padding: 10px 11px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav__link:hover,
.nav__item.is-open > .nav__link { color: var(--blue); background: rgba(22, 119, 255, .06); }

.nav__link.is-active { color: var(--blue); font-weight: 600; }

.nav__caret {
    width: 11px; height: 11px;
    flex: none;
    transition: transform .22s var(--ease);
    opacity: .6;
}
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Mega-menu */
.mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 10px);
    width: min(92vw, var(--mega-w, 780px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 26px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 130;
}

.nav__item.is-open .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.mega--wide { --mega-w: 1080px; }

.mega__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 6px 18px;
}

.mega__col-title {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 10px 12px 6px;
    margin: 0;
}

.mega__link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--navy-800);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.32;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.mega__link:hover { background: var(--surface-1); color: var(--blue); }
.mega__link span {
    display: block;
    font-size: .875rem;
    font-weight: 400;
    color: var(--ink-3);
    margin-top: 3px;
}
.mega__link:hover span { color: var(--ink-2); }

.mega__foot {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}
.mega__foot p { margin: 0; font-size: .9375rem; color: var(--ink-3); max-width: 52ch; }

/* Правая часть шапки */
.header__actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 22px);
    flex: none;
}

.header__phone {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: right;
}

.header__phone a {
    font-family: var(--font-display);
    font-size: var(--fs-phone);
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -.02em;
    white-space: nowrap;
}
.header__phone a:hover { color: var(--blue); }

.header__phone > span {
    font-size: .8125rem;
    color: var(--ink-3);
    margin-top: 4px;
    white-space: nowrap;
}

.header__phone-icon {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(22, 119, 255, .1);
    color: var(--blue);
    place-items: center;
}
.header__phone-icon svg { width: 22px; height: 22px; }

.header .btn { padding-inline: clamp(18px, 1.6vw, 30px); }

/* Бургер */
.burger {
    display: none;
    width: 52px; height: 52px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: #fff;
    cursor: pointer;
    padding: 0;
    position: relative;
    flex: none;
}
.burger span {
    position: absolute;
    left: 50%;
    width: 22px; height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .25s var(--ease), opacity .18s var(--ease), top .25s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger span:nth-child(3) { top: 32px; }
.burger.is-active span:nth-child(1) { top: 25px; transform: translateX(-50%) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { top: 25px; transform: translateX(-50%) rotate(-45deg); }

/* Мобильное меню */
.mobile-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 160;
    background: rgba(5, 18, 31, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.mobile-nav__backdrop.is-visible { opacity: 1; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: #fff;
    /* Выше полноширинных фонов, sticky-секций и подложки, но ниже модальных форм */
    z-index: 170;
    overflow-y: auto;
    padding: 0 var(--gutter) 48px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s;
    overscroll-behavior: contain;
    box-shadow: -20px 0 60px -30px rgba(7, 26, 43, .5);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }

/* Шапка меню с кнопкой закрытия — липнет к верху при прокрутке списка */
.mobile-nav__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.mobile-nav__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.mobile-nav__close {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--navy-900);
    cursor: pointer;
    transition: background-color .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), transform .18s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__close:hover {
    background: var(--surface-2);
    border-color: var(--blue);
    color: var(--blue);
}
.mobile-nav__close:active { transform: scale(.94); }
.mobile-nav__close svg { width: 22px; height: 22px; }

.mobile-nav__group { border-bottom: 1px solid var(--line); }
.mobile-nav__group:first-of-type { margin-top: 8px; }

.mobile-nav__top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: 0;
    padding: 18px 2px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    text-align: left;
    cursor: pointer;
}
.mobile-nav__top svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); opacity: .55; }
.mobile-nav__group.is-open .mobile-nav__top svg { transform: rotate(180deg); }

.mobile-nav__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease);
}
.mobile-nav__group.is-open .mobile-nav__sub { grid-template-rows: 1fr; }
.mobile-nav__sub > div { overflow: hidden; }

.mobile-nav__sub a {
    display: block;
    padding: 12px 2px 12px 16px;
    font-size: 1.0625rem;
    color: var(--ink-2);
    border-left: 2px solid var(--line);
}
.mobile-nav__sub a:hover { color: var(--blue); border-color: var(--blue); }
.mobile-nav__sub > div > div { padding-bottom: 12px; }

.mobile-nav__cta {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.mobile-nav__contact {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
}
.mobile-nav__contact a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
}
.mobile-nav__contact p { font-size: .9375rem; color: var(--ink-3); margin: 0; }

/* ---------- 7. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 8% -12%, rgba(22, 119, 255, .34), transparent 60%),
        radial-gradient(1000px 620px at 96% 4%, rgba(40, 215, 229, .2), transparent 58%),
        linear-gradient(158deg, #061726 0%, var(--navy-800) 48%, #0e3055 100%);
    color: var(--ink-inv-2);
    padding-block: clamp(56px, 5.4vw, 116px) clamp(64px, 6vw, 130px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(115% 100% at 30% 0%, #000 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(115% 100% at 30% 0%, #000 25%, transparent 80%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(32px, 4vw, 84px);
    align-items: center;
}

.hero--compact .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

.hero h1 { color: #fff; margin-bottom: 24px; }

.hero__lead {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: #c3d6e9;
    max-width: 46ch;
    margin-bottom: 34px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: .9375rem;
    font-weight: 500;
    color: #d7e7f6;
    backdrop-filter: blur(6px);
}
.badge svg { width: 16px; height: 16px; color: var(--aqua); flex: none; }

.hero__note {
    margin-top: 26px;
    font-size: .9375rem;
    color: #90aac4;
    max-width: 52ch;
}

.hero__visual { position: relative; min-width: 0; }
.hero__body { min-width: 0; }

.hero__visual img {
    width: 100%;
    border-radius: var(--r-xl);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin-top: clamp(46px, 4.5vw, 78px);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.hero__stat {
    background: rgba(9, 32, 54, .72);
    backdrop-filter: blur(10px);
    padding: clamp(20px, 2vw, 30px);
}

.hero__stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.hero__stat span { font-size: .9375rem; color: #9db7cf; line-height: 1.4; display: block; }

/* Компактный hero внутренних страниц */
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 560px at 10% -20%, rgba(22, 119, 255, .3), transparent 60%),
        radial-gradient(760px 460px at 95% 10%, rgba(40, 215, 229, .16), transparent 58%),
        linear-gradient(160deg, #061726 0%, var(--navy-800) 60%, #0d2c4c 100%);
    color: var(--ink-inv-2);
    padding-block: clamp(28px, 2.6vw, 44px) clamp(52px, 5vw, 96px);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(110% 100% at 25% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(110% 100% at 25% 0%, #000 20%, transparent 78%);
    pointer-events: none;
}

.page-hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 3.6vw, 72px);
    align-items: center;
}

/* На внутренних странице заголовки длиннее — кегль чуть меньше,
   чтобы H1 не занимал половину экрана */
.page-hero h1 {
    color: #fff;
    margin-bottom: 20px;
    font-size: clamp(2.1rem, 1.35rem + 2.5vw, 3.625rem);
}

.page-hero__lead {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: #c3d6e9;
    max-width: 50ch;
    margin-bottom: 30px;
}

.page-hero__inner > * { min-width: 0; }

.page-hero__visual img {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .68);
}

/* ---------- 8. Хлебные крошки ---------- */
.breadcrumbs {
    position: relative;
    z-index: 3;
    font-size: .9375rem;
    margin-bottom: clamp(22px, 2.2vw, 38px);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li::after { content: "/"; color: rgba(255, 255, 255, .3); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: #a8c4dd; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: #6f8ba6; }

/* ---------- 9. Карточки ---------- */
.grid {
    display: grid;
    gap: clamp(16px, 1.6vw, 26px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(24px, 2.2vw, 38px);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-2);
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: var(--fs-small); }
.card p:last-child { margin-bottom: 0; }

.card__icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: linear-gradient(140deg, rgba(22, 119, 255, .12), rgba(40, 215, 229, .14));
    color: var(--blue);
    margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }

.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }
.card--link h3 { color: var(--navy-900); transition: color .2s var(--ease); }
.card--link:hover h3 { color: var(--blue); }

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
}
.card__more svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.card--link:hover .card__more svg { transform: translateX(4px); }

.card--dark {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}
.card--dark:hover { background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .22); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--ink-inv-2); }
.card--dark .card__icon {
    background: rgba(40, 215, 229, .13);
    color: var(--aqua);
    border: 1px solid rgba(40, 215, 229, .2);
}

/* Карточка проблемы */
.problem {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: clamp(20px, 1.8vw, 28px);
    height: 100%;
    transition: border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.problem:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

.problem__mark {
    flex: none;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 92, 92, .1);
    color: #e2544f;
}
.problem__mark svg { width: 22px; height: 22px; }

.problem h3 { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); margin-bottom: 8px; }
.problem p { font-size: var(--fs-small); margin: 0; color: var(--ink-2); }

/* ---------- 10. Секция split (текст + изображение) ---------- */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(28px, 3.6vw, 76px);
    align-items: center;
}

.split--reverse .split__media { order: -1; }

.split__media img {
    width: 100%;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.section--dark .split__media img { box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .7); }

.split__body { min-width: 0; }
.split__body h2 { margin-bottom: 20px; }
.split__body > p { font-size: var(--fs-body); }

/* ---------- 11. Списки-галочки ---------- */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }

.checks li {
    position: relative;
    padding-left: 38px;
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.55;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0; top: .18em;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(22, 119, 255, .1)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
        center / 14px no-repeat;
}

.section--dark .checks li::before {
    background-color: rgba(40, 215, 229, .16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328d7e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.checks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px 30px; }

/* ---------- 12. Этапы ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(var(--steps-cols, 5), minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
    counter-reset: step;
}

.steps:has(> :nth-child(4):last-child) { --steps-cols: 4; }
.steps:has(> :nth-child(3):last-child) { --steps-cols: 3; }
.steps:has(> :nth-child(2):last-child) { --steps-cols: 2; }

@media (max-width: 1280px) { .steps { --steps-cols: 3 !important; } }
@media (max-width: 880px) { .steps { --steps-cols: 2 !important; } }
@media (max-width: 620px) { .steps { --steps-cols: 1 !important; } }

.step {
    position: relative;
    padding: clamp(24px, 2vw, 34px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    counter-increment: step;
    height: 100%;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--blue), var(--aqua));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.step h3 { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); margin-bottom: 10px; }
.step p { font-size: var(--fs-small); margin: 0; }

.section--dark .step {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .12);
}
.section--dark .step p { color: var(--ink-inv-2); }

/* ---------- 13. Сравнение ---------- */
.compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
}

@media (max-width: 900px) { .compare { grid-template-columns: minmax(0, 1fr); } }

.compare__col {
    border-radius: var(--r-lg);
    padding: clamp(26px, 2.4vw, 40px);
    border: 1px solid var(--line);
    background: #fff;
    height: 100%;
}

.compare__col--bad { background: var(--surface-2); }

.compare__col--good {
    border-color: transparent;
    background: linear-gradient(155deg, var(--navy-800) 0%, #0f3358 100%);
    color: var(--ink-inv-2);
    box-shadow: var(--shadow-lg);
}
.compare__col--good h3 { color: #fff; }

.compare__col h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.compare__tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}
.compare__col--bad .compare__tag { background: rgba(226, 84, 79, .12); color: #c4453f; }
.compare__col--good .compare__tag { background: rgba(40, 215, 229, .16); color: var(--aqua); }

.compare__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.compare__list li {
    position: relative;
    padding-left: 30px;
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.55;
}
.compare__list li::before {
    position: absolute;
    left: 0; top: -.05em;
    font-size: 1.25em;
    line-height: 1.4;
}
.compare__col--bad .compare__list li::before { content: "×"; color: #d2564f; font-weight: 700; }
.compare__col--good .compare__list li::before { content: "✓"; color: var(--aqua); font-size: 1em; line-height: 1.6; }

/* Таблица */
.table-wrap {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: var(--fs-small);
}

.table th, .table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table thead th {
    background: var(--surface-1);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-900);
    font-size: 1rem;
    white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-1); }
.table td strong { color: var(--navy-900); }

/* ---------- 14. Цены ---------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
}

@media (max-width: 1080px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }

.price-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(26px, 2.3vw, 38px);
    height: 100%;
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.price-card--accent {
    border-color: transparent;
    background: linear-gradient(160deg, var(--navy-800) 0%, #103558 100%);
    color: var(--ink-inv-2);
    box-shadow: var(--shadow-lg);
}
.price-card--accent h3 { color: #fff; }
.price-card--accent .price-card__value { color: #fff; }
.price-card--accent .price-card__unit { color: var(--ink-inv-2); }
.price-card--accent .checks li::before {
    background-color: rgba(40, 215, 229, .16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328d7e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.price-card__head { margin-bottom: 20px; }
.price-card h3 { margin-bottom: 8px; }
.price-card__desc { font-size: var(--fs-small); margin-bottom: 20px; }

.price-card__value {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--navy-900);
    line-height: 1;
}
.price-card__value small { font-size: .5em; font-weight: 600; color: var(--ink-3); margin-right: 6px; }
.price-card__unit { font-size: .9375rem; color: var(--ink-3); margin-top: 8px; }

.price-card .checks { margin-top: 0; margin-bottom: 26px; }
.price-card .btn { margin-top: auto; }

.price-note {
    margin-top: clamp(26px, 2.4vw, 40px);
    padding: clamp(20px, 2vw, 30px);
    border-radius: var(--r-md);
    background: var(--surface-1);
    border: 1px solid var(--line);
    font-size: var(--fs-small);
}
.price-note strong { display: block; margin-bottom: 6px; }

/* ---------- 15. FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 1000px; }

.faq__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.faq__item.is-open { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

.faq__q {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: 0;
    padding: clamp(20px, 1.8vw, 28px);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy-900);
    letter-spacing: -.015em;
}
.faq__q:hover { color: var(--blue); }

.faq__toggle {
    flex: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    transition: background-color .22s var(--ease), transform .28s var(--ease);
    position: relative;
}
.faq__toggle::before,
.faq__toggle::after {
    content: "";
    position: absolute;
    background: var(--navy-800);
    border-radius: 2px;
    transition: transform .28s var(--ease), background-color .22s var(--ease);
}
.faq__toggle::before { width: 14px; height: 2px; }
.faq__toggle::after { width: 2px; height: 14px; }
.faq__item.is-open .faq__toggle { background: var(--blue); }
.faq__item.is-open .faq__toggle::before { background: #fff; }
.faq__item.is-open .faq__toggle::after { transform: scaleY(0); background: #fff; }

.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
    padding: 0 clamp(20px, 1.8vw, 28px) clamp(22px, 1.8vw, 28px);
    margin: 0;
    font-size: var(--fs-small);
    max-width: 88ch;
}
.faq__a p + p { padding-top: 0; margin-top: -8px; }

/* ---------- 16. CTA-полоса ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(36px, 4vw, 76px);
    background:
        radial-gradient(700px 400px at 88% 10%, rgba(40, 215, 229, .24), transparent 62%),
        linear-gradient(140deg, var(--navy-800) 0%, #0f3358 55%, #16487a 100%);
    color: var(--ink-inv-2);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(24px, 3vw, 60px);
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(90% 100% at 20% 0%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(90% 100% at 20% 0%, #000 10%, transparent 75%);
}

.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #b9d0e6; font-size: var(--fs-lead); max-width: 54ch; margin-bottom: 0; }
.cta-band__actions { display: grid; gap: 12px; }
.cta-band__actions .btn { width: 100%; }
.cta-band__phone {
    text-align: center;
    font-size: .9375rem;
    color: #90aac4;
    margin-top: 4px;
}
.cta-band__phone a {
    display: block;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

/* ---------- 17. Плитки объектов ---------- */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.5vw, 24px);
}

@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(260px, 22vw, 340px);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy-800);
    color: #fff;
    isolation: isolate;
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 58%;
    z-index: -2;
    transition: transform .5s var(--ease);
}
.tile:hover img { transform: scale(1.05); }

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 22, 38, .1) 0%, rgba(6, 22, 38, .62) 52%, rgba(5, 18, 31, .92) 100%);
}

.tile__body { padding: clamp(20px, 1.8vw, 30px); }
.tile h3 { color: #fff; font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.5rem); margin-bottom: 8px; }
.tile p { color: #c3d6e9; font-size: .9375rem; margin: 0; }
.tile:hover h3 { color: #fff; }

.tile__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--aqua);
}
.tile__more svg { width: 16px; height: 16px; transition: transform .22s var(--ease); }
.tile:hover .tile__more svg { transform: translateX(4px); }

/* ---------- 18. Статистика / показатели ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat { background: #fff; padding: clamp(24px, 2.2vw, 36px); }
.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
    color: var(--navy-900);
    margin-bottom: 10px;
}
.stat span { font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- 19. Блок перелинковки ---------- */
.linkbox {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1180px) { .linkbox { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .linkbox { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .linkbox { grid-template-columns: minmax(0, 1fr); } }

.linkbox a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--navy-800);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
    transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.linkbox a:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.linkbox svg { width: 18px; height: 18px; flex: none; opacity: .55; transition: transform .2s var(--ease); }
.linkbox a:hover svg { transform: translateX(4px); opacity: 1; }

/* ---------- 20. Заметка / выделенный блок ---------- */
.note {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: clamp(22px, 2vw, 32px);
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(22, 119, 255, .06), rgba(40, 215, 229, .07));
    border: 1px solid rgba(22, 119, 255, .16);
}
.note__icon { flex: none; width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.note p { margin: 0; font-size: var(--fs-small); }
.note strong { display: block; margin-bottom: 6px; color: var(--navy-900); font-size: 1.0625rem; }

.section--dark .note {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
}
.section--dark .note__icon { color: var(--aqua); }

/* ---------- 21. Текстовый блок ---------- */
.prose { max-width: 82ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; margin-bottom: .6em; }
.prose ul { display: grid; gap: 10px; }
.prose li { font-size: var(--fs-small); }

.cols-2 {
    columns: 2;
    column-gap: clamp(28px, 3vw, 64px);
}
.cols-2 > p { break-inside: avoid; }

/* ---------- 22. Формы и модальные окна ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 32px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease), visibility .26s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 31, .68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--r-xl);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
    padding: clamp(26px, 3vw, 48px);
    transform: translateY(24px) scale(.98);
    transition: transform .3s var(--ease);
    overscroll-behavior: contain;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ink-2);
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    z-index: 2;
}
.modal__close:hover { background: var(--surface-2); color: var(--navy-900); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; }

.modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.modal h2 {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
    margin-bottom: 12px;
    padding-right: 40px;
}
.modal__lead { font-size: var(--fs-small); margin-bottom: 26px; }

.form { display: grid; gap: 16px; }

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 16px;
}

.field { display: grid; gap: 8px; }

.field label {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--navy-900);
}
.field label span { color: #d2564f; }

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--surface-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 15px 18px;
    min-height: 56px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
    appearance: none;
}

.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5266' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(22, 119, 255, .13);
}

.field input::placeholder,
.field textarea::placeholder { color: #93a5b6; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #d2564f;
    background: rgba(226, 84, 79, .04);
}

.field__error {
    font-size: .875rem;
    color: #c4453f;
    display: none;
}
.field.has-error .field__error { display: block; }

.field--hp {
    position: absolute !important;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--ink-3);
    cursor: pointer;
}

.consent input {
    flex: none;
    width: 22px; height: 22px;
    margin: 1px 0 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.consent.has-error { color: #c4453f; }
.consent.has-error a { color: #c4453f; }

.form__note {
    font-size: .8125rem;
    color: var(--ink-3);
    text-align: center;
    margin: 0;
}

.form__status {
    display: none;
    padding: 16px 20px;
    border-radius: var(--r-md);
    font-size: var(--fs-small);
}
.form__status.is-error {
    display: block;
    background: rgba(226, 84, 79, .09);
    border: 1px solid rgba(226, 84, 79, .28);
    color: #b53f39;
}

.form.is-sending .btn--submit { opacity: .65; pointer-events: none; }

.form-success { text-align: center; padding: 10px 0; }
.form-success__icon {
    width: 82px; height: 82px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(22, 119, 255, .14), rgba(40, 215, 229, .18));
    color: var(--blue);
}
.form-success__icon svg { width: 40px; height: 40px; }
.form-success h2 { margin-bottom: 12px; }
.form-success p { color: var(--ink-2); font-size: var(--fs-small); max-width: 42ch; margin-inline: auto; }

/* ---------- 23. Cookie-баннер ---------- */
.cookie {
    position: fixed;
    left: clamp(12px, 2vw, 28px);
    right: clamp(12px, 2vw, 28px);
    bottom: clamp(12px, 2vw, 28px);
    z-index: 190;
    max-width: 640px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(20px, 2vw, 28px);
    display: none;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.cookie.is-visible { display: flex; animation: cookie-in .38s var(--ease); }

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie p { margin: 0; font-size: .9375rem; flex: 1 1 300px; color: var(--ink-2); }
.cookie .btn { flex: none; }

/* ---------- 24. Подвал ---------- */
.footer {
    background: linear-gradient(180deg, var(--navy-900) 0%, #05131f 100%);
    color: var(--ink-inv-2);
    padding-block: clamp(52px, 5vw, 90px) 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 420px at 82% -10%, rgba(22, 119, 255, .18), transparent 62%);
    pointer-events: none;
}

.footer > * { position: relative; z-index: 2; }

.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(28px, 3vw, 56px);
    padding-bottom: clamp(36px, 3.4vw, 60px);
    border-bottom: 1px solid var(--line-dark);
}

.footer .logo__name { color: #fff; }
.footer .logo__tag { color: #7f9ab4; }
.footer .logo:hover .logo__name { color: #fff; }

.footer__about { font-size: .9375rem; color: #a9c2d8; margin: 22px 0 0; max-width: 40ch; }

.footer__col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col li { margin: 0; }
.footer__col a {
    color: #bcd2e6;
    font-size: .9375rem;
    border-radius: 4px;
    transition: color .18s var(--ease);
}
.footer__col a:hover,
.footer__col a:focus-visible { color: var(--aqua); }
.footer__col a:active { color: #7fe3ff; }

.footer__contact { display: grid; gap: 14px; }
.footer__contact-phone {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -.02em;
}
.footer__contact-phone:hover { color: var(--aqua) !important; }
.footer__contact-mail { font-size: 1.0625rem !important; }
.footer__contact p { font-size: .875rem; color: #9db5cc; margin: 0; }

.footer__legal {
    padding-block: clamp(26px, 2.6vw, 40px);
    border-bottom: 1px solid var(--line-dark);
    font-size: .875rem;
    line-height: 1.7;
    color: #9cb5cd;
}

.footer__legal-note {
    margin: 14px 0 0;
    font-size: .8125rem;
    color: #7f9ab4;
}
.footer__legal h4 {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a8c0d6;
    margin-bottom: 14px;
}
.footer__legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 8px clamp(24px, 3vw, 56px);
}
.footer__legal-grid div { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__legal-grid dt { color: #8aa4bd; flex: none; }
.footer__legal b { color: #dceaf6; font-weight: 600; }

.footer__bottom {
    padding-block: 26px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    align-items: center;
    justify-content: space-between;
    font-size: .875rem;
    color: #90a9c1;
}
.footer__bottom a {
    color: #b6cde2;
    border-radius: 4px;
    transition: color .18s var(--ease);
}
.footer__bottom a:hover,
.footer__bottom a:focus-visible { color: var(--aqua); }
.footer__bottom a:active { color: #7fe3ff; }
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.footer__disclaimer {
    font-size: .8125rem;
    color: #8ba5bd;
    padding-bottom: 30px;
    max-width: 92ch;
}

/* Фокус с клавиатуры в подвале должен быть заметен на тёмном фоне */
.footer a:focus-visible,
.footer button:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
}

/* ---------- 25. 404 ---------- */
.error-page {
    min-height: 68vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-block: clamp(60px, 7vw, 130px);
}
.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 4rem + 12vw, 14rem);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.06em;
    background: linear-gradient(135deg, var(--blue), var(--aqua));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
}
.error-page p { font-size: var(--fs-lead); max-width: 54ch; margin-inline: auto; }
.error-page .btn-row { justify-content: center; margin-top: 34px; }

/* ---------- 26. Анимации появления ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .34s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .4s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .46s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- 27. Адаптив ---------- */
/* Шапка занимает всю ширину экрана — меню и телефон не должны сжиматься */
.header .container {
    max-width: none;
    padding-inline: clamp(18px, 2.2vw, 44px);
}

/*
 * «Цены» и «Контакты» в горизонтальном меню не помещаются рядом с крупным
 * телефоном и кнопкой, поэтому они живут в mega-menu «Услуги → Компания»,
 * в подвале и в мобильном меню, где выводятся все пункты.
 */
.nav__item--optional { display: none; }

.header__inner { gap: clamp(10px, 1.1vw, 22px); }

/* Кнопка сжимается до иконки, когда меню занимает всю строку */
@media (max-width: 1750px) {
    .header .btn span { display: none; }
    .header .btn { padding-inline: 20px; }
}

@media (max-width: 1560px) {
    .nav__link { padding: 10px 9px; }
    .header__phone > span { display: none; }
}

@media (max-width: 1560px) {
    :root { --header-h: 84px; --header-h-scrolled: 70px; }
    .nav { display: none; }
    .burger { display: block; }
    .header__actions { margin-left: auto; }
    .header .btn span { display: inline; }
    .header .btn { padding-inline: clamp(18px, 1.6vw, 30px); }
    .header__phone > span { display: block; }
}

@media (max-width: 1240px) {
    .header__phone > span { display: none; }
    .hero__inner,
    .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .hero__visual, .page-hero__visual { order: -1; }
    .hero__lead, .page-hero__lead { max-width: 60ch; }
    .cta-band { grid-template-columns: minmax(0, 1fr); }
    .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .footer__top { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
}

@media (max-width: 900px) {
    .header .btn { padding-inline: 18px; }
    .cols-2 { columns: 1; }
}

@media (max-width: 820px) {
    .header .btn span { display: none; }
}

@media (max-width: 700px) {
    :root { --header-h: 72px; --header-h-scrolled: 64px; }
    .header__phone a { font-size: 1.1875rem; }
    /* На мобильном в шапке остаётся логотип, телефон и бургер — по CTA есть кнопки в меню и на странице */
    .header__actions > .btn { display: none; }
    .logo__tag { display: none; }
    .logo__mark { width: 36px; height: 36px; }
    .btn { width: auto; }
    .btn-row .btn { flex: 1 1 100%; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .cookie { flex-direction: column; align-items: stretch; }
    .cookie p { flex: 0 0 auto; }
    .cookie .btn { width: 100%; }
    .modal__dialog { padding: 26px 20px 30px; border-radius: var(--r-lg); }
    .modal { padding: 10px; align-items: end; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
    .header__phone-num { display: none; }
    .header__phone-icon { display: grid; }
    .header__phone > span { display: none; }
}

@media (max-width: 460px) {
    :root { --gutter: 16px; }
    .logo__name { font-size: 1.1875rem; }
    .hero__stats { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
}

/* ---------- 28. Печать ---------- */
@media print {
    .header, .footer, .cookie, .modal, .btn, .burger { display: none !important; }
    body { color: #000; font-size: 12pt; }
    .section--dark, .hero, .page-hero { background: none !important; color: #000 !important; }
    .section--dark h1, .section--dark h2, .hero h1 { color: #000 !important; }
}

/* ---------- 29. Выполненные работы ---------- */
.cases {
    display: grid;
    gap: clamp(18px, 1.8vw, 28px);
}

.case {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 2.4vw, 44px);
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow .26s var(--ease), border-color .26s var(--ease);
}

.case:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }

.case__media { align-self: stretch; }
.case__media img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

.case__body { padding: clamp(22px, 2.2vw, 40px) clamp(22px, 2.2vw, 40px) clamp(22px, 2.2vw, 40px) 0; }

.case__object {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(22, 119, 255, .08);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}

.case__body h3 { margin-bottom: 18px; }

.case__row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 18px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: var(--fs-small);
}
.case__row dt { color: var(--ink-3); font-weight: 600; margin: 0; }
.case__row dd { margin: 0; color: var(--ink-2); }

.case__facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
}
.case__facts li {
    margin: 0;
    font-size: .875rem;
    font-weight: 500;
    color: var(--navy-800);
    background: var(--surface-2);
    border-radius: var(--r-pill);
    padding: 7px 15px;
}

.section--dark .case { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .12); }
.section--dark .case__row { border-color: rgba(255, 255, 255, .12); }
.section--dark .case__row dd { color: var(--ink-inv-2); }
.section--dark .case__facts li { background: rgba(255, 255, 255, .08); color: #fff; }

/* Чётные карточки — изображением справа */
.case:nth-child(even) .case__media { order: 2; }
.case:nth-child(even) .case__body { padding: clamp(22px, 2.2vw, 40px) 0 clamp(22px, 2.2vw, 40px) clamp(22px, 2.2vw, 40px); }

@media (max-width: 860px) {
    .case,
    .case:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .case__media { order: -1 !important; }
    .case__media img { min-height: 200px; max-height: 260px; }
    .case__body,
    .case:nth-child(even) .case__body { padding: clamp(20px, 3vw, 28px); }
}

/* На узких экранах подпись строки уходит над текстом,
   иначе на описание остаётся слишком мало ширины */
@media (max-width: 560px) {
    .case__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .case__row dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
}

/* ---------- 30. Отзывы ---------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 26px);
}

@media (max-width: 1040px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

.review {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(26px, 2.2vw, 36px);
    transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review::before {
    content: "“";
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 88px;
    line-height: 1;
    color: rgba(22, 119, 255, .1);
    pointer-events: none;
}

.review__text {
    margin: 0 0 22px;
    font-size: var(--fs-small);
    line-height: 1.62;
    color: var(--ink-2);
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}
.review__text p:last-child { margin-bottom: 0; }

.review__author {
    display: grid;
    gap: 3px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.review__author b {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--navy-900);
}
.review__author span { font-size: .875rem; color: var(--ink-3); }
.review__author time { font-size: .8125rem; color: var(--ink-3); }

.section--dark .review { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .12); }
.section--dark .review::before { color: rgba(40, 215, 229, .14); }
.section--dark .review__text { color: var(--ink-inv-2); }
.section--dark .review__author { border-color: rgba(255, 255, 255, .12); }
.section--dark .review__author b { color: #fff; }

/* ---------- 31. Фоновые изображения ---------- */
/*
   Слой фона живёт внутри секции и не влияет на поток: изображение
   растягивается по кадру через object-fit, поверх ложится градиент,
   гарантирующий контраст текста независимо от картинки.
*/
.bg-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* Отдельный слой композиции: параллакс не заставляет перерисовывать текст */
    will-change: transform;
    contain: paint;
}

.bg-layer picture,
.bg-layer img {
    display: block;
    width: 100%;
    height: 100%;
}

.bg-layer img {
    object-fit: cover;
    object-position: center;
    /* Запас по высоте для параллакса: край не обнажается при сдвиге */
    transform: scale(1.06);
}

/* Затемняющий градиент: текстовая зона слева, справа картинка видна */
.bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(96deg, rgba(6, 21, 36, .74) 0%, rgba(6, 21, 36, .54) 28%,
            rgba(7, 26, 43, .16) 60%, rgba(7, 26, 43, .34) 100%);
}

/* Варианты силы затемнения */
.bg-layer--soft::after {
    background:
        linear-gradient(96deg, rgba(6, 21, 36, .62) 0%, rgba(6, 21, 36, .4) 32%,
            rgba(7, 26, 43, .06) 64%, rgba(7, 26, 43, .22) 100%);
}

.bg-layer--strong::after {
    background:
        linear-gradient(96deg, rgba(5, 18, 31, .84) 0%, rgba(5, 18, 31, .68) 32%,
            rgba(6, 21, 36, .3) 66%, rgba(6, 21, 36, .48) 100%);
}

/* Ровное затемнение — для CTA и полос, где текст по центру */
.bg-layer--even::after {
    background:
        radial-gradient(130% 120% at 50% 40%, rgba(7, 26, 43, .3) 0%, rgba(6, 21, 36, .74) 74%);
}

/* Секция с фоном: сама секция даёт базовый цвет на случай, если
   изображение не загрузилось, и поднимает контент над слоем */
.section--bg {
    position: relative;
    background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d2c4c 100%);
    color: var(--ink-inv-2);
    isolation: isolate;
}

.section--bg > .container { position: relative; z-index: 2; }

/* Первый экран с фотофоном: собственные градиенты остаются подложкой */
.hero.has-bg::before,
.page-hero.has-bg::before { opacity: .5; }

.hero.has-bg > .container,
.page-hero.has-bg > .container { position: relative; z-index: 2; }

/* На мобильных кадр вертикальный: текст сверху, поэтому и градиент сверху */
@media (max-width: 860px) {
    .bg-layer::after,
    .bg-layer--soft::after,
    .bg-layer--strong::after {
        background:
            linear-gradient(180deg, rgba(6, 21, 36, .8) 0%, rgba(6, 21, 36, .62) 36%,
                rgba(7, 26, 43, .24) 68%, rgba(7, 26, 43, .5) 100%);
    }
    .bg-layer--even::after {
        background: linear-gradient(180deg, rgba(6, 21, 36, .74) 0%, rgba(6, 21, 36, .62) 100%);
    }
    /* Параллакс на тач-устройствах отключён: он дорог и почти незаметен */
    .bg-layer img { transform: none; }
}

/* Пользователь просил меньше движения — фон стоит на месте */
@media (prefers-reduced-motion: reduce) {
    .bg-layer { will-change: auto; }
    .bg-layer img { transform: none !important; }
}

/* В печати фоновые изображения не нужны */
@media print {
    .bg-layer { display: none !important; }
}

/* 404 на фоновой полосе: отступы задаёт сам блок ошибки */
.error-band { padding-block: 0; }
.error-band > .container { position: relative; z-index: 2; }
.section--bg .error-page__code {
    background: linear-gradient(135deg, var(--cyan), var(--aqua));
    -webkit-background-clip: text;
    background-clip: text;
}
.section--bg .error-page p { color: var(--ink-inv-2); }

/* Блок перелинковки на тёмной секции: стеклянные карточки вместо белых */
.section--dark .linkbox a,
.section--bg .linkbox a {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
    color: var(--ink-inv);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.section--dark .linkbox a:hover,
.section--dark .linkbox a:focus-visible,
.section--bg .linkbox a:hover,
.section--bg .linkbox a:focus-visible {
    background: rgba(255, 255, 255, .12);
    border-color: var(--aqua);
    color: #fff;
}
.section--dark .linkbox svg,
.section--bg .linkbox svg { opacity: .7; }

/* CTA-полоса на фоновой секции: карточка становится стеклом,
   чтобы фон работал на весь экран, а не только по краям */
.section--bg .cta-band {
    background:
        linear-gradient(140deg, rgba(11, 37, 64, .72) 0%, rgba(15, 51, 88, .58) 55%, rgba(22, 72, 122, .5) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Секции с фоном не нуждаются в собственной технологической сетке —
   она уже нарисована в самом изображении */
.section--bg.section--dark::before { opacity: .35; }
