/* 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;
}
/* dark theme – only when the visitor chose it (header switch) */
:root[data-theme="dark"] {
    --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);
  }

:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { 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); }
.head-tools { display: flex; align-items: center; gap: 4px; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background .15s; }
.theme-toggle:hover { background: var(--bg); }
.theme-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (min-width: 900px) {
  .main-nav { display: flex; gap: 4px; margin-left: auto; }
  .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; height: 48px; padding: 0 12px; width: 100%; }
/* the same arrow and height in every browser (Safari draws its own taller select otherwise) */
select { -webkit-appearance: none; appearance: none; padding-right: 36px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
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__grid > * { min-width: 0; }   /* the swipeable budget row must not widen the column */
.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; }
.plate-search { display: flex; flex-direction: column; gap: 10px; }
.plate-search .btn { min-height: 56px; font-size: 18px; }

/* finder: free text on the plate, then make → model → price → fuel, and a button with the live count */
.finder { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 14px; box-shadow: var(--shadow-lg); max-width: 680px; }
.finder .plate-search { padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.finder__form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finder__field { display: grid; gap: 4px; min-width: 0; }
.finder__field > span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.finder__field select:disabled { opacity: .55; }
.finder__go { grid-column: 1 / -1; min-height: 54px; font-size: 17px; }
.finder__go span { font-variant-numeric: tabular-nums; }
.finder__more { grid-column: 1 / -1; justify-self: center; font-size: 14px; font-weight: 600; color: var(--blue-ink); text-decoration: none; padding: 4px; }
.finder__more:hover { text-decoration: underline; }
.budget-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; max-width: 680px; }
@media (max-width: 639px) {   /* phones: one row to swipe */
  .budget-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .budget-chips::-webkit-scrollbar { display: none; }
  .budget-chips a, .budget-chips__label { flex: none; }
}
.budget-chips__label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-right: 4px; }
.budget-chips a { display: inline-flex; align-items: baseline; gap: 7px; padding: 9px 15px; border-radius: 999px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); transition: background .15s; }
.budget-chips a small { font-size: 12px; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.budget-chips a:hover { background: rgba(255,255,255,.24); }
.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; }
  .finder__form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .finder__go { grid-column: 1 / span 3; }
  .finder__more { grid-column: 4; align-self: center; }
}
@media (min-width: 1000px) {
  /* the search is the hero: one wide row – make, model, price, fuel, button */
  .hero__copy { max-width: 1040px; }
  .hero__title { max-width: 20ch; }
  .finder { max-width: none; padding: 18px; }
  .finder__form { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; }
  .finder__go { grid-column: auto; min-width: 230px; }
  .finder__more { grid-column: 1 / -1; justify-self: end; margin-top: -2px; }
  .budget-chips { max-width: none; }
  .showcase { min-height: 340px; }
}
@media (min-width: 1000px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { 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, minmax(0, 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 clamp(14px, 4.4vw, 18px)/1.1 var(--display); overflow-wrap: anywhere; min-width: 0; }
.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--awd { --c: linear-gradient(135deg, #64748B, #334155); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 20 9 7l4 6 2.5-3.5L22 20z'/%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 (max-width: 389px) {   /* small phones: room for "Elektromobily" next to the icon */
  .cats { gap: 8px; }
  .cat { padding: 12px 10px; column-gap: 9px; }
  .cat__icon { width: 34px; height: 34px; border-radius: 11px; }
  .cat__icon::after { inset: 8px; }
}
@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: 48px auto; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 12px; margin-bottom: 16px; }
.section__head a { white-space: nowrap; font-weight: 600; text-decoration: none; color: var(--blue); }
.section__tools { display: flex; align-items: center; gap: 14px; }
.section__more { margin: 18px 0 0; text-align: center; }
.section__note { margin: -8px 0 14px; font-size: 13px; color: var(--muted); }
/* search suggestions under the search boxes */
[data-suggest-box] { position: relative; }
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  max-height: min(340px, 60vh); overflow-y: auto; text-align: left; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 500 16px/1.25 var(--body); text-transform: none; letter-spacing: 0; }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: var(--bg); }
.suggest mark { background: none; color: var(--blue-ink); font-weight: 700; }
.suggest__name { min-width: 0; overflow-wrap: anywhere; }
.suggest__meta { flex: none; font-size: 13px; color: var(--muted); }

/* search filter additions */
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.price-chips button { padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 13px/1 var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.price-chips button:hover { border-color: var(--ink-2); }
.price-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.active-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #E3F6EC; color: var(--blue-ink); text-decoration: none; }
.active-filters a span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(10,117,80,.14); font-size: 15px; line-height: 1; }
.active-filters a:hover span { background: var(--blue); color: #fff; }
.active-filters .active-filters__clear { background: none; color: var(--ink-2); text-decoration: underline; padding: 6px 4px; }
/* dark theme – only when the visitor chose it (header switch) */
:root[data-theme="dark"] .active-filters a:not(.active-filters__clear) { background: var(--green-bg); }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.ev-band .eyebrow { color: #0E8FC4; }
.rail-nav { display: none; gap: 6px; }
.rail-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 700 22px/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.rail-nav button:hover { border-color: var(--ink-2); }
@media (min-width: 1000px) { .rail-nav { display: inline-flex; } }

/* tabs (budget) – links without JS, tabs with it */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab { flex: none; padding: 10px 18px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.tabs__tab:hover { color: var(--ink); background: var(--bg); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--surface); }

/* popular models */
.model-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-grid a { display: grid; gap: 3px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.model-grid a:hover { border-color: var(--brand); transform: translateY(-2px); }
.model-grid__name { font: 700 18px/1.15 var(--display); }
.model-grid__meta { font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.brand-grid { list-style: none; padding: 12px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
/* compact tile: count badge over the top-left corner, logo and name centred */
.brand-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 22px 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; text-align: center;
  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-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--wide { width: 100%; max-width: 104px; }
.brand-logo--wide::after { width: 82%; height: 40%; }
.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; }
.brand-card__count { position: absolute; left: -6px; top: -11px; display: inline-flex; align-items: baseline; gap: 3px; padding: 5px 9px;
  border-radius: 999px; background: #DDF3E8; color: var(--blue-ink); font-size: 11.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--bg); transition: background .18s, color .18s; }
.brand-card__count strong { font: 700 15px/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.brand-card:hover .brand-card__count { background: var(--blue); color: #fff; }
.brand-card__name { font: 700 16px/1.1 var(--display); letter-spacing: .01em; overflow-wrap: anywhere; }
/* dark theme – only when the visitor chose it (header switch) */
:root[data-theme="dark"] .brand-card__count { background: #173A2C; color: #7FE0B4; }
:root[data-theme="dark"] .brand-logo { background: rgba(255,255,255,.08); }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 12px; } }
@media (min-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 14px; }
  .brand-card { padding: 24px 10px 14px; gap: 10px; }
  .brand-logo { width: 52px; height: 52px; border-radius: 16px; }
  .brand-logo::after { width: 32px; height: 32px; }
  .brand-card__name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .brand-card { 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--hl { background: #E3F6EC; color: #075E41; }
.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 – groups with a title, divided by thin lines */
.filters { position: fixed; inset: auto 0 0 0; max-height: 88vh; overflow-y: auto; background: var(--surface); z-index: 40;
  border-radius: 20px 20px 0 0; padding: 4px var(--gutter) 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2);
  transform: translateY(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.filters.is-open { transform: none; }
.filters__head { display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; }
.filters__head h2 { font-size: 22px; margin-right: auto; }
.filters__close { width: 40px; height: 40px; border: 0; background: var(--bg); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.fgroup { display: grid; gap: 10px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); min-width: 0; }
.fgroup__title { margin: 0 0 2px; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fgroup__title span { text-transform: none; letter-spacing: 0; font-weight: 600; }
/* every field in the panel has exactly the same height */
.filters select, .filters input[type=number], .filters input[type=search] { height: 48px; min-height: 0; padding-top: 0; padding-bottom: 0;
  border-radius: 12px; background-color: var(--bg); border-color: transparent; font: 400 16px/1.2 var(--body); color: var(--ink); }
.filters select:focus, .filters input:focus { background-color: var(--surface); border-color: var(--blue); }
.filters select:disabled { opacity: .6; }
/* search with a magnifier */
.fsearch input { padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A72' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px 50%; background-size: 18px; }
.flabel { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.flabel select, .flabel input { font: 400 16px/1.2 var(--body); color: var(--ink); }
/* price from – to */
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.range__dash { color: var(--muted); }
/* chips (fuel) */
.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: 36px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.seg span:hover { border-color: var(--ink-2); }
.seg small { color: var(--muted); font-size: 12px; }
.seg input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg input:checked + span small { color: inherit; opacity: .7; }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* joined segmented control (gearbox) */
.seg--joined { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 3px; background: var(--bg); border-radius: 12px; }
.seg--joined span { width: 100%; justify-content: center; min-height: 36px; border: 0; border-radius: 9px; }
.seg--joined input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 36, 29, .16); }
/* on/off switches */
.fgroup--switches { gap: 4px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 15px; font-weight: 500; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--line);
  position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.filters__actions { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.filters .price-chips { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.filters .price-chips button { padding: 9px 8px; }
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: 300px 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: var(--shadow); padding: 4px 18px 0; z-index: 1; }
  .filters__close, .filters-open { display: none; }
  .results-bar { justify-content: flex-end; }
  .sort { flex: 0 0 240px; }
}
@media (prefers-reduced-motion: reduce) { .switch input, .switch input::after { transition: none; } }
#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; }
/* dark theme – only when the visitor chose it (header switch) */
:root[data-theme="dark"] .notice { background: #3A3110; color: #F4DE95; border-color: #6B5A1A; }
.detail { display: grid; gap: 18px; margin: 16px 0 24px; }
.detail > * { min-width: 0; }   /* the photo gallery must not widen its column */
.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 > div { min-width: 0; display: grid; gap: 2px; }   /* price above the saving, so long Kč prices fit */
.buybar strong { font: 700 clamp(20px, 6.4vw, 26px)/1 var(--display); white-space: nowrap; }
.buybar .save { font-size: 13px; white-space: nowrap; }
.buybar .btn { flex: none; }
body:has(.buybar) .site-foot { padding-bottom: 90px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
  /* picture + its note stay together in the left column (the note must not take the right one) */
  .detail__visual { position: sticky; top: 76px; }
  .detail__media { margin: 0; border-radius: var(--radius); }
  .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; } }
/* dark theme – only when the visitor chose it (header switch) */
:root[data-theme="dark"] .explain__grid p:nth-child(n) { background: var(--surface); }
:root[data-theme="dark"] .main-nav a:hover, :root[data-theme="dark"] .model-cloud a:hover, :root[data-theme="dark"] .chips a:hover { background: #1C2D25; color: var(--blue-ink); }
:root[data-theme="dark"] .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; }

/* car page gallery: swipe on phones, arrows and thumbnails everywhere */
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.gallery .gallery__slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery__nav { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); color: #12201A; font: 700 26px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.gallery__nav--prev { left: 10px; } .gallery__nav--next { right: 10px; }
.gallery__count { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(10,20,16,.65); color: #fff; font-variant-numeric: tabular-nums; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.gallery__thumbs button { flex: 0 0 auto; width: 78px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: #EEF0F3; cursor: pointer; opacity: .7; }
.gallery__thumbs button[aria-current] { border-color: var(--brand); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: none) { .gallery__nav { display: none; } }   /* phones: swipe */
@media (prefers-reduced-motion: reduce) { .gallery__track { scroll-behavior: auto; } }
/* dark theme – only when the visitor chose it (header switch) */
: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); }
