/* Autokarton dizajn: petrolej + koral, grafitna tamna. Boje sekcija: ljubičasta (istorija),
   plava (oprema, kilometraža), petrolej (servis), koral (kočnice), ćilibar (delovi). */
:root {
    --ink: #14201F;
    --ink-2: #1E2E2C;
    --ink-3: #2A3D3A;
    --bg: #F3F6F5;
    --card: #FFFFFF;
    --line: #DFE5E3;
    --line-soft: #EDF1F0;
    --control: #C5D1CE;
    --field: #F9FBFA;
    --muted: #566663;
    --brand: #0B6E69;
    --brand-dark: #085752;
    --brand-soft: #DFF3F0;
    --brand-tint: #CDEBE6;
    --coral: #FF5B3A;
    --coral-dark: #F0431F;
    --coral-soft: #FFE6DF;
    --coral-text: #C23A1C;
    --violet: #6D4AFF;
    --violet-soft: #EFEAFF;
    --violet-text: #5A36F0;
    --blue: #2F5BEA;
    --blue-soft: #E6EEFF;
    --amber: #E07B00;
    --amber-soft: #FFF0DC;
    --amber-text: #A35A00;
    --good: #0B7A3B;
    --good-soft: #E3F7EA;
    --warn: #8A5A00;
    --warn-soft: #FFF3CF;
    --bad: #B42318;
    --bad-soft: #FFE9EA;
    --radius: 18px;
    --shadow: 0 18px 40px -24px rgba(20, 32, 31, 0.45);
}

* { box-sizing: border-box; }

:root { --top-h: 64px; }
@media (max-width: 700px) { :root { --top-h: 58px; } }
html { scroll-padding-top: calc(var(--top-h) + 16px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

a { color: inherit; }
img { max-width: 100%; }
*:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.disp { font-family: 'Archivo', 'Figtree', sans-serif; font-stretch: 85%; letter-spacing: -0.015em; text-wrap: balance; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: -0.01em; }
.cap { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.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; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Okvir */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 700px) { .container { padding-inline: 16px; } }

/* Gornja traka: providna sa zamućenjem, senka tek pri skrolu. Tri glavna alata kao tekst (aktivni podvučen svojom bojom),
   ostale strane u panelu "Istraži". Na telefonu meni preko celog ekrana. */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.top.scrolled, .top.menu-open { border-bottom-color: rgba(20, 32, 31, 0.08); box-shadow: 0 8px 24px -18px rgba(20, 32, 31, 0.35); }
.top-bar { display: flex; align-items: center; gap: 28px; height: var(--top-h); }
.logo { font-family: 'Archivo', sans-serif; font-stretch: 85%; font-size: 25px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark { width: 1.24em; height: 1.24em; flex-shrink: 0; }
.logo-dot { transform-origin: 24px 9.5px; transition: transform 0.25s ease; }
.logo:hover .logo-dot { transform: scale(1.18); }
.logo-k { color: var(--brand); }
.logo-light { color: #FFFFFF; }
.logo-light .logo-k { color: #7FD4C9; }

.nav { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; }
.nav-link { --tone: var(--brand); position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink-3); text-decoration: none; cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.nav-check { --tone: var(--violet-text); }
.nav-karton { --tone: var(--coral-text); }
.nav-link:hover, .nav-link:focus-visible, .nav-more.open .nav-more-btn { color: var(--ink); background: rgba(20, 32, 31, 0.05); }
.nav-link.on { color: var(--tone); }
.nav-link.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--tone); }
.nav-more-btn.on::after { right: 28px; }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s ease; }
.nav-more { position: relative; }
.nav-more.open .chev { transform: rotate(180deg); }

/* Panel "Istraži": lista sa opisima levo, istaknuta novost desno. */
.nav-panel { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: 0 24px 60px -24px rgba(20, 32, 31, 0.4), 0 2px 6px rgba(20, 32, 31, 0.05); animation: panel-in 0.16s ease-out; }
.nav-panel[hidden] { display: none; }
/* Most preko razmaka između dugmeta i panela - panel se ne zatvara dok miš prelazi. */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@keyframes panel-in { from { opacity: 0; transform: translate(-50%, -4px); } }
.nav-panel-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.nav-item:hover, .nav-item:focus-visible, .nav-item.on { background: var(--bg); }
.nav-item b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.nav-item small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.nav-item-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.nav-item-ic .i { width: 18px; height: 18px; }
.tag-new { padding: 1px 6px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-text); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-feature { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; overflow: hidden; text-decoration: none; color: #FFFFFF; background: radial-gradient(120% 90% at 100% 0%, #13897F 0%, var(--brand) 45%, var(--brand-dark) 100%); }
.nav-feature-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.nav-feature b { font-family: 'Archivo', sans-serif; font-stretch: 85%; font-size: 20px; line-height: 1.15; }
.nav-feature span { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.nav-feature-chart { width: 100%; height: 40px; margin-top: auto; fill: none; stroke: #FFB4A2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-feature .nav-feature-go { font-weight: 700; color: #FFFFFF; }
.nav-feature:hover .nav-feature-go { text-decoration: underline; }

.top-side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-fav { position: relative; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.top-fav:hover { color: #E5484D; background: #FFF0F0; }
.top-fav .i { width: 20px; height: 20px; }
.top-fav-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #FFFFFF; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.top-fav-count[hidden] { display: none; }
.top-cta { border-radius: 999px; padding: 9px 16px; }
.top-burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; cursor: pointer; position: relative; }
.top-burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s ease, top 0.2s ease; }
.top-burger span:first-child { top: 15px; }
.top-burger span:last-child { top: 23px; }
.top.menu-open .top-burger span:first-child { top: 19px; transform: rotate(45deg); }
.top.menu-open .top-burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* Meni na telefonu: pokriva ekran ispod trake. */
.m-menu { position: fixed; z-index: 49; inset: var(--top-h) 0 0; overflow-y: auto; background: var(--card); animation: menu-in 0.18s ease-out; }
.m-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.m-menu-in { display: flex; flex-direction: column; gap: 8px; padding-block: 12px 32px; }
.m-label { margin: 12px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.m-tool { --tone: var(--brand); --tone-soft: var(--brand-soft); display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.m-check { --tone: var(--violet-text); --tone-soft: var(--violet-soft); }
.m-karton { --tone: var(--coral-text); --tone-soft: var(--coral-soft); }
.m-tool.on { border-color: var(--tone); }
.m-tool b { display: block; font-size: 16px; }
.m-tool small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.m-tool-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--tone-soft); color: var(--tone); }
.m-tool-ic .i { width: 22px; height: 22px; }
.m-link { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.m-link .i { width: 20px; height: 20px; color: var(--muted); }
.m-link.on { color: var(--brand); }
.m-count { position: static; margin-left: auto; }
html.no-scroll { overflow: hidden; }

@media (max-width: 1080px) { .top-bar { gap: 16px; } .nav { font-size: 14px; } .nav-link { padding: 8px 9px; } }
@media (max-width: 900px) {
    .nav { display: none; }
    .top-burger { display: inline-block; }
}
@media (max-width: 700px) { .logo { font-size: 21px; gap: 7px; } .top-fav { display: none; } .top-cta { padding: 8px 14px; font-size: 13px; } }
@media (min-width: 901px) { .m-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .logo-dot, .nav-link, .chev, .top-burger span { transition: none; } .nav-panel, .m-menu { animation: none; } }

.footer { margin-top: 72px; background: var(--ink); color: #B5C7C3; }
.footer .container { padding-block: 40px 28px; }

/* Površine */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 22px; }
@media (max-width: 700px) { .card-pad { padding: 16px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.ico { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico .i { width: 22px; height: 22px; }
.ico.sm { width: 38px; height: 38px; border-radius: 11px; }
.ico.sm .i { width: 20px; height: 20px; }
.t-brand { background: var(--brand-soft); color: var(--brand); }
.t-violet { background: var(--violet-soft); color: var(--violet); }
.t-blue { background: var(--blue-soft); color: var(--blue); }
.t-coral { background: var(--coral-soft); color: var(--coral); }
.t-amber { background: var(--amber-soft); color: var(--amber); }
.t-good { background: var(--good-soft); color: var(--good); }

.h1 { margin: 0; font-size: 44px; line-height: 1.02; font-weight: 800; }
.h2 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 800; }
.h3 { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 800; }
@media (max-width: 700px) { .h1 { font-size: 32px; } .h2 { font-size: 22px; } }

/* Kontrole */
.btn { font: inherit; font-size: 15px; font-weight: 700; padding: 13px 18px; border-radius: 12px; border: 0; text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-brand { background: var(--brand); color: #FFFFFF; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-violet { background: var(--violet); color: #FFFFFF; }
.btn-violet:hover { background: #5836E8; }
.btn-coral { background: var(--coral); color: #FFFFFF; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-ghost { background: #FFFFFF; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--control); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn-sm { font-size: 14px; padding: 10px 14px; }

.label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--control); border-radius: 12px; background: var(--field); color: var(--ink); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 105, 0.15); }
.field.dark { background: var(--ink-2); border-color: #3F5652; color: #FFFFFF; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* Oznake */
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.good { background: var(--good-soft); color: var(--good); }
.warn { background: var(--warn-soft); color: var(--warn); }
.bad { background: var(--bad-soft); color: var(--bad); }
.info { background: var(--brand-soft); color: var(--brand); }
.neutral { background: var(--line-soft); color: #3B4A47; }
.p-violet { background: var(--violet-soft); color: var(--violet-text); }
.p-blue { background: var(--blue-soft); color: var(--blue); }
.p-amber { background: var(--amber-soft); color: var(--amber-text); }
.p-coral { background: var(--coral); color: #FFFFFF; }

.deal { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; color: #FFFFFF; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.deal::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: 0.55; }
.d-great { background: #087A3C; }
.d-good { background: #22A559; }
.d-fair { background: #F5B700; color: #3D2A00; }
.d-high { background: #FF8A3D; }
.d-over { background: #E5484D; }

.scale { position: relative; padding-top: 6px; }
.scale-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; height: 12px; }
.scale-bar span:nth-child(1) { background: #087A3C; border-radius: 999px 0 0 999px; }
.scale-bar span:nth-child(2) { background: #22A559; }
.scale-bar span:nth-child(3) { background: #F5B700; }
.scale-bar span:nth-child(4) { background: #FF8A3D; }
.scale-bar span:nth-child(5) { background: #E5484D; border-radius: 0 999px 999px 0; }
.scale-dot { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 999px; background: #FFFFFF; border: 4px solid var(--ink); }
.scale-labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 11px; text-align: center; color: var(--muted); }
.scale-labels .on { color: var(--ink); font-weight: 800; }

.stars { color: #F5B700; letter-spacing: 2px; }
.stars s { color: #D3DCDA; text-decoration: none; }

.notice { padding: 12px 16px; border-radius: 12px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice .i { width: 18px; height: 18px; margin-top: 1px; }

/* Tabele */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl td.mono { white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Pristupačnost, podnožje, obaveštenje o kolačićima, pravne strane */
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #FFFFFF; font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr); gap: 28px 48px; line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-links .cap { color: #FF9A80; font-size: 11px; margin-bottom: 2px; }
.footer a { color: #E6EEEC; text-decoration: none; }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer .footer-note { padding-block: 18px 24px !important; border-top: 1px solid var(--ink-3); font-size: 12px; color: #8FA5A1; display: flex; flex-direction: column; gap: 8px; }
.footer-note p { margin: 0; max-width: 110ch; line-height: 1.6; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 640px; margin-inline: auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: #E8F0EE; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #FFFFFF; text-decoration: underline; }
@media (max-width: 520px) { .cookie-notice { flex-direction: column; align-items: stretch; } }
.legal { max-width: 760px; padding-block: 40px 16px; }
.legal h1 { margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal .tbl { font-size: 14px; }
.legal .placeholder { background: #FFF1C2; color: #6B4E00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }


/* Odredišne strane alata (provera oglasa, karton): sekcije, kartice, koraci, VIN, česta pitanja.
   Akcenat strane: --lp-accent na <body> ili omotaču. */
.ck-section { padding-block: 44px 0; }
.ck-section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.ck-section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.what-grid .card { display: flex; gap: 14px; align-items: flex-start; }
.what-grid h3 { margin: 0 0 4px; font-size: 16px; }
.what-grid p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; position: relative; padding: 20px 20px 20px 64px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-accent, var(--violet)); color: #FFFFFF; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.vin-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.vin-where svg.car { width: 100%; height: auto; max-height: 220px; }
.vin-spots { display: flex; flex-direction: column; gap: 12px; }
.vin-spots div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.vin-spots b { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; }

.faq details { border-top: 1px solid var(--line-soft); padding-block: 14px; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lp-accent, var(--violet)); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 70ch; }

@media (max-width: 960px) {
    .vin-where { grid-template-columns: 1fr; }
    .what-grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .what-grid, .steps { grid-template-columns: 1fr; }
}

/* Obojena traka na vrhu strane (pravne strane, greške, nepostojeći karton). Boja po alatu:
   .ph-brand (petrolej, opšte), .ph-violet (provera oglasa), .ph-ink (istorija vozila). */
.page-hero { position: relative; overflow: hidden; background: var(--brand); color: #FFFFFF; padding-block: 44px 52px; }
.page-hero::after { content: ''; position: absolute; right: -120px; bottom: -200px; width: 440px; height: 440px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); pointer-events: none; }
.page-hero > .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { margin: 0; font-size: 46px; line-height: 1.02; font-weight: 800; }
.page-hero .lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--brand-tint); max-width: 620px; }
.page-hero .eyebrow { align-self: flex-start; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.page-hero.ph-violet { background: var(--violet); }
.page-hero.ph-violet .lead { color: #E4DDFF; }
.page-hero.ph-ink { background: var(--ink); }
.page-hero.ph-ink .lead { color: #B5C7C3; }
.page-hero.ph-ink .eyebrow { background: var(--ink-3); color: #FF9A80; }
.page-hero .btn-ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.page-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-light { background: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #F0F4F3; }
/* Sadržaj koji se "nasloni" preko donje ivice trake */
.page-lift { position: relative; z-index: 2; margin-top: -28px; }
@media (max-width: 640px) {
    .page-hero { padding-block: 30px 44px; }
    .page-hero h1 { font-size: 34px; }
    .page-hero .lead { font-size: 16px; }
}

/* Pravne strane: tabovi u traci, tekst u kartici */
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.legal-tabs a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.legal-tabs a:hover { background: rgba(255, 255, 255, 0.22); }
.legal-tabs a[aria-current="page"] { background: #FFFFFF; color: var(--brand); }
.legal-card { max-width: 860px; padding: 36px 44px 40px; }
.legal-card > :first-child { margin-top: 0; }
@media (max-width: 700px) { .legal-card { padding: 22px 18px 26px; } }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }
.steps .step-link { display: block; width: fit-content; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.steps .step-link:hover { text-decoration: underline; }

/* Motivi puta i vozila, zajednički za sve strane:
   .lane - isprekidana linija puta na dnu obojene trake (polako "vozi"),
   .vin-plate - VIN kao metalna pločica sa vozila. */
/* Linija se pomera preko transform (ne background-position) - animacija ide na grafičkoj kartici,
   bez ponovnog iscrtavanja strane u svakom frejmu; procesor je skoro ne oseti. */
.lane { position: absolute; left: 0; right: 0; bottom: var(--lane-bottom, 16px); height: 4px; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.lane::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 92px); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, var(--lane-alpha, 0.3)) 0 44px, transparent 44px 92px); animation: lane-drive 3.5s linear infinite; will-change: transform; }
@keyframes lane-drive { to { transform: translateX(-92px); } }
@media (prefers-reduced-motion: reduce) { .lane::before { animation: none; } }
.vin-plate { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 5px; border-radius: 7px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); background: linear-gradient(180deg, #F6F8F7 0%, #DCE3E1 100%); box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgba(20, 32, 31, 0.18), 0 1px 2px rgba(0, 0, 0, 0.25); white-space: nowrap; }
.vin-plate::before { content: 'VIN'; font-family: 'Figtree', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: #FFFFFF; }
.page-hero .lane { --lane-bottom: 36px; }

/* Footer: poziv na akciju, brojke, marke */
.footer { position: relative; overflow: hidden; }
.footer .foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 48px 36px; }
.foot-cta h2 { margin: 0; font-size: 34px; font-weight: 800; color: #FFFFFF; }
.foot-cta p { margin: 6px 0 0; font-size: 16px; color: #B5C7C3; }
.footer .foot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding-block: 0; background: var(--ink-3); border-radius: 16px; overflow: hidden; padding-inline: 0; max-width: calc(1200px - 64px); margin-inline: auto; }
.foot-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; background: var(--ink-2); }
.foot-stats b { font-family: 'Archivo', sans-serif; font-stretch: 85%; font-size: 32px; font-weight: 800; color: #FFFFFF; line-height: 1; }
.foot-stats span { font-size: 13px; color: #8FA5A1; }
.footer .foot-brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 26px; padding-block: 30px 6px; }
.foot-brands img { height: 30px; width: auto; max-width: 70px; object-fit: contain; filter: grayscale(1) brightness(1.9) contrast(0.8); opacity: 0.55; transition: opacity 0.2s ease, filter 0.2s ease; }
.foot-brands img:hover { opacity: 1; filter: none; }
.footer-note .between { flex-wrap: wrap; }
@media (max-width: 860px) { .footer .foot-stats { grid-template-columns: 1fr; margin-inline: 16px; width: auto; } }
@media (max-width: 700px) { .foot-cta h2 { font-size: 26px; } .foot-stats b { font-size: 26px; } .foot-brands { justify-content: center; } .foot-brands img { height: 24px; } }

/* BMW M Sport paket: M trobojka (svetloplava, tamnoplava, crvena) */
.mpk { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; max-width: 100%; padding: 9px 16px 9px 12px; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.mpk-dark { background: #0E1716; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px #3F5652, 0 10px 24px -14px rgba(0, 0, 0, 0.8); }
.mpk-stripes { display: inline-flex; gap: 3px; transform: skewX(-18deg); flex-shrink: 0; }
.mpk-stripes i { width: 7px; height: 26px; border-radius: 1px; }
.mpk-stripes i:nth-child(1) { background: #16A0DB; }
.mpk-stripes i:nth-child(2) { background: #243A8C; }
.mpk-stripes i:nth-child(3) { background: #E4032E; }
.mpk-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mpk-text b { font-family: 'Archivo', sans-serif; font-stretch: 85%; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.mpk-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpk-dark .mpk-text small { color: #8FA5A1; }
.mpk-partial .mpk-stripes { opacity: 0.55; }
.mpk-partial .mpk-text b { font-size: 15px; }
.pill.m-pill { gap: 8px; background: #0E1716; color: #FFFFFF; font-weight: 800; }
.m-pill .mpk-stripes { gap: 2px; }
.m-pill .mpk-stripes i { width: 4px; height: 13px; }

/* Poznate slabe tačke modela */
.wp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.wp-issue { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); border-left: 4px solid var(--amber); }
.wp-issue strong { font-size: 15px; color: var(--amber-text); }
.wp-issue span { font-size: 14px; line-height: 1.45; color: var(--ink); }
.wp-checks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.wp-checks li svg { flex-shrink: 0; width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--good-soft); color: var(--good); }
@media (max-width: 760px) { .wp-grid { grid-template-columns: 1fr; } }

/* Početna: linkovi ka vodiču po modelu. */
.home-models { display: flex; flex-wrap: wrap; gap: 8px; }
.home-models a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.home-models a b { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--brand); }
.home-models a:hover { border-color: var(--brand); }
.home-models a small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.home-models a.all { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

/* Izbor marke i modela: Mane po modelu (/modeli) i Cene (/cene) - mreža marki, pretraga sa predlozima, modeli marke. */
/* Predlozi pretrage izlaze ispod trake - traka ne sme da ih odseče (ukrasni krug se zato ne prikazuje). */
.mx-hero { padding-block: 40px 56px; overflow: visible; z-index: 6; }
.mx-hero::after { display: none; }
.mx-hero h1 { font-size: 48px; }

/* Pretraga sa predlozima */
.mx-search { position: relative; max-width: 620px; margin-top: 8px; z-index: 6; }
.mx-search > svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mx-search input { width: 100%; font: inherit; font-size: 17px; padding: 18px 18px 18px 52px; border: 0; border-radius: 16px; background: #FFFFFF; color: var(--ink); box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.7); }
.mx-search input:focus { outline: 3px solid var(--coral); outline-offset: 2px; }
.mx-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--card); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(20, 32, 31, 0.55); max-height: 420px; overflow-y: auto; }
.mx-sugg a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mx-sugg a img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.mx-sugg a b { font-size: 16px; }
.mx-sugg a span { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-sugg a:hover, .mx-sugg a.on { background: var(--brand-soft); }
.mx-sugg .none { padding: 14px 12px; color: var(--muted); }
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mx-body { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 24px; }
.mx-label { margin: 0; font-size: 22px; }

/* Korak 1: marke */
.mx-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mx-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: center; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.mx-brand:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.mx-brand img { width: 64px; height: 64px; object-fit: contain; }
.mx-brand b { font-size: 18px; }
.mx-brand span { font-size: 14px; color: var(--muted); }

/* Korak 2: modeli izabrane marke */
.mx-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--brand); text-decoration: none; padding: 6px 0; }
.mx-head { display: flex; align-items: center; gap: 18px; }
.mx-head img { width: 72px; height: 72px; object-fit: contain; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.mx-head h2 { margin: 0; font-size: 36px; line-height: 1.05; }
.mx-head p { margin: 4px 0 0; color: var(--muted); }
/* Druge marke: mreža jednakih pločica sa logotipom (sve marke vidljive odjednom, bez sečenja). */
.mx-switch { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mx-switch a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; transition: border-color 0.15s ease; }
.mx-switch a:hover { border-color: var(--brand); }
.mx-switch a.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.mx-switch img { width: 40px; height: 40px; object-fit: contain; }
.mx-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.mx-fam { display: flex; flex-direction: column; padding: 20px 20px 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.mx-fam h3 { margin: 0 0 8px; font-size: 21px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mx-fam h3 small { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); }
.mx-gen { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 4px; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.mx-gen:first-of-type { border-top: 0; }
.mx-gen .tag { flex-shrink: 0; min-width: 52px; padding: 6px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 15px; text-align: center; }
.mx-gen .txt { display: flex; flex-direction: column; min-width: 0; }
.mx-gen .txt b { font-size: 16px; }
.mx-gen .txt span { font-size: 13.5px; color: var(--muted); }
.mx-gen .go { margin-left: auto; color: var(--muted); font-size: 20px; transition: transform 0.15s ease, color 0.15s ease; }
.mx-gen:hover .go { color: var(--brand); transform: translateX(3px); }
.mx-gen:hover .txt b { color: var(--brand); }

@media (max-width: 700px) {
    .mx-hero { padding-block: 28px 44px; }
    .mx-hero h1 { font-size: 36px; }
    .mx-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mx-brand { padding: 20px 10px 16px; }
    .mx-brand img { width: 52px; height: 52px; }
    .mx-fams { grid-template-columns: 1fr; }
    /* Na telefonu pločice u jednom redu, pomeraju se prstom; desna ivica bledi kao znak da ima još. */
    .mx-switch { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
    .mx-switch::-webkit-scrollbar { display: none; }
    .mx-switch a { flex: 0 0 86px; }
    .mx-head img { width: 60px; height: 60px; }
    .mx-head h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .mx-brand, .mx-gen .go { transition: none; } .mx-brand:hover { transform: none; } }
/* Spisak modela (Cene): pločice sa nazivom i brojem oglasa, za najtraženije i za modele izabrane marke. */
.mx-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mx-model { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease; }
.mx-model:hover { border-color: var(--brand); }
.mx-model img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.mx-model .txt { display: flex; flex-direction: column; min-width: 0; }
.mx-model .txt b { font-size: 17px; }
.mx-model .txt span { font-size: 13.5px; color: var(--muted); }
.mx-model .go { margin-left: auto; color: var(--muted); font-size: 20px; transition: transform 0.15s ease, color 0.15s ease; }
.mx-model:hover .go { color: var(--brand); transform: translateX(3px); }
.mx-model:hover .txt b { color: var(--brand); }
/* Marke bez logotipa i sa malo oglasa: kratka lista naziva. */
.mx-more { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-more a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.mx-more a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 700px) { .mx-models { grid-template-columns: 1fr; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .mx-model .go { transition: none; } }
