/* =====================================================================
   «Автолоб» — тема лендинга замены автостёкол
   ---------------------------------------------------------------------
   Палитра: глубокий графит + синий (доверие) + циан (стекло) +
   тёплый янтарный акцент для главных кнопок.
   Mobile-first: базовые правила — для смартфона, дальше min-width.
   Переменные ниже читает и пакет форм (tools/assets/css/forms.css),
   поэтому формы автоматически окрашиваются в цвета темы.
   ===================================================================== */

/* ---------- Переменные ---------- */
:root {
    /* Тёмная часть (первый экран, VIN, CTA, подвал) */
    --ink:        #05080f;
    --ink-2:      #0a1220;
    --ink-3:      #0e1a2e;
    --text:       #eaf1ff;
    --muted:      #9db0cd;
    --muted-2:    #7b8dab;

    /* Акценты */
    --acc:        #2f7cf6;
    --acc-2:      #16c2e8;
    --acc-deep:   #1b53c8;
    --warm:       #ffb02e;
    --warm-2:     #ff8a1f;
    --ok:         #35d391;

    /* Панели и рамки на тёмном */
    --panel:      rgba(120, 165, 255, .06);
    --panel-2:    rgba(120, 165, 255, .10);
    --stroke:     rgba(140, 180, 255, .14);
    --stroke-2:   rgba(140, 180, 255, .26);

    /* Светлая часть */
    --bg:         #f4f7fc;
    --bg-2:       #ffffff;
    --bg-3:       #eaf0fb;
    --dark-text:  #0d1728;
    --dark-muted: #566781;
    --dark-line:  #dfe7f5;

    /* Геометрия и шрифт */
    --radius:     22px;
    --radius-sm:  14px;
    --radius-lg:  30px;
    --font:       "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --shadow-sm:  0 6px 18px rgba(13, 30, 60, .08);
    --shadow:     0 18px 44px rgba(13, 30, 60, .12);
    --shadow-lg:  0 30px 70px rgba(5, 12, 28, .28);
    --container:  1200px;
}

/* ---------- Сброс и база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: var(--acc); text-decoration: none; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
    margin: 0 0 14px;
    line-height: 1.18;
    letter-spacing: -.02em;
    font-weight: 800;
}
h1 { font-size: clamp(30px, 6.4vw, 56px); }
h2 { font-size: clamp(24px, 4.4vw, 38px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
b, strong { font-weight: 800; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
    outline: 3px solid rgba(47, 124, 246, .55);
    outline-offset: 3px;
    border-radius: 8px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--acc);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ---------- Контейнер и секции ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

.section {
    position: relative;
    padding: 56px 0;
    background: var(--bg);
}
.section--light { background: var(--bg-2); }
.section--tight { padding: 40px 0; }
.section--dark {
    background: radial-gradient(120% 140% at 15% 0%, #101f3a 0%, var(--ink-2) 46%, var(--ink) 100%);
    color: var(--text);
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: var(--muted); }

.section-head {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}
.section-head p {
    margin: 0;
    color: var(--dark-muted);
    font-size: 1rem;
}
.section--dark .section-head p { color: var(--muted); }

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 124, 246, .10);
    color: var(--acc-deep);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.eyebrow--light {
    background: rgba(22, 194, 232, .12);
    color: #8fe6fb;
}

.grad {
    background: linear-gradient(100deg, #6fb1ff 0%, #16c2e8 55%, #8ce6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid {
    display: grid;
    gap: 14px;
}
.grid--3,
.grid--4 { grid-template-columns: 1fr; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    font-size: .98rem;
    line-height: 1.2;
    color: #fff;
    background: var(--acc);
    box-shadow: 0 10px 26px rgba(47, 124, 246, .28);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47, 124, 246, .34); }
.btn:active { transform: translateY(0); }
.btn svg { flex: 0 0 auto; }

.btn--primary {
    background: linear-gradient(135deg, #3d8bff 0%, #1f6ae0 55%, #1650b8 100%);
}
.btn--warm {
    background: linear-gradient(135deg, #ffc861 0%, var(--warm) 45%, var(--warm-2) 100%);
    color: #23160a;
    box-shadow: 0 14px 34px rgba(255, 152, 32, .34);
}
.btn--warm:hover { box-shadow: 0 20px 44px rgba(255, 152, 32, .42); }
.btn--ghost {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--stroke-2);
    color: #eaf1ff;
    box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); }
.btn--sm { padding: 10px 14px; font-size: .86rem; border-radius: 11px; }
.btn--lg { padding: 16px 24px; font-size: 1.02rem; border-radius: 16px; }
.btn--block { width: 100%; }

/* Текстовая ссылка «смотреть всё» (например, на каталог стёкол) */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--acc-deep);
    font-size: .9rem;
    font-weight: 800;
}
.link-more:hover { color: var(--acc); }
.link-more .ico { width: 18px; height: 18px; }

/* ---------- Иконки ---------- */
.ico { width: 22px; height: 22px; }
.ico--arrow { width: 18px; height: 18px; }

/* ---------- Шапка ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(7, 13, 25, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(140, 180, 255, .12);
    transition: background .2s ease, box-shadow .2s ease;
}
.header.is-scrolled {
    background: rgba(5, 9, 18, .94);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}
.header__in {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.header__progress {
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--acc), var(--acc-2));
    transition: width .1s linear;
}

/* Логотип */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex: 0 0 auto;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #3d8bff 0%, #1f6ae0 50%, #0f7fb8 100%);
    box-shadow: 0 8px 22px rgba(47, 124, 246, .36), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
}
.brand__mark .ico { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
    font-size: 1.24rem;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}
.brand__tag {
    margin-top: 3px;
    font-size: .38rem;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #8fa6c9;
}

/* Навигация: на мобильном — выпадающая панель */
.nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    background: #0b1424;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}
.nav.is-open { display: flex; }
.nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #d7e3f8;
    font-weight: 700;
    font-size: .95rem;
}
.nav a:hover,
.nav a:focus-visible { background: rgba(140, 180, 255, .10); color: #fff; }

.header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.header__phone {
    display: none;
    align-items: center;
    gap: 9px;
    color: #fff;
}
.header__phone-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(140, 180, 255, .12);
    color: #8fd2ff;
}
.header__phone-txt { display: flex; flex-direction: column; line-height: 1.15; }
.header__phone-txt b { font-size: .95rem; white-space: nowrap; }
.header__phone-txt i {
    font-style: normal;
    font-size: .7rem;
    color: #8fa6c9;
    white-space: nowrap;
}
.header__cta { display: none; }

/* Иконки мессенджеров */
.mess {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mess__link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, .06);
    color: #dbe8ff;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.mess__link:hover { transform: translateY(-2px); color: #fff; }
.mess__link svg { width: 20px; height: 20px; }
.mess__link--whatsapp:hover { background: rgba(37, 211, 102, .2); color: #6ef0a4; }
.mess__link--telegram:hover { background: rgba(41, 161, 226, .22); color: #7fd4ff; }
.mess__link--max:hover      { background: rgba(120, 90, 255, .22); color: #b6a6ff; }
.mess--header .mess__link { display: none; }
.mess--header .mess__link--whatsapp,
.mess--header .mess__link--telegram { display: grid; }

/* Бургер */
.burger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(140, 180, 255, .08);
    color: #e6efff;
}
.burger__ico { display: grid; place-items: center; }
.burger .ico { width: 24px; height: 24px; }

/* ---------- Первый экран ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 40px;
    background:
        radial-gradient(90% 120% at 85% 0%, #12305a 0%, rgba(10, 20, 38, 0) 55%),
        radial-gradient(70% 90% at 0% 10%, #0d2a4d 0%, rgba(5, 10, 20, 0) 60%),
        linear-gradient(180deg, #070d19 0%, #060a14 100%);
    color: var(--text);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
}
.hero__glow--1 {
    width: 320px; height: 320px;
    right: -110px; top: -80px;
    background: radial-gradient(circle, rgba(22, 194, 232, .55), transparent 70%);
}
.hero__glow--2 {
    width: 360px; height: 360px;
    left: -150px; bottom: -140px;
    background: radial-gradient(circle, rgba(47, 124, 246, .5), transparent 70%);
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140, 180, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 180, 255, .07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}
.hero__in {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 13px 7px 9px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(140, 180, 255, .07);
    color: #bfd4f2;
    font-size: .78rem;
    font-weight: 700;
}
.pulse {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(53, 211, 145, .18);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(53, 211, 145, .16); }
    50%      { box-shadow: 0 0 0 8px rgba(53, 211, 145, .05); }
}

.hero__h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(30px, 8vw, 56px);
    line-height: 1.06;
    letter-spacing: -.035em;
}
.hero__h1 .grad { display: inline-block; }
.hero__lead {
    max-width: 560px;
    margin: 0 0 22px;
    color: #b7c7e0;
    font-size: 1.02rem;
    line-height: 1.62;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
}
.hero__facts li {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(140, 180, 255, .06);
}
.hero__facts b {
    display: block;
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.15;
}
.hero__facts span {
    font-size: .76rem;
    color: #93a8c7;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 20px;
}
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: .84rem;
    color: #a9bfdd;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .ico { width: 16px; height: 16px; color: var(--ok); }

/* Карточка формы на тёмном фоне */
.form-card {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(140, 180, 255, .18);
    background:
        linear-gradient(160deg, rgba(28, 48, 82, .9) 0%, rgba(10, 18, 32, .96) 55%, rgba(6, 11, 21, .98) 100%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: var(--text);
    overflow: hidden;
}
.form-card::before {
    content: "";
    position: absolute;
    inset: -1px auto auto -1px;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, rgba(22, 194, 232, .8), transparent);
    opacity: .7;
}
.form-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.form-card__ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(22, 194, 232, .3), rgba(47, 124, 246, .3));
    color: #9fe7ff;
    border: 1px solid rgba(22, 194, 232, .3);
}
.form-card__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: 1.06rem;
}
.form-card__sub {
    margin: 2px 0 0;
    color: #9fb3d1;
    font-size: .8rem;
    line-height: 1.45;
}

/* ---------- Преимущества ---------- */
.adv {
    position: relative;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--dark-line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.adv:hover {
    transform: translateY(-3px);
    border-color: #c9dcf7;
    box-shadow: var(--shadow);
}
.adv__ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(47, 124, 246, .12), rgba(22, 194, 232, .12));
    border: 1px solid rgba(47, 124, 246, .16);
    color: var(--acc-deep);
}
.adv h3 { margin: 0 0 6px; font-size: 1.06rem; }
.adv p { margin: 0; color: var(--dark-muted); font-size: .9rem; line-height: 1.55; }

/* ---------- Коротко о главном ---------- */
.facts {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-line);
    background: #fff;
    box-shadow: var(--shadow);
}
.facts__head {
    padding: 22px 20px 6px;
}
.facts__head h2 { margin: 0; font-size: clamp(21px, 4vw, 30px); }
.facts__body { padding: 8px 20px 20px; }
.facts__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.facts__table tr { border-bottom: 1px solid #eef3fb; }
.facts__table tr:last-child { border-bottom: 0; }
.facts__table th,
.facts__table td {
    padding: 11px 0;
    text-align: left;
    vertical-align: top;
}
.facts__table th {
    width: 42%;
    padding-right: 12px;
    color: var(--dark-muted);
    font-weight: 700;
}
.facts__table td { color: var(--dark-text); font-weight: 600; }
.facts__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(120deg, #eef5ff 0%, #e8f7fd 100%);
    border: 1px solid #d7e8ff;
}
.facts__cta-text b { display: block; color: var(--dark-text); }
.facts__cta-text span { color: var(--dark-muted); font-size: .88rem; }

/* ---------- Цены ---------- */
.price-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.price-card {
    padding: 20px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--dark-line);
    box-shadow: var(--shadow-sm);
}
.price-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.price-card__head h3 { margin: 0; font-size: 1.12rem; }
.price-card__tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 124, 246, .09);
    color: var(--acc-deep);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: .94rem;
}
.price-table thead th {
    padding: 8px 0;
    text-align: left;
    color: var(--dark-muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--dark-line);
}
.price-table thead th:last-child { text-align: right; }
.price-table tbody tr { border-bottom: 1px solid #f0f5fc; }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table th,
.price-table td { padding: 11px 0; }
.price-table th {
    text-align: left;
    font-weight: 600;
    color: var(--dark-text);
}
.price-table td {
    text-align: right;
    font-weight: 800;
    color: var(--acc-deep);
    white-space: nowrap;
}
.price-card__note {
    margin: 12px 0 0;
    color: var(--dark-muted);
    font-size: .8rem;
    line-height: 1.5;
}
.price-card__updated {
    margin: 8px 0 0;
    color: var(--dark-muted);
    font-size: .74rem;
    line-height: 1.5;
    opacity: .85;
}
.price-side { display: flex; flex-direction: column; gap: 12px; }
.price-side__card {
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--dark-line);
    box-shadow: var(--shadow-sm);
}
.price-side__card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.price-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e6eefb;
    font-size: .86rem;
    color: var(--dark-muted);
}
.price-list li:last-child { border-bottom: 0; }
.price-list b { color: var(--dark-text); white-space: nowrap; }
.price-side__note {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #ffe0b2;
    background: linear-gradient(120deg, #fff8ec 0%, #fff2dc 100%);
}
.price-side__ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255, 176, 46, .2);
    color: #b96a00;
}
.price-side__note b { display: block; font-size: .9rem; }
.price-side__note p { margin: 2px 0 0; font-size: .8rem; color: #7a6244; line-height: 1.45; }

.seo-text {
    max-width: 900px;
    margin: 26px auto 0;
    color: var(--dark-muted);
    font-size: .92rem;
    line-height: 1.65;
}
.seo-text h3 { margin-bottom: 8px; color: var(--dark-text); font-size: 1.08rem; }
.seo-text p:last-child { margin-bottom: 0; }
.seo-text--center { text-align: center; }

/* ---------- Услуги ---------- */
.service {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--dark-line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.service h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.service__price {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(47, 124, 246, .09);
    color: var(--acc-deep);
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}
.service p {
    flex: 1 1 auto;
    margin: 0 0 12px;
    color: var(--dark-muted);
    font-size: .86rem;
    line-height: 1.55;
}
.service__link {
    font-size: .84rem;
    font-weight: 800;
    color: var(--acc-deep);
}
.service__link span { transition: margin .15s ease; display: inline-block; }
.service__link:hover span { margin-left: 4px; }

/* ---------- Шаги ---------- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    counter-reset: step;
}
.step {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--dark-line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.step__num {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--acc) 0%, #1650b8 100%);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(47, 124, 246, .3);
}
.step__body h3 { margin: 2px 0 6px; font-size: 1rem; }
.step__body p { margin: 0; color: var(--dark-muted); font-size: .88rem; line-height: 1.55; }

/* ---------- Подбор по VIN ---------- */
.vin__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.vin__bg span {
    position: absolute;
    width: 460px; height: 460px;
    right: -160px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 194, 232, .3), transparent 70%);
    filter: blur(40px);
}
.vin__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.vin__text h2 { color: #fff; }
.vin__text > p { color: var(--muted); }
.vin__points { display: grid; gap: 8px; margin: 16px 0 18px; }
.vin__points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #cfdcf2;
    font-size: .92rem;
}
.vin__points .ico { flex: 0 0 auto; margin-top: 3px; color: var(--ok); width: 18px; height: 18px; }
.vin__aside {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: rgba(140, 180, 255, .06);
}
.vin__aside b { display: block; color: #eaf3ff; margin-bottom: 4px; font-size: .95rem; }
.vin__aside p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

/* ---------- Выезд ---------- */
.vyezd {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
.vyezd__text h2 { margin-bottom: 10px; }
.vyezd__text > p { color: var(--dark-muted); font-size: .95rem; }
.vyezd__list { display: grid; gap: 10px; margin: 16px 0; }
.vyezd__list li { display: flex; gap: 12px; }
.vyezd__list > li > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(47, 124, 246, .1);
    border: 1px solid rgba(47, 124, 246, .16);
    color: var(--acc-deep);
}
.vyezd__list b { display: block; font-size: .95rem; }
.vyezd__list p { margin: 2px 0 0; color: var(--dark-muted); font-size: .85rem; line-height: 1.5; }
.vyezd__geo {
    padding: 14px 16px;
    border-radius: 14px;
    border-left: 4px solid var(--warm);
    background: #fffaf1;
    color: #6d5a3c;
    font-size: .88rem;
    line-height: 1.55;
}
.vyezd__geo b { color: #3d2f19; }

/* ---------- Марки ---------- */
.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.brand-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--dark-line);
    background: #fff;
    color: var(--dark-text);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.brand-chip:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
    color: var(--acc-deep);
    box-shadow: 0 12px 26px rgba(47, 124, 246, .18);
}
.brand-chip--more {
    border-style: dashed;
    background: transparent;
    color: var(--dark-muted);
}
.brands--wide .brand-chip { font-size: .82rem; padding: 8px 13px; }
.brands__note {
    max-width: 820px;
    margin: 18px auto 0;
    text-align: center;
    color: var(--dark-muted);
    font-size: .86rem;
}
.brands__note p { margin: 0; }

/* ---------- Отзывы ---------- */
.review {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--dark-line);
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow: var(--shadow-sm);
}
.review__stars { margin-bottom: 10px; color: var(--warm); font-size: 1rem; letter-spacing: 3px; }
.review__text {
    flex: 1 1 auto;
    margin: 0 0 14px;
    color: #22324a;
    font-size: .88rem;
    line-height: 1.6;
}
.review__author { display: flex; align-items: center; gap: 10px; }
.review__avatar {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dceaff, #c9e8fa);
    color: var(--acc-deep);
    font-size: .8rem;
    font-weight: 900;
}
.review__author b { display: block; font-size: .88rem; }
.review__author i { font-style: normal; font-size: .76rem; color: var(--dark-muted); }

/* ---------- Центры ---------- */
.center {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--dark-line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.center:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.center__district {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 124, 246, .08);
    color: var(--acc-deep);
    font-size: .72rem;
    font-weight: 800;
}
.center__district .ico { width: 15px; height: 15px; }
.center h3 { margin: 0 0 2px; font-size: 1.02rem; line-height: 1.3; }
.center__city { margin: 0 0 8px; color: var(--dark-muted); font-size: .82rem; }
.center__hours {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    color: var(--dark-muted);
    font-size: .8rem;
}
.center__hours .ico { width: 15px; height: 15px; }
.center__phone {
    margin-bottom: 10px;
    font-weight: 800;
    font-size: .95rem;
    color: var(--dark-text);
}
.center__phone:hover { color: var(--acc-deep); }
.center__map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: .82rem;
    font-weight: 800;
    color: var(--acc-deep);
}
.center__map .ico { width: 16px; height: 16px; }
.centers__note {
    max-width: 820px;
    margin: 22px auto 0;
    text-align: center;
    color: var(--dark-muted);
    font-size: .88rem;
}
.centers__note a { font-weight: 800; }

/* ---------- FAQ ---------- */
.faq {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}
.faq__item {
    border-radius: 16px;
    border: 1px solid var(--dark-line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.faq__item[open] {
    border-color: #c9dcf7;
    box-shadow: 0 12px 30px rgba(24, 63, 122, .09);
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    color: var(--dark-text);
    font-weight: 800;
    font-size: .96rem;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__ico {
    position: relative;
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(47, 124, 246, .1);
    color: var(--acc-deep);
}
.faq__ico::before,
.faq__ico::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 12px; height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease;
}
.faq__ico::after { transform: rotate(90deg); }
.faq__item[open] .faq__ico::after { transform: rotate(0); }
.faq__a { padding: 0 18px 18px; }
.faq__a p {
    margin: 0;
    color: var(--dark-muted);
    font-size: .9rem;
    line-height: 1.65;
}
.faq__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    text-align: center;
}
.faq__more p { margin: 0; color: var(--dark-muted); font-size: .9rem; }

/* ---------- Финальный CTA ---------- */
.cta-final { overflow: hidden; }
.cta-final__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.cta-final__bg span {
    position: absolute;
    width: 520px; height: 520px;
    left: -180px; bottom: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 124, 246, .38), transparent 70%);
    filter: blur(50px);
}
.cta-final__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
}
.cta-final__text h2 { color: #fff; }
.cta-final__text > p { color: var(--muted); }
.cta-final__points { display: grid; gap: 8px; margin: 16px 0 20px; }
.cta-final__points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #cfdcf2;
    font-size: .92rem;
}
.cta-final__points .ico { flex: 0 0 auto; margin-top: 3px; color: var(--ok); width: 18px; height: 18px; }
.cta-final__phone { color: var(--muted); font-size: .92rem; }
.cta-final__phone a {
    display: inline-block;
    margin-left: 4px;
    color: #fff;
    font-weight: 900;
    font-size: 1.12rem;
}
.cta-final__mess {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: .86rem;
    color: var(--muted);
}

/* ---------- Подвал ---------- */
.footer {
    position: relative;
    padding: 44px 0 84px;
    background: #05080f;
    color: #c7d5eb;
    border-top: 1px solid rgba(140, 180, 255, .12);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}
.brand--footer { margin-bottom: 14px; }
.footer__about p { color: #93a7c4; font-size: .88rem; line-height: 1.6; }
.footer__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(140, 180, 255, .16);
    background: rgba(140, 180, 255, .05);
    font-size: .8rem;
    color: #a9bdd9;
}
.footer__stars { display: inline-block; color: var(--warm); letter-spacing: 2px; }
.footer__h {
    margin: 0 0 12px;
    color: #fff;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.footer__links { display: grid; gap: 8px; }
.footer__links a {
    color: #a9bdd9;
    font-size: .88rem;
    transition: color .15s ease;
}
.footer__links a:hover { color: #fff; }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__phone {
    color: #fff;
    font-size: 1.16rem;
    font-weight: 900;
}
.footer__mail { color: #a9bdd9; font-size: .88rem; }
.footer__contacts p { margin: 0; color: #93a7c4; font-size: .84rem; }
.footer__contacts .btn { margin-top: 8px; }
.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(140, 180, 255, .1);
    font-size: .78rem;
    color: #7b8dab;
}
.footer__bottom p { margin: 0; }
.footer__seo {
    margin: 16px 0 0;
    font-size: .72rem;
    line-height: 1.7;
    color: #5f7089;
}

/* ---------- Мобильная панель действий ---------- */
.action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(6, 11, 21, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(140, 180, 255, .16);
}
.action-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 2px;
    border-radius: 12px;
    color: #b8cae5;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}
.action-bar__btn svg { width: 21px; height: 21px; }
.action-bar__btn--call { color: #8fd2ff; }
.action-bar__btn--wa { color: #6ef0a4; }
.action-bar__btn--tg { color: #7fd4ff; }
.action-bar__btn--max { color: #b6a6ff; }
.action-bar__btn--order {
    background: linear-gradient(135deg, #ffc861 0%, var(--warm) 50%, var(--warm-2) 100%);
    color: #23160a;
    box-shadow: 0 6px 16px rgba(255, 152, 32, .3);
}
.action-bar__btn:active { transform: scale(.97); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
    position: fixed;
    right: 14px;
    bottom: 82px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid rgba(140, 180, 255, .22);
    background: rgba(10, 20, 36, .9);
    color: #cfe0fa;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Появление при прокрутке ----------
   По умолчанию блоки видны: анимация включается только при работающем JS
   (класс .js на <html>). Так контент не пропадает без скриптов и при
   рендеринге поисковыми роботами. */
.reveal { transition: transform .45s ease; }
.js .reveal { transform: translateY(16px); }
.js .reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { transform: none; transition: none; }
    .pulse { animation: none; }
}

/* ---------- Формы пакета внутри карточек темы ----------
   forms.css подключается после style.css, поэтому селекторы здесь
   уточнены через .form-card — они выигрывают по специфичности. */
.form-card .tf-field input[type="text"],
.form-card .tf-field input[type="tel"],
.form-card .tf-field input[type="email"],
.form-card .tf-field textarea,
.form-card .tf-quiz__input,
.form-card .tf-quiz__select {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(140, 180, 255, .22);
    color: #eaf1ff;
}
.form-card .tf-field input:focus,
.form-card .tf-field textarea:focus,
.form-card .tf-quiz__input:focus,
.form-card .tf-quiz__select:focus {
    background: rgba(255, 255, 255, .08);
    border-color: var(--acc-2);
    box-shadow: 0 0 0 3px rgba(22, 194, 232, .18);
}
.form-card .tf-consent__box { background: rgba(255, 255, 255, .05); }

/* Главная кнопка формы — тёплая: на тёмной карточке она «собирает» клик */
.form-card .tf-btn {
    background: linear-gradient(135deg, #ffc861 0%, var(--warm) 45%, var(--warm-2) 100%);
    color: #23160a;
    border: 0;
    box-shadow: 0 12px 28px rgba(255, 152, 32, .3);
    font-weight: 900;
}
.form-card .tf-btn:hover,
.form-card .tf-btn:focus-visible {
    background: linear-gradient(135deg, #ffd27f 0%, #ffb840 45%, #ff9426 100%);
    box-shadow: 0 16px 34px rgba(255, 152, 32, .4);
}

/* Варианты ответов квиза — «стеклянные» плитки */
.form-card .tf-quiz__opt {
    border-radius: 14px;
    border-color: rgba(140, 180, 255, .2);
    background: rgba(255, 255, 255, .04);
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.form-card .tf-quiz__opt:hover,
.form-card .tf-quiz__opt.is-selected {
    border-color: var(--acc-2);
    background: rgba(22, 194, 232, .12);
    transform: translateY(-1px);
}
.form-card .tf-quiz__bar span { background: linear-gradient(90deg, var(--acc), var(--acc-2)); }
.form-card .tf-way { border-radius: 12px; }
.form-card .tf-way input:checked ~ .tf-way__text::before {
    box-shadow: inset 0 0 0 3px var(--acc-2);
    border-color: var(--acc-2);
}
.form-card .tf-consent input:checked + .tf-consent__box {
    background-color: var(--acc-2);
    border-color: var(--acc-2);
}

/* Уведомление пакета поверх панели действий */
.tf-toast { z-index: 200 !important; }

/* =====================================================================
   Адаптив
   ===================================================================== */

/* Планшет / небольшой ноутбук */
@media (min-width: 700px) {
    .container { padding: 0 26px; }
    .section { padding: 72px 0; }
    .section--tight { padding: 52px 0; }

    .grid { gap: 18px; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .hero { padding: 44px 0 58px; }
    .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero__cta { flex-direction: row; flex-wrap: wrap; }
    .hero__cta .btn { flex: 1 1 auto; }

    .form-card { padding: 22px; }
    .facts__head { padding: 26px 26px 8px; }
    .facts__body { padding: 10px 26px 26px; }
    .facts__cta { flex-direction: row; align-items: center; justify-content: space-between; }
    .facts__table th { width: 34%; }

    .price-wrap { grid-template-columns: 1.25fr .95fr; align-items: start; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__bottom { flex-direction: row; justify-content: space-between; gap: 20px; }
    .faq__more { flex-direction: row; justify-content: center; }
    .faq__more p { max-width: 420px; text-align: left; }
    .to-top { bottom: 92px; right: 20px; }
}

/* Десктоп */
@media (min-width: 1024px) {
    .container { padding: 0 32px; }
    .section { padding: 86px 0; }
    .section--tight { padding: 60px 0; }

    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid { gap: 20px; }

    /* Шапка: планшет и небольшой ноутбук — меню в бургере */
    .header__in { min-height: 74px; gap: 16px; }
    .brand__mark { width: 46px; height: 46px; }
    .brand__name { font-size: 1.3rem; }

    .header__phone { display: flex; }
    .header__cta { display: inline-flex; }
    .mess--header .mess__link { display: grid; }

    /* Первый экран: две колонки */
    .hero { padding: 54px 0 76px; }
    .hero__in {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
        gap: 44px;
        align-items: start;
    }
    .hero__lead { font-size: 1.07rem; }
    .hero__facts { gap: 10px; }
    .hero__cta { gap: 12px; }

    .form-card { padding: 26px; border-radius: 30px; }

    .vin__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 44px; align-items: center; }
    .vyezd { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 44px; align-items: center; }
    .cta-final__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 44px; align-items: center; }
    .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .step { flex-direction: column; gap: 12px; }
    .step__body h3 { font-size: .96rem; }
    .step__body p { font-size: .82rem; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; }
    .footer { padding-bottom: 48px; }
    .action-bar { display: none; }
    .to-top { bottom: 24px; }
}

/* Широкий экран: горизонтальное меню.
   Порог 1280px выбран по замеру: при 1024–1279px шапка с семью пунктами
   меню и правым блоком требует ~1400px и вылезала за край экрана. */
@media (min-width: 1280px) {
    .header__in { gap: 14px; }

    .nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
        margin-left: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .nav a { padding: 9px 6px; font-size: .84rem; color: #c3d4ec; white-space: nowrap; }

    /* Правый блок не сжимается, иначе кнопка ломается на две строки */
    .header__right { flex: 0 0 auto; }
    .header__phone, .header__cta { flex: 0 0 auto; }
    .header__cta { white-space: nowrap; }

    /* На ноутбуках меню уже горизонтальное, поэтому бургер и мессенджеры
       в шапке не нужны: мессенджеры есть в первом экране, футере и формах. */
    .burger { display: none; }
    .mess--header { display: none; }
}

/* Отдельного «просторного» варианта для 1440px нет: в контейнер 1200px
   семь пунктов меню, телефон и кнопка вместе не помещаются. */

/* Узкие телефоны: шапка требовала минимум 402px и обрезалась на 320–400px */
@media (max-width: 419px) {
    .container { padding: 0 14px; }
    .header__in { gap: 8px; }
    .brand { gap: 8px; }
    .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
    .brand__mark .ico { width: 22px; height: 22px; }
    .brand__name { font-size: 1.1rem; }
    .brand__tag { display: none; }
    .mess__link { width: 34px; height: 34px; }
    .mess__link svg { width: 18px; height: 18px; }
    .burger { width: 38px; height: 38px; }
}

/* Самые узкие экраны (320px): в шапке остаются логотип и бургер */
@media (max-width: 359px) {
    .mess--header { display: none; }
}

/* ---------- Печать ---------- */
@media print {
    .header, .action-bar, .to-top, .hero__bg, .tf-modal, .tf-toast { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 16px 0; }
    .hero { background: #fff; color: #000; }
    .hero__h1, .hero__lead, .hero__facts b { color: #000; }
    .reveal { opacity: 1; transform: none; }
}
