/* ===================================================================
   SKПропуск — лендинг. Дизайн-система Cargo Freight (перенесена из
   _ds/cargo-freight-design-system/tokens/*.css без изменения значений).
   =================================================================== */

/* --- Токены: цвет ------------------------------------------------- */
:root {
    --blue-50: #f2f6ff;
    --blue-100: #e7eeff;
    --blue-200: #cfdcff;
    --blue-300: #a6bdff;
    --blue-400: #5c86f5;
    --blue-500: #2f6bff;
    --blue-600: #1d54dc;
    --blue-700: #1745b8;
    --blue-800: #123a99;
    --blue-900: #0f2f7a;

    --ink-900: #0f1b33;
    --ink-800: #16233d;
    --ink-700: #1c2c4c;
    --ink-600: #3c4c68;
    --ink-500: #5a6b85;
    --ink-400: #8a97ac;
    --ink-300: #b6c0cf;
    --ink-200: #dfe4ee;
    --ink-100: #eef1f7;
    --ink-50: #f5f7fb;
    --white: #ffffff;

    --green-500: #1ea36b;
    --green-100: #e4f6ec;
    --amber-500: #e8a33d;
    --amber-100: #fdf2e0;
    --red-500: #e33d3d;
    --red-100: #fdeaea;

    --surface-page: var(--ink-50);
    --surface-card: var(--white);
    --surface-sunken: var(--ink-50);
    --surface-tint: var(--blue-50);
    --surface-tint-strong: var(--blue-100);
    --surface-inverse: var(--blue-600);
    --surface-ink: var(--ink-900);

    --text-heading: var(--ink-900);
    --text-body: var(--ink-500);
    --text-strong: var(--ink-700);
    --text-muted: var(--ink-400);
    --text-accent: var(--blue-600);
    --text-on-accent: var(--white);

    --border-subtle: var(--ink-200);
    --border-strong: var(--ink-300);
    --border-accent: var(--blue-600);
    --border-field: var(--ink-200);

    /* Фирменные цвета мессенджеров — для кнопок-переходов в чат. */
    --brand-wa: #25D366;
    --brand-wa-hover: #1DAF57;
    --brand-tg: #229ED9;
    --brand-tg-hover: #1B82B3;
    /* MAX — фирменный градиент из официального логотипа */
    --brand-max: linear-gradient(135deg, #44CCFF 0%, #5533EE 66%, #9933DD 100%);
    --brand-max-hover: linear-gradient(135deg, #2FB8EB 0%, #4526D4 66%, #8427C4 100%);

    --action-primary: var(--blue-600);
    --action-primary-hover: var(--blue-700);
    --action-primary-active: var(--blue-800);
    --action-secondary: var(--white);
    --action-secondary-hover: var(--ink-50);
    --action-ghost-hover: var(--blue-50);
    --focus-ring: rgba(29, 84, 220, .35);

    /* --- Токены: типографика --- */
    --font-core: "Golos Text", "Helvetica Neue", Arial, sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fs-body: 16px;
    --fs-sm: 14px;
    --lh-sm: 1.45;
    --ls-hero: -.022em;
    --ls-h2: -.018em;
    --type-label: var(--fw-medium) var(--fs-sm)/var(--lh-sm) var(--font-core);
    --type-button: var(--fw-medium) var(--fs-body)/1 var(--font-core);

    /* --- Токены: радиусы --- */
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-2xl: 24px;
    --radius-pill: 999px;
    --radius-button: var(--radius-md);
    --radius-field: var(--radius-md);
    --radius-card: var(--radius-lg);

    /* --- Токены: тени --- */
    --shadow-sm: 0 2px 6px rgba(15, 27, 51, .05);
    --shadow-card: 0 4px 20px rgba(15, 32, 64, .06);
    --shadow-raised: 0 10px 32px rgba(15, 32, 64, .08);
    --shadow-overlay: 0 24px 64px rgba(15, 32, 64, .14);

    /* --- Токены: движение --- */
    --dur-fast: 120ms;
    --dur-base: 180ms;
    --ease-standard: cubic-bezier(.2, .6, .2, 1);
    --transition-control: background-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);

    /* --- Метрики контролов --- */
    --control-h: 44px;
    --control-h-lg: 48px;
    --control-pad-x: 20px;
    --container-max: 1272px;
}

/* --- База --------------------------------------------------------- */
* {
    box-sizing: border-box;
}

/* Плавный переход по якорям меню. scroll-padding-top — высота липкой
   шапки, иначе заголовок блока уезжает под неё. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

@media (max-width: 1079px) {
    html {
        scroll-padding-top: 72px;
    }
}

body {
    margin: 0;
    background: var(--surface-page);
    font-family: var(--font-core);
    color: var(--text-heading);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--text-accent);
    text-decoration: none;
}

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

input,
button,
textarea {
    font-family: var(--font-core);
}

img {
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
}

p {
    margin: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section--card {
    background: var(--surface-card);
}

.section--page {
    background: var(--surface-page);
}

.section--tint {
    background: var(--surface-tint);
}

.h2 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: var(--ls-h2);
    font-weight: 700;
}

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

.lead {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-body);
}

.muted-note {
    font-size: 13px;
    color: var(--text-muted);
}

.visually-hidden {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* --- Анимации ----------------------------------------------------- */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 84, 220, .42)
    }

    70% {
        box-shadow: 0 0 0 14px rgba(29, 84, 220, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 84, 220, 0)
    }
}

@keyframes wordIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes caretBlink {

    0%,
    45% {
        opacity: 1
    }

    55%,
    100% {
        opacity: 0
    }
}

@keyframes caretOut {
    to {
        opacity: 0;
        width: 0
    }
}

@keyframes ctaSheen {
    0% {
        transform: translateX(-120%)
    }

    55% {
        transform: translateX(220%)
    }

    100% {
        transform: translateX(220%)
    }
}

/* Появление блоков при прокрутке. Без JS элементы просто видны. */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--ease-standard), transform .5s var(--ease-standard);
}

.reveal.is-shown {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-shown {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__title span,
    .btn--pulse,
    .fab__toggle::before,
    .btn__sheen span {
        animation: none !important;
    }
}

/* --- Кнопки (DS Button) ------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--control-h);
    padding: 0 var(--control-pad-x);
    font: var(--type-button);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-button);
    background: var(--action-primary);
    color: var(--text-on-accent);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-control);
}

.btn:hover {
    background: var(--action-primary-hover);
    color: var(--text-on-accent);
}

.btn:active {
    transform: translateY(1px);
    background: var(--action-primary-active);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.btn--lg {
    height: var(--control-h-lg);
    padding: 0 28px;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--secondary {
    background: var(--action-secondary);
    color: var(--text-heading);
    border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
    background: var(--action-secondary-hover);
    color: var(--text-heading);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-field);
    color: var(--text-heading);
    font-weight: 500;
}

.btn--outline:hover {
    background: var(--action-secondary-hover);
    color: var(--text-heading);
}

/* Кнопки-переходы в мессенджеры в фирменных цветах */
.btn--wa,
.btn--tg,
.btn--max {
    color: #fff;
    border-color: transparent;
}

.btn--wa {
    background: var(--brand-wa);
}

.btn--wa:hover {
    background: var(--brand-wa-hover);
    color: #fff;
}

.btn--tg {
    background: var(--brand-tg);
}

.btn--tg:hover {
    background: var(--brand-tg-hover);
    color: #fff;
}

.btn--max {
    background: var(--brand-max);
}

.btn--max:hover {
    background: var(--brand-max-hover);
    color: #fff;
}

/* CTA с пульсацией и блеском — как в макете */
.btn-cta {
    position: relative;
    border-radius: var(--radius-button);
    animation: ctaPulse 2.8s var(--ease-standard) infinite;
}

.btn__sheen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-button);
    pointer-events: none;
}

.btn__sheen span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .34), rgba(255, 255, 255, 0));
    animation: ctaSheen 3.6s var(--ease-standard) infinite;
}

/* --- Иконки мессенджеров ------------------------------------------ */
/* Иконки в фирменных цветах: цветной диск + белый знак, поэтому они
   одинаково читаются и на белой кнопке, и на синей, и на тёмном подвале.
   Лежат в CSS как data:URI — работают на всех страницах без спрайта.
   Знак MAX — буквенный: официальный логотип подставить в .ic--max. */
.ic {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -4px;
    background: center/contain no-repeat;
}

.ic--wa {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2325D366'/%3E%3Cpath fill='%23fff' d='M12 4.6c-4.1 0-7.4 3.3-7.4 7.4 0 1.3.3 2.6 1 3.7l-1.1 3.7 3.9-.9c1 .5 2.2.8 3.4.8 4.1 0 7.4-3.3 7.4-7.4S16.1 4.6 12 4.6Zm0 13.4c-1.1 0-2.2-.3-3.1-.8l-.2-.1-2.3.5.6-2.2-.1-.2c-.6-1-.9-2.1-.9-3.2 0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6Z'/%3E%3Cpath fill='%23fff' d='M16.9 14.4c-.3-.2-1.6-.8-1.8-.9-.3-.1-.4-.1-.6.1-.2.3-.7.9-.8 1.1-.2.2-.3.2-.6.1-.3-.1-1.1-.4-2.1-1.3-.8-.7-1.3-1.6-1.5-1.8-.2-.3 0-.4.1-.6.1-.1.3-.4.5-.6.1-.2.2-.4.3-.6.1-.2 0-.4 0-.6-.1-.1-.6-1.4-.8-1.9-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.3.3-.9 1.1-.9 2.6 0 1.5 1.1 2.9 1.2 3.1.2.2 2.1 3.2 5 4.4.7.3 1.2.5 1.7.6.7.2 1.3.2 1.8.1.6-.1 1.7-.7 2-1.4.2-.7.2-1.3.2-1.4-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E");
}

.ic--tg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23229ED9'/%3E%3Cpath fill='%23fff' d='M9.3 16.9l-.2 2.6c.3 0 .4-.1.6-.3l1.4-1.3 2.8 2c.5.3.9.1 1-.5l1.9-8.8c.2-.8-.3-1.1-.8-.9L5.9 13c-.8.3-.8.7-.1 1l2.8.9 6.4-4c.3-.2.6-.1.3.1l-5 4.9Z'/%3E%3C/svg%3E");
}

/* Белый знак без диска — для кнопок, залитых фирменным зелёным. */
.ic--wa-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2.2C6.6 2.2 2.2 6.6 2.2 12c0 1.7.4 3.4 1.3 4.9L2 22l5.3-1.4c1.4.7 2.9 1.1 4.7 1.1 5.4 0 9.8-4.4 9.8-9.8S17.4 2.2 12 2.2Zm0 17.8c-1.5 0-2.9-.4-4.1-1.1l-.3-.2-3.1.8.8-3-.2-.3c-.8-1.3-1.2-2.8-1.2-4.3 0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8Z'/%3E%3Cpath fill='%23fff' d='M16.6 13.9c-.3-.2-1.7-.8-1.9-.9-.3-.1-.5-.2-.7.1-.2.3-.7 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.2-.5-2.2-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6.1-.2.4-.5.6-.7.1-.2.2-.4.3-.7.1-.2 0-.4 0-.6-.1-.2-.7-1.5-.9-2.1-.2-.5-.5-.4-.7-.4h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.5s1.1 3 1.2 3.2c.2.2 2.2 3.4 5.3 4.7.7.3 1.3.5 1.8.6.7.2 1.4.2 1.9.1.6-.1 1.8-.7 2.1-1.5.2-.7.2-1.4.2-1.5-.1-.1-.3-.2-.6-.3Z'/%3E%3C/svg%3E");
}

/* Официальный знак MAX (Викимедиа, public domain): фирменный градиент
   и белый «пузырь». */
.ic--max {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='117.847' x2='1000' y1='760.536' y2='500' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2344ccff'/%3E%3Cstop offset='.662' stop-color='%235533ee'/%3E%3Cstop offset='1' stop-color='%239933dd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1000' height='1000' fill='url(%23a)' ry='249.681'/%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M508.211 878.328c-75.007 0-109.864-10.95-170.453-54.75-38.325 49.275-159.686 87.783-164.979 21.9 0-49.456-10.95-91.248-23.36-136.873-14.782-56.21-31.572-118.807-31.572-209.508 0-216.626 177.754-379.597 388.357-379.597 210.785 0 375.947 171.001 375.947 381.604.707 207.346-166.595 376.118-373.94 377.224m3.103-571.585c-102.564-5.292-182.499 65.7-200.201 177.024-14.6 92.162 11.315 204.398 33.397 210.238 10.585 2.555 37.23-18.98 53.837-35.587a189.8 189.8 0 0 0 92.71 33.032c106.273 5.112 197.08-75.794 204.215-181.95 4.154-106.382-77.67-196.486-183.958-202.574Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* Белые знаки без подложки — для кнопок, залитых фирменным цветом. */
.ic--tg-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4.6 5.8 13.8 14'%3E%3Cpath fill='%23fff' d='M9.3 16.9l-.2 2.6c.3 0 .4-.1.6-.3l1.4-1.3 2.8 2c.5.3.9.1 1-.5l1.9-8.8c.2-.8-.3-1.1-.8-.9L5.9 13c-.8.3-.8.7-.1 1l2.8.9 6.4-4c.3-.2.6-.1.3.1l-5 4.9Z'/%3E%3C/svg%3E");
}

.ic--max-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='100 100 800 800'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M508.211 878.328c-75.007 0-109.864-10.95-170.453-54.75-38.325 49.275-159.686 87.783-164.979 21.9 0-49.456-10.95-91.248-23.36-136.873-14.782-56.21-31.572-118.807-31.572-209.508 0-216.626 177.754-379.597 388.357-379.597 210.785 0 375.947 171.001 375.947 381.604.707 207.346-166.595 376.118-373.94 377.224m3.103-571.585c-102.564-5.292-182.499 65.7-200.201 177.024-14.6 92.162 11.315 204.398 33.397 210.238 10.585 2.555 37.23-18.98 53.837-35.587a189.8 189.8 0 0 0 92.71 33.032c106.273 5.112 197.08-75.794 204.215-181.95 4.154-106.382-77.67-196.486-183.958-202.574Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.btn .ic {
    margin-right: -2px;
}

/* Ссылки без href (настоящий адрес подставляет contacts.js) */
a[data-c] {
    cursor: pointer;
}

/* Трубка: синяя для светлой кнопки в шапке, белая для залитой */
.ic--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d54dc' d='M6.6 10.8c1 1.9 2.6 3.5 4.6 4.6l1.5-1.5c.2-.2.5-.3.8-.2 1 .3 2.1.5 3.2.5.4 0 .8.3.8.8v2.4c0 .4-.4.8-.8.8C10.1 18.2 4.7 12.8 4.7 6.2c0-.4.3-.8.8-.8H8c.4 0 .8.3.8.8 0 1.1.2 2.1.5 3.2.1.3 0 .6-.2.8l-2.5 1.6Z'/%3E%3C/svg%3E");
}

.ic--up {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231d54dc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M6 14l6-6 6 6'/%3E%3C/svg%3E");
}

.ic--phone-white {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.6 10.8c1 1.9 2.6 3.5 4.6 4.6l1.5-1.5c.2-.2.5-.3.8-.2 1 .3 2.1.5 3.2.5.4 0 .8.3.8.8v2.4c0 .4-.4.8-.8.8C10.1 18.2 4.7 12.8 4.7 6.2c0-.4.3-.8.8-.8H8c.4 0 .8.3.8.8 0 1.1.2 2.1.5 3.2.1.3 0 .6-.2.8l-2.5 1.6Z'/%3E%3C/svg%3E");
}


.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Согласие на обработку ПДн ------------------------------------ */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.consent input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent__box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-control);
}

.consent__box::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
}

.consent input:checked+.consent__box {
    background: var(--action-primary);
    border-color: var(--action-primary);
}

.consent input:checked+.consent__box::after {
    opacity: 1;
}

.consent input:focus-visible+.consent__box {
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.consent.is-invalid .consent__box {
    border-color: var(--red-500);
    background: var(--red-100);
}

.consent.is-invalid {
    color: var(--red-500);
}

.consent a {
    color: var(--text-accent);
}

/* На тёмном фоне (подвал) */
.consent--dark {
    color: rgba(255, 255, 255, .6);
}

.consent--dark a {
    color: #fff;
    text-decoration: underline;
}

/* --- Поля --------------------------------------------------------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

.input {
    height: 56px;
    width: 100%;
    border-radius: var(--radius-field);
    border: 1px solid var(--border-field);
    padding: 0 16px;
    font-size: 18px;
    color: var(--text-heading);
    background: #fff;
    outline: none;
    transition: var(--transition-control);
}

.input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.input--tall {
    height: 58px;
}

.input.is-invalid {
    border-color: var(--red-500);
    background: var(--red-100);
}

.textarea {
    height: auto;
    min-height: 104px;
    padding: 14px 16px;
    font-size: 17px;
    line-height: 1.45;
    resize: vertical;
}

.form-note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Ошибка под конкретным полем. В строчных раскладках (квиз) занимает
   всю ширину, чтобы не вставать в ряд с полями. */
.field-error {
    flex: 1 0 100%;
    width: 100%;
    margin-top: -2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--red-500);
}

.form-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-500);
    min-height: 20px;
}

.form-status.is-error {
    color: var(--red-500);
}

/* --- Шапка -------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-subtle);
}

.header__bar {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    gap: 22px;
    font: var(--type-label);
    font-size: 15px;
    flex-wrap: wrap;
}

.header__nav a {
    color: var(--ink-600);
    white-space: nowrap;
}

.header__nav a:hover {
    color: var(--text-accent);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header__phone a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
}

.header__phone span {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}


/* Мобильная шапка */
.header__bar--mobile {
    display: none;
    padding: 10px 16px;
    gap: 12px;
}

.header__bar--mobile .header__logo img {
    height: 34px;
}

.header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-page);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-accent);
    cursor: pointer;
    padding: 0;
}

/* Кнопка-иконка телефона в шапке: голубая плашка, синяя трубка */
.icon-btn--phone {
    background: var(--surface-tint-strong);
    border-color: transparent;
}

.icon-btn--phone:hover {
    background: var(--blue-200);
}

.icon-btn .ic {
    width: 22px;
    height: 22px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border-subtle);
    padding: 8px 16px 14px;
    flex-direction: column;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    font-size: 17px;
    color: var(--ink-700);
    border-bottom: 1px solid var(--ink-100);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* --- Герой -------------------------------------------------------- */
.hero {
    background: var(--surface-page);
    padding: 56px 0 64px;
}

.hero__grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.hero__text {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero__badge {
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface-tint-strong);
    color: var(--blue-800);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.hero__title {
    font-size: clamp(30px, 6.4vw, 52px);
    line-height: 1.07;
    letter-spacing: var(--ls-hero);
    font-weight: 700;
    max-width: 640px;
    text-wrap: pretty;
}

.hero__title span {
    display: inline-block;
    animation: wordIn .42s var(--ease-standard) both;
}

.hero__title .is-accent {
    color: var(--text-accent);
}

.hero__caret {
    display: inline-block;
    width: 3px;
    height: .82em;
    margin-left: 6px;
    vertical-align: -.06em;
    background: var(--action-primary);
    animation: caretBlink .9s steps(1) 1.1s 3, caretOut .01s linear 3.8s both;
}

.hero__chips {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__chip {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-tint-strong);
    color: var(--blue-800);
    font-size: 14px;
    font-weight: 500;
}

.hero__lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-body);
    max-width: 560px;
    text-wrap: pretty;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 17px;
    color: var(--ink-700);
}

.check-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-list i {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.hero__stat-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Карточка заявки в герое */
.hero__card {
    flex: 0 1 460px;
    min-width: 280px;
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-raised);
}

.hero__card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hero__card-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.hero__card-time {
    font-size: 14px;
    color: var(--text-muted);
}

.segmented {
    display: flex;
    background: var(--surface-sunken);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.segmented button {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--ink-600);
    background: transparent;
    transition: var(--transition-control);
}

.segmented button.is-active {
    background: var(--action-primary);
    color: #fff;
}

.hero__card-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.hero__card-fast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-body);
    flex-wrap: wrap;
}

.hero__card-fast a {
    font-weight: 600;
}

/* --- Преимущества ------------------------------------------------- */
.section__head {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
}

.section__head .h2 {
    max-width: 620px;
}

.section__head .lead {
    max-width: 440px;
}

.stack-40 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stack-36 {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.cards--wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards--reviews {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards--stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.benefit {
    background: var(--surface-page);
    border-radius: var(--radius-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--surface-tint-strong);
    color: var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.benefit__title {
    font-size: 19px;
    font-weight: 600;
}

.benefit__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-body);
}

/* --- Квиз --------------------------------------------------------- */
.quiz__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.quiz__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
}

.quiz__head .lead {
    max-width: 620px;
}

.quiz__card {
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: 32px;
    box-shadow: var(--shadow-raised);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.quiz__step {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
}

.quiz__percent {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-accent);
}

.quiz__track {
    height: 6px;
    border-radius: 999px;
    background: var(--ink-100);
    overflow: hidden;
}

.quiz__bar {
    height: 6px;
    border-radius: 999px;
    background: var(--action-primary);
    transition: width .28s var(--ease-standard);
    width: 0;
}

.quiz__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quiz__question {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.quiz__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.quiz__option {
    cursor: pointer;
    min-height: 64px;
    border-radius: var(--radius-field);
    border: 1px solid var(--border-field);
    background: var(--surface-card);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink-700);
    text-align: left;
    transition: border-color .18s, box-shadow .18s;
}

.quiz__option:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-sm);
}

.quiz__option span {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid var(--ink-300);
}

.quiz__option.is-picked span {
    border-color: var(--action-primary);
    background: var(--action-primary);
    box-shadow: inset 0 0 0 4px #fff;
}

.quiz__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.quiz__back {
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-accent);
    background: none;
    border: none;
    padding: 0;
}

.quiz__back[disabled] {
    color: var(--ink-300);
    cursor: default;
}

.quiz__result {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-tint);
    border-radius: 16px;
    padding: 22px 24px;
}

.quiz__result-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.quiz__result-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.quiz__result-sub {
    font-size: 16px;
    color: var(--text-body);
}

.quiz__result-term {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-accent);
    max-width: 280px;
    line-height: 1.4;
}

.quiz__lead-text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-body);
}

.quiz__lead-list {
    margin: 8px 0 0;
    padding-left: 22px;
}

.quiz__lead-list li + li {
    margin-top: 4px;
}

.quiz__row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quiz__row .input {
    flex: 1 1 200px;
    width: auto;
}

.quiz__row .btn {
    flex: 0 1 auto;
    max-width: 100%;
}

/* Длинная подпись кнопки на узком экране переносится, а не вылезает за край */
@media (max-width: 479px) {
    .quiz__row .btn {
        flex-basis: 100%;
        height: auto;
        min-height: var(--control-h-lg);
        padding-block: 10px;
        white-space: normal;
        text-align: center;
    }
}

.quiz__restart {
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-accent);
    background: none;
    border: none;
    padding: 0;
}

.is-hidden {
    display: none !important;
}

/* --- Этапы -------------------------------------------------------- */
.stage {
    background: var(--surface-page);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 3px solid var(--action-primary);
}

.stage__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stage__num {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--action-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
}

.stage__time {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-accent);
}

.stage__title {
    font-size: 21px;
    font-weight: 600;
}

.stage__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-body);
}

/* --- Документы ---------------------------------------------------- */
.split {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.split--center {
    align-items: center;
}

.docs__text {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.docs__text .lead {
    max-width: 480px;
}

.docs__text .btn {
    align-self: flex-start;
}

.docs__list {
    flex: 1 1 420px;
    min-width: 0;
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: 12px 28px;
    box-shadow: var(--shadow-card);
}

.docs__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ink-100);
    font-size: 17px;
    color: var(--ink-700);
}

.docs__item:last-child {
    border-bottom: none;
}

.docs__item b {
    color: var(--text-accent);
    font-weight: 700;
}

/* --- Сроки по зонам ----------------------------------------------- */
.price {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.price__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink-100);
}

.price__row:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}

.price__row span {
    font-size: 16px;
    color: var(--text-body);
}

.price__row b {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-accent);
    text-align: right;
}

.price .btn {
    margin-top: auto;
}

.note-accent {
    border-left: 2px solid var(--border-accent);
    padding: 4px 0 4px 18px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-body);
    max-width: 760px;
}

/* --- Полоса «Сравниваете подрядчиков?» ---------------------------- */
.band {
    background: var(--action-primary);
    padding: 72px 0;
}

.band__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.band__text {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.band__title {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: var(--ls-h2);
    color: #fff;
    font-weight: 700;
}

.band__lead {
    font-size: 19px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
    max-width: 640px;
    text-wrap: pretty;
}

.band__card {
    flex: 0 1 340px;
    min-width: 280px;
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.band__card-title {
    font-size: 19px;
    font-weight: 600;
}

.band__card-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
}

.band__card .input {
    height: 52px;
}

.band__card .textarea {
    min-height: 88px;
}

/* --- Заявка ------------------------------------------------------- */
.order__text {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.order__text .lead {
    max-width: 560px;
    text-wrap: pretty;
}

.order__form {
    flex: 1 1 380px;
    min-width: 300px;
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
}

.order__form-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Три мессенджера в одну строку: колонки равные, поэтому кнопки не
   разъезжаются в узкой карточке и в модальном окне. */
.order__messengers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.order__messengers .btn {
    min-width: 0;
    padding: 0 6px;
    font-size: 14px;
    gap: 6px;
    overflow: hidden;
}

.order__messengers .ic {
    width: 18px;
    height: 18px;
}

/* --- О центре ----------------------------------------------------- */
.about__top {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

.about__top .h2 {
    flex: 0 1 380px;
}

.about__text {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-body);
}

.stat-card {
    background: var(--surface-card);
    border-radius: var(--radius-card);
    padding: 24px;
}

.stat-card__value {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.stat-card__label {
    font-size: 15px;
    color: var(--text-body);
    padding-top: 6px;
}

/* --- Отзывы ------------------------------------------------------- */
.review {
    background: var(--surface-page);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-700);
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--surface-tint-strong);
    color: var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 auto;
}

.review__name {
    font-size: 16px;
    font-weight: 600;
}

.review__company {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Контакты / подвал -------------------------------------------- */
.contacts {
    background: var(--surface-ink);
    padding: 80px 0 40px;
}

.contacts__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}

.contacts__col {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contacts__logo {
    height: 44px;
    width: auto;
    align-self: flex-start;
    display: block;
}

.contacts__title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: var(--ls-h2);
    color: #fff;
    font-weight: 700;
}

.contacts__phone {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.contacts__phone:hover {
    color: #fff;
}

.contacts__hours {
    font-size: 16px;
    color: rgba(255, 255, 255, .7);
}

/* Три мессенджера — всегда в одну линию: равные колонки, поэтому
   кнопки не переносятся ни в узкой колонке подвала, ни на телефоне. */
.contacts__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.contacts__links a {
    height: 48px;
    min-width: 0;
    padding: 0 8px;
    border-radius: var(--radius-button);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    overflow: hidden;
}

.contacts__links .ic {
    width: 18px;
    height: 18px;
}

.contacts__links .is-wa {
    background: var(--brand-wa);
}

.contacts__links .is-wa:hover {
    background: var(--brand-wa-hover);
}

.contacts__links .is-tg {
    background: var(--brand-tg);
}

.contacts__links .is-tg:hover {
    background: var(--brand-tg-hover);
}

.contacts__links .is-max {
    background: var(--brand-max);
}

.contacts__links .is-max:hover {
    background: var(--brand-max-hover);
}

.contacts__col--info {
    gap: 14px;
    font-size: 17px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.5;
}

.contacts__label {
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.contacts__col--info a {
    color: #fff;
}

.contacts__col--cta {
    flex: 1 1 280px;
    gap: 12px;
}

.contacts__cta-title {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
}

.contacts__cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
}

.contacts__bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
}

.contacts__bottom a {
    color: rgba(255, 255, 255, .5);
}

.contacts__bottom a:hover {
    color: #fff;
}

/* --- Плавающий блок связи (сбоку) --------------------------------- */
.fab {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* На ноутбучных ширинах контент доходит до правого края и уходит под
   плавающие кнопки — оставляем под них полосу справа. */
@media (min-width: 1080px) and (max-width: 1367px) {

    .container,
    .hero__grid,
    .split,
    .band__inner {
        padding-right: 80px;
    }
}

.fab__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Кнопка-переключатель нужна только на узких экранах */
.fab__toggle {
    display: none;
}

.fab__item {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 32, 64, .18);
    transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}

.fab__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 32, 64, .24);
}

.fab__item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring), 0 6px 18px rgba(15, 32, 64, .18);
}

.fab__item .ic {
    width: 22px;
    height: 22px;
}

.fab__item--phone {
    background: var(--action-primary);
}

.fab__item--phone:hover {
    background: var(--action-primary-hover);
}

.fab__item--wa {
    background: var(--brand-wa);
}

.fab__item--wa:hover {
    background: var(--brand-wa-hover);
}

.fab__item--tg {
    background: var(--brand-tg);
}

.fab__item--tg:hover {
    background: var(--brand-tg-hover);
}

/* «Наверх»: светлая кнопка, появляется только после прокрутки */
.fab__item--up {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), visibility var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}

.fab__item--up.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fab__item--up:hover {
    background: var(--surface-tint-strong);
}

.fab__item--max {
    background: var(--brand-max);
}

.fab__item--max:hover {
    background: var(--brand-max-hover);
}

/* Подпись при наведении — только там, где есть курсор */
.fab__label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--surface-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}

@media (hover: hover) {

    .fab__item:hover .fab__label,
    .fab__item:focus-visible .fab__label {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* --- Модальное окно ----------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(15, 27, 51, .55);
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-overlay.is-open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-overlay);
}

.modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.modal__title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.modal__close {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-muted);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.modal__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-body);
}

/* --- Простые страницы (спасибо, 404, политика) -------------------- */
.page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 72px 0;
    background: var(--surface-page);
}

.page__card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface-card);
    border-radius: var(--radius-2xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.page__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.page__title {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: var(--ls-h2);
    font-weight: 700;
}

.page__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.doc {
    background: var(--surface-card);
    padding: 56px 0;
}

.doc__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-strong);
}

.doc__inner h1 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: var(--ls-h2);
    margin-bottom: 24px;
}

.doc__inner h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}

.doc__inner h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-body);
    margin: 0 0 28px;
}

.doc__inner h4 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 32px 0 12px;
}

.doc__inner h5 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 10px;
}

.doc__inner p,
.doc__inner li {
    margin: 0 0 12px;
}

.doc__inner ul,
.doc__inner ol {
    padding-left: 22px;
}

/* --- Адаптив ------------------------------------------------------ */
@media (max-width: 1079px) {

    .header__bar {
        display: none;
    }

    .header__bar--mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Плавающий блок связи: на телефоне уводим к нижнему краю, чтобы он
       не перекрывал контент и попадал под большой палец. */
    .fab {
        right: 12px;
        top: auto;
        bottom: 16px;
        transform: none;
        gap: 8px;
    }

    .fab__item {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .fab__item .ic {
        width: 26px;
        height: 26px;
    }

    /* Три способа связи спрятаны за одной кнопкой звонка: раскрываются
       над ней по нажатию. Абсолютное позиционирование — чтобы в свёрнутом
       виде они не занимали место и кнопка «Наверх» не уезжала. */
    .fab__items {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(.94);
        transform-origin: bottom right;
        pointer-events: none;
        transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), visibility var(--dur-base) var(--ease-standard);
    }

    .fab.is-open .fab__items {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .fab__toggle {
        display: flex;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        border: none;
        padding: 0;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: var(--action-primary);
        box-shadow: 0 6px 18px rgba(15, 32, 64, .18);
        transition: background-color var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
    }

    .fab__toggle .ic {
        width: 24px;
        height: 24px;
    }

    .fab__toggle:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px var(--focus-ring), 0 6px 18px rgba(15, 32, 64, .18);
    }

    /* Импульс вокруг кнопки звонка, пока блок свёрнут — привлекает внимание */
    .fab__toggle::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        animation: ctaPulse 2s var(--ease-standard) infinite;
        pointer-events: none;
    }

    .fab__toggle {
        position: relative;
    }

    .fab.is-open .fab__toggle::before {
        animation: none;
    }

    .fab.is-open .fab__toggle {
        background: var(--surface-ink);
    }

    /* В раскрытом виде трубка на переключателе меняется на крестик */
    .fab.is-open .fab__toggle .ic {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
    }

    .hero {
        padding: 16px 0 32px;
    }

    .hero__grid {
        padding: 0 16px;
        gap: 18px;
    }

    .hero__badge {
        display: none;
    }

    .hero__chips {
        display: flex;
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__text .check-list {
        display: none;
    }

    .hero__stats {
        gap: 10px;
    }

    .hero__stat-value {
        font-size: 22px;
    }

    /* Карточки с фиксированной шириной (flex-grow: 0) на узких экранах
       прижимались к левому краю — растягиваем на всю ширину и центрируем. */
    .hero__card,
    .band__card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__card {
        order: 2;
    }

    .band__inner,
    .split {
        justify-content: center;
    }

}

@media (max-width: 767px) {
    .section {
        padding: 56px 0;
    }

    .container,
    .split,
    .quiz__inner {
        padding: 0 16px;
    }

    .h2,
    .contacts__title {
        font-size: 30px;
    }

    .band__title {
        font-size: 28px;
    }

    .band__lead {
        font-size: 17px;
    }

    .band {
        padding: 56px 0;
    }

    .split {
        gap: 28px;
    }

    .quiz__card,
    .modal,
    .page__card {
        padding: 20px;
    }

    .quiz__question {
        font-size: 21px;
    }

    .quiz__result-title,
    .modal__title {
        font-size: 22px;
    }

    .hero__card,
    .order__form,
    .band__card,
    .docs__list {
        padding: 20px;
    }

    .docs__list {
        padding: 6px 20px;
    }

    .stat-card__value {
        font-size: 36px;
    }

    .contacts__phone {
        font-size: 24px;
    }

    .page__title {
        font-size: 26px;
    }

    .doc__inner h1 {
        font-size: 26px;
    }
}
