/* =====================================================================
   MB CARS — style strony
   Paleta: czerń + złoto (jak logo i baner na placu)
   ===================================================================== */

/* Fonty hostowane lokalnie (bez Google Fonts): Manrope (zmienny 400–800), Playfair Display (500–700 + italic) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/Manrope-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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/Manrope-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/PlayfairDisplay-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; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/PlayfairDisplay-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/PlayfairDisplay-italic-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; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/PlayfairDisplay-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #17171a;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(230, 184, 76, 0.32);
  --gold: #e6b84c;
  --gold-2: #c9962e;
  --gold-3: #f3d67f;
  --gold-soft: rgba(230, 184, 76, 0.12);
  --text: #f3f1ec;
  --muted: #aaa69d;
  --muted-2: #908c84;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0a0a0b; color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(100% - 32px, var(--container)); } }

.ic { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }
.nb { white-space: nowrap; }
/* Dostępność: wyraźna ramka fokusu przy obsłudze z klawiatury + link „przejdź do treści” */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .car-cmp:focus-visible, .form-tab:focus-visible { outline-offset: 3px; border-radius: 999px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #14110a; font-weight: 800; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; padding: 0.95em 1.5em; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(135deg, var(--gold-3), var(--gold) 55%, var(--gold-2)); color: #14110a; box-shadow: 0 10px 30px rgba(230, 184, 76, 0.22); }
.btn-gold:hover { box-shadow: 0 14px 36px rgba(230, 184, 76, 0.32); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-3); }
.btn-dark { background: #1c1c20; border-color: var(--line); color: var(--text); }
.btn-dark:hover { border-color: var(--line-gold); }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3); }
.btn-msg { background: #0a66d6; color: #fff; }
.btn-msg:hover { box-shadow: 0 12px 30px rgba(10, 102, 214, 0.35); }
.btn-sm { padding: 0.65em 1.05em; font-size: 0.85rem; }
.btn-lg { padding: 1.1em 1.9em; font-size: 1.02rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; color: var(--gold); font-weight: 700; }
.link-arrow .ic { transition: transform 0.25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Nagłówek ---------- */
/* Rozmycie tła nagłówka siedzi na ::before, a nie na samym nagłówku: backdrop-filter na rodzicu
   zamyka w nim elementy position:fixed (menu mobilne zwijało się do wysokości paska po przewinięciu). */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px 0; transition: padding 0.35s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 11, 0.94); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.site-header.is-scrolled { padding: 8px 0; }
.site-header.is-scrolled::before { opacity: 1; }
@media (max-width: 960px) { .site-header::before { background: #0a0a0b; transition: none; } .site-header { transition: none; } } /* telefon: pasek w pełni kryjący i przełączany natychmiast — tekst nigdy nie prześwituje w trakcie przewijania */
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 86px; width: auto; flex: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)); transition: height 0.3s; }
.is-scrolled .brand-logo { height: 60px; }
.brand-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); line-height: 1.5; padding-left: 14px; border-left: 1px solid var(--line-gold); white-space: nowrap; }
.brand--footer .brand-logo { height: 120px; filter: none; }
@media (max-width: 640px) { .brand-tag { display: none; } }
@media (max-width: 480px) { .brand-logo { height: 66px; } .is-scrolled .brand-logo { height: 54px; } }
section[id], .band[id] { scroll-margin-top: 84px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.93rem; white-space: nowrap; color: rgba(243, 241, 236, 0.86); transition: color 0.2s, background 0.2s; }
.site-nav a:hover { color: var(--gold-3); background: rgba(255, 255, 255, 0.05); }
.site-nav .nav-phone { display: none; }
.nav-info { display: none; }
@media (max-width: 960px) { .site-nav .nav-phone { display: inline-flex; margin-top: 26px; font-family: var(--font-body); font-size: 1.05rem; padding: 0.95em 1.6em; color: #14110a; } .site-nav .nav-phone:hover { color: #14110a; background: linear-gradient(135deg, var(--gold-3), var(--gold) 55%, var(--gold-2)); } }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .header-cta .btn-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 0; height: 100dvh; z-index: 40; flex-direction: column; justify-content: center; gap: 4px; padding: 120px 24px 40px; background: radial-gradient(120% 60% at 50% 0%, rgba(230, 184, 76, 0.10), transparent 60%), #0a0a0b; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 1.55rem; font-family: var(--font-head); padding: 13px 20px; width: 100%; max-width: 360px; text-align: center; border-radius: 14px; }
  .site-nav a:hover, .site-nav a:active { background: rgba(255, 255, 255, 0.05); }
  .nav-info { display: block; margin-top: 28px; font-family: var(--font-body); font-size: 0.8rem; line-height: 1.7; color: var(--muted); text-align: center; letter-spacing: 0.03em; }
  .nav-info b { color: var(--gold); font-weight: 700; }
  .header-cta { margin-left: auto; }
  .header-cta .nav-toggle { position: relative; z-index: 45; }
  body.nav-open .brand { position: relative; z-index: 46; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; padding: 140px 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; } /* overflow: powiększany plakat (kenburns) nie może wystawać poza przyciemnienie */
.hero-bg picture, .hero-bg img, .hero-video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-video { opacity: 0; transition: opacity 1.2s; }
.hero-video[src], .hero-video:has(source) { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 11, 0.5) 0%, rgba(10, 10, 11, 0.2) 35%, rgba(10, 10, 11, 0.8) 80%, var(--bg) 100%), linear-gradient(90deg, rgba(10, 10, 11, 0.65) 0%, rgba(10, 10, 11, 0.1) 60%); }
.hero-inner { padding-bottom: 44px; }
.hero-content { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); font-weight: 700; color: #fff; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-3); }
.hero-lead { margin-top: 22px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(243, 241, 236, 0.86); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { margin-top: 60px; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ic { color: var(--gold); width: 1.4rem; height: 1.4rem; margin-top: 2px; }
.trust-item b { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; gap: 12px; } .hero { padding-top: 120px; } }

/* Hero: tekst po lewej, karta ostatnio dodanego auta po prawej; na telefonie karta pod przyciskami */
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px 56px; align-items: end; }
@media (max-width: 1000px) { .hero-top { grid-template-columns: minmax(0, 1fr); } }
.hero-live { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 16px 10px 14px; border-radius: 999px; background: rgba(10, 10, 11, 0.62); border: 1px solid var(--line-gold); font-size: 0.95rem; font-weight: 600; color: rgba(243, 241, 236, 0.9); line-height: 1.2; transition: border-color 0.25s, background 0.25s; }
.hero-live:hover { border-color: var(--gold); background: rgba(10, 10, 11, 0.8); }
.hero-live b { color: var(--gold-3); font-weight: 800; }
.hero-live .ic { width: 1.05rem; height: 1.05rem; color: var(--gold); transition: transform 0.25s var(--ease); }
.hero-live:hover .ic { transform: translateX(3px); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; flex: none; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (max-width: 640px) { .hero-live { display: flex; justify-content: center; width: 100%; margin-top: 14px; padding: 13px 16px; font-size: 1rem; } }
.hero-spot { display: block; border-radius: 20px; overflow: hidden; background: rgba(14, 14, 16, 0.82); border: 1px solid var(--line-gold); box-shadow: var(--shadow); color: var(--text); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.hero-spot:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(230, 184, 76, 0.2); }
/* zanim skrypt wstawi auto: karta ma już swoje miejsce (nic nie skacze) */
.hero-spot:empty { min-height: 400px; background: linear-gradient(90deg, rgba(21, 21, 23, 0.85) 25%, rgba(28, 28, 32, 0.85) 50%, rgba(21, 21, 23, 0.85) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@media (max-width: 1000px) { .hero-spot:empty { min-height: 112px; max-width: 520px; margin-top: 22px; } }
.spot-media { display: block; aspect-ratio: 4 / 3; background: #151517; }
.spot-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-body { display: block; padding: 14px 16px 16px; }
.spot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.spot-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.spot-body b { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.spot-specs { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.spot-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--gold-3); }
.spot-price .ic { color: var(--gold); width: 1.3rem; height: 1.3rem; transition: transform 0.25s var(--ease); }
.hero-spot:hover .spot-price .ic { transform: translateX(4px); }
@media (max-width: 1000px) {
  .hero-spot { display: grid; grid-template-columns: 136px minmax(0, 1fr); max-width: 520px; margin-top: 22px; }
  .spot-media { aspect-ratio: auto; height: 100%; min-height: 112px; }
  .spot-body { padding: 12px 14px; }
  .spot-body b { font-size: 1.02rem; }
  .spot-specs { font-size: 0.8rem; }
  .spot-price { font-size: 1.15rem; margin-top: 6px; }
}
@media (max-width: 640px) {
  .hero-spot { grid-template-columns: 116px minmax(0, 1fr); max-width: none; }
  .spot-tag { letter-spacing: 0.08em; font-size: 0.66rem; }
  /* Telefon: wideo/plakat zajmują jeden ekran, a nie całą (wysoką) sekcję — inaczej pionowy kadr jest rozciągany i rozmyty */
  .hero-bg, .hero-shade { height: 100vh; height: 100svh; min-height: 560px; inset: 0 0 auto 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(10, 10, 11, 0.66) 0%, rgba(10, 10, 11, 0.42) 26%, rgba(10, 10, 11, 0.74) 54%, rgba(10, 10, 11, 0.94) 82%, var(--bg) 96%); height: calc(100svh + 2px); }
}
/* Delikatny najazd na plakacie, zanim ruszy wideo */
.hero-bg img { animation: kenburns 18s ease-out forwards; transform-origin: 55% 45%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img, .live-dot { animation: none; } }
/* Szkielet kart na czas pobierania listy z Otomoto */
.car-skel { min-height: 360px; pointer-events: none; }
.car-skel .car-media { background: linear-gradient(90deg, #151517 25%, #1c1c20 50%, #151517 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.car-skel .car-body i { display: block; height: 14px; border-radius: 6px; background: #1c1c20; margin: 6px 0; }
.car-skel .car-body i:nth-child(1) { width: 70%; height: 20px; }
.car-skel .car-body i:nth-child(3) { width: 40%; }

/* ---------- Sekcje ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-wrap: balance; }
.section-head h2 .count { font-family: var(--font-body); font-size: 0.42em; font-weight: 700; color: var(--gold); vertical-align: middle; margin-left: 12px; padding: 4px 10px; border: 1px solid var(--line-gold); border-radius: 999px; background: var(--gold-soft); letter-spacing: 0.04em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow { margin-bottom: 14px; }
@media (max-width: 720px) { .section { padding: 68px 0; } }

/* ---------- Oferta: filtry ---------- */
.oferta-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.oferta-top .section-head { margin-bottom: 0; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: var(--muted); font-size: 0.86rem; font-weight: 700; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip.is-active { color: #14110a; background: linear-gradient(135deg, var(--gold-3), var(--gold)); border-color: transparent; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--muted); font-weight: 700; }
.sort select { appearance: none; -webkit-appearance: none; padding: 8px 34px 8px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: #0e0e10 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e6b84c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); font: inherit; font-size: 0.86rem; font-weight: 700; }
.sort select:focus { outline: none; border-color: var(--gold); }

/* ---------- Karty ogłoszeń ---------- */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .car-grid { grid-template-columns: 1fr; } }
.car-card { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #151517, #0f0f11); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.car-card:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow); }
.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a1d; display: block; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.car-card:hover .car-media img { transform: scale(1.05); }
.car-noimg { height: 100%; display: grid; place-items: center; color: var(--muted-2); }
.car-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 10, 11, 0.75); border: 1px solid var(--line-gold); color: var(--gold-3); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-title { font-size: 1.18rem; }
.car-desc { color: var(--muted); font-size: 0.88rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.car-specs { color: var(--muted); font-size: 0.88rem; }
.car-specs .dot { color: var(--gold); margin: 0 2px; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.car-price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--gold-3); }
.car-actions { display: flex; gap: 8px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; }
.car-media.is-noimg { display: grid; place-items: center; color: var(--muted-2); background: #1a1a1d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%237d7a73' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M6.5 11l1.6-4.5h7.8L17.5 11M3.5 11h17v6h-17z'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E") no-repeat center; }
.oferta-status { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin-top: 14px; min-height: 1.2em; }
.oferta-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.oferta-note { margin-top: 36px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(230, 184, 76, 0.14), rgba(230, 184, 76, 0.03)); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.oferta-note p { color: var(--muted); max-width: 62ch; }
.oferta-note p b { color: var(--text); }

/* ---------- O nas + film ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }
.video-box { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-gold); background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(180deg, rgba(10, 10, 11, 0.1), rgba(10, 10, 11, 0.5)); border: 0; color: #fff; transition: opacity 0.4s; }
.video-play b { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.video-play .play-ring { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #14110a; box-shadow: 0 16px 40px rgba(230, 184, 76, 0.35); transition: transform 0.3s var(--ease); }
.video-play:hover .play-ring { transform: scale(1.06); }
.video-play .ic { width: 2rem; height: 2rem; fill: currentColor; stroke: none; }
.video-box.is-playing .video-play { opacity: 0; pointer-events: none; }
.about-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.about-text > p { color: var(--muted); font-size: 1.04rem; margin-bottom: 22px; }
.about-text > p strong { color: var(--text); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.checks li b { color: var(--text); }
.checks .ic { width: 1.4rem; height: 1.4rem; color: var(--gold); margin-top: 2px; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Ubezpieczenia ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 6px 0 26px; }
@media (max-width: 1000px) { .ins-grid { grid-template-columns: repeat(3, 1fr); } }
.ins { padding: 22px 20px; border-radius: 18px; background: linear-gradient(180deg, #17171a, #121214); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 6px; align-content: start; transition: border-color 0.3s, transform 0.35s var(--ease); }
.ins:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.ins-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 8px; }
.ins-ico .ic { width: 1.45rem; height: 1.45rem; }
.ins b { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.ins span { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.ins span em { font-style: normal; color: var(--text); }
/* Telefon: jedna kolumna, ikona po lewej, tytuł i opis po prawej (reguła musi być PO regułach bazowych .ins) */
@media (max-width: 720px) {
  .ins-grid { grid-template-columns: 1fr; gap: 10px; }
  .ins { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 14px; row-gap: 3px; padding: 14px 16px; }
  .ins:hover { transform: none; }
  .ins .ins-ico { grid-row: 1 / span 2; grid-column: 1; margin: 0; align-self: center; }
  .ins b { grid-column: 2; font-size: 1.05rem; }
  .ins span { grid-column: 2; font-size: 0.86rem; }
}
.ins-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(230, 184, 76, 0.14), rgba(230, 184, 76, 0.03)); }
.ins-cta p { color: var(--muted); max-width: 62ch; }
.ins-cta p b { color: var(--text); }

/* ---------- Pasek opinii ---------- */
.band { padding: 34px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.band-stat b { display: block; font-family: var(--font-head); font-size: 2.1rem; line-height: 1; color: var(--gold-3); }
.band-stat span { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.band-stat .stars { display: flex; gap: 3px; color: var(--gold); margin-top: 6px; }
.band-stat .stars .ic { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .band-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .band-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .band-stat b { font-size: 1.6rem; }
  .band-stat span { font-size: 0.78rem; }
  .band-actions .btn { flex: 1; }
}
@media (max-width: 380px) { .band-stat b { font-size: 1.3rem; white-space: nowrap; } .band-stats { gap: 8px; } }

/* ---------- Formularze ---------- */
.forms-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .forms-wrap { grid-template-columns: 1fr; } }
.form-tabs { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 100px; }
.form-tab { text-align: left; display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-3); border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s; min-width: 240px; }
.form-tab .ic { color: var(--gold); width: 1.5rem; height: 1.5rem; }
.form-tab b { display: block; font-size: 1rem; }
.form-tab span { display: block; font-size: 0.82rem; color: var(--muted); }
.form-tab.is-active { border-color: var(--gold); background: linear-gradient(160deg, rgba(230, 184, 76, 0.16), rgba(230, 184, 76, 0.04)); }
@media (max-width: 960px) {
  .form-tabs { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form-tab { min-width: 0; flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
  .form-tab span { display: none; }
  .form-tab b { font-size: 0.86rem; line-height: 1.25; }
}
.form-panel { padding: 34px; border-radius: 24px; background: var(--bg-3); border: 1px solid var(--line); }
@media (max-width: 560px) { .form-panel { padding: 24px 18px; } }
.form-panel h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-panel > p { color: var(--muted); margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.86rem; font-weight: 700; color: rgba(243, 241, 236, 0.9); }
.field label .req { color: var(--gold); }
.field > input, .field > select, .field > textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0e0e10; color: var(--text); font: inherit; font-size: 0.97rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field > select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e6b84c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field > input:focus, .field > select:focus, .field > textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 184, 76, 0.18); }
.field > textarea { min-height: 120px; resize: vertical; }
.field > input[type="file"] { padding: 10px; }
.field > input::placeholder, .field > textarea::placeholder { color: var(--muted-2); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0e0e10; cursor: pointer; font-size: 0.9rem; white-space: nowrap; }
.choice input { accent-color: var(--gold); margin: 0; width: 16px; height: 16px; padding: 0; flex: none; border: 0; box-shadow: none; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { accent-color: var(--gold); margin-top: 3px; flex: none; }
.consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.form-err { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(110, 22, 22, 0.25); border: 1px solid rgba(255, 120, 120, 0.4); color: #ffd9d9; font-size: 0.9rem; }
.form-err a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot small { color: var(--muted-2); }
.form-foot small a { text-decoration: underline; text-underline-offset: 3px; }
.field > select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }

/* Telefon: pola 16 px (iOS nie przybliża strony po dotknięciu), sortowanie i wybory na całą szerokość */
@media (max-width: 640px) {
  .field > input, .field > select, .field > textarea, .sort select, .stats-form input { font-size: 16px; }
  .field > select { padding-right: 40px; }
  .filters { flex-direction: column; align-items: stretch; gap: 12px; }
  .sort { width: 100%; justify-content: space-between; }
  .sort select { flex: 1; min-width: 0; max-width: 100%; padding: 11px 36px 11px 14px; }
  /* wybory (radio) w jednym rzędzie, równe „pigułki”; gdy się nie mieszczą, ostatnia schodzi niżej na całą szerokość */
  .choices { display: flex; flex-wrap: wrap; gap: 8px; }
  .choice { flex: 1 1 auto; display: flex; justify-content: center; text-align: center; white-space: nowrap; padding: 12px 10px; line-height: 1.25; min-width: 0; }
  .choices--stack .choice { flex-basis: 100%; justify-content: flex-start; text-align: left; white-space: normal; }
  .choices--stack .choice input { flex: none; }
  .form-foot .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .about-cta .btn, .auto-empty .row .btn, .thanks .row .btn { width: 100%; }
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-card { padding: 36px; border-radius: 24px; background: var(--bg-3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 560px) { .contact-card { padding: 26px 20px; } }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.contact-row b { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-row a, .contact-row span { font-size: 1.05rem; }
.contact-row a:hover { color: var(--gold-3); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 0.98rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.nav-apps { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.nav-apps > b { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nav-apps-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-apps > span { font-size: 0.86rem; color: var(--muted); }
.nav-apps > span b { color: var(--text); }
@media (max-width: 480px) { .nav-apps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; } .nav-apps-row .btn { padding-inline: 6px; font-size: 0.8rem; } }
.map-box { display: block; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--bg-3); position: relative; isolation: isolate; }
.map-box picture, .map-img { display: block; width: 100%; height: 100%; min-height: 420px; }
.map-img { object-fit: cover; filter: invert(0.92) hue-rotate(180deg) saturate(0.5) brightness(0.9) contrast(1.05); transition: transform 0.8s var(--ease); }
.map-box:hover .map-img { transform: scale(1.03); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 0 10px rgba(230, 184, 76, 0.18), 0 12px 30px rgba(0, 0, 0, 0.6); }
.map-tag { position: absolute; left: 16px; bottom: 16px; right: 16px; width: max-content; max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 12px; background: rgba(10, 10, 11, 0.85); border: 1px solid var(--line-gold); font-size: 0.85rem; }
.map-tag b { color: var(--gold-3); }
.map-attr { position: absolute; right: 10px; top: 10px; font-size: 0.66rem; color: rgba(255, 255, 255, 0.55); background: rgba(10, 10, 11, 0.5); padding: 2px 6px; border-radius: 6px; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: #070708; padding: 56px 0 120px; color: var(--muted); font-size: 0.92rem; }
@media (min-width: 769px) { .site-footer { padding-bottom: 40px; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--gold-3); }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--muted-2); }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pasek mobilny ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 10, 11, 0.97); border-top: 1px solid var(--line); }
.mobile-bar .btn { flex: 1; padding: 0.9em 1em; }
@media (max-width: 768px) { .mobile-bar { display: flex; } }

/* ---------- Animacje ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
@media (max-width: 960px) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .car-media img { transition: none; }
}

/* ---------- Podstrony ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding: 150px 0 80px; }
.page-narrow { max-width: 760px; margin-inline: auto; }
.page-narrow h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.page-narrow h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.page-narrow p, .page-narrow li { color: var(--muted); font-size: 1.02rem; }
.page-narrow ul { padding-left: 20px; }
.page-narrow a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.thanks { text-align: center; }
.thanks .check { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #14110a; }
.thanks .check .ic { width: 2.4rem; height: 2.4rem; stroke-width: 2.4; }
.thanks .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Karty sprzedane + pasek "Ostatnio sprzedane" ---------- */
.car-title a:hover { color: var(--gold-3); }
.car-card.is-sold { opacity: 0.86; }
.car-card.is-sold .car-media img { filter: grayscale(0.85) brightness(0.65); }
.car-card.is-sold .car-badge { background: rgba(110, 22, 22, 0.85); border-color: rgba(255, 120, 120, 0.45); color: #ffd9d9; }
.car-card.is-sold .car-price { color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.sold-note { color: var(--muted); }
.sold-strip { margin-top: 44px; }
.sold-strip h3 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sold-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sold-item { flex: 0 0 240px; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-3); }
.sold-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; filter: grayscale(0.6); flex: none; }
.sold-item b { display: block; font-size: 0.86rem; line-height: 1.25; }
.sold-item span { display: block; font-size: 0.74rem; color: var(--muted-2); margin-top: 2px; }

/* ---------- Strona auta ---------- */
.auto-main { flex: 1; padding: 130px 0 80px; }
@media (max-width: 768px) { .auto-main { padding: 108px 0 40px; } }
#auto-root { min-height: 100svh; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; white-space: nowrap; overflow: hidden; }
.crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumbs a:hover { color: var(--gold-3); }
.auto-loading { color: var(--muted); padding: 40px 0; font-family: var(--font-body); font-size: 1rem; font-weight: 400; }
.auto-empty { text-align: center; padding: 40px 0; }
.auto-empty h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.auto-empty p { color: var(--muted); margin-bottom: 26px; }
.auto-empty .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.auto-sold-banner { padding: 14px 18px; border-radius: 14px; background: rgba(110, 22, 22, 0.25); border: 1px solid rgba(255, 120, 120, 0.4); margin-bottom: 18px; color: var(--muted); line-height: 1.5; }
.auto-sold-banner b { color: var(--text); }
.auto-sold-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* nagłówek: tytuł + atuty po lewej, cena po prawej */
.auto-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title price" "tags tags"; gap: 14px 32px; align-items: start; margin-bottom: 22px; }
.auto-title { grid-area: title; min-width: 0; }
.auto-price-box { grid-area: price; }
.auto-tags { grid-area: tags; }
.auto-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.auto-sub { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }
.auto-sub .dot, .auto-price-sub .dot { color: var(--gold); }
.auto-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.auto-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold-3); font-size: 0.82rem; font-weight: 700; line-height: 1.2; }
.auto-tags .ic { width: 0.95rem; height: 0.95rem; flex: none; }
.auto-price-box { text-align: right; flex: 0 0 auto; }
.auto-price { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--gold-3); font-weight: 700; white-space: nowrap; line-height: 1; }
.auto-price-sub { margin-top: 8px; font-size: 0.82rem; color: var(--muted-2); }
@media (max-width: 640px) {
  .auto-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "price" "tags"; gap: 12px; margin-bottom: 18px; }
  .auto-price-box { text-align: left; }
  .auto-price { font-size: 2.1rem; }
}
@media (max-width: 360px) { .spec span { font-size: 0.9rem; } .spec-grid { gap: 6px; } }

/* układ: laptop = galeria + opis po lewej, karta „Najważniejsze” po prawej (przyklejona); telefon = galeria, karta, reszta */
.auto-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); grid-template-areas: "gallery aside" "content aside"; gap: 30px 32px; align-items: start; }
.auto-grid > * { min-width: 0; }
.auto-gallery { grid-area: gallery; }
.auto-grid .spec-card { grid-area: aside; }
.auto-content { grid-area: content; }
@media (max-width: 960px) { .auto-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "aside" "content"; gap: 20px; } }

/* galeria */
.gallery { min-width: 0; max-width: 100%; }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; background: #151517; aspect-ratio: 4 / 3; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-main .car-noimg { height: 100%; } .gallery-main .car-noimg .ic { width: 3rem; height: 3rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 10, 11, 0.62); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.gallery-nav:hover { background: rgba(10, 10, 11, 0.88); border-color: var(--gold); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-nav .ic { width: 1.4rem; height: 1.4rem; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(10, 10, 11, 0.74); font-size: 0.78rem; font-weight: 700; }
.gallery-count .ic { width: 0.95rem; height: 0.95rem; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; -webkit-overflow-scrolling: touch; }
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 3px; }
.gallery-thumbs button { flex: 0 0 104px; scroll-snap-align: center; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #151517; aspect-ratio: 4 / 3; opacity: 0.6; cursor: pointer; transition: opacity 0.2s, border-color 0.2s; }
@media (max-width: 640px) { .gallery-thumbs button { flex-basis: 78px; } }
.gallery-thumbs button:hover { opacity: 0.9; }
.gallery-thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skeleton img { filter: brightness(0.6); }
.skeleton-row { min-height: 78px; border-radius: 10px; background: linear-gradient(90deg, #151517 25%, #1c1c20 50%, #151517 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-text { display: grid; gap: 12px; }
.skeleton-text div { height: 16px; border-radius: 6px; background: linear-gradient(90deg, #151517 25%, #1c1c20 50%, #151517 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-text div:nth-child(2) { width: 80%; } .skeleton-text div:nth-child(3) { width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-row, .skeleton-text div { animation: none; } }

/* karta „Najważniejsze” */
.spec-card { padding: 22px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line); position: sticky; top: 96px; }
@media (max-width: 960px) { .spec-card { position: static; } }
@media (max-width: 640px) { .spec-card { padding: 18px 16px; } }
.spec-title { font-size: 1.2rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; }
.spec { padding: 10px 12px; border-radius: 12px; background: #0e0e10; border: 1px solid var(--line); min-width: 0; }
.spec b { display: block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.spec span { font-size: 0.96rem; overflow-wrap: anywhere; line-height: 1.3; }
.spec-actions { display: grid; gap: 10px; }
.spec-actions .btn { width: 100%; }
.spec-links { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; margin-top: 4px; font-size: 0.9rem; }
.spec-links .link-arrow { gap: 0.35em; }
.share-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--gold); cursor: pointer; }
.spec-note { margin-top: 14px; font-size: 0.8rem; color: var(--muted-2); display: flex; gap: 8px; line-height: 1.5; }
.spec-note .ic { flex: none; width: 1rem; height: 1rem; margin-top: 2px; color: var(--gold); }

/* sekcje treści */
.auto-section { margin-top: 36px; }
.auto-content > .auto-section:first-child { margin-top: 0; }
.auto-section h2 { font-size: 1.45rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.auto-section h2 .count { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; color: var(--gold); padding: 3px 10px; border: 1px solid var(--line-gold); border-radius: 999px; background: var(--gold-soft); letter-spacing: 0.04em; }
.desc { color: var(--muted); font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.desc p { margin: 0 0 0.75em; }
.desc p:empty { display: none; }
.desc b, .desc strong { color: var(--text); font-weight: 700; }
.desc ul, .desc ol { padding-left: 20px; margin: 0 0 0.9em; }
.desc li { margin: 0 0 0.25em; }
.details-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.details-group { padding: 16px 18px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); min-width: 0; }
.details-group h3, .equip-group h3 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.details-group dl { margin: 0; }
.details-group dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.details-group dl > div:first-child { border-top: 0; padding-top: 2px; }
.details-group dt { color: var(--muted); flex: 0 1 auto; }
.details-group dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.equip { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 28px; }
.equip-group { min-width: 0; }
.equip ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.equip li { display: flex; gap: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.equip li .ic { color: var(--gold); width: 1rem; height: 1rem; margin-top: 3px; flex: none; }

/* zwijane sekcje (opis, wyposażenie) */
.fold { --fold-max: 380px; position: relative; }
#fold-equip { --fold-max: 460px; }
.fold.is-folded:not(.is-open) .fold-body { max-height: var(--fold-max); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 100px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 100px), transparent); }
.fold-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-gold); background: var(--gold-soft); color: var(--gold-3); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; }
.fold-more:hover { background: rgba(230, 184, 76, 0.2); }
.fold-more .ic { width: 1rem; height: 1rem; transition: transform 0.25s; }
.fold.is-open .fold-more .ic { transform: rotate(180deg); }

/* zachęta na końcu */
.auto-cta { margin-top: 36px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(230, 184, 76, 0.14), rgba(230, 184, 76, 0.03)); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.auto-cta b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.auto-cta span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.auto-cta .row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .auto-cta .row { width: 100%; } .auto-cta .row .btn { flex: 1; justify-content: center; } }

/* powiększenie zdjęcia */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #050506; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; }
.lightbox .gallery-nav { position: absolute; cursor: pointer; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(10, 10, 11, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close .ic { width: 1.3rem; height: 1.3rem; }
.lb-count { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 6px 12px; border-radius: 999px; background: rgba(10, 10, 11, 0.7); font-size: 0.82rem; font-weight: 700; }
@media (max-width: 640px) { .lightbox .gallery-nav { width: 40px; height: 40px; } .lightbox .gallery-nav.prev { left: 8px; } .lightbox .gallery-nav.next { right: 8px; } }

.thanks-wa { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid rgba(37, 211, 102, 0.35); background: rgba(37, 211, 102, 0.07); display: grid; gap: 14px; justify-items: center; }
.thanks-wa p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.thanks-wa p b { color: var(--text); }
@media (max-width: 640px) { .thanks-wa .btn { width: 100%; } }

/* ---------- Porównywarka ---------- */
/* przycisk „Porównaj” na karcie auta */
.car-card { position: relative; }
.car-cmp { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(10, 10, 11, 0.74); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.car-cmp .ic { width: 1rem; height: 1rem; }
.car-cmp:hover { border-color: var(--gold); }
.car-cmp.is-on { background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: #14110a; border-color: transparent; }
/* wspólny wygląd list rozwijanych porównywarki */
.cmp-change select, .spec-compare select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; padding: 11px 36px 11px 13px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: #0e0e10 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e6b84c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; text-overflow: ellipsis; cursor: pointer; outline: none; }
.cmp-change select:focus, .spec-compare select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230, 184, 76, 0.18); }
@media (max-width: 640px) { .cmp-change select, .spec-compare select { font-size: 16px; } }
/* blok na stronie auta */
.spec-compare { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.spec-compare label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.spec-compare label .ic { width: 1rem; height: 1rem; color: var(--gold); }
/* pasek wyboru na dole ekranu */
.cmp-tray { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 46; width: min(100% - 24px, 760px); }
.cmp-tray-inner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: #141416; border: 1px solid var(--line-gold); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65); }
.cmp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; min-width: 0; }
.cmp-slot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #0e0e10; border: 1px solid var(--line); min-width: 0; }
.cmp-slot img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.cmp-slot-txt { min-width: 0; flex: 1; display: grid; }
.cmp-slot-txt b { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-slot-txt i { font-style: normal; font-size: 0.72rem; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-slot.is-empty { border-style: dashed; color: var(--muted); }
.cmp-plus { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--gold); font-size: 1.2rem; flex: none; }
.cmp-x { background: none; border: 0; color: var(--muted); font-size: 1.25rem; line-height: 1; padding: 4px 6px; flex: none; cursor: pointer; }
.cmp-x:hover { color: #fff; }
.cmp-clear { background: none; border: 0; color: var(--muted-2); font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; padding: 4px; flex: none; cursor: pointer; }
.cmp-go { flex: none; }
body.has-cmp-tray .site-footer { padding-bottom: 130px; }
@media (max-width: 768px) {
  .cmp-tray { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cmp-tray-inner { gap: 8px; padding: 8px; }
  .cmp-slots { display: flex; flex: none; }
  .cmp-slot { padding: 4px; gap: 2px; }
  .cmp-slot img, .cmp-slot-ph { width: 52px; height: 39px; }
  .cmp-slot-txt { display: none; }
  .cmp-slot.is-empty { padding: 4px; }
  .cmp-plus { width: 52px; height: 39px; }
  .cmp-clear { display: none; }
  .cmp-go { flex: 1; justify-content: center; }
  body.has-cmp-tray .site-footer { padding-bottom: 190px; }
}
/* strona porównania */
.cmp-title { margin-bottom: 22px; }
.cmp-title h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cmp-title p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.cmp-root { min-height: 60svh; }
.cmp-heads { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.cmp-car { padding: 14px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cmp-car.is-empty { border-style: dashed; }
.cmp-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #151517; }
.cmp-photo a, .cmp-photo img { display: block; width: 100%; height: 100%; }
.cmp-photo img { object-fit: cover; }
.cmp-photo--empty { display: grid; place-items: center; height: 100%; color: var(--muted-2); }
.cmp-photo.cmp-photo--empty { height: auto; }
.cmp-slot-ph { width: 48px; height: 36px; border-radius: 6px; flex: none; display: grid; place-items: center; background: #1a1a1d; color: var(--muted-2); }
.cmp-slot-ph .ic { width: 1.2rem; height: 1.2rem; }
.cmp-photo--empty .ic { width: 3rem; height: 3rem; }
.cmp-photo .gallery-nav { width: 38px; height: 38px; }
.cmp-photo .gallery-nav.prev { left: 8px; } .cmp-photo .gallery-nav.next { right: 8px; }
.cmp-photo .gallery-count { right: 8px; bottom: 8px; }
.cmp-sold { top: 10px; left: 10px; background: rgba(110, 22, 22, 0.85); border-color: rgba(255, 120, 120, 0.45); color: #ffd9d9; }
.cmp-car h2 { font-size: clamp(1.02rem, 2vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; margin-top: 4px; }
.cmp-car h2 a:hover { color: var(--gold-3); }
.cmp-sub { color: var(--muted); font-size: 0.9rem; }
.cmp-sub .dot { color: var(--gold); }
.cmp-price { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: var(--gold-3); line-height: 1.1; }
.cmp-wins { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-wins li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold-3); font-size: 0.76rem; font-weight: 700; line-height: 1.2; }
.cmp-wins .ic { width: 0.85rem; height: 0.85rem; flex: none; }
.cmp-change { display: grid; gap: 4px; margin-top: auto; padding-top: 6px; }
.cmp-change span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.cmp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmp-actions .btn { width: 100%; }
.cmp-vs { position: absolute; left: 50%; top: clamp(74px, 15vw, 200px); transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #14110a; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; border: 3px solid var(--bg); z-index: 2; pointer-events: none; }
.cmp-hint { margin-top: 22px; color: var(--muted); text-align: center; max-width: 60ch; margin-inline: auto; }
.cmp-note { color: var(--muted); }
.cmp-tools { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin-top: 22px; font-size: 0.9rem; }
.cmp-only { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; margin-right: auto; }
.cmp-only input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.cmp-section { margin-top: 32px; }
.cmp-section h2 { font-size: 1.4rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.cmp-section h2 .count { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; color: var(--gold); padding: 3px 10px; border: 1px solid var(--line-gold); border-radius: 999px; background: var(--gold-soft); letter-spacing: 0.04em; }
.cmp-table { border-radius: 16px; border: 1px solid var(--line); background: var(--bg-3); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-label { padding: 12px 16px; color: var(--muted); font-size: 0.9rem; }
.cmp-val { padding: 12px 16px; font-weight: 600; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; font-size: 0.95rem; }
.cmp-val.is-win { background: rgba(230, 184, 76, 0.09); color: var(--gold-3); box-shadow: inset 3px 0 0 var(--gold); }
.cmp-diff { font-size: 0.74rem; font-weight: 700; color: var(--gold); }
.cmp-row.is-same .cmp-val { color: var(--muted); font-weight: 500; }
.only-diff .cmp-row.is-same { display: none; }
.cmp-yes { color: #7be0a6; display: inline-flex; align-items: center; gap: 6px; }
.cmp-yes .ic { width: 1rem; height: 1rem; }
.cmp-no, .cmp-none { color: var(--muted-2); font-weight: 500; }
.cmp-equip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cmp-equip-col { padding: 16px 18px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); min-width: 0; }
.cmp-equip-col h3 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; line-height: 1.4; }
.cmp-equip-col h3 span, .cmp-both summary span { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--line-gold); letter-spacing: 0; }
.cmp-equip ul, .cmp-both-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.cmp-equip li, .cmp-both-list li { display: flex; gap: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.cmp-equip li .ic, .cmp-both-list li .ic { color: var(--gold); width: 1rem; height: 1rem; margin-top: 3px; flex: none; }
.cmp-none-note { color: var(--muted-2); font-size: 0.9rem; }
.cmp-both { margin-top: 14px; }
.cmp-both summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-gold); background: var(--gold-soft); color: var(--gold-3); font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.cmp-both summary::-webkit-details-marker { display: none; }
.cmp-both summary .ic { width: 1rem; height: 1rem; transition: transform 0.25s; }
.cmp-both[open] summary .ic { transform: rotate(180deg); }
.cmp-both-list { margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 5px 24px; }
/* mały pasek po przewinięciu */
.cmp-mini { position: fixed; top: 76px; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 max(20px, calc((100% - var(--container)) / 2)); background: #0d0d0f; border-bottom: 1px solid var(--line-gold); transform: translateY(-130%); transition: transform 0.25s var(--ease); pointer-events: none; }
.cmp-mini:not(.is-on) { visibility: hidden; }
.cmp-mini.is-on { transform: none; pointer-events: auto; }
.cmp-mini a { display: grid; padding: 8px 0; min-width: 0; }
.cmp-mini b { font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-mini span { font-size: 0.82rem; color: var(--gold-3); font-weight: 700; }
@media (max-width: 640px) {
  .cmp-heads { gap: 10px; }
  .cmp-car { padding: 8px; border-radius: 16px; gap: 6px; }
  .cmp-photo { border-radius: 10px; }
  .cmp-photo .gallery-nav { width: 30px; height: 30px; }
  .cmp-photo .gallery-nav .ic { width: 1rem; height: 1rem; }
  .cmp-photo .gallery-nav.prev { left: 4px; } .cmp-photo .gallery-nav.next { right: 4px; }
  .cmp-photo .gallery-count { font-size: 0.68rem; padding: 3px 7px; right: 5px; bottom: 5px; }
  .cmp-sub { font-size: 0.78rem; }
  .cmp-wins li { font-size: 0.68rem; padding: 4px 7px; }
  .cmp-actions { grid-template-columns: 1fr; gap: 6px; }
  .cmp-actions .btn { padding: 0.7em 0.6em; font-size: 0.82rem; }
  .cmp-vs { width: 38px; height: 38px; font-size: 0.68rem; top: clamp(60px, 17vw, 110px); }
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-label { grid-column: 1 / -1; padding: 10px 12px 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
  .cmp-val { border-left: 0; padding: 3px 12px 11px; font-size: 0.92rem; }
  .cmp-val + .cmp-val { border-left: 1px solid var(--line); }
  .cmp-val.is-win { box-shadow: inset 0 -2px 0 var(--gold); }
  .cmp-equip { gap: 10px; }
  .cmp-equip-col { padding: 12px; }
  .cmp-equip li { font-size: 0.82rem; }
  .cmp-mini { top: 70px; gap: 10px; padding: 0 16px; }
  .cmp-tools { font-size: 0.86rem; }
}

/* ---------- Statystyki ---------- */
.stats-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 22px 0 28px; }
.stats-form label { width: 100%; font-size: 0.86rem; font-weight: 700; }
.stats-form input { flex: 1; min-width: 200px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #0e0e10; color: var(--text); font: inherit; }
.stats h2 { font-size: 1.3rem; margin: 26px 0 10px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.stats-table td, .stats-table th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.stats-table td:last-child, .stats-table th:not(:first-child) { text-align: right; }
.stats-table th { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.stats-err { color: #ff9d9d; }
.stats-scroll { overflow-x: auto; }
.stats-table td.stats-wrap { text-align: left; font-size: 0.85rem; color: var(--muted); min-width: 240px; }
.stats-table td.stats-wrap b { color: var(--text); font-weight: 600; }
.stats-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 16px; }
/* panel analityczny */
.stats-wide { max-width: 1040px; margin-inline: auto; }
.stats-wide h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.stats-lead { color: var(--muted); max-width: 62ch; }
.stats-wide .stats-form { max-width: 620px; }
.stats-period { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.kpi-value { font-family: var(--font-head); font-size: 2.1rem; line-height: 1.05; color: var(--gold-3); }
.kpi-delta { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.kpi-delta.is-up { color: #7be0a6; } .kpi-delta.is-down { color: #ff9d9d; }
.kpi-note { font-size: 0.74rem; color: var(--muted-2); line-height: 1.35; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.chart { padding: 16px 16px 10px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.chart-head span { font-size: 0.74rem; color: var(--muted-2); }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; }
.chart-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.chart-col i { display: block; width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); }
.chart.is-green .chart-col i { background: linear-gradient(180deg, #7be0a6, #25a862); }
.chart-val { font-size: 0.62rem; color: var(--muted); line-height: 1; }
.chart-col em { font-style: normal; font-size: 0.6rem; color: var(--muted-2); height: 12px; white-space: nowrap; }
.chart-col:hover i { filter: brightness(1.2); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 0.9rem; }
.bar-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row > b { text-align: right; }
.bar-track { display: block; height: 10px; border-radius: 999px; background: #0e0e10; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); }
.bar-track i.kontakt { background: linear-gradient(90deg, #25a862, #7be0a6); }
.bar-track i.dojazd { background: linear-gradient(90deg, #2f6fd6, #7fb0ff); }
.bar-track i.wyjscie { background: linear-gradient(90deg, #6b6860, #aaa69d); }
@media (max-width: 560px) { .bar-row { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 36px; font-size: 0.82rem; } }
.stats-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
@media (max-width: 860px) { .stats-cols { grid-template-columns: minmax(0, 1fr); } }
.topcars { display: grid; gap: 8px; }
.topcar { display: grid; grid-template-columns: 26px 80px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); transition: border-color 0.2s; }
.topcar:hover { border-color: var(--line-gold); }
.topcar-nr { font-family: var(--font-head); font-size: 1.1rem; color: var(--muted-2); text-align: center; }
.topcar img, .topcar-ph { width: 80px; height: 60px; border-radius: 8px; object-fit: cover; background: #1a1a1d; display: block; }
.topcar-txt { display: grid; gap: 3px; min-width: 0; }
.topcar-txt b { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topcar-txt > span:not(.bar-track) { font-size: 0.8rem; color: var(--muted); }
.topcar-txt .sold { font-style: normal; color: #ff9d9d; }
.topcar-n { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-3); text-align: right; line-height: 1; }
.topcar-n small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 560px) { .topcar { grid-template-columns: 18px 60px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px 8px 6px; } .topcar img, .topcar-ph { width: 60px; height: 45px; } .topcar-n { font-size: 1.2rem; } }
.stats-box { margin-top: 22px; padding: 4px 18px 14px; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.stats-box summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style-position: inside; }
.stats-box summary b { color: var(--gold-3); }
.stats-box summary em { font-style: normal; font-size: 0.78rem; margin-left: 8px; padding: 2px 9px; border-radius: 999px; }
.stats-box summary em.ok { background: rgba(37, 211, 102, 0.12); color: #7be0a6; }
.stats-box summary em.warn { background: rgba(255, 120, 120, 0.14); color: #ff9d9d; }
