/* Public car pages secudeals.com/auto/<slug> (13.11.2026). Same palette and type as the temporary front page. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/schibsted-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f5f6f3; --surface: #ffffff; --ink: #0b1b2b; --muted: #55606b; --accent: #0e7c66; --accent-ink: #ffffff;
  --line: rgba(11, 27, 43, .12); --mark: #c8f2e3; --warn-bg: #fff4e5; --warn: #8a4b00; --bad: #b42318;
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1218; --surface: #121c24; --ink: #eef2f0; --muted: #9aa7b0; --accent: #3fc4a2; --accent-ink: #06231c;
    --line: rgba(238, 242, 240, .12); --mark: #0b1218; --warn-bg: #2a1f10; --warn: #ffc27a; --bad: #ff8a80; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; margin: 0; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.logo b { color: var(--accent); font-weight: 600; }
.tag { font-size: 14px; color: var(--muted); text-align: right; }

.banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.banner.ok { background: var(--mark); color: var(--ink); }
.banner.bad { color: var(--bad); }

.car { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 32px; align-items: start; padding-bottom: 48px; }
.car > .block { grid-column: 1; }
.buy { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
@media (max-width: 860px) {
  .car { grid-template-columns: minmax(0, 1fr); }
  .buy { grid-column: 1; grid-row: auto; position: static; }
}

.gallery .main { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scroll-snap-type: x proximity; }
.thumbs a { flex: 0 0 auto; border-radius: 8px; overflow: hidden; border: 2px solid transparent; scroll-snap-align: start; }
.thumbs a[aria-current="true"] { border-color: var(--accent); }
.thumbs img { display: block; width: 120px; height: 68px; object-fit: cover; }

.buy h1 { font-size: 28px; line-height: 1.15; }
.variant { margin: 6px 0 0; color: var(--muted); }
.facts-line { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.price { margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.price .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price strong { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price .note { font-size: 14px; color: var(--muted); }
.ctas { display: grid; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--font); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 15px 20px; min-height: 48px; cursor: pointer; text-decoration: none; transition: transform .1s ease-out, filter .15s; }
.btn.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .thumbs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sold { font-weight: 600; }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.trust li { padding-left: 24px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.block { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.block h2 { font-size: 22px; margin-bottom: 12px; }
.block h3 { font-size: 17px; margin: 20px 0 8px; }
.block ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; margin: 0; }
.grid dt { font-size: 13px; color: var(--muted); }
.grid dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.score { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.score strong { font-size: 30px; color: var(--accent); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th[scope="row"] { font-weight: 400; }
td { font-variant-numeric: tabular-nums; }
.equip td { text-align: right; white-space: nowrap; }
.paint tr.flag th, .paint tr.flag td { color: var(--warn); font-weight: 600; }
details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 600; }
.std { color: var(--muted); font-size: 15px; }

.form form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px; width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.seg legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 4px; }
.seg label, .chk { display: flex !important; align-items: flex-start; gap: 8px; color: var(--ink) !important; font-size: 15px !important; }
.seg input, .chk input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.foot { padding: 24px 16px 40px; color: var(--muted); font-size: 14px; }
.nf { padding: 80px 16px; }
