:root {
  color-scheme: light;
  --bg: #f3f4f2;
  --surface: #ffffff;
  --ink: #1b2120;
  --muted: #5b6562;
  --line: #d9dedb;
  --accent: #c2620c;
  --accent-ink: #ffffff;
  --deep: #1f3a33;
  --deep-ink: #eef3f1;
  --sample: #8a5a00;
  --sample-bg: #fff1cf;
  --ok: #2f7a4e;
  --warn: #b7791f;
  --idle: #8a9390;
  --viber: #7360f2;
  --tg: #2a9fd6;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace;
  --bar-h: 92px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.18; margin: 0; font-weight: 700; }
h1 { font-size: clamp(25px, 6.6vw, 44px); }
h2 { font-size: clamp(20px, 5vw, 28px); }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--accent); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; justify-self: start; }
.tag.sample { background: var(--sample-bg); color: var(--sample); }
.tag.here { background: var(--accent); color: var(--accent-ink); }

/* prototype notice */
.proto { background: var(--sample-bg); color: var(--sample); font-size: 13px; }
.proto .wrap { padding-block: 8px; display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.proto button { font: inherit; font-weight: 600; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; cursor: pointer; }

/* header */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px 24px; padding-block: 12px; flex-wrap: wrap; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--accent); }
nav.menu { display: none; gap: 20px; font-size: 15px; }
nav.menu a { text-decoration: none; color: var(--muted); }
nav.menu a:hover { color: var(--ink); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.status[data-s="busy"] .dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
.status[data-s="off"] .dot { background: var(--idle); box-shadow: none; }
.head-contacts { display: none; gap: 8px; font-size: 14px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }

.crumbs { font-size: 13px; color: var(--muted); padding-block: 14px 0; }

/* hero */
.hero .wrap { display: grid; gap: 24px; padding-block: 14px 32px; }
.pitch { display: grid; gap: 14px; min-width: 0; }
.lead { font-size: 17px; color: var(--muted); max-width: 34em; }
.hero-photo { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; background: var(--line); }
.hero-photo figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); border-radius: 999px; padding: 3px 10px; }
.msg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff; font-size: 16px; }
.msg.viber { background: var(--viber); }
.msg.tg { background: var(--tg); }
.msg svg { width: 20px; height: 20px; flex: none; }
.msg-note { font-size: 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; padding: 0; margin: 0; list-style: none; }
.facts li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* request form */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 16px; min-width: 0; }
.form h2 { font-size: 19px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="tel"], textarea { font: inherit; font-size: 16px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
#f-vin { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.shots { display: grid; gap: 10px; counter-reset: shot; }
.shot { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--bg); cursor: pointer; position: relative; }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.shot .ex { width: 64px; height: 48px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.shot .ex img { width: 100%; height: 100%; object-fit: cover; }
.shot .ex svg { width: 52px; height: 36px; }
.shot b { display: block; font-size: 15px; }
.shot span.t { font-size: 13px; color: var(--muted); }
.shot .st { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.shot.has { border-color: var(--ok); }
.shot.has .st { color: var(--ok); }
.btn { font: inherit; font-weight: 600; font-size: 16px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; min-height: 52px; padding: 12px 18px; cursor: pointer; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.saved { font-size: 13px; color: var(--muted); }
.receipt { border: 1px solid var(--ok); border-radius: 12px; padding: 14px; display: grid; gap: 6px; font-size: 15px; }
.receipt b { color: var(--ok); }

/* callback */
.callback { border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 10px; }
.callback .row { display: grid; gap: 10px; }

/* sections */
section.block .wrap { padding-block: 36px; display: grid; gap: 20px; }
section.block + section.block .wrap { border-top: 1px solid var(--line); }
.head { display: grid; gap: 8px; max-width: 46em; }

.gens { display: grid; gap: 12px; }
.gen { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.gen.current { border-color: var(--accent); }
.gen .years { font-family: var(--f-mono); font-size: 14px; color: var(--accent); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gen ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 15px; }

.vin-card { border: 1px dashed var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; background: var(--surface); }
.vin-card .vin { font-family: var(--f-mono); font-size: 15px; letter-spacing: .06em; word-break: break-all; }
.vin-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.vin-card dt { color: var(--muted); }
.vin-card dd { margin: 0; min-width: 0; }

/* price list: one row per part, price aligned right */
.prices { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.price { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: baseline; }
.price:last-child { border-bottom: 0; }
.price .name { font-weight: 600; min-width: 0; }
.price .cost { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.price .num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); grid-column: 1 / -1; }

/* real order */
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; }
.deal > img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.deal .body { padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.deal .car { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.deal .groups { display: grid; gap: 10px; margin: 0; }
.deal .groups dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.deal .groups dd { margin: 2px 0 0; font-size: 15px; }
.deal .meta { font-size: 13px; color: var(--muted); }
.tip { font-size: 14px; background: var(--sample-bg); color: var(--ink); border-radius: 10px; padding: 10px 12px; }
.tip b { color: var(--sample); }
.full-list { padding-block: 10px 0; border-bottom: 0; border-top: 1px solid var(--line); }
.full-list ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px 20px; font-size: 14px; }
.full-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding-bottom: 4px; }
.full-list li span { font-family: var(--f-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (min-width: 1000px) { .full-list ul { grid-template-columns: 1fr 1fr; } }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.gallery figure, .us-photo { margin: 0; scroll-snap-align: start; display: grid; gap: 6px; min-width: 0; }
.gallery img, .us-photo img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--bg); }
.gallery figcaption { font-size: 13px; color: var(--muted); }
.us-photo figcaption { font-size: 14px; opacity: .85; }

/* US band */
.band { background: var(--deep); color: var(--deep-ink); }
.band .wrap { padding-block: 36px; display: grid; gap: 20px; }
.band p { opacity: .85; }
.band details { border-bottom: 1px solid color-mix(in srgb, var(--deep-ink) 22%, transparent); }

/* collapsibles */
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-weight: 700; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin-top: 8px; max-width: 46em; }
details:not(.band details) p { color: var(--muted); }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-size: 24px; color: var(--accent); grid-row: span 2; line-height: 1.1; }
.steps p { color: var(--muted); font-size: 15px; }

.sto { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
.sto ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }

/* owner-side demo */
.owner { border: 2px dashed var(--sample); border-radius: 16px; padding: 18px; display: grid; gap: 14px; background: var(--surface); }
.tg-msg { background: var(--bg); border-radius: 14px; padding: 14px; display: grid; gap: 4px; font-size: 15px; border: 1px solid var(--line); }
.tg-msg .vin { font-family: var(--f-mono); font-size: 14px; word-break: break-all; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--tg); color: var(--tg); background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.quick button[aria-pressed="true"] { background: var(--tg); color: #fff; }
.client-msg { border-left: 3px solid var(--ok); padding-left: 12px; font-size: 15px; display: grid; gap: 4px; }
.client-msg .sig { font-size: 13px; color: var(--muted); }

footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { padding-block: 24px; display: grid; gap: 8px; }

/* fixed contact bar (phone) */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface);
  border-top: 2px solid var(--accent); box-shadow: 0 -8px 24px -10px rgba(0,0,0,.35);
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 8px;
  animation: bar-in .5s ease-out .4s both; }
.bar .bar-label { grid-column: 1 / -1; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 700; color: #fff; }
.bar a svg { width: 22px; height: 22px; flex: none; }
.bar .call { background: var(--accent); color: var(--accent-ink); }
.bar .vb { background: var(--viber); }
.bar .tgb { background: var(--tg); }
.bar a:active { transform: scale(.97); }
@keyframes bar-in { from { transform: translateY(100%); } to { transform: none; } }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  nav.menu, .head-contacts { display: flex; }
  .status { margin-left: 0; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 40px; padding-block: 20px 48px; align-items: start; }
  .form { padding: 24px; }
  .callback .row { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .callback .btn { width: auto; }
  section.block .wrap, .band .wrap { padding-block: 48px; }
  .gens { grid-template-columns: 1fr 1fr 1fr; }
  .deal { grid-template-columns: 1fr 1.2fr; }
  .deal > img { height: 100%; aspect-ratio: auto; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .band .wrap { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; }
  .sto { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 28px; }
  .owner { grid-template-columns: 1fr 1fr; align-items: start; }
  .owner .head { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* generation switcher: shown right under the title when a neighbouring generation exists */
.switch { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; border: 1px solid var(--accent); border-radius: 12px; padding: 10px 14px; text-decoration: none; background: var(--surface); }
.switch b { font-size: 15px; }
.switch .go { font-weight: 700; color: var(--accent); white-space: nowrap; }
.switch .small { grid-column: 1 / -1; }

/* typical parts on pages without real orders: names only, no prices */
.typical { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.typical li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.typical li span { font-size: 14px; color: var(--muted); }
@media (min-width: 820px) { .typical { grid-template-columns: 1fr 1fr 1fr; } }

/* prototype: page state */
.proto .state { font-weight: 700; }
.hub { display: grid; gap: 16px; }
.hub-brand { display: grid; gap: 8px; }
.hub-brand a { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.hub-brand a .small { white-space: nowrap; }

/* ---- first screen v2: compact title, one action card ---- */
.hero .wrap { padding-block: 14px 28px; gap: 16px; }
.title-row { display: flex; gap: 12px; align-items: center; }
.title-row .thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; background: var(--line); }
.gen-line { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.gen-line b { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(23px, 6.2vw, 40px); }
.hero h1 .sub { display: block; font-family: var(--f-body); font-weight: 500; font-size: clamp(16px, 4.3vw, 20px); color: var(--muted); margin-top: 6px; line-height: 1.35; }
.switch-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); text-decoration: none; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.switch-line b { color: var(--accent); white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 14px; min-width: 0; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.photo-btn { position: relative; display: flex; gap: 12px; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 14px 16px; cursor: pointer; min-height: 64px; }
.photo-btn svg { width: 30px; height: 30px; flex: none; }
.photo-btn b { display: block; font-size: 17px; line-height: 1.25; }
.photo-btn small { display: block; font-size: 13px; opacity: .9; line-height: 1.3; margin-top: 2px; }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-btn.has { background: var(--surface); color: var(--ink); border: 2px solid var(--ok); }
.photo-btn.has svg { color: var(--ok); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.thumbs figure { margin: 0; position: relative; flex: none; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; border: 2px solid transparent; }
.thumbs figure.bad img { border-color: var(--warn); }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font: 700 13px/22px var(--f-body); cursor: pointer; padding: 0; }
.photo-warn { font-size: 13px; color: var(--warn); }

.vin-field { display: grid; gap: 6px; }
.vin-field > label { font-size: 15px; font-weight: 600; }
.vin-field .hint, .field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.vin-box { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--bg); }
.vin-box:focus-within { border-color: var(--accent); }
.vin-box input { border: 0; border-radius: 0; background: transparent; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 17px; padding: 12px; min-width: 0; flex: 1; }
.vin-box input:focus-visible { outline: none; }
.vin-cam { display: grid; place-items: center; width: 54px; flex: none; border-left: 1px solid var(--line); cursor: pointer; color: var(--accent); }
.vin-cam svg { width: 26px; height: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vin-ok { font-size: 14px; border-radius: 10px; padding: 8px 12px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ink); }
.vin-ok b { color: var(--ok); }
.vin-ok.wait { background: var(--bg); color: var(--muted); }
.vin-ok.count { background: transparent; padding: 0; color: var(--muted); }
.vin-ok a { color: var(--accent); font-weight: 600; }
.vin-ok .note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.more summary { font-size: 14px; color: var(--muted); font-weight: 500; }
.more { padding-block: 0; border: 0; }
.more textarea { margin-top: 8px; }
.trust { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--muted); text-align: center; }

.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perks li { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.perks svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.perks b { color: var(--ink); font-weight: 600; }
.hero .callback { border-top: 0; padding-top: 0; }
.msg.vb-btn { background: var(--viber); }

/* bottom bar: equal buttons, compact so "Позвонить" fits on narrow phones */
.bar a { font-size: 14px; gap: 5px; padding: 0 4px; white-space: nowrap; }
.bar a svg { width: 19px; height: 19px; }
@keyframes hop { 0%, 100% { transform: none; } 35% { transform: translateY(-7px) scale(1.05); } 60% { transform: translateY(1px) scale(.98); } }
.bar.wave a { animation: hop .6s ease-out both; }
.bar.wave a:nth-of-type(2) { animation-delay: .12s; }
.bar.wave a:nth-of-type(3) { animation-delay: .24s; }

@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; grid-template-areas: "pitch card" "perks card" "cb card"; align-items: start; }
  .pitch { grid-area: pitch; } .card { grid-area: card; padding: 22px; } .perks { grid-area: perks; } .hero .callback { grid-area: cb; }
  .callback .row { grid-template-columns: 1fr auto; }
}
[hidden] { display: none !important; }
.title-row { margin-bottom: 6px; }
.title-row .thumb { width: 44px; height: 44px; border-radius: 10px; }
.title-row .gen-line { margin: 0; }
.trust { display: block; }
.trust .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ---- v3: light only, slim header, composer field, answer example ---- */
:root { --bar-h: 70px; }
header.top .wrap { padding-block: 8px; }
.logo { font-size: 19px; }
.hero h1 .yrs { white-space: nowrap; }
.gen-line b { font-family: var(--f-mono); }

.ask { display: grid; gap: 6px; }
.ask > label { font-size: 15px; font-weight: 600; }
.composer { border: 2px solid var(--ink); border-radius: 12px; background: var(--bg); overflow: hidden; }
.composer:focus-within { border-color: var(--accent); }
.composer textarea { border: 0; border-radius: 0; background: transparent; resize: vertical; min-height: 88px; padding: 12px 12px 6px; }
.composer textarea:focus-visible { outline: none; }
.composer .tools { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px; }
.attach { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.attach svg { width: 20px; height: 20px; }
.attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.attach.has { border-color: var(--ok); color: var(--ok); }
.composer .tools .small { margin-left: auto; font-size: 12px; }
.ask .hint-line { font-size: 13px; color: var(--muted); }

.example { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.example h3 { font-size: 15px; }
.example h3 span { font-family: var(--f-body); font-weight: 500; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 0; font-size: 13.5px; }
.ex-grid > span { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-grid > span.n { text-align: left; font-weight: 600; white-space: normal; padding-left: 0; }
.ex-grid > span.h { font-size: 11px; line-height: 1.2; color: var(--muted); font-weight: 600; white-space: normal; border-bottom-color: var(--ink); }
.ex-grid > span.best { color: var(--ok); font-weight: 700; }
.ex-grid > span.na { color: var(--muted); }
.example .small { font-size: 12px; }
@media (min-width: 820px) { .example { grid-area: ex; } .hero .wrap { grid-template-areas: "pitch card" "ex card" "perks card" "cb card"; } }
/* v4: phone screenshots showed a 3-line title and a tall field */
.hero h1 { font-size: clamp(21px, 5.6vw, 38px); }
.hero h1 .sub { font-size: clamp(15px, 4.1vw, 19px); }
.composer textarea { min-height: 68px; }
.nw { white-space: nowrap; }

/* ---- v5: price card on top, one complete form, phone after the button ---- */
.title-row { justify-content: space-between; }
.title-row .gen-line { flex: 1; }
.gen-switch { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.hero .wrap { gap: 12px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.pc-title { font-size: 12px; font-weight: 600; color: var(--muted); }
.pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pc-row:last-of-type { border-bottom: 0; }
.pc-row b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-row em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; padding: 1px 7px; margin-right: 8px; }
.pc-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card.act { border: 2px solid var(--accent); gap: 12px; }
.act-title { font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.act-title span { font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.ask > label, .vin-field > label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: none; }
.composer textarea { min-height: 58px; }
button.attach { font: inherit; font-size: 14px; font-weight: 600; }
.form-err { font-size: 13px; color: #b42318; }
.send { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.send-title { font-weight: 700; font-size: 15px; }
.via { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.via label { position: relative; }
.via input { position: absolute; opacity: 0; inset: 0; }
.via span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; font-size: 14px; font-weight: 600; background: var(--bg); cursor: pointer; }
.via input:checked + span { border: 2px solid var(--accent); background: var(--surface); color: var(--accent); }
.via input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.trust { margin-top: -4px; }
@media (min-width: 820px) {
  .hero .wrap { grid-template-areas: "pitch card" "pc card" "perks card" "ex card" "cb card"; }
  .price-card { grid-area: pc; }
}
/* fit the whole form above the bottom bar on a 360x760 phone */
.hero .wrap { gap: 10px; padding-top: 8px; }
.hero h1 { font-size: clamp(20px, 5.4vw, 36px); }
.price-card { padding: 8px 12px; }
.pc-row { padding: 4px 0; font-size: 14px; }
.pc-row b { font-size: 16px; }
.pc-foot { margin-top: 2px; }
.card.act { padding: 12px; gap: 10px; }
.act-title { font-size: 15px; }
.composer textarea { min-height: 46px; padding: 9px 10px 4px; }
.composer .tools { padding: 4px 6px 6px; }
.attach, button.attach { padding: 5px 12px 5px 9px; font-size: 13px; }
.vin-box input { padding: 9px 12px; }
.btn { min-height: 48px; }
.attach, button.attach { white-space: nowrap; }
.composer .tools { gap: 6px; }
.attach, button.attach { padding: 5px 10px 5px 8px; gap: 5px; }
.attach svg { width: 18px; height: 18px; }

/* ---- v6: three ways to say what is needed ---- */
.ask-label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.ways { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 4px; }
.way { position: relative; display: grid; justify-items: center; gap: 2px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px 7px; cursor: pointer; min-width: 0; }
.way svg { width: 24px; height: 24px; color: var(--accent); }
.way input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.way.on { border: 2px solid var(--accent); background: var(--surface); padding: 7px 1px 6px; }
.way.has { border: 2px solid var(--ok); background: var(--surface); padding: 7px 1px 6px; }
.way.has svg { color: var(--ok); }
.ways .or { font-size: 12px; color: var(--muted); }
.composer textarea { min-height: 52px; }
.pc-row.hit { background: color-mix(in srgb, var(--accent) 10%, transparent); margin: 0 -8px; padding-inline: 8px; border-radius: 8px; }
/* desktop: the form stays in view while the left column scrolls */
@media (min-width: 820px) {
  .hero .wrap { grid-template-areas: "pitch card" "pc card" "perks card" "ex card" "cb card"; }
  .card.act { position: sticky; top: 16px; align-self: start; }
  .ways .or { font-size: 13px; }
}
/* v7: tiles keep the same size in every state and fit narrow Android screens */
.ways { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr); gap: 0; align-items: stretch; }
.ways .or { align-self: center; justify-self: center; font-size: 10.5px; white-space: nowrap; }
.way, .way.on, .way.has { border: 2px solid var(--line); padding: 7px 2px 6px; align-content: center; }
.way.on { border-color: var(--accent); background: var(--surface); }
.way.has { border-color: var(--ok); background: var(--surface); }
.way span { font-size: min(12.5px, 3.4vw); letter-spacing: -.01em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hero-sub { font-size: 15px; line-height: 1.4; color: var(--ink); margin-top: -2px; }
.hero-sub b { color: var(--accent); }
.why { display: grid; gap: 8px; }
.why-cap { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--accent); }
.why-item { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.why-item svg { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); }
.why-item b { font-size: 15px; }
.why-item span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.why-item a { color: var(--accent); font-weight: 600; }
@media (min-width: 820px) { .why { grid-area: perks; } }
.ways { grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr); }
.ways .or { font-size: 10px; }
.way span { font-size: min(12.5px, 3.25vw); letter-spacing: -.02em; }

/* ---- v8: fit the first screen on tall-narrow and short phones ---- */
.hero h1 .pre { display: block; font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 2px; letter-spacing: 0; }
.hero h1.long { font-size: clamp(18px, 4.9vw, 32px); }
.gen-line b { font-family: var(--f-mono); color: var(--accent); }
.pc-title em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; padding: 1px 7px; }
.pc-row b { margin-left: 8px; }
@media (max-height: 700px) { .price-card .pc-row:nth-child(4) { display: none; } }
.ask-label .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.way, .way.on, .way.has { padding: 6px 2px 5px; gap: 0; line-height: 1.15; }
.way svg { width: 22px; height: 22px; margin-bottom: 2px; }
.way b { font-size: 14px; }
.way small { font-size: 11px; font-weight: 500; color: var(--muted); }
.vin-box input::placeholder { text-transform: none; font-family: var(--f-body); letter-spacing: 0; font-size: 14px; }
.vin-cam { width: auto; padding: 0 12px; display: flex; gap: 4px; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.vin-cam svg { width: 20px; height: 20px; }
/* contact icons in the header (phones); the big bar waits below the fold */
.head-icons { margin-left: auto; display: flex; gap: 6px; }
.hi { width: 38px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hi svg { width: 19px; height: 19px; }
.hi.call { background: var(--accent); } .hi.vb { background: var(--viber); } .hi.tgb { background: var(--tg); }
.bar { animation: none; transform: translateY(110%); transition: transform .35s ease-out; }
.bar.up { transform: none; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
@media (min-width: 820px) { .head-icons { display: none; } }
@media (max-height: 700px) { .price-card .pc-row:nth-child(3) { border-bottom: 0; } }
/* car photo to the right of the title */
.title-wrap { display: flex; align-items: center; gap: 12px; }
.title-wrap h1 { flex: 1; min-width: 0; }
.title-wrap .thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; background: var(--line); }
@media (min-width: 820px) { .title-wrap .thumb { width: 120px; height: 90px; } }
.head-icons.wave .hi { animation: hop .6s ease-out both; }
.head-icons.wave .hi:nth-child(2) { animation-delay: .12s; }
.head-icons.wave .hi:nth-child(3) { animation-delay: .24s; }
/* typical parts: one compact card of chips instead of nine cards */
.typical-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.typical-card h2 { font-size: 18px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.cb-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-line input { flex: 1 1 160px; }
.cb-line .btn { width: auto; flex: none; min-height: 46px; }
/* the title picture opens big */
.thumb-btn { padding: 0; border: 0; background: none; cursor: zoom-in; flex: none; border-radius: 14px; position: relative; }
.thumb-btn::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2120' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(15,18,17,.82); display: grid; place-items: center; padding: 16px; cursor: zoom-out; animation: zin .2s ease-out; }
.zoom figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(640px, 100%); }
.zoom img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 16px; background: #fff; }
.zoom figcaption { color: #fff; font-weight: 600; font-size: 15px; }
.zoom .zx { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 26px; line-height: 1; cursor: pointer; }
@keyframes zin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zoom { animation: none; } }
/* desktop: the wide model sheet becomes the title banner, the name sits in its empty left third */
@media (min-width: 820px) {
  .title-wrap.has-wide { background-color: #eef3fb; background-position: center; background-size: cover; background-repeat: no-repeat; aspect-ratio: 16 / 9; border-radius: 18px; align-items: flex-start; padding: 22px 24px; cursor: zoom-in; }
  .title-wrap.has-wide h1 { flex: none; max-width: 36%; font-size: clamp(22px, 2.2vw, 30px); }
  .title-wrap.has-wide .thumb-btn { display: none; }
}
@media (min-width: 820px) { .title-wrap.has-wide h1 { font-size: clamp(20px, 1.9vw, 24px); max-width: 32%; } .title-wrap.has-wide h1 .pre { font-size: 14px; } }
/* version switch under the title */
.ver { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ver-b { font: inherit; border: 2px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px 8px; display: grid; gap: 0; text-align: center; cursor: pointer; color: var(--ink); line-height: 1.2; }
.ver-b b { font-size: 13.5px; }
.ver-b small { font-size: 12px; color: var(--muted); }
.ver-b[aria-pressed="true"] { border-color: var(--accent); }
.ver-b[aria-pressed="true"] b { color: var(--accent); }
/* zoom: arrows and "this is mine" when there are several versions */
.zoom .zx { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 26px; line-height: 1; cursor: pointer; }
.zoom-nav { display: flex; gap: 10px; align-items: center; justify-content: center; }
.zoom-nav button { border: 0; border-radius: 999px; background: rgba(255,255,255,.95); font: inherit; font-weight: 700; cursor: pointer; }
.zoom-nav .zp, .zoom-nav .zn { width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.zoom-nav .zmine { height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); }
.zoom img { cursor: pointer; }
/* zoom icons and version dots */
.zoom .zx, .zoom-nav .zp, .zoom-nav .zn { display: grid; place-items: center; padding: 0; color: #1b2120; }
.zoom .zx svg { width: 22px; height: 22px; pointer-events: none; }
.zoom-nav .zp svg, .zoom-nav .zn svg { width: 24px; height: 24px; pointer-events: none; }
.zdots { display: flex; gap: 8px; justify-content: center; }
.zdots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); }
.zdots i.on { background: #fff; }
/* version switch in one line, and tighter spacing on short phones */
.ver { margin-top: 4px; }
.ver-b { display: flex; justify-content: center; align-items: baseline; gap: 6px; padding: 5px 6px; }
.ver-b b { font-size: 13px; }
.ver-b small { font-size: 11.5px; }
@media (max-height: 700px) {
  .hero .wrap { gap: 7px; padding-top: 4px; }
  .card.act { padding: 10px; gap: 8px; }
  .act-title { font-size: 14px; }
  .way, .way.on, .way.has { padding: 4px 2px 4px; }
  .way svg { width: 20px; height: 20px; }
  .title-wrap .thumb { width: 60px; height: 60px; }
  .hero h1 { font-size: 20px; }
}
.ver-b { gap: 4px; white-space: nowrap; letter-spacing: -.01em; padding: 5px 4px; }
.ver-b b { font-size: 12.5px; }
.ver-b small { font-size: 11px; }

.nw { white-space: nowrap; }
.pc-title em { display: inline-block; }
.pc-row em.rt { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
/* UA | RU switch in the header: small, next to the logo; the current language is not a link-looking chip */
.lang { display: flex; gap: 2px; margin-left: 10px; margin-right: auto; font-size: 12px; font-weight: 700; }
.lang a { padding: 5px 7px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1; }
.lang a[aria-current] { color: var(--ink, #1b2120); background: color-mix(in srgb, var(--muted) 14%, transparent); }
.hub-ru { opacity: .7; }
/* phone: "+38" stays put in front, the visitor types 067... as usual */
.tel-box { position: relative; display: block; flex: 1 1 180px; }
.tel-pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink); pointer-events: none; }
.tel-box input[type="tel"] { padding-left: 46px; letter-spacing: .02em; }
.cb-line .tel-box input { width: 100%; }
/* v10: the body-code line is its own row above both columns, so on desktop the banner and the form start level */
.hero .wrap > .title-row { margin-bottom: 0; }
@media (min-width: 820px) { .hero .wrap > .title-row { grid-area: top; } }
@media (min-width: 820px) {
  .hero .wrap { grid-template-areas: "top top" "pitch card" "pc card" "perks card" "ex card" "cb card"; row-gap: 10px; }
}
/* v10: one look for a chosen way: white with the accent border (written, photos added, dictated or listening) */
.way.on, .way.has { border-color: var(--accent); background: var(--surface); }
.way.has svg { color: var(--accent); }
.way { transition: transform .08s ease; }
.way:active { transform: scale(.96); }
/* listening: a red dot that breathes next to "Слухаю…" */
.way.rec b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #d93025; vertical-align: 1px; animation: rec 1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .way.rec b::before { animation: none; } }
/* v11: the whole quote opens in place; the link sits on the tag line and costs no height */
.pc-more, .pc-less { font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 2px 0 2px 6px; cursor: pointer; white-space: nowrap; }
.pc-less { display: block; margin: 4px 0 0 auto; padding: 4px 0; }
.price-card.open .pc-row, .price-card.open .pc-row:nth-child(n) { display: flex; }
.price-card.open .pc-row { border-bottom: 1px solid var(--line); }
.price-card.open .pc-row:last-of-type { border-bottom: 0; }
/* v12: home page — car field under VIN, model pages grouped by brand */
.car-in { margin-top: 8px; }
.brands { display: grid; gap: 12px; }
@media (min-width: 820px) { .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.brand { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.brand h3 { margin: 0 0 8px; font-size: 17px; }
.models { display: flex; flex-wrap: wrap; gap: 8px; }
.model { display: grid; gap: 1px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink); min-width: 0; }
.model b { font-size: 15px; }
.model small { font-size: 12px; color: var(--muted); }
.model:hover, .model:focus-visible { border-color: var(--accent); }
/* v13: home picture — banner with the title on desktop, a low strip on the phone */
.home-strip { display: block; width: 100%; height: 132px; object-fit: cover; object-position: 78% 62%; border-radius: 14px; background: #fff; }
@media (min-width: 820px) { .home-strip { display: none; } .title-wrap.home-top { cursor: default; background-color: #fff; } }
@media (max-height: 700px) { .home-strip { height: 112px; } }
/* v13: model showcase with each model's drawing */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.model { gap: 2px; padding: 8px; align-content: start; }
.model img, .model .no-pic { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #fff; margin-bottom: 4px; }
.model .no-pic { background: linear-gradient(135deg, var(--line), transparent); }
.models { align-items: start; }
/* v14: home title — "Запчастини на авто" is the big part, "з США та Європи" the small line under it */
.home-h1 .after { display: block; font-family: var(--f-body, inherit); font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
@media (min-width: 820px) { .title-wrap.has-wide h1.home-h1 { font-size: clamp(24px, 2.4vw, 32px); } .home-h1 .after { font-size: 17px; } }
/* v15: phone strip is its own picture (two cars, front and rear), shown whole — no cropping */
.home-strip { height: auto; aspect-ratio: 5 / 2; object-fit: contain; object-position: center; }
@media (max-height: 700px) { .home-strip { height: auto; } }
/* v16: brand tiles on the home page — two pictures, the rest behind "N more"; a search box above */
.find { margin: 4px 0 14px; }
.find input { width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.find-none { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; }
.find-none .btn { width: auto; min-height: 40px; padding: 8px 16px; font-size: 15px; }
.bts { display: grid; gap: 12px; }
@media (min-width: 820px) { .bts { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } .bt.open { grid-column: 1 / -1; } }
.bt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.bt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bt-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.bt-name:hover { color: var(--accent); }
.bt-count { font-size: 13px; color: var(--muted); }
.bt-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-more { justify-self: start; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.bt.open .bt-more { display: none; }
@media (min-width: 820px) { .bt.open .bt-top, .bt.open .bt-all .models { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.model[hidden] { display: none !important; }
/* brand page: every version as its own tile; the models without a page as chips that fill the form */
.brand-models { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.also { margin-top: 18px; }
.also h3 { margin: 0 0 4px; font-size: 17px; }
.also .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 0; }
.also-chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.also-chip:hover { border-color: var(--accent); color: var(--accent); }
.model img { height: auto; }
/* desktop: an opened brand runs as one even row of models (the two favourites and the rest together) */
@media (min-width: 820px) {
  .bt.open { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .bt.open .bt-head { grid-column: 1 / -1; }
  .bt.open .bt-top, .bt.open .bt-all, .bt.open .bt-all .models { display: contents; }
}
