/* =====================================================================
   Лендинг «Стеклянный крокодил» — продажа и замена автостёкол в Москве
   Автор: проект krokodil1.local
   Стиль: чёрно-зелёная «стеклянная» тема (glassmorphism), акцент — #54cd03
   ===================================================================== */

/* Палитра: почти чёрный фон с зелёным подтоном + акцент #54cd03.
   Имена переменных семантические: --acc (акцент), --acc-2 (глубокий зелёный),
   --acc-deep (тёмный — градиенты), --ink (текст на акцентной заливке). */
:root {
    --bg:            #040907;
    --bg-2:          #07130d;
    --panel:         rgba(190, 255, 150, 0.045);
    --panel-2:       rgba(190, 255, 150, 0.075);
    --stroke:        rgba(190, 255, 150, 0.11);
    --stroke-2:      rgba(190, 255, 150, 0.19);
    --text:          #e9f7ee;
    --muted:         #a4c2b0;
    --muted-2:       #7d9c88;
    --acc:           #54cd03;
    --acc-2:         #43a802;
    --acc-deep:      #2f7d02;
    --ink:           #04140b;
    --grad:          linear-gradient(120deg, #a8ef5c 0%, #54cd03 45%, #43a802 100%);
    --grad-soft:     linear-gradient(120deg, rgba(84, 205, 3,.18), rgba(67, 168, 2,.16));
    --radius:        22px;
    --radius-sm:     14px;
    --shadow:        0 24px 60px -24px rgba(0, 0, 0, .8);
    --shadow-glow:   0 0 0 1px rgba(84, 205, 3,.16), 0 30px 70px -30px rgba(67, 168, 2,.55);
    --maxw:          1200px;
    --header-h:      74px;
    --font:          "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                     Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.62;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1100px 620px at 82% -8%,  rgba(67, 168, 2,.30), transparent 60%),
        radial-gradient(900px 560px at 8% 4%,     rgba(84, 205, 3,.16), transparent 60%),
        radial-gradient(1200px 800px at 50% 120%, rgba(47, 125, 2,.22), transparent 65%),
        var(--bg);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image:
        linear-gradient(rgba(205, 255, 170,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205, 255, 170,.03) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { line-height: 1.14; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.55rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p  { margin: 0 0 1em; }

/* ---------- Мобильная база (основной трафик — телефоны, ~85%) ---------- */
/* Нативные контролы (селекты, чекбоксы, полосы прокрутки) в тёмной схеме:
   иначе iOS и Android рисуют белые поля и списки поверх тёмного дизайна */
:root { color-scheme: dark; }

/* Убираем задержку 300 мс на второй тап и серую вспышку при нажатии —
   вместо неё зелёный подсвет тапа */
a, button, label, input, select, textarea, .btn, .mess__link, .action-bar__btn { touch-action: manipulation; }
body { -webkit-tap-highlight-color: rgba(84, 205, 3, .16); }

/* Переходы по якорям: учитываем высоту «липкой» шапки, иначе заголовок
   секции уезжает под неё (на телефоне это особенно заметно при переходе
   по пунктам мобильного меню) */
section[id], footer[id], div[id], a[id], form[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section  { padding: 92px 0; position: relative; }
.section--tight { padding: 62px 0; }

.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--acc);
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(84, 205, 3,.28);
    background: rgba(84, 205, 3,.07);
    margin-bottom: 20px;
}
.eyebrow::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 12px 2px rgba(84, 205, 3,.9);
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .98rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    color: var(--ink);
    background: var(--grad);
    box-shadow: 0 16px 40px -14px rgba(67, 168, 2,.75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 52px -16px rgba(67, 168, 2,.9); }

.btn--ghost {
    color: var(--text);
    background: var(--panel);
    border-color: var(--stroke-2);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--panel-2); border-color: var(--acc); color: #fff; }

.btn--sm { padding: 11px 18px; font-size: .9rem; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(4,9,7,.72);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--stroke); background: rgba(4,9,7,.9); }

.header__inner { width: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(67, 168, 2, .5)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.6; }
.brand__name { font-weight: 800; font-size: .8rem; letter-spacing: -.01em; }
.brand__tag  { font-size: .72rem; color: var(--muted-2); letter-spacing: .05em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 9px 6px; border-radius: 10px; font-size: .93rem; font-weight: 600; color: var(--muted); }
.nav a:hover { color: #fff; background: var(--panel); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 800; font-size: .98rem; white-space: nowrap; }
.header__phone:hover { color: var(--acc); }

.burger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--stroke-2);
    position: relative;
}
.burger span, .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 20px; height: 2px; border-radius: 2px; background: #fff;
    transform: translate(-50%, -50%);
    transition: transform .25s ease, opacity .2s ease;
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.is-menu-open .burger span { background: transparent; }
.is-menu-open .burger span::before { transform: translate(-50%, -50%) rotate(45deg); top: 0; }
.is-menu-open .burger span::after  { transform: translate(-50%, -50%) rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 84px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 1.14rem; color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero__stats {
    display: flex; flex-wrap: wrap; gap: 14px 34px;
    padding-top: 26px; border-top: 1px solid var(--stroke);
}
.stat__num { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat__num span { color: var(--acc); }
.stat__cap { font-size: .82rem; color: var(--muted-2); }

/* Стеклянная карточка-конструктор */
.glass-card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--stroke-2);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 26px;
    overflow: hidden;
}
.glass-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    opacity: .7;
}
.glass-card--glow { box-shadow: var(--shadow-glow); }

.calc__title { font-size: 1.18rem; margin-bottom: 4px; }
.calc__sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--stroke-2);
    background: rgba(5,18,11,.65);
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--acc);
    box-shadow: 0 0 0 4px rgba(84, 205, 3,.14);
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239fb0c7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .8rem; color: var(--muted-2);
    margin: 6px 0 16px; cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--acc); width: 16px; height: 16px; }
.check a { color: var(--muted); text-decoration: underline; }
.form-note { font-size: .78rem; color: var(--muted-2); text-align: center; margin-top: 12px; }

/* ---------- Выбор способа связи (во всех формах) ----------
   Один блок на форму: звонок / MAX / Telegram / WhatsApp. Нативный radio
   скрыт, но остаётся доступным с клавиатуры; выбранный вариант подсвечивает
   соседний .way__face через input:checked (без :has — так работает и в
   старых браузерах). Цвета мессенджеров — те же, что у иконок .mess. */
.way { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.way__legend {
    padding: 0; margin-bottom: 9px;
    font-size: .82rem; font-weight: 600; color: var(--muted);
}
.way__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.way__opt { position: relative; display: block; cursor: pointer; }
.way__input {
    position: absolute; width: 1px; height: 1px;
    margin: 0; opacity: 0; pointer-events: none;
}
.way__face {
    display: flex; align-items: center; gap: 9px;
    min-height: 48px; padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke-2);
    background: rgba(5, 18, 11, .55);
    color: var(--muted);
    font-size: .82rem; font-weight: 700; line-height: 1.2;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.way__ico { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--acc); }
.way__ico svg { width: 18px; height: 18px; display: block; }
.way__opt--max .way__ico      { color: #7605a9; }
.way__opt--telegram .way__ico { color: #1370e8; }
.way__opt--whatsapp .way__ico { color: #03cb12; }
.way__opt:hover .way__face { border-color: rgba(84, 205, 3, .45); color: var(--text); }
.way__input:checked + .way__face {
    border-color: var(--acc);
    background: rgba(84, 205, 3, .14);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(84, 205, 3, .12);
}
.way__input:focus-visible + .way__face { outline: 2px solid var(--acc); outline-offset: 2px; }

.hero__float {
    position: absolute; right: -40px; top: 30px;
    width: 320px; height: 320px;
    opacity: .1; pointer-events: none; z-index: 0;
}

/* ---------- Квиз подбора стекла (вместо формы записи) ----------
   5 коротких шагов с крупными тап-зонами: тип стекла → марка → модель и год →
   центр или выезд → контакты. Шаги переключает script.js по data-атрибутам,
   поэтому разметка не зависит от текстов и дублируется на странице
   (hero и #cta — у каждого экземпляра свой префикс id). */
.quiz { position: relative; }
.quiz__top {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.quiz__count {
    font-size: .74rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--acc);
}
.quiz__cap {
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted-2);
}
/* Подпись-ссылка в шапке квиза («Подбор по VIN» → форма #vin): акцентный
   цвет и тонкое подчёркивание, чтобы её было видно как ссылку, но она не
   спорила с кнопкой отправки. Тап-зона расширена отступами — текст мелкий. */
.quiz__cap--link {
    color: var(--acc);
    text-decoration: underline;
    text-decoration-color: rgba(84, 205, 3, .5);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    padding: 4px 0;
    transition: text-decoration-color .2s ease;
}
.quiz__cap--link:hover { text-decoration-color: currentColor; }
.quiz__cap--link:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.quiz__bar {
    height: 5px; border-radius: 999px; margin-bottom: 18px;
    background: rgba(255, 255, 255, .08); overflow: hidden;
}
.quiz__bar span {
    display: block; height: 100%; width: 20%; border-radius: inherit;
    background: var(--grad); box-shadow: 0 0 14px rgba(84, 205, 3, .5);
    transition: width .35s cubic-bezier(.2, .9, .3, 1);
}

/* Шаг виден только активный: без JS остаётся первый, а рядом есть <noscript>
   с телефоном — кнопка не превращается в «мёртвую» */
.quiz__panel { display: none; }
.quiz__panel.is-active { display: block; }

.quiz__q { font-size: 1.08rem; font-weight: 800; line-height: 1.28; margin: 0 0 4px; }
.quiz__hint { margin: 0 0 14px; font-size: .84rem; color: var(--muted-2); line-height: 1.45; }

.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__opt {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 58px; padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--stroke-2);
    background: rgba(255, 255, 255, .035);
    color: var(--text);
    font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2;
    text-align: left;
    transition: border-color .2s ease, background .2s ease, transform .12s ease;
}
/* Индикатор выбора: пустой кружок → залитый с «проколом» под цвет карточки */
.quiz__opt::after {
    content: ""; flex: none;
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--stroke-2);
    transition: border-color .2s ease, background .2s ease;
}
.quiz__opt:active { transform: scale(.985); }
.quiz__opt.is-selected { border-color: var(--acc); background: rgba(84, 205, 3, .14); }
.quiz__opt.is-selected::after {
    border-color: var(--acc); background: var(--acc);
    box-shadow: inset 0 0 0 4px #0a1a11;
}

.quiz__select, .quiz__input {
    width: 100%; min-height: 52px; padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid var(--stroke-2);
    background: rgba(5, 18, 11, .75);
    color: var(--text);
    font-family: inherit; font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.quiz__input::placeholder { color: var(--muted-2); }
.quiz__select:focus, .quiz__input:focus {
    outline: none; border-color: var(--acc);
    box-shadow: 0 0 0 4px rgba(84, 205, 3, .14);
}
.quiz__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d9c88' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
}


/* ---------- Сводка, экран «спасибо» и текст SEO ---------- */
.quiz__nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.quiz__back {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    flex: none; min-height: 48px; padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke-2);
    background: transparent;
    color: var(--muted);
    font-family: inherit; font-size: .9rem; font-weight: 700;
    transition: color .2s ease, border-color .2s ease;
}
.quiz__back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.quiz__back:hover { color: var(--text); border-color: var(--acc); }
.quiz__next { flex: 1; }

.quiz__summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.quiz__chip {
    font-size: .76rem; font-weight: 700; color: var(--acc);
    padding: 5px 10px; border-radius: 999px;
    border: 1px solid rgba(84, 205, 3, .32);
    background: rgba(84, 205, 3, .09);
}
.quiz__result { text-align: center; padding: 6px 0 2px; }
.quiz__result-ico {
    width: 58px; height: 58px; border-radius: 50%;
    margin: 0 auto 14px; display: grid; place-items: center;
    background: rgba(84, 205, 3, .14);
    border: 1px solid rgba(84, 205, 3, .45);
    color: var(--acc);
}
.quiz__result-ico svg { width: 28px; height: 28px; }
.quiz__result h3 { font-size: 1.15rem; margin-bottom: 6px; }
.quiz__result p { color: var(--muted); font-size: .92rem; }
.quiz__result .quiz__summary { justify-content: center; margin-top: 12px; }
/* Подпись поля внутри квиза (отдельно от .field label, чтобы поле квиза
   не перекрывалось правилами обычных форм) */
.quiz__label {
    display: block; margin-bottom: 7px;
    font-size: .82rem; font-weight: 600; color: var(--muted);
}
.quiz__result-btn { margin-top: 16px; }

.quiz__reset {
    margin-top: 10px; padding: 8px;
    background: none; border: none;
    color: var(--muted-2); font-family: inherit; font-size: .84rem;
    text-decoration: underline;
}
.quiz__reset:hover { color: var(--acc); }

/* Подсказка для браузеров без JS внутри квиза */
.quiz__noscript {
    margin: 0 0 12px; padding: 10px 12px;
    border-radius: 12px; border: 1px solid rgba(84, 205, 3, .35);
    background: rgba(84, 205, 3, .1);
    color: var(--text); font-size: .86rem;
}

/* Сообщение об успешной отправке (обычный POST без AJAX) */
.form-note--ok { color: var(--acc); text-align: left; margin-bottom: 14px; font-size: .88rem; }

/* Абзацы SEO-текста: длинный текст читаемее узкой колонкой */
.seo-text {
    max-width: 920px; margin: 0 auto;
    color: var(--muted-2); font-size: .92rem; line-height: 1.78;
}
.seo-text strong { color: var(--muted); font-weight: 700; }
.seo-text a { color: var(--acc); text-decoration: underline; text-decoration-color: rgba(84, 205, 3, .4); }

/* Ссылка «на карте» в карточке центра */
.center__map {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    font-size: .86rem; font-weight: 700; color: var(--acc);
}
.center__map svg { width: 15px; height: 15px; }
.center__map:hover { color: #fff; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* Сетка 2×2 с выравниванием по центру и увеличенным зазором (блок «Замена
   лобового стекла»); на телефонах зазор уменьшается — см. блок ≤860px */
.grid--va-center { align-items: center; gap: 40px; }

.card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(84, 205, 3,.4);
    box-shadow: 0 30px 60px -34px rgba(67, 168, 2,.7);
}
.card h3 { margin-bottom: 10px; font-size: 1.16rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

.card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    background: var(--grad-soft);
    border: 1px solid var(--stroke-2);
    color: var(--acc);
}
.card__icon svg { width: 26px; height: 26px; }

/* ---------- Услуги ---------- */
.service {
    display: flex; flex-direction: column;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
}
.service:hover { transform: translateY(-5px); border-color: rgba(84, 205, 3,.42); box-shadow: 0 30px 60px -34px rgba(67, 168, 2,.7); }
.service__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service__icon {
    flex: none;
    width: 48px; height: 48px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--grad-soft); border: 1px solid var(--stroke-2); color: var(--acc);
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { margin: 0; font-size: 1.1rem; }
.service p { color: var(--muted); font-size: .94rem; }
.service__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service__price { font-weight: 800; color: #fff; font-size: .95rem; }
.service__price small { display: block; font-weight: 500; color: var(--muted-2); font-size: .74rem; }
.link-more { display: inline-flex; align-items: center; gap: 7px; color: var(--acc); font-weight: 700; font-size: .9rem; }
.link-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service:hover .link-more svg, .link-more:hover svg { transform: translateX(4px); }

/* ---------- Каталог марок ---------- */
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
/* Районы в блоке «Замена стекла рядом»: подписи длиннее названий марок,
   поэтому плитки шире (на телефонах — две колонки) */
.brands--wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.brand-chip {
    display: grid; place-items: center;
    padding: 16px 10px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--panel);
    font-weight: 700; font-size: .82rem; letter-spacing: .06em;
    color: var(--muted);
    text-align: center;
    transition: all .2s ease;
}
.brand-chip:hover { color: #fff; border-color: rgba(84, 205, 3,.45); background: var(--panel-2); transform: translateY(-3px); }

/* ---------- Таблица цен ---------- */
.table-wrap {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
}
table.price { width: 100%; border-collapse: collapse; }
table.price th, table.price td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--stroke); }
table.price thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; background: rgba(255,255,255,.03); }
table.price tbody tr:last-child td { border-bottom: none; }
table.price tbody tr:hover { background: rgba(84, 205, 3,.05); }
table.price td:last-child, table.price th:last-child { text-align: right; white-space: nowrap; }
table.price .price-val { font-weight: 800; color: var(--acc); }

/* ---------- Шаги ---------- */
.steps { counter-reset: step; }
.step {
    position: relative;
    padding: 26px 24px 24px 78px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
}
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; left: 22px; top: 24px;
    font-size: 1.3rem; font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Отзывы ---------- */
.review { display: flex; flex-direction: column; gap: 16px; }
.review__stars { color: #ffce3a; letter-spacing: 3px; font-size: 1rem; }
.review__text { color: var(--muted); font-size: .96rem; margin: 0; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 800; color: var(--ink);
    background: var(--grad); flex: none;
}
.review__name { font-weight: 700; font-size: .94rem; }
.review__car { font-size: .8rem; color: var(--muted-2); }

/* ---------- Центры ---------- */
.center {
    padding: 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--panel);
    transition: border-color .2s ease, transform .2s ease;
}
.center:hover { border-color: rgba(84, 205, 3,.4); transform: translateY(-3px); }
.center__meta { display: flex; gap: 8px; align-items: center; color: var(--acc); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.center__meta svg { width: 15px; height: 15px; }
.center h3 { font-size: 1.02rem; margin-bottom: 8px; }
.center p { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.center a.center__phone { font-weight: 700; color: #fff; font-size: .95rem; }
.center a.center__phone:hover { color: var(--acc); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq__item {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    overflow: hidden;
    transition: border-color .2s ease;
}
.faq__item.is-open { border-color: rgba(84, 205, 3,.42); }
.faq__q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 20px 22px;
    background: none; border: none;
    color: var(--text);
    font-size: 1.02rem; font-weight: 700; text-align: left;
}
.faq__q::after {
    content: "+";
    flex: none;
    width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--panel-2); border: 1px solid var(--stroke-2);
    color: var(--acc); font-size: 1.3rem; font-weight: 400;
    transition: transform .25s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 22px 22px; color: var(--muted); font-size: .96rem; }
.faq__a-inner p:last-child { margin-bottom: 0; }

/* ---------- CTA / заявка ---------- */
.cta {
    position: relative;
    border-radius: 30px;
    padding: 54px;
    overflow: hidden;
    border: 1px solid var(--stroke-2);
    background:
        radial-gradient(700px 320px at 12% 0%, rgba(84, 205, 3,.18), transparent 60%),
        radial-gradient(700px 380px at 95% 100%, rgba(67, 168, 2,.28), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.cta__grid { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.cta h2 { margin-bottom: 14px; }
/* Вариант блока с меньшими внутренними отступами (секция «Выезд»);
   на телефонах отступы ещё меньше — см. блок ≤860px */
.cta--compact { padding: 44px; }
.cta p { color: var(--muted); }
.cta__points { display: grid; gap: 12px; margin: 22px 0 0; }
.cta__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.cta__points svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--acc); }

/* ---------- Уведомление формы ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 150%);
    z-index: 90;
    display: flex; align-items: center; gap: 12px;
    padding: 15px 22px;
    border-radius: 14px;
    border: 1px solid rgba(84, 205, 3,.5);
    background: rgba(7,22,13,.96);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
    color: #fff; font-weight: 600; font-size: .95rem;
    transition: transform .45s cubic-bezier(.2,.9,.25,1.2);
    max-width: min(92vw, 520px);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { flex: none; width: 22px; height: 22px; color: var(--acc); }
.toast--error { border-color: #ff6b6b; }
.toast--error svg { color: #ff6b6b; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .001ms !important; }
}

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--stroke); margin-top: 40px; padding: 66px 0 34px; background: rgba(3,8,5,.65); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer__about p { color: var(--muted); font-size: .92rem; max-width: 320px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 16px; font-weight: 700; }
.footer__links { display: grid; gap: 9px; }
.footer__links a { color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--acc); }
.footer__contact { display: grid; gap: 10px; }
.footer__contact a, .footer__contact span { color: #b4b8b4; font-size: .94rem; }
.footer__contact a:hover { color: var(--acc); }
.footer__bottom {
    margin-top: 44px; padding-top: 24px;
    border-top: 1px solid var(--stroke);
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
    color: var(--muted-2); font-size: .84rem;
}
.footer__seo { margin-top: 30px; color: var(--muted-2); font-size: .78rem; line-height: 1.8; }

/* Кнопка «наверх» */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 70;
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--grad); color: var(--ink); border: none;
    box-shadow: 0 16px 36px -12px rgba(67, 168, 2,.8);
    opacity: 0; pointer-events: none; transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Иконки мессенджеров (шапка, формы, подвал) ----------
   Фирменные логотипы WhatsApp, Telegram и MAX: светлая «плашка» + цветная
   иконка. Цвета те же, что в мессенджере сотрудников (messenger_all.js).
   Светлый фон нужен из-за fill-rule="evenodd": вырезы внутри логотипа
   (трубка WhatsApp, буква M у MAX) остаются светлыми.
   Цвет задаём самому SVG, а не ссылке: у ссылок в подвале (.footer__contact a)
   и в мобильном меню (.mobile-menu a) есть свои цвета, а собственное значение
   SVG сильнее любого наследования. */
.mess { display: flex; align-items: center; gap: 8px; }
.mess__link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: #f0fff6; border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mess__ico { width: 19px; height: 19px; display: block; }
.mess__link--whatsapp .mess__ico { color: #03cb12; }
.mess__link--telegram .mess__ico { color: #1370e8; }
.mess__link--max      .mess__ico { color: #7605a9; }
.mess__link:hover { transform: translateY(-2px); }
.mess__link--whatsapp:hover { box-shadow: 0 12px 26px -12px #03cb12; }
.mess__link--telegram:hover { box-shadow: 0 12px 26px -12px #1370e8; }
.mess__link--max:hover      { box-shadow: 0 12px 26px -12px #7605a9; }

/* Подпись «Или напишите нам в мессенджер» под кнопкой формы */
.mess-note {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px; margin-top: 16px;
}
.mess-note span { font-size: .78rem; color: var(--muted-2); }

.mess--header { gap: 6px; }
.mess--header .mess__link { width: 36px; height: 36px; border-radius: 11px; }
.mess--header .mess__ico { width: 18px; height: 18px; }
.mess--menu { justify-content: center; margin-top: 16px; }
.mess--footer { gap: 10px; margin-top: 4px; }

/* =====================================================================
   АДАПТИВНОСТЬ (приоритет — мобильные: ~85% трафика)
   Точки перелома:
     1080px — планшеты и малые ноутбуки: hero, CTA, подвал в одну-две колонки
      860px — телефоны и планшеты в портрете: мобильная шапка, панель действий,
              крупные тап-зоны, отказ от «тяжёлых» blur-эффектов
      620px — телефоны в портрете: одна колонка, таблица цен карточками
      480px — узкие телефоны (360–480px)
      380px — компактные телефоны (iPhone SE и подобные)
   Отдельно ниже — блок @media (hover: none) для тач-экранов.
   ===================================================================== */

/* ---------- Кнопка «Позвонить» в шапке (видна только на телефонах) ---------- */
.header__call { display: none; }
/* На узких десктопах кнопка шапки уходит в короткий вариант «Подобрать»:
   полный текст «Подобрать стекло» вместе с меню не помещается до 1280 px */
.header__btn-short { display: none; }

/* ---------- Панель быстрых действий у нижнего края (только телефоны) ----------
   Позвонить / WhatsApp / Telegram / MAX / Заявка — главные действия в одном
   тапе. На широких экранах панель не выводится: там эти действия есть в шапке. */
.action-bar { display: none; }
.action-bar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-height: 50px; padding: 6px 3px;
    border-radius: 12px;
    border: 1px solid var(--stroke-2);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: .66rem; font-weight: 700; line-height: 1; text-align: center;
    transition: transform .15s ease, background .2s ease;
}
.action-bar__btn svg { flex: none; width: 21px; height: 21px; }
.action-bar__btn:active { transform: scale(.95); }
/* Фирменные цвета мессенджеров — те же, что в блоке .mess */
.action-bar__btn--wa .mess__ico { color: #03cb12; }
.action-bar__btn--tg .mess__ico { color: #1370e8; }
.action-bar__btn--max .mess__ico { color: #7605a9; }
/* Звонок — главное действие, поэтому акцентная заливка */
.action-bar__btn--call { background: var(--grad); color: var(--ink); border-color: transparent; }
/* Подбор — акцентная рамка, чтобы не спорить с кнопкой звонка */
.action-bar__btn--order { color: var(--acc); border-color: rgba(84, 205, 3, .45); background: rgba(84, 205, 3, .1); }

/* Шапка на средних экранах: пункты меню компактнее, а кнопка показывает
   короткий текст «Подобрать» — полный «Подобрать стекло» вместе с семью
   пунктами меню не помещается в 1080–1280 px */
@media (max-width: 1280px) {
    .nav { gap: 2px; }
    .nav a { padding: 9px 6px; font-size: .9rem; }
    .header__btn-full { display: none; }
    .header__btn-short { display: inline; }
}

@media (max-width: 1080px) {
    .hero__grid { grid-template-columns: 1fr; gap: 34px; }
    .hero__float { display: none; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .cta__grid { grid-template-columns: 1fr; gap: 30px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≤860px: телефоны и планшеты в портрете (основной сценарий) ---------- */
@media (max-width: 860px) {
    /* Шапка ниже: экономит высоту экрана телефона (учитывается в
       scroll-margin-top и в отступах мобильного меню) */
    :root { --header-h: 62px; }
    .container { padding: 0 16px; }
    .nav, .header__phone { display: none; }
    .burger { display: block; }
    .header__inner { gap: 8px; }
    .header__actions { gap: 8px; }
    .header__actions .btn { display: none; }
    .header__call {
        display: inline-flex; align-items: center; justify-content: center;
        flex: none; width: 44px; height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(84, 205, 3, .35);
        background: rgba(84, 205, 3, .1);
        color: var(--acc);
    }
    .header__call:active { transform: scale(.95); }
    .header__call svg { width: 20px; height: 20px; }
    .brand { gap: 10px; }
    .brand__logo { width: 38px; height: 38px; }
    .brand__name { font-size: .8rem; }
    .brand__tag { display: none; }

    /* Секции и карточки: компактнее, но текст не мельчает */
    .section { padding: 52px 0; }
    .section--tight { padding: 38px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head p { font-size: 1rem; }
    .grid { gap: 14px; }
    .grid--2, .grid--3 { grid-template-columns: 1fr 1fr; }
    .grid--va-center { gap: 22px; }
    .card, .service { padding: 20px 18px; border-radius: 18px; }
    .center { padding: 18px 16px; }
    .step { padding: 20px 18px 18px 60px; border-radius: 18px; }
    .step::before { left: 17px; top: 20px; font-size: 1.15rem; }
    .glass-card { padding: 20px 16px; border-radius: 18px; }
    /* Квиз: крупные тап-зоны и 16px в полях — иначе iOS Safari зумит
       страницу при фокусе (как и у обычных форм выше) */
    .quiz__q { font-size: 1.02rem; }
    .quiz__opt { min-height: 56px; font-size: .93rem; padding: 11px 12px; }
    .quiz__select, .quiz__input { font-size: 16px; min-height: 50px; }
    .quiz__back { min-height: 50px; }
    .center__map { min-height: 40px; }
    .cta, .cta--compact { padding: 26px 18px; border-radius: 22px; }
    .brands { gap: 9px; }
    .brands--wide { grid-template-columns: 1fr 1fr; }
    .brand-chip { padding: 13px 6px; font-size: .76rem; }

    /* Поля ввода: 16px обязательны, иначе iOS Safari зумит страницу при
       фокусе, а высота ≥ 50px даёт комфортную тап-зону */
    .field input, .field select, .field textarea {
        font-size: 16px; min-height: 50px; padding: 14px 15px;
    }
    .field select { padding-right: 40px; }
    .field textarea { min-height: 92px; }
    .field label { font-size: .84rem; }
    .check { gap: 12px; min-height: 44px; font-size: .84rem; }
    .check input { flex: none; width: 22px; height: 22px; margin-top: 2px; }
    .btn { min-height: 52px; }
    .btn--sm { min-height: 44px; }

    /* Иконки мессенджеров крупнее — под палец */
    .mess { gap: 10px; }
    .mess__link { width: 46px; height: 46px; border-radius: 14px; }
    .mess__ico { width: 22px; height: 22px; }
    .mess-note { flex-direction: column; gap: 10px; }
    .mess-note span { font-size: .8rem; }

    /* FAQ и подвал: вместо мелких ссылок — полноценные тап-зоны */
    .faq__q { padding: 16px; gap: 12px; font-size: .99rem; }
    .faq__a-inner { padding: 0 16px 18px; font-size: .94rem; }
    .footer { margin-top: 26px; padding: 44px 0 24px; }
    .footer__grid { gap: 24px; }
    .footer__links { gap: 0; }
    .footer__links a { display: flex; align-items: center; min-height: 42px; font-size: .95rem; }
    .footer__contact { gap: 4px; }
    .footer__contact a, .footer__contact span { padding: 4px 0; }
    .footer__about p { max-width: none; }
    .footer__bottom { margin-top: 26px; font-size: .8rem; }
    .footer__seo { font-size: .72rem; line-height: 1.7; }

    /* Мобильное меню: на всю видимую высоту (dvh, а не vh — иначе в iOS
       Safari низ меню уходит под панель браузера), свой скролл и без
       «проскока» прокрутки на фон */
    .mobile-menu {
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-menu a { padding: 15px 4px; font-size: 1rem; }
    .mobile-menu .btn { margin-top: 14px; }
    /* Меню открыто — страница под ним не прокручивается */
    body.is-menu-open { overflow: hidden; }

    /* Нижняя панель действий. Место под неё резервируем в отступе body,
       иначе она закрывала бы подвал. env() — «домашняя» полоса iPhone. */
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .action-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(4, 9, 7, .95);
        border-top: 1px solid var(--stroke);
        transition: transform .3s ease;
    }
    /* Меню открыто — панель уезжает, чтобы не перекрывать список ссылок */
    body.is-menu-open .action-bar { transform: translateY(140%); }

    /* «Наверх» и уведомление поднимаем над панелью действий */
    .to-top {
        right: 12px; bottom: calc(80px + env(safe-area-inset-bottom));
        width: 46px; height: 46px; border-radius: 14px;
    }
    .toast {
        left: 10px; right: 10px; max-width: none;
        bottom: calc(80px + env(safe-area-inset-bottom));
        padding: 14px 16px; font-size: .92rem;
        transform: translateY(190%);
    }
    .toast.is-visible { transform: none; }

    /* Производительность: blur-фильтры заметно роняют плавность прокрутки на
       телефонах — заменяем плотными фонами (визуально почти без разницы) */
    .header { backdrop-filter: none; background: rgba(4, 9, 7, .96); }
    .mobile-menu { backdrop-filter: none; }
    .glass-card, .btn--ghost {
        backdrop-filter: none;
        background: linear-gradient(180deg, rgba(10, 30, 18, .95), rgba(4, 13, 8, .94));
    }
}

/* Мобильное меню */
.mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
    background: rgba(4,9,7,.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--stroke);
    padding: 20px 22px 28px;
    transform: translateY(-120%);
    transition: transform .35s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.is-menu-open .mobile-menu { transform: none; }
.mobile-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--stroke); color: var(--text); font-weight: 600; }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 18px; }
/* Иконки-ссылки мессенджеров в мобильном меню: у ссылок меню свои
   блочные стили (.mobile-menu a), поэтому плашки возвращаем к виду иконок. */
.mobile-menu .mess__link { display: inline-flex; padding: 0; border-bottom: none; }

/* ---------- ≤620px: телефоны в портрете — основная масса трафика ---------- */
@media (max-width: 620px) {
    body { font-size: 16px; }
    h1 { font-size: clamp(1.7rem, 7.4vw, 2.05rem); }
    h2 { font-size: clamp(1.42rem, 5.8vw, 1.75rem); }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .field--row { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
    .section--tight { padding: 32px 0; }
    .eyebrow { padding: 7px 12px; font-size: .7rem; letter-spacing: .12em; }

    /* Первый экран: кнопки во всю ширину, статистика в две колонки */
    .hero { padding: 30px 0 40px; }
    .hero h1 { margin-bottom: 14px; }
    .hero__lead { font-size: 1rem; margin-bottom: 20px; }
    .hero__cta { gap: 10px; margin-bottom: 22px; }
    .hero__cta .btn { width: 100%; }
    .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 18px; }
    .stat__num { font-size: 1.35rem; }
    .stat__cap { font-size: .76rem; }

    /* Таблица цен: строки превращаем в карточки, иначе три колонки не
       помещаются и появляется горизонтальная прокрутка */
    .table-wrap { border: none; border-radius: 0; background: none; overflow: visible; }
    table.price, table.price tbody, table.price tr, table.price td { display: block; width: 100%; }
    table.price thead { display: none; }
    table.price tr {
        margin-bottom: 10px; padding: 15px 16px;
        border: 1px solid var(--stroke); border-radius: 16px;
        background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    }
    table.price tbody tr:hover { background: none; }
    /* Правила для :last-child сильнее одиночного селектора, поэтому
       перечисляем оба — иначе цена осталась бы выровненной вправо */
    table.price td, table.price td:last-child {
        border: none; padding: 0; text-align: left; white-space: normal;
    }
    table.price td:nth-child(1) { margin-bottom: 6px; font-size: 1rem; font-weight: 800; }
    table.price td:nth-child(2) { color: var(--muted); font-size: .88rem; }
    table.price td:nth-child(2)::before { content: "Авто: "; color: var(--muted-2); }
    table.price td:nth-child(3) { margin-top: 10px; font-size: 1.06rem; font-weight: 800; }
    table.price td:nth-child(3)::before {
        content: "Работа";
        display: block; margin-bottom: 2px;
        font-size: .7rem; font-weight: 700; letter-spacing: .1em;
        text-transform: uppercase; color: var(--muted-2);
    }

    .cta { padding: 22px 16px; border-radius: 18px; }
    .cta__points li { font-size: .93rem; }
    .card, .service { padding: 18px 16px; }
    .review__text { font-size: .94rem; }
    .brands { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .mess__link { width: 44px; height: 44px; }
    /* Иконки из шапки убираем: они есть в нижней панели действий, в меню,
       под каждой формой и в подвале */
    .mess--header { display: none; }
}

/* ---------- ≤480px: узкие телефоны (360–480px) ---------- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section { padding: 40px 0; }
    .section--tight { padding: 30px 0; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__cta .btn { font-size: .95rem; }
    .mobile-menu a { font-size: .98rem; }
    .brand-chip { font-size: .72rem; }
    /* Квиз: на узких телефонах варианты в одну колонку — длинные подписи
       («Не знаю, помогите подобрать») в две колонки переносятся некрасиво */
    .quiz__opts { grid-template-columns: 1fr; }
    .quiz__opt { min-height: 52px; }
    .quiz__nav { flex-wrap: wrap; }
    .action-bar { gap: 4px; }
    .action-bar__btn { padding: 6px 2px; font-size: .62rem; }
    .action-bar__btn svg { width: 20px; height: 20px; }
}

/* ---------- ≤380px: компактные телефоны (iPhone SE и подобные) ---------- */
@media (max-width: 380px) {
    .brand__name { font-size: .8rem; }
    /* Жёсткий перенос в заголовке на таком экране даёт «рваные» строки —
       отпускаем текст в свободный перенос */
    .hero h1 br { display: none; }
    table.price tr { padding: 14px 13px; }
    /* Пять кнопок в панели: на 320–360 px подписи должны остаться в одну строку */
    .action-bar { padding-left: 6px; padding-right: 6px; }
    .action-bar__btn { font-size: .58rem; }
    .action-bar__btn span { letter-spacing: -.01em; }
    .toast { font-size: .88rem; }
}

/* =====================================================================
   Тач-экраны: :hover на них срабатывает после тапа, из-за чего карточки и
   кнопки «дёргаются» (сдвиг + тень). Оставляем только отклик на нажатие.
   ===================================================================== */
@media (hover: none) {
    .card:hover, .service:hover, .center:hover, .brand-chip:hover,
    .btn--primary:hover, .btn--ghost:hover, .mess__link:hover,
    .nav a:hover, .header__phone:hover { transform: none; box-shadow: none; }
    .card:hover, .service:hover, .center:hover { border-color: var(--stroke); }
    .brand-chip:hover { border-color: var(--stroke); background: var(--panel); color: var(--muted); }
    .nav a:hover { background: none; color: var(--muted); }
    /* Отклик на касание */
    .card:active, .service:active, .center:active { border-color: rgba(84, 205, 3, .4); }
    .card:active, .service:active {
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    }
    .btn--ghost:active { background: var(--panel-2); border-color: var(--acc); color: #fff; }
    .footer__links a:active, .footer__contact a:active { color: var(--acc); }
}

/* ---------- Антиспам: скрытое поле-ловушка ----------
   Поле заполняют только боты; реальные пользователи его не видят.
   Отправляется вместе с формой, сервер отбрасывает такие заявки. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =====================================================================
   Подбор по VIN: текстовый VIN, «или», зона загрузки фото СТС
   ===================================================================== */
.vin__grid { align-items: start; }
.hero__lead a { color: var(--acc); text-decoration: underline; text-decoration-color: rgba(84, 205, 3,.45); }

.field__hint {
    display: block;
    margin-top: 6px;
    font-size: .76rem;
    color: var(--muted-2);
}

/* VIN читается лучше моноширинным шрифтом с разрядкой */
.vin__input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.vin__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 16px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.vin__or::before,
.vin__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--stroke);
}

/* Зона выбора файла: кликабельна целиком, состояние «файл выбран» — зелёное */
.file-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px dashed var(--stroke-2);
    background: rgba(5, 18, 11, .55);
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.file-drop:hover,
.file-drop:focus-within {
    border-color: var(--acc);
    background: rgba(84, 205, 3, .07);
}
.file-drop:focus-within { box-shadow: 0 0 0 4px rgba(84, 205, 3, .14); }
.file-drop.is-filled {
    border-style: solid;
    border-color: rgba(84, 205, 3, .55);
    background: rgba(84, 205, 3, .08);
}

/* Нативный input скрыт, но остаётся доступным с клавиатуры и для label */
.file-drop .file-drop__input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
}

.file-drop .file-drop__label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
}
.file-drop__ico {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--acc);
    background: rgba(84, 205, 3, .12);
    border: 1px solid rgba(84, 205, 3, .3);
}
.file-drop__ico svg { width: 20px; height: 20px; }
.file-drop__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.file-drop__title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-drop.is-filled .file-drop__title { color: var(--acc); }
.file-drop__hint {
    font-size: .76rem;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-drop__clear {
    flex: none;
    padding: 4px;
    border: none;
    background: none;
    color: var(--muted-2);
    font-family: inherit;
    font-size: .8rem;
    text-decoration: underline;
    cursor: pointer;
}
.file-drop__clear:hover { color: #ff9a9a; }

/* На телефонах пара «имя + телефон» и подписи файла переносятся в одну колонку */
@media (max-width: 860px) {
    .field--row { grid-template-columns: 1fr; gap: 0; }
    .file-drop__title,
    .file-drop__hint { white-space: normal; }
    .file-drop__clear { align-self: flex-start; }
}

/* Узкие телефоны (≤380px): подписи способов связи длиннее, чем колонка,
   поэтому варианты становятся в один столбец — текст не переносится в три строки */
@media (max-width: 380px) {
    .way__grid { grid-template-columns: 1fr; }
    .way__face { min-height: 44px; }
}


