/* Elisa Motors – mobile-first stylesheet */
:root {
  --ink: #101820;
  --ink-2: #3b4652;
  --muted: #6b7682;
  --line: #e4e1da;
  --paper: #faf8f4;
  --card: #ffffff;
  --accent: #c8410b;
  --accent-ink: #a33408;
  --accent-soft: #fbeee6;
  --deep: #0e2a3a;
  --wa: #1fa855;
  --wa-ink: #168a45;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 6px 24px rgba(16, 24, 32, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --bar-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; padding-bottom: var(--bar-h); }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.85rem, 5.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.25em; border-radius: 999px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.topbar { background: var(--deep); color: #d7e3ea; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { text-decoration: none; color: #fff; font-weight: 600; }
.topbar .hide-sm { display: none; }
header.site { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 244, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; margin-right: auto; }
.logo svg { width: 36px; height: 36px; }
.logo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -3px; }
nav.main { display: none; }
nav.main a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); background: #efece5; }
.menu-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.header-cta { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(16, 24, 32, .45); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: var(--paper); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; animation: slideIn .2s ease-out; }
.drawer-panel a:not(.btn) { display: block; padding: 12px 10px; text-decoration: none; font-weight: 600; border-radius: 10px; }
.drawer-panel a:not(.btn):hover { background: #efece5; }
.drawer-panel .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 14px 10px 4px; font-weight: 700; }
.drawer-close { align-self: flex-end; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: flex; gap: 8px; box-shadow: 0 -6px 20px rgba(16, 24, 32, .08); }
.action-bar .btn { flex: 1; min-height: 48px; padding: .6em .8em; font-size: .95rem; }
.action-bar .price-mini { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; min-width: 0; flex: 0 1 auto; }
.action-bar .price-mini b { font-size: 1rem; white-space: nowrap; }
.action-bar .price-mini span { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
body.has-bar { --bar-h: 72px; }
.import-float { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 42, 58, .35) 0%, rgba(14, 42, 58, .88) 75%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffd7c2; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.08rem; color: #dce7ee; max-width: 52ch; }
.search-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); margin-top: 22px; display: grid; gap: 10px; }
.search-card label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: 4px; }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 22px; font-size: .88rem; color: #e6eef3; }
.trust div { display: flex; gap: 8px; align-items: flex-start; }
.trust svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #7fd3a4; }

/* ---------- Forms ---------- */
input, select, textarea { font: inherit; color: inherit; width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; appearance: none; -webkit-appearance: none; }
select { background-image: 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' stroke='%236b7682' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.field { display: grid; gap: 6px; }
.field > span, .field-label { font-weight: 600; font-size: .9rem; }
.field .req { color: var(--accent); }
.grid-2 { display: grid; gap: 14px; }
.hint { font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.chip:hover { border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.chip:has(input:checked), .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip .count { font-weight: 500; opacity: .6; font-size: .8rem; }
.hp { position: absolute; left: -5000px; }

/* ---------- Sections ---------- */
section.block { padding: 48px 0; }
section.block.alt { background: #f1eee7; }
section.block.dark { background: var(--deep); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.dark .section-head p { color: #b9cad4; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--accent); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile svg { width: 56px; height: 32px; color: var(--accent); }
.tile b { font-size: 1rem; }
.tile span { font-size: .82rem; color: var(--muted); }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.car-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.car-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.car-card .ph { aspect-ratio: 3 / 2; background: #e9e5dc; overflow: hidden; }
.car-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.car-card:hover .ph img { transform: scale(1.04); }
.car-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-card h3 { margin: 0; font-size: 1.12rem; }
.car-card h3 a { text-decoration: none; }
.car-card h3 a::after { content: ''; position: absolute; inset: 0; }
.car-card .make { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.specs-mini span { font-size: .78rem; background: #f3f0ea; padding: 3px 9px; border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.car-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 8px; padding-top: 6px; }
.price-from small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price-from b { font-size: 1.12rem; }
.flags { font-size: .78rem; color: var(--muted); text-align: right; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }

/* ---------- Country cards ---------- */
.countries { display: grid; gap: 14px; }
.country { border-radius: var(--radius); padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; display: grid; gap: 8px; transition: background .15s; }
.country:hover { background: rgba(255, 255, 255, .12); }
.country .flag { justify-self: start; font-size: .75rem; font-weight: 800; letter-spacing: .12em; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 6px; }
.country h3 { margin: 0; font-size: 1.25rem; }
.country p { margin: 0; color: #c5d4dc; font-size: .92rem; }
.country dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: .85rem; }
.country dt { color: #9fb4c0; }
.country dd { margin: 0; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 16px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: 20px; padding: 28px 22px; display: grid; gap: 16px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; color: #ffe6d9; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--muted); padding: 14px 0 6px; overflow-x: auto; white-space: nowrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* ---------- Page head ---------- */
.page-head { padding: 12px 0 24px; }
.page-head p { color: var(--ink-2); max-width: 70ch; font-size: 1.05rem; }

/* ---------- Listing / filters ---------- */
.listing { display: grid; gap: 20px; padding-bottom: 48px; }
.filter-toggle { display: flex; gap: 10px; align-items: center; position: sticky; top: 64px; z-index: 20; background: var(--paper); padding: 10px 0; }
.filter-toggle .btn { flex: 1; }
.filters { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; gap: 18px; }
.filters.open { display: grid; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.filters .chip { min-height: 36px; font-size: .85rem; padding: 4px 12px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar select { width: auto; min-height: 42px; }
.empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Car detail ---------- */
.detail { display: grid; gap: 24px; padding-bottom: 40px; }
.detail > *, .listing > *, .two-col > *, .car-grid > * { min-width: 0; }
.gallery .main { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: #e9e5dc; margin: 0 -16px; border-radius: 0; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { flex: 0 0 88px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #e9e5dc; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.gallery figcaption a { color: inherit; }
.detail-head .make { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.detail-head h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin-bottom: .3em; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; font-size: .95rem; }
.variant-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.variant { display: block; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; position: relative; }
.variant:hover { border-color: #b9b3a6; }
.variant input { position: absolute; opacity: 0; }
.variant:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.variant:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.variant .top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.variant .top b { font-size: 1.02rem; }
.variant .top .p { text-align: right; font-weight: 800; white-space: nowrap; }
.variant .top .p small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); }
.variant .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 1px; display: grid; place-items: center; }
.variant:has(input:checked) .radio { border-color: var(--accent); }
.variant:has(input:checked) .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.variant .name { display: flex; gap: 10px; align-items: start; }
.variant .specs-mini { margin-top: 8px; padding-left: 32px; }
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.order-box .sel { display: flex; justify-content: space-between; gap: 10px; align-items: end; }
.order-box .sel b { font-size: 1.35rem; }
.disclaimer { font-size: .78rem; color: var(--muted); }
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 600px; }
table.spec thead th { white-space: nowrap; }
table.spec th, table.spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: #f3f0ea; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
table.spec tbody th { font-weight: 700; }
table.spec tr:last-child td, table.spec tr:last-child th { border-bottom: 0; }
table.spec.kv { min-width: 0; }
table.spec.kv th { width: 42%; color: var(--muted); font-weight: 600; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.two-col { display: grid; gap: 28px; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; font-size: .92rem; }

/* ---------- Modal / sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(16, 24, 32, .55); }
.modal-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94vh; overflow-y: auto; background: var(--paper); border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
.modal-panel::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: #d4cfc4; margin: 6px auto 12px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: 1.35rem; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.order-summary { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.order-summary img { width: 84px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.order-summary b { display: block; }
form.stack { display: grid; gap: 14px; }
.success { text-align: center; padding: 20px 6px; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.success .tick svg { width: 32px; height: 32px; }
.success .ref { display: inline-block; background: #fff; border: 1px dashed var(--ink-2); border-radius: 8px; padding: 6px 12px; font-weight: 800; letter-spacing: .06em; margin: 6px 0 14px; }
.error-msg { color: #b91c1c; font-size: .85rem; font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: #b91c1c; }

/* ---------- Wizard ---------- */
.wizard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.progress div { height: 6px; border-radius: 3px; background: var(--line); }
.progress div.on { background: var(--accent); }
.step-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.wizard .step { display: none; }
.wizard .step.on { display: grid; gap: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 4px; }
.wizard-nav .btn { flex: 1; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: #b7c0c9; padding: 44px 0 24px; font-size: .92rem; }
footer.site a { text-decoration: none; color: #e5eaee; }
footer.site a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.foot-grid h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .logo { color: #fff; margin-bottom: 10px; }
.foot-brand .logo small { color: #8b98a5; }
.foot-legal { border-top: 1px solid #26313b; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .8rem; }

/* ---------- Credits ---------- */
.credits-list { display: grid; gap: 6px; font-size: .82rem; }
.credits-list li { word-break: break-word; }

/* ============ Tablet ============ */
@media (min-width: 640px) {
  .topbar .hide-sm { display: inline; }
  .car-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .trust { grid-template-columns: repeat(4, auto); justify-content: start; }
  .search-card { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; padding: 16px; }
  .search-row { display: contents; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .gallery .main { margin: 0; border-radius: var(--radius); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .modal-panel { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 90vh; border-radius: 22px; padding: 20px 24px 24px; animation: none; }
  .modal-panel::before { display: none; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
  .wizard { padding: 28px; }
}

/* ============ Desktop ============ */
@media (min-width: 960px) {
  nav.main { display: flex; gap: 2px; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; min-height: 42px; padding: .5em 1.1em; }
  .action-bar.global { display: none; }
  body.has-bar.bar-global-only { --bar-h: 0px; }
  .import-float { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 22px; bottom: 22px; z-index: 44; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(200, 65, 11, .35); transition: transform .15s, background .15s; }
  .import-float:hover { transform: translateY(-2px); background: var(--accent-ink); }
  .import-float svg { width: 22px; height: 22px; }
  .hero .wrap { padding-top: 88px; padding-bottom: 64px; }
  .car-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 64px 18px 20px; }
  section.block { padding: 72px 0; }
  .listing { grid-template-columns: 270px 1fr; align-items: start; }
  .filter-toggle { display: none; }
  .filters { display: grid; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .detail { grid-template-columns: 1.25fr 1fr; align-items: start; gap: 32px 40px; }
  .d-gallery { grid-column: 1; grid-row: 1; }
  .d-info { grid-column: 1; grid-row: 2; }
  .detail .side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
  .action-bar.car { display: none; }
  body.has-bar.bar-car { --bar-h: 0px; }
  .two-col { grid-template-columns: 1.6fr 1fr; gap: 48px; }
  .tiles { grid-template-columns: repeat(8, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.modal-panel:focus, .drawer-panel:focus { outline: none; }

/* ---------- Features, version notes, sitemap ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.feature-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.v-note { margin: 8px 0 0 32px; font-size: .82rem; color: var(--ink-2); }
.v-link { display: inline-block; margin: 8px 0 0 32px; font-size: .82rem; font-weight: 700; color: var(--accent); text-decoration: none; position: relative; z-index: 1; }
.v-link:hover { text-decoration: underline; }
.h1-sub { display: block; font-size: .5em; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
table.spec.wide { min-width: 820px; }
table.spec tr.current { background: var(--accent-soft); }
table.spec th a { color: inherit; }
.sitemap-list { columns: 1; padding-left: 1.1em; }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } .sitemap-list { columns: 2; } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(5, 1fr); } .sitemap-list { columns: 3; } }
