/* PsychAuto / ПсихАвто — стили сайта. Без фреймворков, системные шрифты; рукописный Caveat — только для подписи обращения. */

/* Caveat (Impallari Type / The Caveat Project Authors, SIL Open Font License 1.1 — static/fonts/caveat/OFL.txt) — только со
   своего сервера (CSP font-src 'self'; сторонних шрифтов нет, как сказано в privacidad). Источник — google/fonts, ofl/caveat/
   Caveat[wght].ttf: экземпляр wght=600, подмножества latin / latin-ext (Latin Extended-A + румынские ș ț) / cyrillic, без хинтинга,
   копирайт и лицензия остаются в самих файлах (README → «Шрифт Caveat»). Браузер скачивает только нужное по unicode-range.
   /static/ кэшируется на год без ?v=: заменил файл — дай ему новое имя (и поправь preload в templates/landing.html). */
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/caveat/caveat-600-cyrillic.woff2) format("woff2");
  unicode-range: U+0400-045F;
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/caveat/caveat-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-017F, U+0218-021B;
}
@font-face {
  font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/static/fonts/caveat/caveat-600-latin.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: #F5EFE6;
  --bg-2: #EFE6DA;
  --surface: #FFFDF9;
  --surface-2: #FBF6EF;
  --text: #2B2118;
  --text-2: #5A4A3B;
  --muted: #6E5E4E;
  --line: #E3D6C5;
  --line-2: #D6C6B2;
  --terra: #B5651D;        /* бренд, крупные элементы */
  --terra-strong: #9A5418; /* текст-акцент (AA на бежевом) */
  --cta: #A0561A;          /* фон кнопки (белый текст ≥ 5.4:1) */
  --cta-hover: #8A4813;
  --blue: #1F4E79;
  --blue-soft: #E7EEF5;
  --gold: #C9A227;
  --gold-soft: #F3E8C6;
  --on-cta: #FFFFFF;
  --focus: #1F4E79;
  --shadow: 0 1px 2px rgba(43, 33, 24, .06), 0 6px 24px rgba(43, 33, 24, .07);
  --shadow-lg: 0 2px 6px rgba(43, 33, 24, .07), 0 18px 48px rgba(43, 33, 24, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --gutter: 16px;
  --maxw: 1120px;
  /* v3 (17.10.2026): жёлтая «¡Vamos!» — тёмный текст и в тёмной теме; рукописная подпись обращения —
     Caveat со своего сервера (@font-face выше), пока он грузится или если не загрузился — прежний системный стек. */
  --vamos: #FFB000;
  --vamos-hover: #F59E0B;
  --on-vamos: #2B2118;
  --on-vamos-soft: rgba(43, 33, 24, .12);
  --shadow-vamos: 0 8px 24px rgba(43, 33, 24, .22);
  --shadow-vamos-sm: 0 3px 10px rgba(43, 33, 24, .18);
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", "Snell Roundhand", "Brush Script MT", cursive;
  /* результат v3: чипы выбора, текст на синем (выбранный чип), плашка «Ilustración IA», затемнение под шторкой */
  --chip-line: #93806A;
  --on-blue: #FFFFFF;
  --pill-bg: rgba(255, 253, 249, .9);
  --scrim: rgba(43, 33, 24, .42);
  --shadow-cta: 0 6px 18px rgba(160, 86, 26, .28);
  --shadow-up: 0 -8px 24px rgba(43, 33, 24, .08);

  /* акценты типов */
  --t-a: #B5651D; --t-a-soft: #F2DFCD;
  --t-b: #5E7A3A; --t-b-soft: #E1E8D4;
  --t-c: #A88518; --t-c-soft: #F3E8C6;
  --t-d: #6B5A48; --t-d-soft: #E8DFD4;
  --t-e: #1F4E79; --t-e-soft: #DCE6F0;
  --t-f: #7A3B5E; --t-f-soft: #EEDCE5;
  --accent: var(--terra);
  --accent-soft: var(--t-a-soft);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1612;
    --bg-2: #231C17;
    --surface: #2A221C;
    --surface-2: #251E19;
    --text: #F2E9DD;
    --text-2: #D8CBBB;
    --muted: #B5A693;
    --line: #3D332A;
    --line-2: #4C4035;
    --terra: #E08A4A;
    --terra-strong: #E89A5E;
    --cta: #E08A4A;
    --cta-hover: #EB9E63;
    --on-cta: #1C1612;
    --blue: #8DB8E0;
    --blue-soft: #1F2C38;
    --gold: #D9B84A;
    --gold-soft: #3A3120;
    --focus: #8DB8E0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .35);
    --shadow-vamos: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-vamos-sm: 0 3px 10px rgba(0, 0, 0, .4);
    --chip-line: #8A7863;
    --on-blue: #1C1612;
    --pill-bg: rgba(28, 22, 18, .82);
    --scrim: rgba(0, 0, 0, .6);
    --shadow-cta: 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-up: 0 -8px 24px rgba(0, 0, 0, .3);
    --t-a: #E08A4A; --t-a-soft: #3B2A1D;
    --t-b: #9DBB72; --t-b-soft: #2A3121;
    --t-c: #D9B84A; --t-c-soft: #3A3120;
    --t-d: #C2AE98; --t-d-soft: #332B23;
    --t-e: #8DB8E0; --t-e-soft: #1F2C38;
    --t-f: #D493B5; --t-f-soft: #36232D;
  }
}

.type-a, [data-type="a"] { --accent: var(--t-a); --accent-soft: var(--t-a-soft); }
.type-b, [data-type="b"] { --accent: var(--t-b); --accent-soft: var(--t-b-soft); }
.type-c, [data-type="c"] { --accent: var(--t-c); --accent-soft: var(--t-c-soft); }
.type-d, [data-type="d"] { --accent: var(--t-d); --accent-soft: var(--t-d-soft); }
.type-e, [data-type="e"] { --accent: var(--t-e); --accent-soft: var(--t-e-soft); }
.type-f, [data-type="f"] { --accent: var(--t-f); --accent-soft: var(--t-f-soft); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.nw { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 100; transform: translateY(-200%);
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { transform: none; box-shadow: var(--shadow); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-sm { width: .95em; height: .95em; }
@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------------------------------------------------------------- header */
.site-header { padding: 14px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-bg { fill: var(--terra); }
.logo-fg { stroke: var(--bg); }
.logo-xl { width: 72px; height: 72px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta {
  display: none; font-weight: 650; font-size: .95rem; text-decoration: none; color: var(--terra-strong);
  padding: 8px 12px; border-radius: 999px;
}
.header-cta:hover { background: var(--surface); }
@media (min-width: 560px) { .header-cta { display: inline-block; } }
.lang-switch { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 34px; padding: 0 8px;
  border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--text-2);
}
.lang-switch a:hover { color: var(--text); background: var(--bg-2); }
.lang-switch a[aria-current] { background: var(--text); color: var(--bg); }
/* 22.11.2026: пять языков (RU ES EN DE AT) — на телефоне уже, чтобы шапка не вылезала за экран (высота нажатия прежняя) */
@media (max-width: 440px) { .lang-switch a { min-width: 34px; padding: 0 4px; letter-spacing: .02em; } }
@media (max-width: 370px) { .lang-switch { gap: 0; } .lang-switch a { min-width: 31px; padding: 0 2px; } }
@media (max-width: 340px) { .lang-switch a { min-width: 28px; padding: 0 1px; font-size: .75rem; letter-spacing: 0; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--btn-h); padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { --btn-h: 58px; padding: 0 28px; font-size: 1.08rem; }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cta); color: var(--on-cta); box-shadow: 0 6px 18px rgba(160, 86, 26, .28); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-secondary { background: transparent; color: var(--blue); border-color: currentColor; }
.btn-secondary:hover { background: var(--blue-soft); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.link-btn { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: .4em; align-items: center; }
.link-btn:hover { color: var(--text); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem); font-weight: 700; }
.section-lead { font-size: 1.08em; color: var(--text-2); max-width: 46em; }
.eyebrow { font-size: .85rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-strong); margin-bottom: .9em; }
.eyebrow-brand { letter-spacing: .06em; }
.disclaimer { font-size: .88rem; color: var(--muted); line-height: 1.55; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 18px; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.hero-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw + 1rem, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: .35em;
}
.hero-lead { font-size: clamp(1.06rem, .6vw + 1rem, 1.3rem); color: var(--text-2); max-width: 34em; margin-bottom: 26px; }
.hero-actions { display: grid; gap: 8px; margin-top: 16px; }
.cta-meta { margin: 0; font-size: .86rem; font-weight: 650; color: var(--muted); text-align: center; }
/* что бесплатно, что платно — под кнопкой старта (20.11.2026) */
.cta-free { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--muted); text-align: center; text-wrap: pretty; }
/* кнопка старта «¡Vamos!» (17.10.2026): жёлтая, как «¡Vamos!» результата; своя раскладка — не зависит от .btn-vamos */
.btn-vamos.hero-go {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; max-width: none;
  padding: 12px 16px 12px 22px; border: 0; border-radius: 18px; background: var(--vamos); color: var(--on-vamos);
  box-shadow: var(--shadow-vamos); text-decoration: none; text-align: left;
}
.btn-vamos.hero-go:hover { background: var(--vamos-hover); text-decoration: none; }
.hero-go .v-head { display: block; font-family: var(--font-serif); font-weight: 800; font-size: 2.05rem; line-height: 1.05; }
.hero-go .v-arr { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--on-vamos-soft); }
.hero-go .v-arr .ico { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .hero-actions { display: inline-grid; justify-items: center; margin-top: 22px; }
  .btn-vamos.hero-go { width: auto; min-width: 300px; }
}
/* обращение основателя — оформление «кавычка» (крупная “ + подпись от руки) */
.fd { position: relative; margin: 0; max-width: 36em; padding: 16px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.fd-q { float: left; height: .56em; margin: .02em .1em 0 -.04em; font: 700 4.3rem/1 Georgia, "Times New Roman", serif; color: var(--terra); }
.fd-text { margin: 0; }
.fd-text p { margin: 0; font-family: var(--font-serif); font-size: 1.03rem; line-height: 1.5; color: var(--text); text-wrap: wrap; }
.fd-key { font-weight: 800; font-size: 1.08em; color: var(--terra-strong); white-space: nowrap; }
.fd-sign { clear: both; margin: 8px 0 0; text-align: right; font-family: var(--font-hand); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--text); }
.fd-name { font-size: 1.14em; }
@media (min-width: 768px) {
  .fd { padding: 22px 26px 18px; }
  .fd-text p { font-size: 1.08rem; }
}
/* ПК с невысоким экраном (1366×768, 1280×800): «¡Vamos!» — на первом экране, как в макете */
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding-top: 16px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(2.2rem, 2.6vw + 1rem, 3.5rem); margin-bottom: 12px; }
  .hero-lead { font-size: 1.04rem; margin-bottom: 18px; }
  .fd { padding: 16px 22px 14px; }
  .fd-text p { font-size: 1.02rem; }
  .hero-actions { margin-top: 14px; }
  .hero-art { max-width: 330px; }
}
/* телефон: обращение и «¡Vamos!» — на первом экране, подзаголовок — под кнопкой */
@media (max-width: 767px) {
  .hero { padding-top: 12px; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .eyebrow { margin-bottom: 8px; }
  .hero-title { margin-bottom: 16px; }
  .hero-lead { order: 1; margin: 24px 0 0; font-size: 1rem; line-height: 1.55; }
  .hero-copy .last-result { order: 2; }
}
/* маленькие телефоны (360×640, 375×667): RU-заголовок в 2 строки, «¡Vamos!» и подпись под ней — на первом экране */
@media (max-width: 380px) {
  .hero { padding-top: 6px; }
  .hero-title { font-size: 2rem; margin-bottom: 12px; }
  .fd { padding: 12px 14px 12px; }
  .fd-text p { font-size: 1rem; line-height: 1.45; }
  .hero-actions { margin-top: 12px; }
}
.last-result { margin-top: 22px; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.last-result a { font-weight: 700; }
.hero-art { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero-art.has-img img { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.road-art { width: 100%; height: auto; display: block; }
.ra-ring { fill: none; stroke: var(--gold); stroke-width: 3; }
.ra-ring-thin { stroke-width: 1.5; opacity: .55; }
.ra-road { fill: none; stroke: var(--text); stroke-width: 34; stroke-linecap: round; }
.ra-dash { fill: none; stroke: var(--bg); stroke-width: 3; stroke-dasharray: 14 16; animation: road 2.4s linear infinite; }
.ra-dot { fill: var(--terra); }
@keyframes road { to { stroke-dashoffset: -60; } }
.hero-slogan {
  position: absolute; right: 0; bottom: 6%; margin: 0; background: var(--surface); padding: 10px 16px; border-radius: 14px;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; box-shadow: var(--shadow); color: var(--terra-strong);
}
@media (max-width: 899px) {
  .hero-art { max-width: 520px; }
  /* картинка вертикальная, машина — чуть ниже середины: кадр 16/10 смещён к ней, плашка — под картинкой */
  .hero-art.has-img img { aspect-ratio: 16 / 10; border-radius: 22px; object-position: 50% 68%; }
  .hero-art.has-img .hero-slogan { position: static; display: inline-block; margin-top: 12px; }
}

/* freedom */
.freedom { background: var(--surface); border-block: 1px solid var(--line); text-align: center; }
.freedom .section-lead { margin-inline: auto; font-size: clamp(1.08rem, .5vw + 1rem, 1.3rem); }

/* steps */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; position: relative; }
.step-num {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--gold-soft); color: var(--text); font-weight: 800; margin-bottom: 12px; border: 2px solid var(--gold);
}
.step-title { font-size: 1.2rem; margin-bottom: .35em; }
.step p { margin: 0; color: var(--text-2); }

/* type cards */
.type-grid { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .type-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.type-card-link {
  display: flex; gap: 16px; align-items: flex-start; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.type-card-link::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.type-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
.type-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.type-card-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.type-card-latin { font-family: var(--font-serif); font-style: italic; color: var(--blue); font-size: .98rem; line-height: 1.35; }
.type-card-motto { color: var(--text-2); font-size: .95rem; line-height: 1.4; }
.type-card-more { margin-top: 8px; font-size: .88rem; font-weight: 700; color: var(--terra-strong); display: inline-flex; gap: .35em; align-items: center; }

.type-visual { flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); overflow: hidden; }
.type-visual img { width: 100%; height: 100%; object-fit: cover; }
.type-visual-sm { width: 64px; height: 64px; border-radius: 16px; }
.type-visual-sm .type-emblem { font-size: 30px; line-height: 1; }
@media (max-width: 879px) { .type-visual-lg { max-width: 300px !important; } }
.type-visual-lg { width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 32px; justify-self: center; box-shadow: var(--shadow-lg); position: relative; }
.type-visual-lg:not(.has-img)::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 3px solid var(--accent); opacity: .5; }
.type-visual-lg:not(.has-img)::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; border: 1.5px solid var(--gold); opacity: .7; }
.type-visual-lg .type-emblem { font-size: clamp(72px, 16vw, 132px); line-height: 1; position: relative; z-index: 1; font-family: var(--font-serif); font-weight: 700; color: var(--accent); }

/* блок отчёта на лендинге — те же тексты и список «Qué incluye», что в блоке отчёта на результате (.rs-checks, .rs-rep-closed);
   телефон: заголовок → список → цена и «продажа не открыта»; ПК: слева заголовок и цена, справа список */
.teaser-card {
  display: grid; gap: 18px; align-items: start;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.teaser-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--gold); opacity: .45; pointer-events: none; z-index: 0; }
.teaser-card > * { position: relative; z-index: 1; min-width: 0; }
@media (max-width: 819px) { .teaser-card::after { display: none; } } /* на телефоне круг ложился на заголовок */
.teaser-intro .eyebrow { margin-bottom: 8px; }
.teaser-intro .section-title { margin: 0 0 8px; }
.teaser-lead { margin: 0; color: var(--text-2); font-size: 1.05rem; line-height: 1.5; max-width: 32em; }
.teaser-inc .rs-sub { margin: 0 0 12px; }
.teaser-fmt { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.teaser-price { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.teaser-note { margin: 12px 0 0; color: var(--text-2); }
.teaser-buy .rs-rep-closed { margin-top: 12px; }
.teaser-buy .btn { margin-top: 18px; }
@media (min-width: 820px) {
  .teaser-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "intro inc" "buy inc"; gap: 22px 48px; }
  .teaser-intro { grid-area: intro; }
  .teaser-inc { grid-area: inc; }
  .teaser-buy { grid-area: buy; }
}


/* ---------------------------------------------------------------- test */
.quiz-page .site-footer { margin-top: 0; }
.quiz-wrap { padding: 12px 0 40px; }
.quiz-container { max-width: 720px; }
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px, 4vw, 34px); box-shadow: var(--shadow); position: relative; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; }
.quiz-progress-text { margin: 0; font-size: .9rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.quiz-bar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 10px 0 22px; }
.quiz-bar-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--terra), var(--gold)); border-radius: 99px; transform-origin: left center; transform: scaleX(0); transition: transform .35s ease; }
.quiz-question { font-family: var(--font-serif); font-size: clamp(1.45rem, 1.6vw + 1rem, 2.05rem); font-weight: 700; line-height: 1.2; margin-bottom: .45em; outline: none; min-height: 2.4em; }
.quiz-hint { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.quiz-options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 18px;
  background: var(--surface-2); color: var(--text); border: 2px solid var(--line); border-radius: 16px;
  font: inherit; font-size: 1.02rem; line-height: 1.35; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .12s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Наведение — только для мыши: на телефоне :hover «залипает» на месте последнего касания и на следующем вопросе выглядит как подсказка. */
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--line-2); background: var(--surface); box-shadow: var(--shadow); } }
.opt:active { transform: scale(.995); }
.opt[aria-pressed="true"] { border-color: var(--terra); background: var(--t-a-soft); box-shadow: 0 0 0 3px rgba(181, 101, 29, .16); }
.opt-key {
  display: none; flex: none; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: var(--muted); border: 1.5px solid var(--line-2); font-variant-numeric: tabular-nums;
}
.opt[aria-pressed="true"] .opt-key { background: var(--terra); color: #fff; border-color: var(--terra); }
.opt-text { flex: 1; }
@media (hover: hover) and (pointer: fine) { .opt-key { display: inline-flex; } }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.quiz-kbd { margin: 0; font-size: .82rem; color: var(--muted); display: none; }
@media (hover: hover) and (pointer: fine) { .quiz-kbd { display: block; } }
.quiz-card.is-leaving { opacity: 0; transform: translateX(-10px); }
.quiz-card { transition: opacity .18s ease, transform .18s ease; }
.quiz-card.is-entering { opacity: 0; transform: translateX(10px); }
.quiz-computing { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--surface); border-radius: 26px; font-weight: 700; }
.quiz-computing p { margin: 0; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--terra); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-disclaimer { text-align: center; border: 0; margin-top: 18px; }
.quiz-free { text-align: center; max-width: 40em; margin: 6px auto 0; }
/* страница «Спасибо»: «¡Vamos!» обратно к машинам (20.11.2026) */
.thanks-cars { margin: 22px auto 0; max-width: 420px; }

/* ---------------------------------------------------------------- result */
/* Результат v3 (17.10.2026). Разметка одна (templates/result.html), раскладку меняет CSS:
   - без JS — все 4 шага лентой (html без .js); .js-only скрыты, .no-js-only — обычные ссылки на coches.net;
   - html.js.rs-phone (js-on.js / result.js; ширина < 768 или телефон боком) — пошаговый режим: виден один шаг,
     шапка и ряд прогресса закреплены сверху, «¡Vamos!» — снизу; выбор — шторкой снизу;
   - ≥ 768 без .rs-phone — ПК, один экран: тип слева, карточка «Tu coche» справа (липкая), ниже уровни, поиск, отчёт.
   Классы — с префиксом rs- (на лендинге есть .step, .steps). Жёлтый — только у «¡Vamos!». */
html:not(.js) .js-only { display: none !important; }
html.js .no-js-only { display: none !important; }
@media (max-width: 767px) { .rs-dk-only { display: none !important; } }
html.rs-phone .rs-dk-only { display: none !important; }
@media (min-width: 768px) { html:not(.rs-phone) .rs-ph-only { display: none !important; } }

.visitor-banner { background: var(--blue); color: #fff; }
.visitor-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 12px; }
.visitor-row p { margin: 0; font-weight: 600; }
.visitor-banner .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
@media (prefers-color-scheme: dark) { .visitor-banner { background: #24384C; } .visitor-banner .btn-primary { color: #1C1612; background: #8DB8E0; } }
.rs-banner { border-radius: 16px; margin: 4px 0 14px; }
.rs-banner .visitor-row { padding: 12px 14px; }

.rs { overflow-x: clip; background: linear-gradient(180deg, var(--accent-soft) 0, var(--bg) 360px); }
/* iOS < 16 не знает overflow: clip — горизонтальную прокрутку (въезд шага, длинные слова) гасит корень; sticky от этого не ломается */
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }
.rs-grid { padding-top: 8px; padding-bottom: 24px; }
.rs-step { padding-bottom: 28px; }
[data-step-h]:focus, [data-step-h]:focus-visible, .rs-pk-title:focus, .rs-desc-more:focus { outline: none; }
.rs-eyebrow { font-size: .72rem; margin: 0 0 6px; }
.fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.rs-sec-t { font-family: var(--font-serif); font-weight: 700; font-size: 1.65rem; line-height: 1.12; letter-spacing: -.015em; margin: 2px 0 6px; }
.rs-sub { font-family: var(--font-serif); font-weight: 700; font-size: 1.22rem; line-height: 1.2; margin: 26px 0 8px; }
.rs-lead { color: var(--text-2); margin: 0 0 14px; font-size: .98rem; }
.rs-txt-btn {
  min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.rs-more {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--blue); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; text-align: left;
}
.rs-more .ico { width: 14px; height: 14px; }
.rs-lvdots { color: var(--gold); font-size: .66rem; letter-spacing: .16em; }
.rs-x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.rs-x .ico { width: 18px; height: 18px; }

/* «¡Vamos!» — единственный жёлтый на сайте; тёмный текст и в тёмной теме (контраст ≈ 8,6:1) */
.btn-vamos {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 14px 16px 14px 22px; border: 0; border-radius: 18px; background: var(--vamos); color: var(--on-vamos);
  box-shadow: var(--shadow-vamos); text-decoration: none; cursor: pointer; text-align: left; font: inherit;
  transition: background-color .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent;
}
.btn-vamos:hover, .rs-bar-v:hover, .btn-go:hover, .vamos-sm:hover { background: var(--vamos-hover); text-decoration: none; }
.btn-vamos:active, .rs-bar-v:active, .btn-go:active, .vamos-sm:active { transform: translateY(1px); }
.v-txt { display: block; min-width: 0; }
.v-head { display: block; font-family: var(--font-serif); font-weight: 800; font-size: 1.95rem; line-height: 1.05; }
.v-sub { display: block; font-size: 1rem; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.v-arr { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--on-vamos-soft); display: grid; place-items: center; }
.v-arr .ico { width: 20px; height: 20px; }
.vamos-sm {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; min-width: 96px; padding: 0 14px;
  border: 0; border-radius: 12px; background: var(--vamos); color: var(--on-vamos); font-family: var(--font-serif); font-weight: 800;
  font-size: 1rem; line-height: 1.1; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.btn-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 6px 18px; border-radius: 16px;
  background: var(--vamos); color: var(--on-vamos); font-weight: 800; font-size: 1.06rem; line-height: 1.2; text-align: center;
  text-decoration: none; box-shadow: var(--shadow-vamos);
}
.btn-go .ico { width: 18px; height: 18px; }

/* чипы выбора: одиночный выбор (role=radio) и переключатели коробки / топлива */
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chips-2x2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--chip-line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .9rem;
  line-height: 1.15; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.rs-chip[aria-checked="true"], .rs-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
@media (hover: hover) and (pointer: fine) { .rs-chip:hover { border-color: var(--blue); } }

/* шаг 1: тип + «Tu coche» */
.rs-type { padding: 2px 0 12px; }
.rs-type-row { display: flex; align-items: center; gap: 12px; }
.rs-type-txt { min-width: 0; }
.rs-emb, .rs-emb-lg { flex: none; object-fit: cover; background: var(--accent-soft); }
.rs-emb { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow); }
.rs-emb-lg { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.rs-emb-ph { display: grid; place-items: center; font-size: 22px; font-family: var(--font-serif); font-weight: 700; color: var(--accent); }
.rs-emb-lg.rs-emb-ph { font-size: 44px; }
.rs-name { font-family: var(--font-serif); font-weight: 700; font-size: 2rem; line-height: 1.02; letter-spacing: -.02em; margin: 0; outline-offset: 4px; }
.rs-name-lg { font-family: var(--font-serif); font-weight: 700; font-size: 2.15rem; line-height: 1; letter-spacing: -.025em; margin: 0 0 6px; }
.rs-latin { font-family: var(--font-serif); font-style: italic; color: var(--blue); font-size: 1.1rem; line-height: 1.3; margin: 0; }
.rs-motto { margin: 6px 0 0; font-style: italic; color: var(--text-2); font-size: .95rem; line-height: 1.35; }
.rs-type-full .rs-motto { font-style: normal; margin-top: 2px; }
.rs-tagline { margin: 18px 0 0; padding-left: 14px; border-left: 4px solid var(--accent); font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
/* объяснение типа на первом экране (21.11.2026): tagline, «Для тебя важно: …», «Подробнее о твоём типе ›», мостик над машинами */
.rs-type .rs-tagline { margin-top: 10px; padding-left: 10px; border-left-width: 3px; font-size: .92rem; line-height: 1.38; }
/* автопортрет на шаге 1 (21.11.2026): длиннее tagline — обычный вес, чуть крупнее */
.rs-type .rs-portrait { font-weight: 500; font-size: .95rem; line-height: 1.45; }
.rs-portrait-p { line-height: 1.5; }
.rs-values { margin: 6px 0 0; font-size: .88rem; line-height: 1.38; color: var(--text-2); }
.rs-values strong { color: var(--text); font-weight: 750; }
.rs-type-more { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-top: 2px; font-size: .88rem; font-weight: 700; color: var(--blue); }
.rs-bridge { margin: 2px 0 6px; font-size: .92rem; font-weight: 650; line-height: 1.38; color: var(--text); }
.rs-car { margin: 0; }
.rs-car-in { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; }
.rs-car-in > .eyebrow { margin-bottom: 8px; }
.rs-car-media { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 9; }
.rs-car-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-car-media.is-ph { aspect-ratio: auto; height: 96px; display: grid; place-items: center; color: var(--muted); }
.rs-car-media.is-ph .ico-car { width: auto; height: 58px; max-width: 70%; opacity: .55; }
.rs-ai-pill { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: var(--pill-bg); color: var(--text); font-size: .68rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.rs-car-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.01em; margin: 12px 0 2px; }
.rs-car-note { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.4; }
.rs-car-specs { margin: 4px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.rs-car-level { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.rs-car-lvl { margin: 0; font-weight: 700; font-size: .88rem; line-height: 1.3; }
.rs-car-go { margin-top: 14px; }
.rs-car-desk { display: grid; gap: 10px; margin-top: 16px; }
.rs-car-desk .btn-vamos { margin-top: 6px; }
.rs-car-desk .fine { margin: 0; }
.rs-car-desk .rs-more { justify-self: start; }
.rs-retline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 12px; border-radius: 12px; background: var(--blue-soft); font-size: .9rem; font-weight: 600; }

/* шаг 2: тип целиком */
.rs-step-2 > .rate { margin: 10px 0 24px; }
.rs-type-full { padding-top: 4px; }
.rs-type-full .rs-type-row { gap: 16px; }
.rs-desc-p { margin: 0 0 8px; }
.rs-traits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rs-traits li { position: relative; padding-left: 20px; line-height: 1.45; }
.rs-traits li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.rs-desc .swatches { margin-bottom: 8px; }
.rs-desc.is-open .rs-rm { display: none; }
.rs-actions .result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-status { min-height: 1.5em; margin: 8px 0 0; font-size: .92rem; color: var(--blue); font-weight: 600; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.swatches li { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .95rem; }
.swatch { flex: none; width: 26px; height: 26px; }
.swatch circle { stroke: rgba(43, 33, 24, .3); stroke-width: 1; }
.type-colors-text { margin: 10px 0 0; font-size: .95rem; color: var(--text-2); }
@media (prefers-color-scheme: dark) { .swatch circle { stroke: rgba(255, 255, 255, .35); } }

/* оценка точности типа (result.js показывает только для своего свежего результата) */
.rate { margin: 28px 0 4px; padding: 18px 20px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 34rem; }
.rate[hidden] { display: none; }
.rate-title { font-size: 1.08rem; font-weight: 750; margin: 0 0 12px; }
.rate-scale { display: flex; gap: 8px; }
.rate-btn {
  flex: 1 1 0; min-width: 44px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--bg);
  font: inherit; font-weight: 800; font-size: 1.1rem; color: var(--text); cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .rate-btn:hover { border-color: var(--accent); } }
.rate-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rate-btn.is-selected { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rate.is-done .rate-btn:not(.is-selected) { opacity: .45; cursor: default; }
.rate.is-done .rate-btn { cursor: default; }
.rate-edges { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 0; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.rate-edges span { flex: 0 1 50%; min-width: 0; overflow-wrap: anywhere; }
.rate-edges span:last-child { text-align: right; }
@media (max-width: 359px) { .rate { padding: 16px 14px 12px; } .rate-scale { gap: 6px; } .rate-edges { font-size: .8rem; gap: 8px; } }
.rate-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 650; color: var(--blue); }
.rate-status:empty { min-height: 0; margin: 0; }
.rate-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
/* оценка в конце шага 1, под машинами (20.11.2026) и ссылка на анкету после оценки */
.rate.rate-cars { margin: 22px 0 6px; }
.rate-more { margin: 8px 0 0; }
.rate-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--blue); }
.rate-more .ico { width: 16px; height: 16px; flex: none; }
/* два необязательных вопроса под «Tu siguiente paso» (23.11.2026): спокойнее «¡Vamos!» — без жёлтого, мелкие кнопки */
.ask { margin: 4px 0 18px; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 34rem; }
.ask[hidden] { display: none; }
/* на телефоне блок стоит под машинами, после оценки 1–5 (result.js) */
.rs-cars .ask { margin: 18px 0 6px; }
.ask-t { margin: 0; font-size: 1rem; font-weight: 750; }
.ask-note { margin: 2px 0 0; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.ask-q { margin: 12px 0 6px; font-size: .92rem; font-weight: 650; }
.ask-opts { display: grid; gap: 6px; }
.ask-opts-age { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ask-opts-when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ask-btn {
  min-width: 0; min-height: 44px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg);
  font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; color: var(--text); cursor: pointer; overflow-wrap: anywhere;
  transition: background-color .15s ease, border-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .ask-btn:hover { border-color: var(--accent); } }
.ask-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ask-btn.is-selected { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ask-opts.is-done .ask-btn { cursor: default; }
.ask-opts.is-done .ask-btn:not(.is-selected) { opacity: .45; }
.ask-status { min-height: 1.4em; margin: 10px 0 0; font-weight: 650; color: var(--blue); }
.ask-status:empty { min-height: 0; margin: 0; }
@media (min-width: 560px) { .ask-opts-age { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* шаг 3: машины по уровням */
.rs-levels { display: grid; gap: 12px; }
.rs-level { position: relative; padding: 12px; border: 2px solid transparent; border-radius: 20px; transition: border-color .2s, background-color .2s; }
.rs-level.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.rs-level-h { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 10px; }
.rs-level-t { margin: 0; font-size: 1.06rem; font-weight: 800; display: flex; align-items: baseline; gap: 8px; line-height: 1.25; letter-spacing: 0; }
.rs-level-r { color: var(--text-2); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rs-pill-tp {
  margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1.5px solid var(--accent);
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.rs-models { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rs-model {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "img body" "foot foot"; gap: 6px 12px;
  padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.rs-model-img { grid-area: img; position: relative; width: 88px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--bg-2); overflow: hidden; }
.rs-model-img.rs-ph { display: grid; place-items: center; color: var(--muted); }
.rs-model-img.rs-ph .ico-car { width: 70%; height: auto; opacity: .55; }
.rs-model-b { grid-area: body; min-width: 0; }
.rs-model-name { margin: 0; font-weight: 750; font-size: 1rem; line-height: 1.25; }
.rs-model-note { margin: 3px 0 0; font-size: .86rem; line-height: 1.4; color: var(--text-2); }
.rs-model-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.rs-model-specs { margin: 0; flex: 1 1 auto; min-width: 0; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.rs-lv-nav {
  position: sticky; top: calc(var(--rs-head-h, 0px) + 44px); z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin: 0 calc(-1 * var(--gutter)) 10px; padding: 6px 12px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.rs-lv-nav button {
  min-height: 44px; padding: 2px 4px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font: inherit; font-weight: 700;
  font-size: .86rem; line-height: 1.1; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.rs-lvn-d { color: var(--gold); font-size: .56rem; letter-spacing: .12em; }
.rs-lv-nav button[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.rs-lv-nav .is-tp span:last-child::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: .12em; }
.cars-ai-note { margin: 18px 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted); max-width: 46em; }

/* шаг 4: поиск, отчёт, другие типы */
.rs-srch-grid { display: grid; gap: 16px; }
.rs-srch-go { display: grid; gap: 10px; align-content: start; }
.rs-srch-go .fine { margin: 0; }
.rs-as24 { margin: 0; font-size: .92rem; }
.rs-as24 a { color: var(--blue); font-weight: 650; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
.rs-pg { display: grid; gap: 8px; margin-top: 18px; align-content: start; }
.rs-picker > .rs-pg:first-child { margin-top: 0; }
.rs-pg-t { margin: 0; font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rs-pg-hint { margin: 0; font-size: .86rem; color: var(--text-2); min-height: 1.3em; }
.rs-pg-km:not([hidden]) { animation: rsFade .22s ease-out; }
@keyframes rsFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rs-pg-cars { margin: 0; font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.rs-mini-in { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--bg-2); }
.rs-mini-m { position: relative; width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.rs-mini-m img { width: 100%; height: 100%; object-fit: cover; }
.rs-mini-m .ico-car { width: 76%; height: auto; opacity: .6; }
.rs-mini-in p { margin: 0; min-width: 0; font-size: .8rem; line-height: 1.3; color: var(--text-2); }
.rs-mini-in strong { display: block; color: var(--text); font-size: .95rem; line-height: 1.25; }
.rs-more-t {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 6px 0;
  border: 0; border-top: 1px solid var(--line); background: none; color: var(--blue); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; text-align: left;
}
.rs-more-t .ico { transition: transform .2s; }
.rs-more-t[aria-expanded="true"] .ico { transform: rotate(180deg); }
.rs-more-in { display: grid; gap: 8px; padding-bottom: 4px; }
.rs-more-in .rs-pg-t:not(:first-child) { margin-top: 8px; }
.rs-pg-sum { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: .88rem; font-weight: 650; line-height: 1.4; }
.rs-rep { margin-top: 32px; padding: 20px; background: var(--surface); border: 2px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow-lg); }
.rs-rep .rs-sec-t { font-size: 1.5rem; }
.rs-rep .eyebrow { font-size: .72rem; margin-bottom: 6px; }
.btn-rep {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 54px; padding: 8px 14px; line-height: 1.25;
  text-align: center; border: 0; border-radius: 999px; background: var(--cta); color: var(--on-cta); font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer; box-shadow: var(--shadow-cta);
}
.btn-rep:hover { background: var(--cta-hover); }
/* телефон ≤ 420 px: «Obtener el informe completo · 2 €» со стрелкой — в одну строку (на 390 px с запасом; уже — перенос, как раньше) */
@media (max-width: 420px) { .btn-rep { font-size: .95rem; } }
.btn-rep span { text-wrap: balance; }
.btn-rep .ico { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.btn-rep[aria-expanded="true"] .ico { transform: rotate(180deg); }
html.js .rs-rep-more:not(.is-open) { display: none; }
.rs-rep-more { margin-top: 18px; }
.rs-rep-more .rs-sub { margin-top: 0; }
.rs-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rs-checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.rs-ck { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.rs-ck .ico { width: 14px; height: 14px; }
.rs-checks strong { display: block; font-size: .95rem; line-height: 1.3; }
.rs-ck-t { display: block; font-size: .88rem; color: var(--text-2); line-height: 1.4; }
.rs-rep-choice { margin: 14px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: .88rem; font-weight: 650; line-height: 1.4; }
.rs-rep-fmt { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }
.rs-rep-closed { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line-2); font-size: .9rem; font-weight: 600; line-height: 1.4; }
.rs-rep .buy-form { margin-top: 18px; }
/* «Tu siguiente paso» на шаге 1, сразу под типом (20.11.2026): главная — жёлтая «¡Vamos!», отчёт — контурная кнопка ниже ростом
   и строка мелким шрифтом; отчёт не должен быть заметнее «¡Vamos!» (решение Андрея) */
.rs-next { margin: 0 0 14px; display: grid; gap: 8px; }
.rs-next-t { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.btn-vamos.rs-next-go { padding: 10px 14px 10px 18px; border-radius: 16px; }
.rs-next-go .v-head { font-size: 1.35rem; }
.rs-next-rep { display: grid; gap: 4px; }
.rs-next-rb {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--cta); background: transparent; color: var(--terra-strong); font-weight: 700; font-size: .95rem; line-height: 1.25;
  text-align: center; text-decoration: none;
}
.rs-next-rb:hover { background: var(--surface); text-decoration: none; }
.rs-next-rb .ico { width: 16px; height: 16px; flex: none; }
.rs-next-line { margin: 0; font-size: .78rem; line-height: 1.35; color: var(--muted); text-align: center; text-wrap: pretty; }
.rs-oth { margin-top: 32px; }
.rs-oth .rs-sub { margin-top: 0; }
.rs-disc { margin-top: 24px; }

/* форма оплаты (только при checkout_enabled) */
.terms-note { font-size: .88rem; color: var(--text-2); margin: 14px 0 0; text-align: center; }
.buy-form { border-top: 1px solid var(--line); padding-top: 20px; }
.order-summary { margin: 0 0 16px; padding: 12px 14px; background: var(--bg-2); border-radius: 12px; font-size: .95rem; line-height: 1.5; color: var(--text-2); }
.order-summary strong { color: var(--text); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent-box { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--cta); cursor: pointer; }
.consent-label { font-size: .95rem; line-height: 1.5; cursor: pointer; }
.consent-hint { font-size: .88rem; color: var(--terra-strong); margin: 8px 0 14px 36px; font-weight: 600; }
.buy-form.is-ready .consent-hint { visibility: hidden; }
.consent-hint.is-alert { color: #B3261E; }
@media (prefers-color-scheme: dark) { .consent-hint.is-alert { color: #F2B8B5; } }
/* «Оплатить» без галочки (21.11.2026): рамка вокруг согласия, пока его не отметят */
.buy-form.need-consent .consent { margin: -10px -10px 0; padding: 10px; border-radius: 12px; box-shadow: 0 0 0 2px #B3261E; background: rgba(179, 38, 30, .07); }
@media (prefers-color-scheme: dark) { .buy-form.need-consent .consent { box-shadow: 0 0 0 2px #F2B8B5; background: rgba(242, 184, 181, .1); } }
.secure-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* other types */
.other-types { list-style: none; margin: 14px 0 28px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .other-types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .other-types { grid-template-columns: repeat(5, 1fr); } }
.other-types a {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; height: 100%; min-height: 56px;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit;
}
.other-types a:hover { border-color: var(--accent); }
.ot-emblem { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.ot-emblem img { width: 100%; height: 100%; object-fit: cover; }
.ot-name { font-weight: 750; font-family: var(--font-serif); line-height: 1.2; }
.ot-motto { font-size: .82rem; color: var(--muted); line-height: 1.3; }

/* поверх страницы: полоса возврата, нижняя панель, шторка / панель выбора (только с JS) */
.rs-ret, .rs-bar { display: none; }
.rs-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity .25s ease-out; }
.rs-scrim.is-in { opacity: 1; }
html:not(.rs-phone) .rs-scrim { display: none; }
.rs-ret p { margin: 0; flex: 1; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.rs-ret-b {
  min-height: 44px; padding: 0 12px; white-space: nowrap; border: 2px solid var(--blue); border-radius: 999px; background: var(--surface);
  color: var(--blue); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.rs-ret-rate { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rs-ret-rate > span { flex: 1 0 100%; font-size: .8rem; font-weight: 650; color: var(--text-2); }
.rs-rate-btns { display: flex; gap: 6px; }
.rs-rate-b { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--chip-line); background: var(--surface); font: inherit; font-weight: 800; font-size: .98rem; color: var(--text); cursor: pointer; }
.rs-rate-b[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.rs-rate-b[aria-disabled="true"]:not([aria-pressed="true"]) { opacity: .45; cursor: default; }
.rs-bar-v {
  flex: 1 1 auto; min-width: 0; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 10px 6px 18px; border: 0; border-radius: 16px; background: var(--vamos); color: var(--on-vamos); font: inherit;
  text-decoration: none; text-align: left; cursor: pointer; box-shadow: var(--shadow-vamos); -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .15s;
}
.rs-bar-v .v-head { font-size: 1.38rem; }
/* подпись — до двух строк (RU «Новая, км 0 или с пробегом», узкие экраны 320 px), без обрезки многоточием */
.rs-bar-v .v-sub { font-size: .78rem; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rs-bar-v .v-arr { width: 38px; height: 38px; }
.rs-bar-v .v-arr .ico { width: 18px; height: 18px; }
.rs-bar-n {
  flex: 0 0 30%; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px;
  border: 2px solid var(--chip-line); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700;
  font-size: .95rem; cursor: pointer;
}
.rs-bar-n .ico { width: 16px; height: 16px; }
/* 20.11.2026: подпись говорит, куда ведёт («Sobre tu tipo», «Tu búsqueda») — до двух строк, ровно; на 360 px — мельче, но видна;
   только совсем узкие экраны (< 340 px) — одна стрелка */
.rs-nx-l { line-height: 1.12; text-align: center; text-wrap: balance; }
@media (max-width: 374px) { .rs-bar-n { font-size: .85rem; } }
@media (max-width: 339px) { .rs-nx-l { display: none; } .rs-bar-n { flex: 0 0 56px; } }
.rs-pk { position: fixed; z-index: 41; display: flex; flex-direction: column; background: var(--surface); color: var(--text); }
.rs-pk.is-sheet {
  left: 0; right: 0; bottom: 0; max-height: 90vh; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .25s ease-out;
}
@supports (height: 90dvh) { .rs-pk.is-sheet { max-height: 90dvh; } }
.rs-pk.is-sheet.is-in { transform: none; }
.rs-pk.is-drag { transition: none; }
.rs-pk.is-pop {
  width: 400px; max-height: min(680px, calc(100vh - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px); transition: opacity .16s ease-out, transform .16s ease-out;
}
.rs-pk.is-pop.is-in { opacity: 1; transform: none; }
.rs-pk-grab { display: flex; justify-content: center; padding: 8px 0 2px; touch-action: none; cursor: grab; }
.rs-pk-grab span { width: 36px; height: 4px; border-radius: 99px; background: var(--line-2); }
.rs-pk.is-pop .rs-pk-grab { display: none; }
.rs-pk-head { position: relative; padding: 6px 56px 10px 16px; touch-action: none; }
.rs-pk.is-pop .rs-pk-head { padding-top: 16px; touch-action: auto; }
.rs-pk-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.42rem; line-height: 1.15; margin: 0; }
.rs-pk-sub { margin: 3px 0 0; color: var(--text-2); font-size: .88rem; font-weight: 650; line-height: 1.35; }
.rs-pk-x { position: absolute; top: 0; right: 6px; }
.rs-pk.is-pop .rs-pk-x { top: 8px; }
.rs-pk-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px 14px; }
.rs-pk-nolink { margin: 0 0 12px; padding: 9px 12px; border-radius: 12px; background: var(--gold-soft); font-size: .86rem; line-height: 1.4; }
.rs-pk-foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.rs-pk-foot .fine { margin-top: 8px; text-align: center; }
.rs-pk-foot .rs-as24 { text-align: center; }
html.rs-sheet-open, html.rs-sheet-open body { overflow: hidden; }

/* ---- телефон: пошаговый режим (html.js.rs-phone) */
html.rs-phone body.page-result { padding-bottom: var(--rs-bar-h, 76px); }
html.rs-phone body.page-result .site-header { position: sticky; top: 0; z-index: 25; padding: 6px 0; background: var(--bg); }
html.rs-phone body.page-result .header-cta { display: none; }
html.rs-phone body.page-result .site-footer { margin-top: 0; }
.rs-prog { display: none; }
html.rs-phone .rs-prog {
  display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; position: sticky; top: var(--rs-head-h, 0px); z-index: 24;
  height: 44px; padding: 0 14px 0 4px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.rs-back { width: 44px; height: 44px; border: 0; padding: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.rs-back.is-off { visibility: hidden; }
.rs-dots { display: flex; justify-content: center; }
.rs-dot { width: 44px; height: 44px; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.rs-dot span { display: block; width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .25s ease-out, background-color .25s; }
.rs-dot[aria-current] span { width: 26px; background: var(--accent); }
.rs-count { text-align: right; font-size: .82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
html.rs-phone .rs-grid { padding-top: 6px; padding-bottom: 0; touch-action: pan-y pinch-zoom; }
html.rs-phone .rs-step:not(.is-active) { display: none; }
html.rs-phone .rs-step.rs-in-right { animation: rsInR .25s ease-out; }
html.rs-phone .rs-step.rs-in-left { animation: rsInL .25s ease-out; }
@keyframes rsInR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes rsInL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
/* шаг 1: карточка заканчивается прямо над нижней панелью — «¡Vamos!» сразу под машиной */
html.rs-phone .rs-step-1 {
  display: flex; flex-direction: column; padding-bottom: 12px;
  min-height: calc(100vh - var(--rs-head-h, 46px) - 44px - var(--rs-bar-h, 76px));
}
@supports (height: 100svh) { html.rs-phone .rs-step-1 { min-height: calc(100svh - var(--rs-head-h, 46px) - 44px - var(--rs-bar-h, 76px)); } }
html.rs-phone .rs-step-1 .rs-car { flex: 1 1 auto; display: flex; flex-direction: column; }
html.rs-phone .rs-car-in { flex: 1 1 auto; display: flex; flex-direction: column; }
html.rs-phone .rs-car-main:not([hidden]) { flex: 1 1 auto; display: flex; flex-direction: column; }
html.rs-phone .rs-car-main > :not(.rs-car-media), html.rs-phone .rs-car-in > :not(.rs-car-main) { flex-shrink: 0; }
html.rs-phone .rs-car-media { flex: 1 1 0; aspect-ratio: auto; min-height: 120px; max-height: 300px; }
html.rs-phone .rs-car-media.is-ph { flex: none; min-height: 0; height: 96px; }
html.rs-phone .rs-step-1:has(.rs-car-main.is-noimg:not([hidden])) .rs-car { flex: 0 0 auto; }
html.rs-phone .rs-step-1:has(.rs-car-main.is-noimg:not([hidden])) .rs-type { margin-block: auto; }
html.rs-phone .rs-car-note, html.rs-phone .rs-model-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-height: 599px) { html.rs-phone .rs-type .rs-motto { display: none; } }
html.rs-phone .rs-desc:not(.is-open) .rs-desc-more { display: none; }
html.rs-phone .rs-final, html.rs-phone .rs-final-note { display: none; }
html.rs-phone .rs-bar {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-up);
}
html.rs-phone.rs-sheet-open .rs-bar { visibility: hidden; }
html.rs-phone .rs-ret:not([hidden]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; position: fixed; left: 0; right: 0; bottom: var(--rs-bar-h, 76px); z-index: 29;
  padding: 8px 6px 8px 16px; background: var(--blue-soft); border-top: 1px solid var(--line); box-shadow: var(--shadow-up);
}

/* ---- v4 (18.10.2026): машины в трёх бюджетах (шаг 1) — главная карточка + альтернативы по кнопке, «Lujo» свёрнут */
.rs-cars { margin-top: 6px; }
.rs-cars-h .eyebrow { margin-bottom: 4px; }
.rs-cars-h .rs-sec-t { margin-bottom: 2px; }
.rs-cars-note { margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.rs-explain { margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); color: var(--text-2); font-size: .86rem; line-height: 1.4; }
.rs-buds { display: grid; gap: 18px; }
.rs-bud { display: grid; gap: 8px; align-content: start; min-width: 0; }
.rs-bud-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rs-bud-t { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 1rem; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.rs-bud-g { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rs-cc {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "media body" "act act"; gap: 6px 12px;
  padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 0;
}
.rs-cc-media { grid-area: media; position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; align-self: start; }
.rs-cc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-cc-media.is-ph { display: grid; place-items: center; color: var(--muted); }
.rs-cc .rs-ai-pill { display: none; } /* на маленькой картинке плашка закрывает машину; подпись об ИИ — под блоком машин */
.rs-cc-media.is-ph .ico-car { width: 70%; height: auto; opacity: .55; }
.rs-cc-b { grid-area: body; min-width: 0; }
.rs-cc-name { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.rs-cc-price { margin: 2px 0 0; font-weight: 750; font-size: .95rem; font-variant-numeric: tabular-nums; }
.rs-cc-used { font-weight: 400; color: var(--muted); font-size: .8rem; }
.rs-cc-note { margin: 3px 0 0; font-size: .84rem; line-height: 1.38; color: var(--text-2); }
.rs-cc-why { margin: 6px 0 0; padding: 6px 9px; border-radius: 10px; background: var(--bg-2); font-size: .82rem; line-height: 1.38; }
.rs-cc-why strong { color: var(--terra-strong); font-weight: 750; } /* аудит 18.10: золото/зелень типов A–C на светлом фоне < 4,5:1 */
.rs-cc-specs { margin: 5px 0 0; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.rs-cc-act { grid-area: act; display: grid; gap: 3px; margin-top: 2px; }
.rs-cc-cap { font-size: .74rem; color: var(--muted); text-align: center; }
.vamos-c {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 8px 6px 16px;
  border: 0; border-radius: 14px; background: var(--vamos); color: var(--on-vamos); font-family: var(--font-serif); font-weight: 800;
  font-size: 1.15rem; line-height: 1.1; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-vamos-sm); -webkit-tap-highlight-color: transparent;
}
.vamos-c:hover { background: var(--vamos-hover); text-decoration: none; }
.vamos-c:active { transform: translateY(1px); }
.vamos-c .v-arr { width: 32px; height: 32px; }
.vamos-c .v-arr .ico { width: 16px; height: 16px; }
.rs-cc-alt { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "media body act"; align-items: center; padding: 8px; box-shadow: none; }
.rs-cc-alt .rs-cc-name { font-size: .98rem; }
.rs-cc-alt .rs-cc-why { margin-top: 3px; padding: 0; background: none; color: var(--text-2); font-size: .76rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-cc-alt .rs-cc-act { margin: 0; justify-items: end; }
.rs-cc-alt .vamos-c { min-height: 44px; font-size: .95rem; padding: 4px 6px 4px 12px; gap: 6px; }
.rs-cc-alt .vamos-c .v-arr { width: 26px; height: 26px; }
.rs-cc-alt .rs-cc-cap { font-size: .68rem; text-align: right; }
.rs-alts { display: grid; gap: 8px; }
.js .rs-alts:not(.is-open) { display: none; }
.rs-alts-b { justify-self: stretch; text-align: left; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: transparent; color: var(--text-2); font: inherit; font-size: .86rem; cursor: pointer; }
.rs-alts-b:hover { border-style: solid; }
.rs-alts-b[aria-expanded="true"] { border-style: solid; }
.rs-lux { margin-top: 16px; }
.rs-lux-b { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-weight: 750; cursor: pointer; text-align: left; }
.rs-lux-b .rs-lux-g { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .84rem; }
.rs-lux-b .ico { width: 16px; height: 16px; transition: transform .2s; }
.rs-lux.is-open .rs-lux-b .ico { transform: rotate(180deg); }
.js .rs-lux:not(.is-open) .rs-lux-in { display: none; }
.rs-lux-in { margin-top: 12px; }
.rs-cars .rs-retline { margin-top: 14px; }

/* ---- ПК (≥ 768 px): один экран */
@media (min-width: 768px) {
  html:not(.rs-phone) .rs-grid {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 56px; align-items: start;
    grid-template-areas: "banner banner" "type type" "cars cars" "desc rate" "desc actions" "search search" "report report" "others others" "disc disc";
    padding-top: 8px; padding-bottom: 56px;
  }
  html:not(.rs-phone) .rs-step { display: contents; }
  html:not(.rs-phone) .rs-banner { grid-area: banner; }
  html:not(.rs-phone) .rs-type { grid-area: type; padding-top: 20px; }
  html:not(.rs-phone) .rs-type-row { gap: 24px; }
  html:not(.rs-phone) .rs-emb { width: 116px; height: 116px; border-radius: 28px; box-shadow: var(--shadow-lg); }
  html:not(.rs-phone) .rs-emb.rs-emb-ph { font-size: 56px; }
  html:not(.rs-phone) .rs-name { font-size: clamp(2.6rem, 3.4vw + 1rem, 4.3rem); line-height: 1; margin-bottom: 10px; }
  html:not(.rs-phone) .rs-latin { font-size: 1.4rem; }
  html:not(.rs-phone) .rs-type .rs-motto { font-style: normal; font-size: 1.08rem; margin-top: 2px; }
  html:not(.rs-phone) .rs-tagline { font-size: 1.2rem; margin-top: 24px; max-width: 34em; }
  html:not(.rs-phone) .rs-car { grid-area: car; align-self: stretch; margin-top: 20px; }
  html:not(.rs-phone) .rs-car-in { position: sticky; top: 16px; padding: 20px; border-radius: 24px; box-shadow: var(--shadow-lg); }
  html:not(.rs-phone) .rs-car-media { aspect-ratio: auto; height: 210px; }
  html:not(.rs-phone) .rs-car-media.is-ph { height: 96px; }
  html:not(.rs-phone) .rs-car-name { font-size: 1.7rem; margin-top: 14px; }
  html:not(.rs-phone) .rs-car-note { font-size: .95rem; }
  html:not(.rs-phone) .rs-step-2 > .rate { grid-area: rate; margin: 28px 0 4px; }
  html:not(.rs-phone) .rs-desc { grid-area: desc; padding-top: 6px; max-width: 42em; }
  html:not(.rs-phone) .rs-sub { font-size: 1.4rem; margin-top: 34px; }
  html:not(.rs-phone) .rs-oth .rs-sub, html:not(.rs-phone) .rs-rep-more .rs-sub { margin-top: 0; }
  html:not(.rs-phone) .rs-traits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  html:not(.rs-phone) .rs-actions { grid-area: actions; }
  html:not(.rs-phone) .rs-cars { grid-area: cars; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: end; }
  html:not(.rs-phone) .rs-cars > :not(.rs-cars-h):not(.rs-explain) { grid-column: 1 / -1; }
  html:not(.rs-phone) .rs-explain { margin-bottom: 14px; }
  html:not(.rs-phone) .rs-cc-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body" "act"; padding: 0 0 12px; overflow: hidden; }
  html:not(.rs-phone) .rs-cc-main .rs-cc-media { aspect-ratio: 16 / 10; border-radius: 0; }
  html:not(.rs-phone) .rs-cc-main .rs-ai-pill { display: inline-block; }
  html:not(.rs-phone) .rs-cc-main .rs-cc-b, html:not(.rs-phone) .rs-cc-main .rs-cc-act { padding: 0 12px; }
  html:not(.rs-phone) .rs-cc-main .rs-cc-name { font-size: 1.2rem; margin-top: 4px; }
  html:not(.rs-phone) .rs-lv { grid-area: levels; margin-top: 64px; }
  html:not(.rs-phone) .rs-sec-t { font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.4rem); }
  html:not(.rs-phone) .rs-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-top: 8px; }
  html:not(.rs-phone) .rs-level-h { min-height: 52px; align-items: flex-start; }
  html:not(.rs-phone) .rs-level-r { flex-basis: 100%; }
  html:not(.rs-phone) .rs-pill-tp { position: absolute; top: -12px; right: 12px; margin: 0; }
  html:not(.rs-phone) .rs-model { grid-template-columns: 1fr; grid-template-areas: "img" "body" "foot"; padding: 0; overflow: hidden; gap: 0; }
  html:not(.rs-phone) .rs-model-img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  html:not(.rs-phone) .rs-model-b { padding: 12px 14px 4px; }
  html:not(.rs-phone) .rs-model-foot { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 14px 14px; }
  html:not(.rs-phone) .vamos-sm { min-width: 120px; font-size: 1.06rem; }
  html:not(.rs-phone) .rs-srch { grid-area: search; margin-top: 56px; padding: 28px 32px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
  html:not(.rs-phone) .rs-srch .rs-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; align-items: start; }
  html:not(.rs-phone) .rs-srch .rs-pg { margin: 0; }
  html:not(.rs-phone) .rs-srch .rs-pg-sum { grid-column: 1 / -1; margin: 0; }
  html:not(.rs-phone) .rs-srch .rs-chips-2x2 { display: flex; flex-wrap: wrap; }
  html:not(.rs-phone) .rs-rep { grid-area: report; margin-top: 40px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
  html:not(.rs-phone) .rs-rep .rs-sec-t { font-size: clamp(1.8rem, 1.2vw + 1.2rem, 2.3rem); }
  html:not(.rs-phone) .btn-rep { width: auto; display: inline-flex; margin-top: 4px; }
  html:not(.rs-phone) .rs-rep-more { margin: 0; }
  /* «Tu siguiente paso» (20.11.2026): на ПК — справа от типа */
  html:not(.rs-phone) .rs-grid:has(.rs-next) {
    grid-template-areas: "banner banner" "type next" "cars cars" "desc rate" "desc actions" "search search" "report report" "others others" "disc disc";
  }
  html:not(.rs-phone) .rs-grid:has(.rs-next) .rs-next { grid-area: next; align-self: center; margin: 20px 0 0; }
  /* два вопроса (23.11.2026): на ПК — справа, под «Tu siguiente paso»; скрытый блок места не занимает */
  html:not(.rs-phone) .rs-grid:has(.rs-next):has(.ask:not([hidden])) {
    grid-template-areas: "banner banner" "type next" "type ask" "cars cars" "desc rate" "desc actions" "search search" "report report" "others others" "disc disc";
  }
  html:not(.rs-phone) .rs-grid:has(.rs-next):has(.ask:not([hidden])) .rs-next { align-self: end; }
  html:not(.rs-phone) .ask { grid-area: ask; align-self: start; margin: 16px 0 0; }
  html:not(.rs-phone) .rs-oth { grid-area: others; margin-top: 48px; }
  html:not(.rs-phone) .rs-disc { grid-area: disc; max-width: 60em; }
}
@media (min-width: 900px) {
  html:not(.rs-phone) .rs-buds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
  html:not(.rs-phone) .rs-lux-in .rs-bud { max-width: calc((100% - 32px) / 3); }
}
@media (min-width: 1024px) {
  html:not(.rs-phone) .rs-levels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html:not(.rs-phone) .rs-srch-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 6px; }
}
/* ПК с невысоким экраном (1366×768, 1280×800, 1536×864, 1440×900): «¡Vamos!» карточки — на первом экране */
@media (min-width: 768px) and (max-height: 940px) {
  html:not(.rs-phone) .rs-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 40px; }
  html:not(.rs-phone) .rs-type { padding-top: 8px; }
  html:not(.rs-phone) .rs-emb { width: 96px; height: 96px; border-radius: 24px; }
  html:not(.rs-phone) .rs-name { font-size: clamp(2.4rem, 2.2vw + 1rem, 3.5rem); }
  html:not(.rs-phone) .rs-car { margin-top: 8px; }
  html:not(.rs-phone) .rs-car-in { padding: 16px 16px 14px; }
  html:not(.rs-phone) .rs-car-media { height: 140px; }
  html:not(.rs-phone) .rs-car-name { font-size: 1.45rem; margin-top: 10px; }
  html:not(.rs-phone) .rs-car-desk { gap: 8px; margin-top: 10px; }
  html:not(.rs-phone) .rs-car-desk .rs-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  html:not(.rs-phone) .rs-car-desk .rs-chip { padding: 4px 6px; font-size: .74rem; }
  html:not(.rs-phone) .rs-car-desk .btn-vamos { margin-top: 2px; padding-top: 10px; padding-bottom: 10px; }
  /* v4 (аудит 18.10): цена и «¡Vamos!» главной машины бюджета — на первом экране; с 21.11.2026 (решение Андрея) девиз и tagline
     снова видны — объяснение типа важнее, главная машина бюджета может уйти ниже первого экрана */
  html:not(.rs-phone) .rs-type .rs-motto { font-size: 1rem; }
  html:not(.rs-phone) .rs-type .rs-tagline { margin-top: 10px; font-size: 1rem; }
  html:not(.rs-phone) .rs-cars { margin-top: 8px; }
  html:not(.rs-phone) .rs-cc-main .rs-cc-media { height: 88px; aspect-ratio: auto; }
  html:not(.rs-phone) .rs-cc-main .rs-cc-note { display: none; }   /* подзаголовок модели — есть в PDF; «почему» и характеристики остаются */
  /* приёмка 18.10: ¡Vamos! главной машины — на первом экране 1366×768 */
  html:not(.rs-phone) .rs-latin { display: none; }
  html:not(.rs-phone) .rs-cars-note, html:not(.rs-phone) .rs-explain { margin-top: 2px; margin-bottom: 4px; }
}

/* ---------------------------------------------------------------- root */
.lang-root .site-footer-min { border-top: 0; }
.root-hero { padding: clamp(40px, 9vh, 96px) 0 40px; }
.root-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.root-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
.root-title span + span::before { content: " · "; color: var(--gold); }
.root-choose { color: var(--muted); font-weight: 600; margin-bottom: 28px; }
.root-langs { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; text-align: left; max-width: 560px; }
.root-lang {
  display: grid; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.root-lang:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--terra); text-decoration: none; }
.root-lang-name { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-strong); }
.root-lang-hook { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.root-lang-desc { color: var(--muted); font-size: .95rem; }
.root-lang-go { margin-top: 6px; font-weight: 700; color: var(--blue); display: inline-flex; gap: .4em; align-items: center; }
html.is-redirecting body { visibility: hidden; }

/* ---------------------------------------------------------------- legal, thanks, 404 */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.legal-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text-2); font-size: .9rem; font-weight: 600; }
.legal-tabs a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.legal-title { font-family: var(--font-serif); font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); overflow-wrap: anywhere; hyphens: auto; }
.prose p { font-size: 1.05em; }
.legal-prose { max-width: none; margin-bottom: 32px; }
.legal-prose h2 { font-family: var(--font-serif); font-size: 1.45rem; margin-top: 1.6em; }
.legal-prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal-prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.legal-prose th, .legal-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-prose li { margin-bottom: .4em; }
/* пометки юриста [VERIFICAR …] — видны на превью; strict-сборка их не пропускает */
mark.verify { background: #FFE58A; color: #4A3000; padding: 0 .2em; border-radius: 3px; }
.legal-page .notice { margin-bottom: 28px; }

.thanks h1 { font-family: var(--font-serif); font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--t-b-soft); color: var(--t-b); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.thanks-icon .ico { width: 34px; height: 34px; }
.thanks-type { font-size: 1.1rem; }
.thanks-sub { font-size: 1.25rem; margin-top: 18px; }
.thanks-other { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.thanks-help { margin-top: 28px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; }
.thanks-help p:last-child { margin-bottom: 0; }
.thanks-help code { font-size: .85em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.manual-form { display: grid; gap: 14px; max-width: 460px; margin-top: 12px; }
.field { display: grid; gap: 6px; font-weight: 650; font-size: .95rem; }
.field select {
  font: inherit; font-weight: 500; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line-2);
  background: var(--surface); color: var(--text); width: 100%;
}
.notfound-code { font-family: var(--font-serif); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; color: var(--terra); line-height: 1; margin-bottom: 12px; }
.notfound-lang { margin-bottom: 18px; }
.notfound-lang h1, .notfound-lang h2 { font-size: 1.4rem; margin-bottom: .2em; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0 28px; font-size: .9rem; color: var(--text-2); }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; } }
.footer-slogan { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--terra-strong); margin: 12px 0 6px; }
.footer-note { color: var(--muted); font-size: .85rem; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal a, .footer-meta a { color: var(--text-2); }
.footer-meta p { margin: 0 0 6px; }
.footer-meta a.footer-wa { display: inline-flex; align-items: center; gap: .4em; min-height: 32px; }
.footer-copy { color: var(--muted); }
.site-footer-min { padding: 22px 0; background: transparent; }
.site-footer-min p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .result-actions, .visitor-banner, .rs-prog, .rs-bar, .rs-ret, .rs-pk, .rs-scrim, .btn-rep, .js-only { display: none !important; }
  html.rs-phone .rs-step, html.js .rs-rep-more { display: block !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- фаза теста: окно «Descargar gratis / Pagar» (config.json → report_trial) */
.trial-dlg {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0;
  border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
/* ::backdrop не наследует переменные с :root до Safari 17.4 / Chrome 122 — запасной цвет внутри var() */
.trial-dlg::backdrop, .share-dlg::backdrop { background: var(--scrim, rgba(43, 33, 24, .42)); }
@media (prefers-color-scheme: dark) { .trial-dlg::backdrop, .share-dlg::backdrop { background: var(--scrim, rgba(0, 0, 0, .6)); } }
/* отступы — у внутреннего блока: клик по полям окна не считается кликом по затемнению */
.trial-in { position: relative; display: grid; gap: 12px; padding: 22px 20px 18px; }
.trial-note-form { margin-top: 8px; text-align: center; }
.trial-x-f { position: absolute; top: 8px; right: 8px; margin: 0; }
.trial-t { margin: 0 40px 0 0; font-size: 1.25rem; line-height: 1.25; }
.trial-p { margin: 0; line-height: 1.45; color: var(--text-2); }
.trial-note { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.trial-nojs { margin: 10px 0 0; text-align: center; font-weight: 650; }
.rs-rep-same { margin: 10px 0 0; font-size: .9rem; font-weight: 650; color: var(--text-2); }

/* ---------------------------------------------------------------- анкета-отзыв (/xx/feedback/) */
.fb-form { display: grid; gap: 18px; margin-top: 18px; }
.fb-q { margin: 0; padding: 0; border: 0; }
.fb-q legend, .fb-tl { display: block; margin-bottom: 8px; font-weight: 700; }
.fb-scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.fb-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-n, .fb-o { position: relative; cursor: pointer; }
.fb-n input, .fb-o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-n span, .fb-o span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--chip-line); border-radius: 10px; background: var(--surface); font-weight: 700; }
.fb-n span { padding: 0; }
.fb-n input:checked + span, .fb-o input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.fb-n input:focus-visible + span, .fb-o input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.fb-form textarea, .fb-form input[type=text] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--chip-line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; }
.fb-form textarea { min-height: 84px; }
.fb-form input[type=text] { max-width: 320px; min-height: 44px; }
.fb-hint { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
/* отказ от договора (23.11.2026): ссылка в подвале заметная (§ 356a BGB — «hervorgehoben»), форма и «Eingangsbestätigung» */
.footer-legal a.footer-wd { display: inline-block; padding: 6px 12px; border: 1.5px solid currentColor; border-radius: 999px; font-weight: 700; }
.wd-form input[type=email] { width: 100%; max-width: 420px; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--chip-line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--text); }
.wd-form input[type=text] { max-width: 420px; }
.wd-decl { margin: 0; padding: 12px 14px; border-left: 4px solid var(--accent, #FFB000); background: var(--surface); border-radius: 6px; font-weight: 600; }
.wd-box { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.wd-box h2 { margin: 0 0 8px; font-size: 1.05rem; }
.wd-dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; }
.wd-dl dt { font-weight: 700; color: var(--muted); }
.wd-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .wd-dl { grid-template-columns: minmax(0, 1fr); } .wd-dl dd { margin-bottom: 6px; } }
@media print { .site-header, .site-footer, .wd-receipt .btn { display: none !important; } }
.fb-consent { margin-top: 10px; }
.fb-scale-11 { grid-template-columns: repeat(11, minmax(0, 1fr)); }
.fb-opts-after { margin-top: 8px; }
.fb-name { margin-top: 12px; }
@media (max-width: 520px) { .fb-scale-11 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fb-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); } .fb-scale-11 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rs-fb { margin: 18px 0 6px; text-align: center; }

/* ---------------------------------------------------------------- личный отчёт: вопросы перед оплатой */
.pr { display: grid; gap: 14px; margin: 6px 0 14px; padding: 14px; border: 1.5px solid var(--chip-line); border-radius: 14px; background: var(--surface); }
.pr-t { margin: 0; font-weight: 800; }
/* «Мы уже выбрали ответы за тебя — можешь поменять любой» (21.11.2026): заметно, не мелким серым */
.pr-pre { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; border-left: 4px solid var(--blue);
  background: var(--blue-soft); color: var(--text); font-weight: 650; font-size: .92rem; line-height: 1.4; }
.pr-pre .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.pr-q { margin: 0; padding: 0; border: 0; }
.pr-q legend { margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.pr-fine summary { cursor: pointer; font-weight: 650; color: var(--terra-strong); }
.pr-sel { display: grid; gap: 4px; margin-top: 10px; font-size: .92rem; }
.pr-sel select { min-height: 44px; padding: 0 10px; border: 1.5px solid var(--chip-line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.pr-preview { margin: 0; font-weight: 650; color: var(--text-2); }
.pr-expand { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pr-need { margin: 0; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- чек-лист для телефона (/xx/checklist/, 19.10.2026) */
.cl .section-lead { margin-bottom: 14px; }
.cl-status { margin: 12px 0; font-weight: 650; color: var(--text-2); }
.cl-retry-w { margin: 0 0 12px; }
.cl-meta { margin: 0 0 10px; font-weight: 750; color: var(--terra-strong); }
.cl-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--text); line-height: 1.45; }
.cl-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cl-types-t { flex-basis: 100%; margin: 0; font-weight: 700; }
.cl-type, .cl-car {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--chip-line);
  border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer;
}
.cl-type, .cl-type:hover { text-decoration: none; }
.cl-type:hover { background: var(--surface-2); }
.cl-cars { display: flex; gap: 8px; margin: 0 0 14px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cl-car { flex: 0 0 auto; white-space: nowrap; }
.cl-car[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.cl-car-name { margin: 6px 0 4px; font-family: var(--font-serif); font-size: 1.45rem; }
.cl-sec { margin: 0 0 18px; }
.cl-h { margin: 18px 0 8px; font-size: 1.15rem; }
.cl-h4 { margin: 14px 0 6px; font-size: .95rem; color: var(--text-2); }
.cl-p { margin: 0; line-height: 1.5; }
.cl-aviso { margin: 0 0 8px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.cl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cl-item {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); line-height: 1.45; cursor: pointer;
}
.cl-box { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.cl-box:checked + .cl-txt { color: var(--muted); }
.cl-tips summary { cursor: pointer; font-weight: 700; color: var(--terra-strong); min-height: 44px; display: flex; align-items: center; }
.cl-tips-l { margin: 4px 0 0; padding-left: 1.2em; line-height: 1.5; }
.cl-tips-l li + li { margin-top: 6px; }
.cl-progress { margin: 10px 0; font-weight: 700; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cl-small { margin: 0 0 6px; font-size: .84rem; line-height: 1.45; color: var(--muted); }
@media print {
  .cl-cars, .cl-actions, .cl-types, .cl-retry-w, .cl-status { display: none !important; }
  .cl-item { border: 0; padding: 4px 0; min-height: 0; break-inside: avoid; }
  .cl-box:checked + .cl-txt { color: inherit; }
  .cl-tips[open] summary, .cl-tips summary { min-height: 0; }
}

/* ---------------------------------------------------------------- «Отправить результат» (07.11.2026): окно выбора, на телефоне — снизу */
.rs-send { margin: 14px 0 4px; text-align: center; }
.share-dlg {
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0;
  border: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.share-dlg:not([open]) { display: none; }
.share-in { position: relative; display: grid; gap: 10px; padding: 22px 18px 16px; }
.share-t { margin: 0 40px 0 0; font-size: 1.2rem; line-height: 1.25; }
.share-p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--text-2); }
/* колонки по ширине подписи: на 320–360 px одна колонка (русские «Копировать» и «приложения» не влезают в половину) */
.share-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10em, 100%), 1fr)); gap: 8px; margin-top: 4px; }
.share-opt {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; border: 1.5px solid var(--chip-line);
  border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.share-opt:hover { border-color: var(--text-2); }
.share-opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.share-opt .ico { width: 24px; height: 24px; flex: none; }
.share-wa .ico { color: #128c4a; }
.share-tg .ico { color: #1f86c8; }
.share-opt[hidden] { display: none; }
.share-status { min-height: 1.2em; margin: 2px 0 0; font-size: .88rem; font-weight: 650; color: var(--text-2); text-align: center; }
.share-x { position: absolute; top: 8px; right: 8px; margin: 0; }
html:has(.share-dlg[open]), html:has(.share-dlg[open]) body { overflow: hidden; }
@media (max-width: 600px) {
  .share-dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 90dvh; }
  .share-in { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .share-dlg, .rs-send { display: none !important; } }

/* ---------------------------------------------------------------- демо / пилот дилера (07.11.2026): полоса и связь с салоном */
.rs-dealer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0 0 14px;
  padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--text); font-size: .92rem; font-weight: 650; }
.rs-dealer p { margin: 0; }
.rs-dealer-back { font-weight: 700; color: var(--blue); }
.rs-dealer-contact { margin: 16px 0 6px; padding: 14px; border: 1.5px solid var(--chip-line); border-radius: 14px; background: var(--surface); text-align: center; }
.rs-dc-t { margin: 0 0 10px; font-weight: 800; }
.rs-dc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rs-dc-btns .btn { min-height: 48px; }
.rs-dc-hint { margin: 10px 0 0; }
.dealer-demo .dd-steps { margin: 14px 0 18px; padding-left: 1.3em; display: grid; gap: 8px; }
.dealer-demo .dd-note { margin-top: 20px; padding: 14px; border-radius: 12px; background: var(--blue-soft); font-size: .92rem; line-height: 1.5; }
.dealer-demo .dd-cta { margin: 18px 0 6px; }
/* примеры баннера дилера /d/<slug>/banner/ (16.11.2026) */
.dealer-banner .bn-h { margin: 26px 0 8px; font-size: 1.2rem; }
.dealer-banner .bn-row { display: grid; gap: 14px; margin: 12px 0 4px; }
.dealer-banner .bn-fig { margin: 0; }
.dealer-banner .bn-sq { max-width: 360px; }
.dealer-banner .bn-img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 16px rgba(43, 33, 24, .16); }
.dealer-banner .bn-fig figcaption { margin-top: 6px; font-size: .88rem; }
@media print { .rs-dealer, .rs-dealer-contact { display: none !important; } }
