/* ==========================================================================
   SEOULDRIVE — тёмная премиальная тема
   ========================================================================== */

/* Шрифты со своего сервера (Google Fonts, вариативные — все начертания в одном файле):
   без лишних соединений с fonts.googleapis.com / fonts.gstatic.com до первой отрисовки.
   Цифры и знаки — в латинском наборе, поэтому на каждой странице нужны оба набора. */
@font-face {
    font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("../fonts/manrope-cyrillic-YCBh_HE.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url("../fonts/manrope-latin-bDYqjI6.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Unbounded"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url("../fonts/unbounded-cyrillic-4Iw9O_U.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Unbounded"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url("../fonts/unbounded-latin-UJiWfZ8.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #0a0b0f;
    --bg-2: #0f1117;
    --surface: #14171f;
    --surface-2: #1b1f29;
    --border: #262b37;
    --border-2: #343a48;
    --text: #f2f3f5;
    --muted: #8b93a4;
    --gold: #d6b16a;
    --gold-2: #f1d59c;
    --gold-ink: #1b1407;
    --gold-glow: rgba(214, 177, 106, .18);
    --good: #45d08f;
    --info: #74a9ff;
    --danger: #ff7a7a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .35);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
    --header-h: 72px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 2.8vw, 34px); }
h3 { font-size: 18px; }
img { max-width: 100%; display: block; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 11, 15, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header__inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark { width: 40px; height: 40px; flex: none; }
/* PACIFIC над MOTORS: вторая строка мельче и в разрядку */
.logo__word { display: grid; gap: 4px; line-height: 1; text-transform: uppercase; font-size: 19px; letter-spacing: .03em; }
.logo__word b { font-family: var(--font-body, "Manrope", system-ui, sans-serif); color: var(--gold); font-weight: 800; font-size: 10px; letter-spacing: .5em; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav .nav__quiz { color: var(--gold); }
.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__tg { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--border-2); color: var(--gold); transition: border-color .15s, color .15s, background .15s; }
.header__tg:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-glow); }
.header__tg svg { width: 18px; height: 18px; margin-left: -2px; }
.nav .nav__tg { display: none; align-items: center; gap: 8px; color: var(--gold); }
.nav__tg svg { width: 18px; height: 18px; }
.header__phone { font-weight: 700; color: var(--text); white-space: nowrap; }
.header__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); text-align: right; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 8px 28px var(--gold-glow); }
.btn--primary:hover { color: var(--gold-ink); box-shadow: 0 10px 36px rgba(214, 177, 106, .35); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--link { background: none; color: var(--muted); padding: 10px; }
.btn--link:hover { color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); width: 100%; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #5d6474; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b93a4' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select:disabled { opacity: .5; }
label { color: var(--muted); }
.form-error { color: #ff9b9b; font-size: 13px; margin-top: 4px; }
.form-success { padding: 18px 20px; border-radius: 14px; background: rgba(69, 208, 143, .1); border: 1px solid rgba(69, 208, 143, .3); color: #8ef0c0; font-weight: 600; margin-top: 16px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
form ul { margin: 4px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; }

/* ---------- custom select ---------- */
.xselect { position: relative; width: 100%; }
.xselect__native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.xselect__button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font: inherit; font-size: 15px; color: var(--text); padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.xselect__button::after { content: ""; flex: none; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b93a4' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.xselect__button:hover { border-color: var(--border-2); }
.xselect__button:focus-visible, .xselect.is-open .xselect__button { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.xselect.is-open .xselect__button::after { transform: rotate(180deg); }
.xselect__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xselect.is-placeholder .xselect__label { color: var(--muted); }
.xselect.is-disabled { opacity: .5; }
.xselect.is-disabled .xselect__button { cursor: not-allowed; }
.filters .xselect__button { padding: 10px 12px; }
.xselect__panel { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); padding: 6px; animation: fadeUp .15s ease; }
.xselect.is-up .xselect__panel { top: auto; bottom: calc(100% + 6px); }
.xselect__search { width: 100%; margin-bottom: 6px; padding: 9px 12px; font-size: 14px; background: var(--bg-2); }
.xselect__list, .xselect__list ul { list-style: none; margin: 0; padding: 0; }
.xselect__list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.xselect__option { position: relative; padding: 9px 12px 9px 32px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #c6ccd7; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xselect__option.is-active { background: rgba(214, 177, 106, .12); color: var(--text); }
.xselect__option[aria-selected="true"] { color: var(--gold-2); font-weight: 700; }
.xselect__option[aria-selected="true"]::before { content: "✓"; position: absolute; left: 12px; color: var(--gold); }
.xselect__option[aria-disabled] { opacity: .4; cursor: default; }
.xselect__group-title { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.xselect__empty { padding: 12px; color: var(--muted); font-size: 14px; }
.toolbar .xselect { width: auto; min-width: 230px; }
/* редактируемый: поле ввода + кнопка-стрелка */
.xselect--editable .xselect__input { width: 100%; padding: 10px 34px 10px 12px; }
.xselect--editable .xselect__button { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 32px; padding: 0; justify-content: center; border: 0; background: transparent; box-shadow: none !important; }
.xselect--editable.is-open .xselect__input { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(214, 177, 106, .22), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.2vw, 64px); margin-bottom: 22px; }
.hero h1 span { background: linear-gradient(135deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 18px; color: #b8beca; max-width: 580px; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 48px; }
.hero__stats b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--text); }
.hero__stats span { color: var(--muted); font-size: 14px; }

.search-card { background: linear-gradient(180deg, rgba(27, 31, 41, .92), rgba(20, 23, 31, .92)); border: 1px solid var(--border-2); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.search-card h2 { font-size: 18px; margin-bottom: 18px; }
.search-card form { display: grid; gap: 14px; }
.search-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.search-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-card__hint { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.search-card__hint a { font-weight: 700; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }

/* ---------- brands ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.brand { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s; }
.brand::after { content: "→"; position: absolute; right: 18px; top: 20px; color: var(--muted); transition: transform .2s, color .2s; }
.brand:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.brand:hover::after { color: var(--gold); transform: translateX(4px); }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.brand span { color: var(--muted); font-size: 13px; }

/* ---------- car cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { color: var(--text); transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card__photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__photo img { transform: scale(1.04); }
.card__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(10, 11, 15, .55)); pointer-events: none; }
.card__badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.card__year { display: none; position: absolute; right: 12px; bottom: 12px; z-index: 1; font-size: 13px; font-weight: 700; color: #fff; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.card__trim { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.card__specs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__specs li { font-size: 12px; font-weight: 600; color: #b8beca; background: var(--surface-2); border-radius: 6px; padding: 3px 8px; }
.card__price { margin-top: auto; padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); margin-top: 16px; }
.card__price b { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--gold-2); }
.card__price span { font-size: 13px; color: var(--muted); }
.card__price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.card__korea { margin-top: 6px; font-size: 13px; color: var(--muted); }
.card__title .card__yr { color: var(--muted); font-weight: 600; }
.card__old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-right: 6px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(8px); }
.badge--accent { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.badge--good { background: rgba(69, 208, 143, .16); color: #7fe6b5; border: 1px solid rgba(69, 208, 143, .35); }
.badge--info { background: rgba(116, 169, 255, .16); color: #a9c8ff; border: 1px solid rgba(116, 169, 255, .35); }
.badges-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.badges-row .badge { font-size: 12px; padding: 5px 12px; }

.noimg { width: 100%; height: 100%; min-height: 160px; background: radial-gradient(circle at 50% 120%, rgba(214, 177, 106, .12), transparent 60%), var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32' fill='%23343a48'%3E%3Cpath d='M8 22c0-3 2-5 5-5s5 2 5 5h28c0-3 2-5 5-5s5 2 5 5h4v-6l-6-2-8-7H22l-8 7-8 2v6z'/%3E%3Ccircle cx='13' cy='23' r='4'/%3E%3Ccircle cx='51' cy='23' r='4'/%3E%3C/svg%3E") center / 42% no-repeat; }
.noimg--large { aspect-ratio: 16 / 10; }

/* ---------- calculator ---------- */
.calc-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.calc-widget__form { padding: 36px; display: grid; gap: 22px; align-content: start; }
.calc-widget__form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.calc-widget__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-widget__price { display: flex; align-items: baseline; justify-content: space-between; }
.calc-widget__price output { font-family: var(--font-display); font-size: 22px; color: var(--text); }
.calc-widget__result { padding: 36px; background: radial-gradient(circle at 100% 0, rgba(214, 177, 106, .14), transparent 55%), var(--surface-2); border-left: 1px solid var(--border); display: flex; flex-direction: column; }
.calc-widget__lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.calc-widget__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #b8beca; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.calc-widget__lines li b { color: var(--text); font-weight: 700; white-space: nowrap; }
.calc-widget__total { margin-top: auto; }
.calc-widget__total span { color: var(--muted); font-size: 14px; }
.calc-widget__total b { display: block; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); color: var(--gold-2); font-weight: 600; line-height: 1.1; margin: 6px 0 4px; }
.calc-widget__total .btn { margin-top: 20px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 30%), var(--border) var(--p, 30%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-2); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--gold); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-2); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--gold); cursor: pointer; }
input[type="range"]:focus { box-shadow: none; }

.toggle { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--text) !important; }
.toggle input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--bg-2); border: 1px solid var(--border); padding: 4px; border-radius: 12px; }
.segmented { position: relative; }
.segmented--2 { grid-template-columns: 1fr 1fr; }
.calc-widget__budget { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(214, 177, 106, .1); border: 1px solid rgba(214, 177, 106, .3); }
.calc-widget__budget span { display: block; color: var(--muted); font-size: 14px; }
.calc-widget__budget b { font-family: var(--font-display); font-size: 28px; color: var(--gold-2); }
.segmented input, .quiz__options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; }
.segmented input:checked + label { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.segmented input:focus-visible + label { outline: 2px solid var(--gold); }

/* ---------- quiz banner & quiz ---------- */
.quiz-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 32px; padding: 48px; border-radius: 28px; background: linear-gradient(120deg, #1d1a12, #14171f 60%); border: 1px solid rgba(214, 177, 106, .35); }
.quiz-banner::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 177, 106, .28), transparent); }
.quiz-banner > * { position: relative; }
.quiz-banner h2 { margin-bottom: 10px; }
.quiz-banner p { margin: 0; color: #b8beca; font-size: 17px; }
.quiz-banner ul { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; list-style: none; color: var(--muted); font-size: 14px; }
.quiz-banner li::before { content: "✓ "; color: var(--gold); font-weight: 800; }

.quiz { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.quiz__count { color: var(--gold-2); font-weight: 700; }
.quiz__progress { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; margin-bottom: 32px; }
.quiz__progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .35s ease; }
.quiz__step { border: 0; padding: 0; margin: 0 0 36px; }
.quiz__step legend, .quiz__step > h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin-bottom: 22px; padding: 0; color: var(--text); }
.quiz--js .quiz__step { display: none; margin: 0; }
.quiz--js .quiz__step.is-active { display: block; animation: fadeUp .35s ease; }
.quiz__options > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.quiz__options > div { position: relative; }
.quiz__options label { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); color: var(--text); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.quiz__options label::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--border-2); transition: .15s; }
.quiz__options label:hover { border-color: var(--border-2); transform: translateY(-1px); }
.quiz__options input:checked + label { border-color: var(--gold); background: rgba(214, 177, 106, .08); }
.quiz__options input:checked + label::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 45%, transparent 50%); }
.quiz__options input:focus-visible + label { outline: 2px solid var(--gold); }
.quiz__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz__contact > div, .quiz__contact label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz:not(.quiz--js) .quiz__nav [data-quiz-prev], .quiz:not(.quiz--js) .quiz__nav [data-quiz-next] { display: none; }
.quiz__gift { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: rgba(214, 177, 106, .08); border: 1px solid rgba(214, 177, 106, .3); margin-bottom: 22px; color: #e6d3ad; font-size: 14px; }
.quiz__gift strong { color: var(--gold-2); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- steps / features / faq ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; color: var(--muted); font-size: 15px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 18px; }
.steps b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.steps--vertical { grid-template-columns: 1fr; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(214, 177, 106, .1); color: var(--gold); margin-bottom: 16px; }
.feature b { display: block; font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #b8beca; }

/* ---------- catalog ---------- */
.catalog { padding: 40px 20px 72px; }
.catalog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.catalog__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.catalog__head h1 { margin: 0; }
.catalog__count { font-size: clamp(14px, 2.1vw, 24px); color: var(--muted); font-weight: 600; white-space: nowrap; }
.catalog__layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
/* без собственной прокрутки: иначе выпадающие списки внизу панели обрезаются */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.filters__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters input, .filters select { padding: 10px 12px; }
.filters select { padding-right: 34px; }
.filters-toggle { display: none; }
.catalog__results { transition: opacity .15s; min-height: 200px; }
.catalog__results.is-loading { opacity: .45; pointer-events: none; }
@media (min-width: 861px) { .filters__submit { display: none; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.sort { width: auto; padding-top: 9px; padding-bottom: 9px; }
.empty { background: var(--surface); border: 1px solid var(--border); padding: 40px; border-radius: var(--radius); text-align: center; color: var(--muted); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0 10px; font-weight: 600; }
.pagination a:hover { border-color: var(--gold); color: var(--gold-2); }
.pagination .is-active { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.seo-text { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: #b8beca; font-size: 15px; }
.seo-text h2 { font-size: 20px; color: var(--text); }
.seo-text p { margin: 0 0 10px; }

/* ---------- car page ---------- */
.car__top { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.car__top .specs-grid { align-content: start; }
.specs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px 26px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; min-width: 0; }
.spec span { color: var(--muted); flex: none; }
.spec b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.car__gallery { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-bottom: 28px; }
.gallery__side { position: relative; min-height: 200px; }
/* сетка остальных фото по высоте главного, лишнее прокручивается */
.car__gallery .gallery__thumbs { position: absolute; inset: 0; margin: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: max-content; gap: 8px; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.car__gallery .gallery__thumbs button { opacity: .85; }
.car { padding: 28px 20px 72px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.car__title { margin-bottom: 14px; }
.car__title span { color: var(--muted); }
.car__layout { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; border: 1px solid var(--border); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; background: rgba(10, 11, 15, .7); backdrop-filter: blur(6px); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 4 / 3; opacity: .6; transition: opacity .15s, border-color .15s; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car__side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.price-box { background: radial-gradient(circle at 100% 0, rgba(214, 177, 106, .14), transparent 55%), var(--surface); border: 1px solid var(--border-2); border-radius: 20px; padding: 26px; }
.price-box__label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.price-box__main { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin: 4px 0; }
.price-box__total { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--gold-2); margin: 4px 0; }
.price-box .btn { margin-top: 20px; }
.price-box__alt { display: flex; gap: 8px; margin-top: 10px; }
.price-box__alt .btn { margin: 0; flex: 1; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.car__info { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 28px 0; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.box h2 { font-size: 22px; }
.calc { width: 100%; border-collapse: collapse; }
.calc td, .calc th { padding: 10px 0; border-bottom: 1px dashed var(--border); text-align: left; color: #b8beca; font-weight: 500; }
.calc th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.calc td:last-child, .calc th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; color: var(--text); font-weight: 700; }
/* итог: «N $ ≈ M BYN» на узком экране переносится между валютами, а не раздвигает страницу */
.calc__total td:last-child { white-space: normal; }
.calc__total td:last-child > span { white-space: nowrap; }
.calc__total td { border-bottom: 0; padding-top: 16px; font-size: 18px; color: var(--text); font-weight: 800; }
.calc__total td:last-child { color: var(--gold-2); }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.history li { padding: 14px 16px 14px 48px; position: relative; background: var(--bg-2); border-radius: 12px; color: #b8beca; }
.history li::before { content: "•"; position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.history li.ok::before { content: "✓"; background: rgba(69, 208, 143, .15); color: var(--good); }
.history li.warn::before { content: "!"; background: rgba(255, 122, 122, .15); color: var(--danger); }
.history b { color: var(--text); }
.sticky-cta { display: none; }
.encar-link { margin-top: 10px !important; }
.insurance, .inspection, .options { margin: 0 0 28px; }
.inspection__layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.inspection__diagram svg { width: 100%; max-width: 240px; display: block; margin: 0 auto; }
.car-body { fill: var(--bg-2); stroke: var(--border-2); stroke-width: 2; }
.zone { stroke: var(--bg); stroke-width: 2; transition: opacity .15s; }
.zone--ok { fill: #232836; }
.zone--minor { fill: #d6b16a; background: #d6b16a; }
.zone--damage { fill: #f08a4b; background: #f08a4b; }
.zone--repair { fill: #f0643c; background: #f0643c; }
.zone--replace { fill: #e5484d; background: #e5484d; }
.glass { fill: #2c3343; }
.diagram-label { fill: var(--muted); font-size: 10px; }
.inspection__legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.inspection__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.ok-note { color: var(--good); margin-top: 16px; }
.options__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.options h3 { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.options ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.options li::before { content: "✓ "; color: var(--gold); }
@media (max-width: 860px) { .inspection__layout, .options__grid { grid-template-columns: 1fr; } }
.insurance__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.insurance__head h2 { margin: 0; }
.insurance__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.insurance__stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.insurance__stat span { color: var(--muted); font-size: 13px; }
.insurance__stat b { font-size: 20px; }
.insurance__stat small { color: var(--muted); font-size: 12px; }
.insurance__stat.ok b { color: var(--good); }
.insurance__stat.warn { border-color: rgba(255, 122, 122, .35); }
.insurance__stat.warn b { color: #ffb0b0; }
.insurance__sub { margin: 24px 0 8px; }
.insurance__table td:nth-child(2) { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .insurance__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- lead form ---------- */
.lead { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; }
.lead::before { content: ""; position: absolute; left: -100px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 177, 106, .14), transparent); pointer-events: none; }
.lead > * { position: relative; }
.lead__title { margin-bottom: 8px; }
.lead__form { display: grid; gap: 14px; margin-top: 22px; }
.lead__form > div { display: grid; gap: 6px; }
.lead__row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead__row > div { display: grid; gap: 6px; }
.lead label { font-size: 14px; font-weight: 600; }
.lead .btn { justify-self: start; }

/* ---------- flash ---------- */
.flash { margin: 20px 0; padding: 16px 20px; border-radius: 14px; font-weight: 600; }
.flash--success { background: rgba(69, 208, 143, .1); color: #8ef0c0; border: 1px solid rgba(69, 208, 143, .3); }
.flash--error { background: rgba(255, 122, 122, .1); color: #ffb0b0; border: 1px solid rgba(255, 122, 122, .3); }

/* ---------- messenger widget + modal ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__main { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(214, 177, 106, .35); transition: transform .2s; }
.fab__main:hover { transform: scale(1.06); }
.fab__main::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: pulse 2.4s ease-out infinite; }
.fab__main svg { width: 28px; height: 28px; transition: transform .2s; }
.fab.is-open .fab__main::before { animation: none; opacity: 0; }
.fab__icon-close { display: none; }
.fab.is-open .fab__icon-chat { display: none; }
.fab.is-open .fab__icon-close { display: block; }
.fab__list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; }
.fab.is-open .fab__list { opacity: 1; transform: none; pointer-events: auto; }
.fab__item { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); cursor: pointer; font-family: inherit; }
.fab__item:hover { color: var(--text); border-color: var(--gold); }
.fab__item i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fab__item i svg { width: 20px; height: 20px; }
.fab__tg i { background: #2aabee; }
.fab__viber i { background: #7360f2; }
.fab__wa i { background: #25d366; }
.fab__call i { background: var(--gold); color: var(--gold-ink); }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.modal { border: 1px solid var(--border-2); border-radius: 24px; padding: 0; background: var(--surface); color: var(--text); width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal::backdrop { background: rgba(5, 6, 9, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: fadeUp .25s ease; }
.modal__body { padding: 32px; }
.modal__body h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; padding-right: 36px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); cursor: pointer; font-size: 18px; }
.modal__close:hover { color: var(--text); }
.modal .lead__form { margin-top: 18px; }
.modal .lead__form .btn { justify-self: stretch; }

/* ---------- static pages ---------- */
.page { padding: 56px 20px 80px; }
.page h2 { margin-top: 48px; }
.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.contacts-grid a, .contacts-grid div { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.contacts-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.contacts-grid b { font-size: 18px; }

/* ---------- check ---------- */
.check-form { display: flex; gap: 10px; margin: 28px 0 18px; }
.check-form input { flex: 1; padding: 16px 18px; font-size: 16px; }
.check-list { padding-left: 20px; color: #b8beca; display: grid; gap: 6px; }
@media (max-width: 600px) { .check-form { flex-direction: column; } }

/* ---------- deals / reviews ---------- */
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.deal img, .deal .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.deal__body { padding: 16px 18px; display: grid; gap: 4px; }
.deal__price { margin-top: 8px; color: var(--gold-2); font-weight: 700; }
.reviews { display: grid; gap: 16px; margin-bottom: 32px; }
.reviews--grid { grid-template-columns: repeat(3, 1fr); }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.review p { margin: 10px 0 14px; color: #c6ccd7; }
.review footer { font-size: 14px; }
.review__stars { color: var(--gold); letter-spacing: 2px; }
.review__stars span { color: var(--border-2); }
.links-list { padding-left: 18px; display: grid; gap: 6px; margin: 20px 0; }
.footer__cities { margin-top: 28px; font-size: 14px; }
@media (max-width: 860px) { .deals, .reviews--grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); color: var(--muted); padding: 56px 0 40px; margin-top: 0; font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; }
.footer__title { color: var(--text); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer a { color: #b8beca; }
.footer a:hover { color: var(--gold-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { grid-template-columns: 1fr; }
    .car__layout { grid-template-columns: 1fr; }
    .car__top { grid-template-columns: 1fr; }
    .car__side { position: static; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}
/* узкий десктоп: шапка не вмещает всё — «Перезвоните мне» есть в плавающей кнопке связи */
@media (max-width: 1100px) {
    .header__inner { gap: 24px; }
    .header__contacts .btn { display: none; }
    .nav { gap: 18px; }
}
@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .burger { display: block; }
    .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
    .nav.is-open { display: flex; }
    .nav .nav__tg { display: inline-flex; }
    .box { padding: 20px 16px; }
    .header__contacts { display: none; }
    .section { padding: 56px 0; }
    .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .catalog__layout { grid-template-columns: 1fr; }
    .filters { display: none; }
    .filters.is-open { display: flex; }
    .filters-toggle { display: inline-flex; }
    .specs-grid { grid-template-columns: 1fr; padding: 6px 18px; }
    /* minmax(0,1fr): иначе лента миниатюр растягивает колонку и всю страницу */
    .car__gallery { grid-template-columns: minmax(0, 1fr); }
    .gallery__side { min-height: 0; }
    .car__gallery .gallery__thumbs { position: static; display: flex; overflow-x: auto; }
    .car__gallery .gallery__thumbs button { flex: 0 0 110px; }
    .car__info, .lead__row, .quiz__contact, .calc-widget, .calc-widget__row, .search-card__row, .contacts-grid { grid-template-columns: 1fr; }
    .calc-widget__result { border-left: 0; border-top: 1px solid var(--border); }
    .calc-widget__form, .calc-widget__result { padding: 24px; }
    .features, .steps { grid-template-columns: 1fr; }
    .quiz-banner { grid-template-columns: 1fr; padding: 32px 24px; }
    .quiz { padding: 24px; border-radius: 20px; }
    .lead { padding: 26px; }
    .hero { padding: 48px 0; }
    .hero__stats { gap: 22px; grid-template-columns: repeat(3, 1fr); }
    .hero__stats b { font-size: 20px; }
    .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(15, 17, 23, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
    .sticky-cta b { font-family: var(--font-display); color: var(--gold-2); font-size: 18px; display: block; }
    .sticky-cta span { font-size: 12px; color: var(--muted); }
    .has-sticky-cta .fab { bottom: 92px; }
    .has-sticky-cta .footer { padding-bottom: 100px; }
    .fab { right: 16px; bottom: 16px; }
    .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .grid, .grid--3 { grid-template-columns: 1fr; }
    .segmented { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- согласие на обработку ПД ---------- */
.consent { display: flex !important; flex-wrap: wrap; align-items: flex-start; gap: 10px; font-size: 13px; color: #9aa1ae; line-height: 1.45; }
.consent input { order: -1; flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.consent label { flex: 1; cursor: pointer; }
.consent a { color: inherit; text-decoration: underline; }
.consent .form-error { flex-basis: 100%; }

/* ---------- баннер cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center;
    padding: 16px 18px; border-radius: 16px; background: #15171e; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-size: 14px; color: #c9ced8; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: inherit; text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .cookie { flex-direction: column; align-items: stretch; } .cookie__actions .btn { flex: 1; } }

/* ---------- политика ---------- */
.policy { max-width: 820px; }
.policy h2 { margin-top: 36px; font-size: 22px; }
.policy p, .policy li { color: #c9ced8; line-height: 1.65; }
.policy ul { padding-left: 20px; display: grid; gap: 6px; }
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.policy th, .policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; }

/* FAQ страниц марки/серии (из данных каталога) */
.seo-faq { margin-top: 40px; }
.seo-faq h2 { font-size: 22px; margin-bottom: 18px; }
.seo-faq p { margin: 0 0 18px; color: #b8beca; }
