/* Skladové autá – public site. Mobile first. */
:root {
  --ink: #12241D;
  --ink-2: #41524A;
  --muted: #6B7A72;
  --line: #E0E8E3;
  --bg: #F3F7F5;
  --surface: #FFFFFF;
  --blue: #0A7550;          /* actions – emerald 700, white text 5.7:1 */
  --blue-ink: #075E41;
  --brand: #12A26F;          /* emerald 500 – icons, large accents */
  --coral: #FF6A4D;
  --eu: #0B3D91;            /* licence plate strip – stays authentic */
  --yellow: #FFC93C;        /* Top listings */
  --green: #0A7550;         /* savings */
  --green-bg: #E3F6EC;
  --red: #D92D20;
  --radius: 20px;
  --radius-s: 14px;
  --shadow: 0 1px 2px rgba(18, 36, 29, .05), 0 8px 24px rgba(18, 36, 29, .07);
  --shadow-lg: 0 20px 50px rgba(7, 61, 43, .18);
  --grad: linear-gradient(135deg, #0A7550 0%, #12A26F 100%);
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDF5F1; --ink-2: #C2D2CA; --muted: #93A59C; --line: #26352E; --bg: #0D1512; --surface: #15201B;
    --blue: #1E9E6D; --blue-ink: #7FE0B4; --green: #4CD39A; --green-bg: #133126;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.005em; margin: 0; }
h1 { font-size: clamp(30px, 7vw, 54px); }
h2 { font-size: clamp(22px, 4.5vw, 30px); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; letter-spacing: .02em; }
.save { color: var(--green); font-weight: 600; }

/* ---------- signature: Slovak licence plate ---------- */
.plate { display: inline-flex; align-items: stretch; background: #fff; color: #111; border: 2px solid #111;
  border-radius: 7px; overflow: hidden; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; box-shadow: inset 0 0 0 2px #fff; }
.plate__eu { background: var(--eu); color: #fff; display: grid; place-items: end center; padding: 19px 6px 3px;
  font-size: 11px; letter-spacing: .04em; position: relative; min-width: 26px; }
.plate__eu::before { content: ""; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, transparent 4.5px, var(--yellow) 4.5px, var(--yellow) 6px, transparent 6px); opacity: .95; }
.plate__text { padding: 3px 10px; font-size: 18px; line-height: 1.2; white-space: nowrap; display: flex; align-items: center; }
.plate--small .plate__text { font-size: 15px; }
.plate--input { flex: 1; border-width: 3px; border-radius: 10px; min-width: 0; }
.plate--input .plate__eu { min-width: 38px; font-size: 14px; padding: 30px 6px 6px; }
.plate--input .plate__eu::before { top: 9px; width: 20px; height: 20px;
  background: radial-gradient(circle, transparent 6.5px, var(--yellow) 6.5px, var(--yellow) 8.5px, transparent 8.5px); }
.plate--input input { flex: 1; min-width: 0; border: 0; outline: 0; font: 700 22px/1 var(--display); letter-spacing: .05em;
  text-transform: uppercase; padding: 12px 12px; color: #111; background: #fff; }
.plate--input input::placeholder { color: #9AA1A9; text-transform: none; letter-spacing: .01em; font-weight: 600; }
.plate--input:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { text-decoration: none; }
.main-nav { display: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.main-nav a:hover { background: #EAF8F1; color: var(--blue-ink); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; }
.menu nav a { padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 8px; font-weight: 500; }
.menu nav a:hover { background: var(--bg); }
@media (min-width: 900px) {
  .main-nav { display: flex; gap: 4px; }
  .menu { display: none; }
}

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px;
  border-radius: 14px; transition: transform .15s, box-shadow .15s, background .15s; border: 0; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(10, 117, 80, .32); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10, 117, 80, .42); }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--dark:hover { transform: translateY(-1px); }
.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-2); }
.btn--block { width: 100%; }
select, input[type=number], input[type=search], input[type=text] { font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; min-height: 48px; padding: 0 12px; width: 100%; }
select:focus, input:focus { border-color: var(--blue); outline: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 36px 0 40px;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(111, 211, 166, .55) 0%, transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(18, 162, 111, .55) 0%, transparent 60%),
    linear-gradient(135deg, #073D2B 0%, #0A5A3F 50%, #0B7A55 100%); }
.hero__glow { position: absolute; inset: auto -10% -45% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, .22), transparent 65%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 28px; }
.hero__pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 14px; font-weight: 500; }
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DF0A6; box-shadow: 0 0 0 4px rgba(61,240,166,.25); }
.hero__title { max-width: 13ch; font-size: clamp(36px, 8.5vw, 68px); line-height: 1.02; }
.hero__title em { font-style: normal; color: var(--yellow); position: relative; white-space: nowrap; }
.hero__title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 4px;
  background: var(--yellow); opacity: .9; transform-origin: left; animation: underline .7s .3s both ease-out; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__sub { font-size: 18px; color: rgba(255,255,255,.86); max-width: 44ch; margin: 16px 0 24px; }
.search-card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 14px; box-shadow: var(--shadow-lg); max-width: 640px; }
.plate-search { display: flex; flex-direction: column; gap: 10px; }
.plate-search .btn { min-height: 56px; font-size: 18px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.quick select:first-child { grid-column: 1 / -1; }
.quick .btn { grid-column: 1 / -1; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; color: rgba(255,255,255,.85); font-size: 15px; }
.hero__trust strong { color: #fff; }
.showcase { position: relative; min-height: 230px; }
.showcase__car { position: absolute; display: block; text-decoration: none; color: var(--ink); }
.showcase__car img { width: 100%; height: auto; filter: drop-shadow(0 26px 22px rgba(3, 30, 20, .5)); }
.showcase__car--1 { left: 2%; right: 2%; top: 0; animation: drive-in .8s .1s both cubic-bezier(.2,.8,.2,1); }
.showcase__car--2, .showcase__car--3 { display: none; }
.showcase::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 6%; height: 34%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.32), rgba(255,255,255,0) 70%); }
.tag-float { position: absolute; right: 4%; top: 4%; display: grid; gap: 1px; background: var(--surface); color: var(--ink); border-radius: 16px;
  padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 13px; animation: bob 5s ease-in-out infinite; }
.tag-float__name { color: var(--muted); font-weight: 600; }
.tag-float strong { font: 700 22px/1.1 var(--display); }
.tag-float .save { font-size: 13px; }
@keyframes drive-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (min-width: 640px) {
  .plate-search { flex-direction: row; }
  .plate-search .btn { padding: 0 32px; }
  .quick { grid-template-columns: 1.3fr 1fr 1fr auto; }
  .quick select:first-child, .quick .btn { grid-column: auto; }
  .showcase { min-height: 340px; }
}
@media (min-width: 1000px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
  .showcase { min-height: 470px; }
  .showcase__car--1 { left: 0; right: 4%; top: 12%; z-index: 2; }
  .showcase__car--2, .showcase__car--3 { display: block; width: 46%; opacity: .95; }
  .showcase__car--2 { right: -4%; top: -4%; z-index: 1; animation: drive-in .8s .35s both cubic-bezier(.2,.8,.2,1); }
  .showcase__car--3 { left: -6%; bottom: -2%; z-index: 3; animation: drive-in .8s .55s both cubic-bezier(.2,.8,.2,1); }
  .showcase__car--2 .tag-float, .showcase__car--3 .tag-float { font-size: 12px; padding: 7px 10px; }
  .showcase__car--2 .tag-float strong, .showcase__car--3 .tag-float strong { font-size: 17px; }
  .showcase__car--1 .tag-float { right: 2%; top: auto; bottom: -6%; }
  .showcase__car--3 .tag-float { right: auto; left: 18%; top: auto; bottom: -12%; animation-delay: -2s; }
  .showcase__car--2 .tag-float { animation-delay: -3.5s; }
}

/* quick categories */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -22px; position: relative; z-index: 2; }
.cat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px; border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cat__icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 14px; background: var(--c, var(--grad));
  -webkit-mask: none; position: relative; }
.cat__icon::after { content: ""; position: absolute; inset: 11px; background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.cat__name { font: 700 18px/1.1 var(--display); }
.cat__n { font-size: 13px; color: var(--muted); }
.cat--ev { --c: linear-gradient(135deg, #22C3E6, #0E7FB7); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.cat--hybrid { --c: linear-gradient(135deg, #12A26F, #0E7C70); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3c-6 0-12 4-12 11 0 2 .6 3.6 1.5 5L4 21.5 5.5 23l2.5-2.5C9.4 21.4 11 22 13 22c7 0 9-9 9-19h-5zm-4 16c-1.1 0-2.2-.3-3.1-.8L15 13l-1.4-1.4-5.2 5.2C7.9 15.9 7.6 14.9 7.6 14c0-5 4.4-8.6 11.4-9-.4 8.6-2.4 14-6 14z'/%3E%3C/svg%3E"); }
.cat--budget { --c: linear-gradient(135deg, #FFB020, #FF7A1A); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4.5c-2.9 0-5.4 1.8-6.4 4.5H5v2h3.1a7 7 0 0 0 0 2H5v2h3.6c1 2.7 3.5 4.5 6.4 4.5 1.6 0 3-.5 4.2-1.4l-1.3-1.6c-.8.6-1.8 1-2.9 1-1.8 0-3.4-1-4.2-2.5H15v-2h-5.8a5 5 0 0 1 0-2H15V9h-4.2C11.6 7.5 13.2 6.5 15 6.5c1.1 0 2.1.4 2.9 1l1.3-1.6A6.9 6.9 0 0 0 15 4.5z'/%3E%3C/svg%3E"); }
.cat--auto { --c: linear-gradient(135deg, #8B5CF6, #6D28D9); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h2v8h4V3h2v8h4V3h2v10h-6v8h-2v-8H5V3z'/%3E%3C/svg%3E"); }
.cat--deal { --c: linear-gradient(135deg, #FF6A4D, #F43F7A); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.4 11.6 12.4 2.6A2 2 0 0 0 11 2H4a2 2 0 0 0-2 2v7c0 .6.2 1.1.6 1.4l9 9a2 2 0 0 0 2.8 0l7-7a2 2 0 0 0 0-2.8zM6.5 8A1.5 1.5 0 1 1 8 6.5 1.5 1.5 0 0 1 6.5 8z'/%3E%3C/svg%3E"); }
.cat--new { --c: linear-gradient(135deg, #FFC93C, #F59E0B); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.6 6.6L21 9.3l-5 4.5 1.5 6.7L12 17l-5.5 3.5L8 13.8 3 9.3l6.4-.7z'/%3E%3C/svg%3E"); }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(6, 1fr); margin-top: -36px; } }

/* ---------- sections ---------- */
.section { margin: 44px auto; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section__head a { white-space: nowrap; font-weight: 600; text-decoration: none; color: var(--blue); }

.brand-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brand-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px 14px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.brand-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.brand-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.brand-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; background: #F1F6F3; display: grid; place-items: center; flex: none;
  transition: background .18s; }
.brand-logo::after { content: ""; width: 28px; height: 28px; background: #1C2A24;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background .18s; }
.brand-logo--text { font: 700 15px/1 var(--display); letter-spacing: .02em; color: #1C2A24; }
.brand-logo--text::after { display: none; }
.brand-card:hover .brand-logo { background: var(--grad); }
.brand-card:hover .brand-logo::after { background: #fff; }
.brand-card:hover .brand-logo--text { color: #fff; }
/* count badge */
.brand-card__count { display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 9px 4px 8px; border-radius: 999px;
  background: var(--green-bg); color: var(--blue-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.brand-card__count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); align-self: center; margin-right: 2px; }
.brand-card__count strong { font: 700 14px/1 var(--display); letter-spacing: .01em; }
.brand-card__name { font: 700 19px/1.1 var(--display); letter-spacing: .01em; margin-top: 2px; overflow-wrap: anywhere; }
/* price row at the bottom */
.brand-card__price { display: flex; align-items: baseline; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.brand-card__from { font-size: 12px; color: var(--muted); }
.brand-card__price strong { font: 700 17px/1 var(--display); letter-spacing: .01em; }
.brand-card__go { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; align-self: center;
  background: #F1F6F3; color: var(--ink-2); font-size: 14px; transition: background .18s, color .18s, transform .18s; }
.brand-card:hover .brand-card__go { background: var(--blue); color: #fff; transform: translateX(3px); }
@media (prefers-color-scheme: dark) {
  .brand-card__count { background: rgba(18, 162, 111, .16); color: #7FE0B4; }
  .brand-card__go { background: rgba(255, 255, 255, .08); color: var(--ink-2); }
}
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .brand-card { padding: 18px 18px 14px; gap: 12px; }
  .brand-logo { width: 54px; height: 54px; border-radius: 16px; }
  .brand-logo::after { width: 32px; height: 32px; }
  .brand-card__name { font-size: 22px; }
  .brand-card__price strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .brand-card, .brand-card__go { transition: none; } .brand-card:hover { transform: none; } }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 42%; } }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc(25% - 9px); margin: 0; padding-left: 0; padding-right: 0; } }

.model-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.model-cloud a, .chips a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.model-cloud a span, .chips a span { color: var(--muted); font-size: 13px; }
.model-cloud a:hover, .chips a:hover { border-color: transparent; background: #EAF8F1; color: var(--blue-ink); }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips li { flex: 0 0 auto; }

.drop-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.drop-list li + li { border-top: 1px solid var(--line); }
.drop-list a { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.drop-list__car { font-weight: 600; }
.drop-list__dealer { font-size: 13px; color: var(--muted); }
.drop-list__price s { color: var(--muted); }
@media (min-width: 800px) { .drop-list a { grid-template-columns: 2fr 1.4fr auto; align-items: center; gap: 16px; } }

.explain__grid { display: grid; gap: 12px; margin-top: 14px; }
.explain__grid p { margin: 0; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink-2); }
.explain__grid p:nth-child(1) { background: linear-gradient(160deg, #EAF8F1, var(--surface) 60%); }
.explain__grid p:nth-child(2) { background: linear-gradient(160deg, #FFF6DB, var(--surface) 60%); }
.explain__grid p:nth-child(3) { background: linear-gradient(160deg, #FFF1EC, var(--surface) 60%); }
.explain__grid strong { display: block; color: var(--ink); font: 700 20px/1.2 var(--display); margin-bottom: 4px; }
@media (min-width: 800px) { .explain__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- car card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid transparent;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card--hl { border-color: #A6E2C6; }
.card--top { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.card__link { position: absolute; inset: 0; z-index: 2; }
.card__link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.card__img { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 100%, #E1F4EA 0%, #F6F9F7 60%); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__badges { position: absolute; z-index: 3; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 20px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__specs { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-2); }
.card__specs li + li::before { content: "·"; margin-right: 10px; color: var(--line); }
.card__price { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card__price strong { font: 700 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.card__price .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.card__price .save { font-size: 14px; background: var(--green-bg); padding: 3px 8px; border-radius: 999px; }
.card__dealer { margin: 4px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge { display: inline-block; font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: #111; box-shadow: 0 2px 6px rgba(20,26,46,.08); }
.badge--top { background: var(--yellow); color: #111; }
.badge--promo { background: var(--coral); color: #fff; }
.badge--soon { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge--stock { background: var(--green-bg); color: var(--green); }

/* ---------- listing ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.list-head { margin: 18px 0 16px; }
.list-head__lead { color: var(--ink-2); margin: 8px 0 0; max-width: 70ch; }
.list-layout { display: block; }
.results-bar { display: flex; gap: 10px; align-items: end; margin-bottom: 12px; position: sticky; top: 60px; z-index: 10;
  background: var(--bg); padding: 8px 0; }
.results-bar .filters-open { flex: 0 0 auto; }
.sort { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); flex: 1; }
.results-count { margin: 0 0 12px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 28px 0; }
.pager a { font-weight: 600; }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--ink-2); }
.empty--page { margin: 48px auto; max-width: 720px; }
.empty--page .plate-search { margin: 24px auto; }

/* filters: bottom sheet on mobile, sidebar on desktop */
.filters { position: fixed; inset: auto 0 0 0; max-height: 88vh; overflow-y: auto; background: var(--surface); z-index: 40;
  border-radius: 18px 18px 0 0; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2);
  transform: translateY(105%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 14px; }
.filters.is-open { transform: none; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__close { width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 50%; font-size: 26px; cursor: pointer; color: var(--ink); }
.filters__actions { position: sticky; bottom: 0; background: var(--surface); display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; padding: 0; margin: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.field--inline { max-width: 420px; margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 500; color: var(--ink); cursor: pointer; }
.seg small { color: var(--muted); }
.seg input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.seg input:checked + span small { color: inherit; opacity: .7; }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
body.filters-lock { overflow: hidden; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
@media (min-width: 1000px) {
  .list-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
  .filters { position: sticky; top: 76px; inset: auto; transform: none; max-height: calc(100vh - 92px); border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: none; padding: 16px; z-index: 1; }
  .filters__close, .filters-open { display: none; }
  .filters__head h2 { font-size: 22px; }
  .results-bar { justify-content: flex-end; }
  .sort { flex: 0 0 240px; }
}
#results.is-loading { opacity: .5; transition: opacity .15s; }

.facts, .faq { max-width: 860px; }
.fact-list { list-style: none; padding: 0; margin: 12px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-list li { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 12px 16px; }
.fact-list li + li { border-top: 1px solid var(--line); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
.faq p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); }

/* ---------- detail ---------- */
.notice { background: #FFF6DB; color: #5C4600; border: 1px solid #F2D46B; padding: 12px 14px; border-radius: var(--radius-s); margin: 16px 0; }
@media (prefers-color-scheme: dark) { .notice { background: #3A3110; color: #F4DE95; border-color: #6B5A1A; } }
.detail { display: grid; gap: 18px; margin: 16px 0 24px; }
.detail__media { background: #EEF0F3; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }

.detail__title { font-size: clamp(28px, 6vw, 44px); margin: 4px 0 10px; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; }
.price-box__now { font: 700 44px/1 var(--display); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.price-box__was { color: var(--ink-2); }
.price-box__was .save { display: inline-block; margin-left: 6px; background: var(--green-bg); padding: 2px 8px; border-radius: 6px; }
.price-box__note { font-size: 13px; color: var(--muted); margin: 0; }
.specs { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { background: var(--surface); padding: 12px 14px; }
.specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.specs dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.prose { margin-top: 16px; color: var(--ink-2); white-space: pre-line; }
.detail-grid { display: grid; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h2 { font-size: 22px; margin-bottom: 10px; }
.chart { width: 100%; height: auto; }
.chart polyline { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.chart circle { fill: var(--brand); }
.dealer-card__name { font: 700 22px/1.2 var(--display); margin: 0 0 4px; }
.dealer-card p { margin: 4px 0; }
.dealer-card .btn { margin-top: 10px; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.buybar strong { font: 700 26px/1 var(--display); margin-right: 8px; }
body:has(.buybar) .site-foot { padding-bottom: 90px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
  .detail__media { margin: 0; border-radius: var(--radius); position: sticky; top: 76px; }
  .detail-grid { grid-template-columns: 1.35fr 1fr; }
  .buybar { display: none; }
  body:has(.buybar) .site-foot { padding-bottom: 0; }
}

/* ---------- dealers ---------- */
.dealer-list { list-style: none; padding: 0; margin: 0 0 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dealer-list li + li { border-top: 1px solid var(--line); }
.dealer-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.dealer-list__name { font-weight: 600; }
.dealer-list__n { font-weight: 600; text-align: right; grid-row: 1; grid-column: 2; }
.dealer-list__city, .dealer-list__brands { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .dealer-list a { grid-template-columns: 2fr 1fr 2fr auto; align-items: center; } .dealer-list__n { grid-row: auto; grid-column: auto; } }

/* ---------- promotions ---------- */
.promo { margin: 16px 0; }
.promo a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); }
.promo img { width: 40%; max-height: 160px; object-fit: cover; }
.promo__text { display: grid; gap: 2px; padding: 12px 14px 12px 0; }
.promo__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.promo--side a { flex-direction: column; align-items: stretch; }
.promo--side img { width: 100%; }
.promo--side .promo__text { padding: 12px; }

/* ---------- static pages ---------- */
.prose-page { max-width: 760px; margin-top: 24px; margin-bottom: 48px; }
.prose-page h2 { margin: 28px 0 8px; }
.prose-page p { color: var(--ink-2); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table .r { text-align: right; }

/* ---------- footer ---------- */
.site-foot { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 20px; }
.foot-grid { display: grid; gap: 24px; }
.foot-grid h2 { font-size: 18px; margin-bottom: 8px; }
.foot-grid nav { display: grid; gap: 6px; align-content: start; }
.foot-grid nav a { color: var(--ink-2); text-decoration: none; }
.foot-grid nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { color: var(--muted); font-size: 14px; max-width: 46ch; }
.foot-bottom { color: var(--muted); font-size: 13px; margin-top: 24px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-color-scheme: dark) {
  .explain__grid p:nth-child(n) { background: var(--surface); }
  .main-nav a:hover, .model-cloud a:hover, .chips a:hover { background: #1C2D25; color: var(--blue-ink); }
  .card__img { background: radial-gradient(120% 90% at 50% 100%, #1F3A2F 0%, #16211C 60%); }
}

/* ---------- car visuals: dealer photo / general model image / placeholder ---------- */
.card__img, .detail__media { position: relative; overflow: hidden; }
.card__img > img, .detail__media > img { position: relative; z-index: 1; }
.card__img > img.is-generic, .detail__media > img.is-generic { object-fit: contain; padding: 6% 4% 4%; }
.noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; text-align: center;
  background: radial-gradient(120% 90% at 50% 100%, #DDF2E7 0%, #F4F8F6 65%); color: #1C3A2E; }
.noimg__logo { width: 22%; min-width: 40px; max-width: 96px; aspect-ratio: 1; background: #1C3A2E; opacity: .2;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.noimg__name { font: 700 clamp(15px, 2.4vw, 26px)/1.05 var(--display); opacity: .55; letter-spacing: .01em; }
.illus { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.88); color: #3A4A42; backdrop-filter: blur(4px); }
.detail__illus { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .noimg { background: radial-gradient(120% 90% at 50% 100%, #1F3A2F 0%, #16211C 65%); color: #CFE6DB; }
  :root:not([data-theme="light"]) .noimg__logo { background: #CFE6DB; }
  :root:not([data-theme="light"]) .illus { background: rgba(10,20,16,.8); color: #CFE6DB; }
}
:root[data-theme="dark"] .noimg { background: radial-gradient(120% 90% at 50% 100%, #1F3A2F 0%, #16211C 65%); color: #CFE6DB; }
:root[data-theme="dark"] .noimg__logo { background: #CFE6DB; }
:root[data-theme="dark"] .illus { background: rgba(10,20,16,.8); color: #CFE6DB; }

/* ---------- cookie consent ---------- */
.consent { position: fixed; z-index: 90; inset: auto 0 0 0; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 20px 60px rgba(7, 40, 28, .28); max-height: 80vh; overflow-y: auto; }
.consent__box h2 { font: 700 20px/1.1 var(--display); margin: 0 0 6px; }
.consent__box p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.consent__prefs { display: grid; gap: 8px; margin-bottom: 12px; }
.consent__prefs[hidden] { display: none; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.consent__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: #0A7550; flex: none; }
.consent__opt span { display: grid; gap: 2px; }
.consent__opt small { color: var(--muted); font-size: 12.5px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent__actions [hidden] { display: none; }
.consent__actions .btn { min-height: 46px; padding: 0 12px; }
.consent__actions [data-consent="settings"], .consent__actions [data-consent="save"] { grid-column: 1 / -1; }
.btn--link { background: none; box-shadow: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-align: left; cursor: pointer; }
.foot-link:hover { text-decoration: underline; }
@media (min-width: 700px) {
  .consent { inset: auto 20px 20px auto; padding: 0; }
  .consent__box { width: 440px; }
}
.table-scroll { overflow-x: auto; margin: 12px 0; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
