/* Ак Жол Авто — showroom light. Porcelain ground, ink type, one signal red.
   Geologica (display), Onest (body), JetBrains Mono (specs, VIN, receipts).
   The cars carry the colour. Type 1.25, spacing 4/8. Mobile-first, no build. */

:root {
  --paper: #f1f2ee; --paper-2: #e7e9e3; --white: #fff;
  --ink: #0e1216; --ink-2: #2e353d; --muted: #5b6470;
  --line: #d9dcd5; --line-2: #c2c7bf;
  --red: #d1242f; --red-2: #b11c26; --green: #1d7a50; --amber: #9a6208; --navy: #0f1823;
  --display: "Geologica", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --wrap: 1240px; --pad: 20px; --hdr: 64px; --r: 4px; --r2: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1); --dur: .25s;
  --lift: 0 1px 2px rgba(14, 18, 22, .06), 0 18px 40px -18px rgba(14, 18, 22, .28);
  --grade: saturate(.94) contrast(1.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); color-scheme: light; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; border-radius: var(--r); }
.skip:focus { top: 8px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.lead { font-size: 17px; color: var(--ink-2); max-width: 52ch; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 48px; }
.btn-icon:hover svg { transform: none; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60; background: rgba(241, 242, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), background var(--dur);
}
.hdr.scrolled { border-bottom-color: var(--line); background: rgba(241, 242, 238, .94); }
.hdr-row { display: flex; align-items: center; gap: var(--s4); min-height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.logo-text { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo-text b { font-weight: 800; }
.nav { display: none; }
.nav a { text-decoration: none; }
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; }
.lang button { min-width: 40px; min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hdr-phone { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; white-space: nowrap; }
.hdr-phone svg { width: 18px; height: 18px; }
.hdr-phone span { display: none; }
.hdr-cta { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.open {
  display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--hdr); height: calc(100dvh - var(--hdr));
  padding: var(--s4) var(--pad) var(--s6); background: var(--paper); border-top: 1px solid var(--line); overflow-y: auto; z-index: 59;
  animation: drawer .25s var(--ease);
}
@keyframes drawer { from { opacity: 0; transform: translateY(-8px); } }
.nav.open > a { padding: 14px 0; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.nav-extra { display: none; }
.nav.open .nav-extra { display: grid; gap: var(--s3); margin-top: auto; padding-top: var(--s5); }
.nav-phone { font-size: 20px; text-align: center; padding: 8px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: var(--s5) 0 var(--s7); }
.hero-grid { display: grid; gap: var(--s6); }
.hero-title { font-size: clamp(2.35rem, 9.2vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: var(--s4); }
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin-bottom: var(--s5); }
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding: var(--s3); background: var(--white); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--lift); max-width: 560px; }
.finder-go { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field select, .field input[type="text"], .field input[type="tel"], .field input[type="number"] {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white);
  font-size: 16px; color: var(--ink); transition: border-color var(--dur);
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e1216' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field select:hover, .field input:hover { border-color: var(--ink-2); }
.field select:focus, .field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(209, 36, 47, .18); }
.hero-proof { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero-proof li { display: flex; gap: 10px; align-items: baseline; }
.hero-proof li::before, .aud::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--red); transform: translateY(-4px); }

.hero-car { position: relative; margin: 0 calc(-1 * var(--pad)); }
.hero-car img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 60%; filter: var(--grade); }
/* the windshield price sticker: a strip under the photo on phones, a tag on the car's flank on desktop */
.sticker {
  --rot: -1.2deg; position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; width: min(100% - 32px, 420px);
  margin: -30px 16px 0 auto; padding: 14px 16px 12px; background: var(--white); border: 1px solid var(--ink);
  box-shadow: 0 16px 30px -12px rgba(14, 18, 22, .45); text-decoration: none; transform: rotate(var(--rot)); transform-origin: 30% 0;
  transition: transform .35s var(--ease);
}
.sticker::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; margin-left: -32px; background: rgba(240, 228, 190, .8); border: 1px solid rgba(160, 140, 90, .25); transform: rotate(3deg); }
.sticker:hover { transform: rotate(0deg) translateY(-2px); }
.st-l, .st-r { display: grid; gap: 2px; align-content: start; min-width: 0; }
.st-r { padding-left: 14px; border-left: 1px dashed var(--line-2); text-align: right; }
.sticker-id { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.sticker-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.sticker-spec { font-size: 11.5px; color: var(--ink-2); }
.sticker-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sticker-price { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sticker-cta { font-size: 12.5px; font-weight: 600; color: var(--red); margin-top: 6px; }

/* ---------- The lot today ---------- */
.ledger { padding: var(--s7) 0 0; }
.led-title { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s3); }
.led-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(29, 122, 80, .16); }
.led-row { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.led-row li { min-width: 0; }
.led-row li + li { border-top: 1px solid var(--line); }
.led { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 10px; align-items: baseline; height: 100%; padding: 12px 0; text-decoration: none; transition: background var(--dur); }
.led:hover { background: var(--white); }
.led b { grid-row: span 2; align-self: center; font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.led-dec { font-style: normal; margin: 0 -.22em; }
.led span { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
/* the status dot: green on the lot, amber on the way, navy to order (ledger, card pill, sheet) */
.led span::before, .pill::before, .car-status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.led.transit span::before, .pill.transit::before, .car-status.transit::before { background: var(--amber); }
.led.order span::before, .pill.order::before, .car-status.order::before { background: var(--navy); }
.led.rate span::before { display: none; }
.led span::after { content: "→"; color: var(--red); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur), transform var(--dur) var(--ease); }
.led:hover span::after { opacity: 1; transform: none; }
.led small { grid-column: 2; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: var(--s6); }
.sec-head h2 { font-size: clamp(1.9rem, 5.4vw, 3.1rem); max-width: 20ch; }
.sec-note { font-size: 14px; color: var(--muted); max-width: 40ch; }
.aud { display: flex; gap: 10px; align-items: baseline; font-weight: 500; color: var(--ink-2); margin-bottom: var(--s3); }

/* ---------- Stock: filters ---------- */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s4); min-width: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chips button, .seg button {
  flex: none; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white);
  cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.chips button:hover, .seg button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.selects .field:last-child { grid-column: 1 / -1; }
.count { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: var(--s2) 0 var(--s3); }
.st-token { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 99px; background: var(--white); color: var(--ink); cursor: pointer; font: 500 13px var(--body); }
.st-token::before { content: ""; position: absolute; inset: -7px -2px; }
.st-token span { font-size: 16px; line-height: 1; color: var(--red); }

/* ---------- Stock: grid + cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5) var(--s4); }
.grid-sep { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--ink); font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
.grid-sep:not(:first-child) { margin-top: var(--s5); }
.grid-sep span { font-size: 13px; color: var(--muted); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r2); transition: border-color var(--dur), box-shadow var(--dur); }
html.js .card.enter { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.card:hover { border-color: var(--ink); box-shadow: var(--lift); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); border-radius: calc(var(--r2) - 1px) calc(var(--r2) - 1px) 0 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.pill { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; background: var(--white); border-radius: 3px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.card-id { position: absolute; right: 10px; top: 10px; z-index: 2; padding: 5px 7px; border-radius: 3px; background: rgba(255, 255, 255, .86); font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.card-body { display: grid; gap: 6px; padding: var(--s4); flex: 1; align-content: start; }
.card-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r2); }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 2px solid var(--red); outline-offset: 2px; }
.card-trim, .card-spec { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card-spec { font-size: 12.5px; color: var(--ink-2); }
.card-price { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-price p { display: grid; gap: 4px; }
.card-price b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card-price span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card-mo { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink-2); padding: 4px 8px; background: var(--paper); border-radius: 3px; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.badges span { display: inline-flex; align-items: center; gap: 5px; }
.badges span::before { content: ""; width: 9px; height: 5px; border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green); transform: rotate(-45deg) translateY(-2px); }
/* where the car is: the route strip (over a photo, or inside the manifest) */
.route-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; font-family: var(--mono); font-size: 11.5px; color: #eef1f4; }
.route-strip i { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(238, 241, 244, .5) 0 4px, transparent 4px 8px); }
.route-strip b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); background: var(--red); }
.route-strip b::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(209, 36, 47, .3); }
.route-strip em { grid-column: 1 / -1; font-style: normal; color: #c9d1d9; }
.card-media > .route-strip, .car-photo > .route-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 14px 10px; background: linear-gradient(transparent, rgba(14, 18, 22, .8)); }
/* no photo yet: the card is the car's shipping manifest */
.manifest {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 50px 16px 12px; color: #fff;
  background-color: var(--ink); background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.mf-make { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9aa6b2; }
.mf-model { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: .92; letter-spacing: -.045em; margin-top: 2px; overflow-wrap: anywhere; }
.mf-vin { margin: 10px 0 auto; font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: #9aa6b2; }
.manifest .route-strip { margin-top: 12px; }
.mf-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); font-family: var(--mono); font-size: 11px; color: #9aa6b2; }
.card-mf .card-media { background: var(--ink); }
.empty { display: grid; justify-items: start; gap: var(--s4); padding: var(--s6); border: 1px dashed var(--line-2); border-radius: var(--r2); }
/* the offer in a group's empty cells: a blank manifest on porcelain grid paper */
.grid-ask {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: var(--s4); min-height: 260px; padding: var(--s5);
  border: 1px dashed var(--line-2); border-radius: var(--r2); background: linear-gradient(rgba(14, 18, 22, .045) 1px, transparent 1px) -1px -1px / 24px 24px,
    linear-gradient(90deg, rgba(14, 18, 22, .045) 1px, transparent 1px) -1px -1px / 24px 24px, var(--paper);
}
.ask-k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grid-ask div { display: grid; gap: var(--s3); margin-top: auto; }
.grid-ask h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 16ch; }
.grid-ask p:not(.ask-k) { color: var(--ink-2); font-size: 15px; max-width: 44ch; }
html.js .grid-ask { animation: fade .5s var(--ease) .15s both; }

/* ---------- EV band ---------- */
.ev { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #eef1f4; padding: var(--s9) 0; }
.ev-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .62; }
.ev::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 24, 35, .94) 0%, rgba(15, 24, 35, .72) 55%, rgba(15, 24, 35, .2) 100%); }
.ev-inner { display: grid; gap: var(--s4); justify-items: start; max-width: 620px; margin-left: max(var(--pad), calc((100vw - var(--wrap)) / 2)); }
.ev h2 { font-size: clamp(1.9rem, 5vw, 3rem); color: #fff; }
.ev p { color: #c9d1d9; max-width: 52ch; }

/* ---------- Order calculator ---------- */
.order-grid { display: grid; gap: var(--s7); }
.order-copy h2, .credit-copy h2, .ct-grid h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); margin-bottom: var(--s4); }
.tl-title { font-size: 18px; margin: var(--s6) 0 var(--s4); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: var(--s4); padding: 0 0 18px 30px; font-size: 15px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tl-end .tl-dot { background: var(--red); border-color: var(--red); }
.timeline b { font-weight: 500; }
.timeline time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tl-end b { font-weight: 700; }
.tl-end time { color: var(--ink); font-weight: 500; }
.calc { display: grid; gap: var(--s5); padding: var(--s5) var(--s4); background: var(--white); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--lift); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
.field-wide { grid-column: 1 / -1; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.seg button { padding-inline: 8px; }
.seg[data-seg="fuel"] { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.seg[data-seg="fuel"] button:first-child { grid-column: 1 / -1; }
.price-in { display: grid; gap: 10px; }
input[type="range"] { width: 100%; accent-color: var(--red); height: 24px; cursor: pointer; }
.receipt { padding: var(--s4); background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r); }
.receipt-head { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.lines { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lines li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.lines li span:first-child { color: var(--ink-2); font-family: var(--body); font-size: 14px; }
.lines li i { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); min-width: 12px; }
.lines li.flash b, #cc-monthly.tick { animation: flash .6s var(--ease); border-radius: 3px; }
@keyframes flash { from { background: rgba(209, 36, 47, .18); } to { background: transparent; } }
.lines b { font-weight: 500; white-space: nowrap; }
.lines .line-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); }
.lines .line-total span:first-child { font-weight: 600; color: var(--ink); }
.lines .line-total b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 600; }
.total b { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total-kgs { text-align: right; font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.lead-form { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: end; }
.lead-form .btn, .lead-form .err { grid-column: 1 / -1; }
.err { font-size: 13px; color: var(--red-2); }
.lead-ok { display: flex; gap: var(--s4); align-items: center; padding: var(--s4); border-radius: var(--r); background: #e7f3ec; color: var(--green); }
.lead-ok svg { width: 44px; height: 44px; flex: none; }
.lead-ok p { color: var(--ink); }
html.js .lead-ok:not([hidden]) { animation: rise .4s var(--ease); }
html.js .lead-ok:not([hidden]) circle { stroke-dasharray: 132; animation: draw .6s var(--ease) both; }
html.js .lead-ok:not([hidden]) path { stroke-dasharray: 30; animation: draw .4s var(--ease) .35s both; }
@keyframes draw { from { stroke-dashoffset: 132; } to { stroke-dashoffset: 0; } }

/* ---------- Credit ---------- */
.credit { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.credit-grid { display: grid; gap: var(--s7); }
.ticks { list-style: none; margin: var(--s5) 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg) translateY(-3px); }
.credit-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); filter: var(--grade); }
.cc { display: grid; gap: var(--s5); align-content: start; padding: var(--s5) var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); }
.cc .field > span:first-child { display: flex; justify-content: space-between; }
.cc .field > span:first-child b { color: var(--ink); font-size: 13px; }
.cc-out { display: grid; gap: 10px; padding-top: var(--s4); border-top: 2px solid var(--ink); }
.cc-out p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cc-out p:first-child b { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-out small { flex-basis: 100%; text-align: right; font-size: 12.5px; color: var(--muted); }
.cc-small { font-size: 14px; color: var(--ink-2); }
.cc-small b { font-weight: 500; }

/* ---------- How ---------- */
.how-grid { display: grid; gap: var(--s6); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.steps li { display: grid; gap: 8px; padding-top: var(--s4); border-top: 1px solid var(--ink); }
.step-n { font-size: 12px; color: var(--red); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--ink-2); font-size: 15px; }
.how-img { margin: 0; position: relative; }
.how-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); filter: var(--grade); }
.how-img figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; background: rgba(255, 255, 255, .92); border-radius: 3px; font-size: 12px; }

/* ---------- Abroad: the route (vertical on phones, a line on wider screens) ---------- */
.section.abroad { padding-top: 0; }
.route { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; position: relative; }
.route::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 14px); }
.route li { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 0 0 16px 30px; font-size: 14px; min-width: 0; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.route li:first-child::before { background: var(--red); border-color: var(--red); }
.route b { font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.route span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.abroad-grid { display: grid; gap: var(--s5); }
.abroad-grid h3 { font-size: 20px; margin-bottom: 8px; }
.abroad-grid p { color: var(--ink-2); font-size: 15px; }

/* ---------- Reviews: one pull quote, three quiet columns ---------- */
.reviews { background: var(--paper-2); }
.rev-grid { display: grid; gap: var(--s6) var(--s5); }
.rev-grid blockquote { margin: 0; display: grid; gap: var(--s3); align-content: start; padding-top: var(--s4); border-top: 1px solid var(--ink-2); }
.rev-grid p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.rev-grid footer { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.rev-grid footer span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rev-grid .rev-lead { padding: 0 0 0 var(--s5); border: 0; border-left: 3px solid var(--red); }
.rev-lead p { font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 4.2vw, 2.35rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); max-width: 32ch; text-wrap: balance; }

/* ---------- Contacts ---------- */
.ct-grid { display: grid; gap: var(--s6); }
.ct-list { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.ct-list > div { display: grid; gap: 6px; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.ct-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ct-list dd { margin: 0; font-size: 16px; }
.map-links, .msg-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.map-links a, .msg-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; }
.map-links a:hover, .msg-links a:hover { text-decoration-color: var(--red); }
.big-link { font-size: 22px; font-weight: 500; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s5); }
.faq-grid h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur) var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list details p { padding: 0 0 var(--s5); color: var(--ink-2); max-width: 62ch; }

/* ---------- Footer ---------- */
.ftr { padding: var(--s7) 0 calc(var(--s7) + 72px); background: var(--ink); color: #c7ccd2; }
.ftr .logo-mark, .ftr .logo-text { color: #fff; }
.ftr-grid { display: grid; gap: var(--s5); }
.ftr-grid p { font-size: 14px; margin-top: var(--s3); }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ftr-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.ftr-nav a:hover { color: #fff; }
.ftr-demo { font-family: var(--mono); font-size: 11.5px; color: #8b939c; max-width: 60ch; }

/* ---------- Car sheet (dialog): one scrolling column on phones ---------- */
dialog.car { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
dialog.car::backdrop { background: rgba(14, 18, 22, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html.js dialog.car[open]::backdrop { animation: fade .3s var(--ease); }
html.js dialog.car.closing::backdrop { animation: fade .24s ease reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.car-sheet { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
html.js dialog.car[open] .car-sheet { animation: sheetUp .4s var(--ease); }
html.js dialog.car.closing[open] .car-sheet { animation: sheetDown .24s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes sheetUp { from { opacity: 0; transform: translateY(36%); } }
@keyframes sheetDown { to { opacity: 0; transform: translateY(28%); } }
.car-top { position: sticky; top: 0; z-index: 6; order: -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 60px; margin-bottom: -60px; padding: 0 8px 0 var(--pad); pointer-events: none; transition: background .2s, box-shadow .2s; }
.car-top > * { pointer-events: auto; }
.car-top-name { min-width: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); }
dialog.top-on .car-top { background: rgba(241, 242, 238, .95); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog.top-on .car-top-name { opacity: 1; transform: none; }
.car-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .92); cursor: pointer; }
.car-close svg { width: 20px; height: 20px; }
.car-media, .car-info { display: contents; }
.car-photo { order: 0; position: relative; background: var(--paper-2); }
.car-photo img { width: 100%; height: auto; filter: var(--grade); }
.car-photo .manifest { position: relative; aspect-ratio: 4 / 3; padding: 72px var(--pad) 16px; }
.car-photo .mf-model { font-size: clamp(3.4rem, 17vw, 6.5rem); }
.car-head { order: 1; display: grid; gap: var(--s3); padding: var(--s5) var(--pad) 0; }
.pin-notes:empty { display: none; }
.pin-notes { order: 2; list-style: none; margin: var(--s5) 0 0; padding: 0 var(--pad); display: grid; font-size: 14px; }
.car-photo-note { order: 3; padding: var(--s2) var(--pad) 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.car-body { order: 4; display: grid; gap: var(--s3); padding: 0 var(--pad); }
.car-report-wrap { order: 5; display: grid; gap: var(--s3); padding: 0 var(--pad) var(--s7); }
.car-report-wrap .car-h { margin-top: var(--s5); }
.pin {
  position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; padding: 0;
  border: 2px solid #fff; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: background var(--dur);
}
.pin::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
html.js dialog.car[open] .pin { animation: pinIn .4s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .12s); }
@keyframes pinIn { from { opacity: 0; transform: scale(.4); } }
.pin[aria-expanded="true"] { background: var(--ink); }
.pin-tip {
  position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: min(240px, 70vw); padding: 8px 10px;
  transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: var(--r); font: 13px/1.35 var(--body); text-align: left; pointer-events: none;
  animation: tipIn .22s var(--ease);
}
.pin.tip-r .pin-tip { left: auto; right: -8px; transform: none; animation-name: tipSide; }
.pin.tip-l .pin-tip { left: -8px; transform: none; animation-name: tipSide; }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes tipSide { from { opacity: 0; transform: translateY(6px); } }
.pin-head { padding-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pin-li { display: flex; gap: 10px; align-items: baseline; width: 100%; min-height: 44px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.pin-li b { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500; transform: translateY(4px); }
.pin-li:hover span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
#car-title:focus { outline: none; }
.car-status { font-family: var(--mono); font-size: 12px; display: inline-flex; gap: 8px; align-items: center; }
.car-info h2 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.car-trim { font-size: 13px; color: var(--muted); }
.car-price { display: grid; gap: 2px; padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--s2) 0; }
.car-price b { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.car-price > span { font-size: 13px; color: var(--muted); }
.car-credit { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.car-ctas { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s2); }
.car-ctas .btn { white-space: normal; text-align: center; padding-inline: 12px; }
.car-h { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: var(--s5); }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 10px; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.report { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.rep-sum { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px; font-weight: 600; font-size: 15px; line-height: 1.35; border-bottom: 1px solid var(--line); }
.rep-sum::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.rep-sum.ok { background: #e7f3ec; color: #17603f; }
.rep-sum.warn { background: #f7eedd; color: #74480a; }
.rep-row { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rep-row b { font-family: var(--mono); font-weight: 500; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; text-align: right; }
.rep-row b.ok { color: var(--green); }
.rep-row b.ok::before { content: ""; width: 9px; height: 5px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.rep-row b.warn { color: var(--amber); }
.rep-chart { padding: 12px 14px 8px; }
.rep-chart p { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.km-chart { display: block; width: 100%; height: auto; overflow: visible; }
.km-chart .axis { stroke: var(--line-2); stroke-width: 1; }
.km-chart .km-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
html.js dialog.car[open] .km-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: line .9s var(--ease) .3s forwards; }
@keyframes line { to { stroke-dashoffset: 0; } }
.km-chart .km-dot { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.km-chart .km-dot.last { fill: var(--red); stroke: var(--red); }
.km-chart text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.km-chart .km-val { fill: var(--ink-2); }
.rep-src { padding: 8px 14px 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
/* the dock: price + WhatsApp + call, once the inline buttons have scrolled away */
.car-dock {
  order: 9; position: sticky; bottom: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s2);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff;
  transform: translateY(105%); transition: transform .3s var(--ease);
}
dialog.dock-on .car-dock { transform: none; }
.dock-price { display: grid; gap: 3px; min-width: 0; }
.dock-price b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dock-price span { font-size: 12px; color: #aeb6bf; }
.car-dock .btn-ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
body.sheet-open { overflow: hidden; }

/* ---------- Mobile bar + floating WhatsApp ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.25fr; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); transform: translateY(110%); transition: transform .3s var(--ease); }
.mbar.show { transform: none; }
body.sheet-open .mbar, body.nav-open .mbar { transform: translateY(110%); }
.mbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; border-right: 1px solid rgba(255, 255, 255, .12); }
.mbar a svg { width: 17px; height: 17px; }
.mbar .mbar-wa { color: #7de3a2; }
.mbar .mbar-pick { background: var(--red); border-right: 0; }
.float-wa { display: none; }

/* ---------- Reveals (JS-gated) + load sequence ---------- */

html.js .rise { animation: rise .65s var(--ease) both; }
html.js .hero-copy .rise:nth-child(2) { animation-delay: .08s; }
html.js .hero-copy .rise:nth-child(3) { animation-delay: .16s; }
html.js .hero-copy .rise:nth-child(4) { animation-delay: .24s; }
html.js .hero-copy .rise:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
html.js .hero-car img { animation: carIn .9s var(--ease) .1s both; }
@keyframes carIn { from { opacity: 0; transform: translateX(48px); } }
html.js .sticker { animation: stick .55s var(--ease) .45s both; }
@keyframes stick { from { opacity: 0; transform: rotate(-9deg) translateY(-14px); } to { opacity: 1; transform: rotate(var(--rot)); } }

/* ---------- ≥ 560 ---------- */
@media (min-width: 560px) {
  .finder { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .finder-go { grid-column: auto; }
  .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .selects .field:last-child { grid-column: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-form { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .route::before { left: 7px; right: 7px; top: 7px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
  .route li { display: grid; gap: 2px; justify-content: start; padding: 26px 8px 0 0; }
  .route li::before { top: 0; }
}

/* ---------- ≥ 768 ---------- */
@media (min-width: 768px) {
  .hdr-cta { display: inline-flex; }
  /* the ledger: 2 × 2 on tablets, one row from 1024 */
  .led-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .led-row li + li { border-top: 0; }
  .led-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .led-row li:nth-child(even) { border-left: 1px solid var(--line); }
  .led { grid-template-columns: auto minmax(0, 1fr); padding: 16px 16px 16px 14px; }
  .led-row li:nth-child(odd) .led { padding-left: 0; }
  .rev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rev-grid .rev-lead { grid-column: 1 / -1; }
}

/* ---------- ≥ 900 ---------- */
@media (min-width: 900px) {
  :root { --pad: 32px; }
  .section { padding: var(--s9) 0; }
  .filters { grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: var(--s4); }
  .selects { justify-self: end; width: min(100%, 560px); }
  .abroad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .ct-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: var(--s8); }
  .ftr-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .route b { font-size: 18px; }
  .calc, .cc { padding: var(--s6); }
  .led b { font-size: 30px; }
}

/* ---------- ≥ 1024: desktop layout ---------- */
@media (min-width: 1024px) {
  .hero { padding: var(--s6) 0 var(--s5); }
  .ledger { padding-top: var(--s5); }
  .led-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .led-row li:nth-child(n+3) { border-top: 0; }
  .led-row li + li { border-left: 1px solid var(--line); }
  .led-row li:nth-child(3) .led { padding-left: 14px; }
  .hero-grid { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); align-items: center; gap: var(--s7); }
  .hero-title { font-size: clamp(3rem, 4.6vw, 4.4rem); }
  .hero-car { margin: 0 calc(-1 * max(var(--pad), (100vw - var(--wrap)) / 2)) 0 0; }
  .hero-car img { aspect-ratio: 5 / 4; object-position: 30% 62%; border-radius: var(--r2) 0 0 var(--r2); }
  .sticker { --rot: -2.2deg; position: absolute; left: -44px; bottom: 40px; margin: 0; width: 240px; grid-template-columns: 1fr; gap: 0; }
  .st-r { padding: 6px 0 0; margin-top: 6px; border-left: 0; border-top: 1px dashed var(--line-2); text-align: left; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
  .order-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
  .order-copy { position: sticky; top: calc(var(--hdr) + var(--s5)); }
  .credit-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
  .how-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; }
  .mbar { display: none; }
  .ftr { padding-bottom: var(--s7); }
  .float-wa {
    position: fixed; right: 24px; bottom: 24px; z-index: 50; display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); transition: transform .3s var(--ease), opacity .3s;
  }
  .float-wa svg { width: 28px; height: 28px; }
  .float-wa.is-hidden, body.sheet-open .float-wa { opacity: 0; transform: translateY(16px); pointer-events: none; }
  /* the sheet becomes a centred two-column panel: photo + marks + report | price + breakdown + specs */
  dialog.car[open] { display: grid; place-items: center; }
  .car-sheet { position: relative; inset: auto; width: min(1180px, 100% - 48px); height: min(880px, 100% - 48px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border-radius: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, .35); }
  html.js dialog.car[open] .car-sheet { animation-name: panelIn; }
  html.js dialog.car.closing[open] .car-sheet { animation-name: panelOut; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
  @keyframes panelOut { to { opacity: 0; transform: translateY(12px) scale(.985); } }
  .car-top { position: absolute; top: 14px; right: 14px; height: auto; margin: 0; padding: 0; }
  .car-top-name, .car-dock { display: none; }
  .car-media { display: grid; gap: var(--s3); align-content: start; overflow-y: auto; padding-bottom: var(--s5); background: var(--white); }
  .car-info { display: grid; align-content: start; gap: var(--s3); overflow-y: auto; padding: var(--s6) var(--s6) var(--s7); }
  .car-head, .car-body { padding: 0; }
  .pin-notes { margin-top: var(--s2); }
  .pin-notes, .car-photo-note, .car-report-wrap { padding: 0 var(--s5); }
  .car-report-wrap { padding-bottom: 0; }
  .car-photo .manifest { aspect-ratio: 16 / 10; padding: 64px var(--s6) 20px; }
  .car-photo .mf-model { font-size: clamp(4.5rem, 7vw, 6.5rem); }
}

/* two-up cards are too short for the manifest's VIN line; below 720 px the pill needs the id's room */
@media (min-width: 560px) and (max-width: 1023px) { .card .mf-vin { display: none; } }
@media (min-width: 560px) and (max-width: 719px) { .card-id, .card .mf-note { display: none; } }

@media (min-width: 1024px) and (max-width: 1279px) {
  .finder { grid-template-columns: 1fr 1fr; }
  .finder-go { grid-column: 1 / -1; }
}

/* ---------- ≥ 1180: the full nav ---------- */
@media (min-width: 1180px) {
  .nav { display: flex; gap: 20px; margin-right: var(--s4); }
  .nav > a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 0; white-space: nowrap; }
  .nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--red); transition: right .3s var(--ease); }
  .nav > a:hover { color: var(--ink); }
  .nav > a:hover::after { right: 0; }
  .burger { display: none; }
}
@media (min-width: 1400px) {
  .hdr-phone { width: auto; height: 44px; padding: 0 12px; gap: 8px; display: inline-flex; align-items: center; }
  .hdr-phone span { display: inline; font-size: 14px; }
  .nav { gap: 26px; }
  /* the Kyrgyz nav is ~100 px longer: its number stays an icon, or the CTA runs past the wrap */
  html[lang="ky"] .hdr-phone { width: 44px; padding: 0; justify-content: center; }
  html[lang="ky"] .hdr-phone span { display: none; }
}
@media (max-width: 420px) {
  .hdr-phone { display: none; }
  .lang button { min-width: 34px; padding: 0 4px; }
  .hdr-row { gap: var(--s2); }
}
/* 320 px phones (iPhone SE 1st gen): logo + RU/KG/EN + menu must fit without clipping the menu */
@media (max-width: 359px) {
  .logo { gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-text { font-size: 17px; }
  .hdr-actions { gap: 2px; }
  .lang button { min-width: 30px; padding: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  
}
