/* ==========================================================================
   Auto Komis Danek & Syn
   Paleta z ich placu: antracytowa elewacja, złoty szyld, białe ramy, żwir.
   Motyw: tablica rejestracyjna "DANEK & SYN" montowana na autach.
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie: szybciej i bez wysyłania IP do Google) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-ext-400-normal.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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-ext-500-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-ext-600-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-700-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.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; }

/* ---------- Tokeny ---------- */
:root {
  --antracyt: #2B2F35;     /* elewacja komisu */
  --antracyt-2: #33383F;   /* podniesione powierzchnie */
  --antracyt-3: #3C414A;
  --grafit: #1D2024;       /* tablica szyldu */
  --czern: #141619;        /* tablice rejestracyjne */
  --szyld: #E7BC30;        /* złoto napisu DANEK&SYN */
  --szyld-jasny: #F3CC4B;
  --rama: #F3F2EE;         /* białe ramy okien */
  --mgla: #9EA3AB;
  --mgla-jasna: #C9CCD1;
  --zwir: #D9D5CC;         /* żwir na placu */
  --tusz: #23262B;
  --tusz-2: #4A4E56;
  --ok: #5FD38D;
  --stop: #EE8A6E;
  --line: rgba(243, 242, 238, .1);
  --line-2: rgba(243, 242, 238, .2);
  --line-gravel: rgba(35, 38, 43, .16);

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;

  --header-h: 80px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --chrome: linear-gradient(160deg, #eceef0 0%, #8b9098 20%, #2c2f34 48%, #a7acb3 76%, #eceef0 100%);
  --plate-face: linear-gradient(180deg, #25282d 0%, #15171a 52%, #0e0f11 100%);
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .15 0 0 0 0 .17 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked, html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--antracyt);
  color: var(--rama);
  font: 400 1.125rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--szyld); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-cond); font-weight: 600; line-height: 1; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--szyld); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--szyld); color: var(--grafit); }

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--szyld); color: var(--grafit); padding: 12px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.to { display: inline-block; width: .75em; height: 1.5px; margin: 0 .35em; background: currentColor; opacity: .65; vertical-align: middle; transform: translateY(-.08em); }

.h2 { font-size: clamp(2.6rem, 1.7rem + 3.1vw, 4.4rem); line-height: .96; letter-spacing: -.005em; }
.h3 { font-size: 1.625rem; line-height: 1.1; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .7em 1.35em;
  border: 0; border-radius: 8px;
  font: 600 1.0625rem/1.15 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--lg { min-height: 58px; padding-inline: 1.6em; font-size: 1.125rem; }
.btn--compact { min-height: 44px; padding: .55em 1em; font-size: 1rem; }
.btn--gold { background: var(--szyld); color: var(--grafit); }
.btn--gold:hover { background: var(--szyld-jasny); }
.btn--ghost { background: transparent; color: var(--rama); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--rama); }
.btn--dark { background: var(--tusz); color: var(--rama); }
.btn--dark:hover { background: #000; }
.btn__count {
  display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding: 0 .4em;
  border-radius: 6px; background: var(--grafit); color: var(--szyld);
  font: 700 .95em/1 var(--font-cond); font-variant-numeric: tabular-nums;
}
.link-btn { padding: 0; border: 0; background: none; color: var(--szyld); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* ---------- Status: otwarte / zamknięte ---------- */
.status { display: inline-flex; align-items: center; gap: .55em; margin: 0; font-size: .9375rem; color: var(--mgla-jasna); white-space: nowrap; }
.status__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mgla); }
.status[data-state="open"] .status__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 211, 141, .18); }
.status[data-state="closed"] .status__dot { background: var(--stop); }

/* ---------- Nagłówek ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled {
  background: rgba(29, 32, 36, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* przy otwartym menu bez backdrop-filter: inaczej menu (position: fixed) liczyłoby wymiary od nagłówka */
html.menu-open .site-header { background: var(--grafit); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }
.site-header__bar { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: auto; height: 46px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 28px); margin-left: auto; }
.nav a { position: relative; padding: .4em 0; color: var(--mgla-jasna); font-weight: 500; font-size: 1rem; text-decoration: none; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: 2px; background: var(--szyld); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--rama); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav__status { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; place-items: center; border: 0; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* przy 7 zakładkach status w nagłówku się nie mieści: pokazujemy go w kontakcie, oknie auta i menu na telefonie */
.status--header { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 12px var(--gutter) 40px;
    background: var(--grafit); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav a { padding: .55em 0; border-bottom: 1px solid var(--line); color: var(--rama); font: 600 2.1rem/1.1 var(--font-cond); }
  .nav a::after { display: none; }
  .nav__status { display: inline-flex; margin-top: 24px; font-size: 1rem; }
}
@media (max-width: 560px) {
  .header-actions .btn--compact span { display: none; }
  .header-actions .btn--compact { width: 46px; padding: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 76px)) 0 clamp(56px, 7vw, 96px);
  background:
    var(--noise-light),
    radial-gradient(70% 90% at 78% 0%, rgba(231, 188, 48, .07), transparent 70%),
    linear-gradient(180deg, #2E3238 0%, var(--antracyt) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "copy stage" "copy car" "ground ground";
  column-gap: clamp(40px, 6vw, 96px); row-gap: 0;
}
.hero__copy { grid-area: copy; align-self: center; min-width: 0; }
.hero__stage { grid-area: stage; }
.hero__title { font-size: clamp(3rem, 5.6vw, 5.1rem); line-height: .94; letter-spacing: -.01em; }
.hero__lead { max-width: 34em; margin: 1.5rem 0 0; font-size: clamp(1.0625rem, .98rem + .3vw, 1.2rem); line-height: 1.55; color: var(--mgla-jasna); }
.hero__lead + .hero__lead { margin-top: .85rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }
.hero__facts { grid-area: ground; position: relative; display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(243, 242, 238, .16); list-style: none; font-size: .9688rem; color: var(--mgla-jasna); }
.hero__facts li { display: flex; align-items: center; gap: .55em; }
.hero__facts svg { width: 20px; height: 20px; color: var(--szyld); flex: none; }
.hero__facts-rating { display: inline-flex; align-items: center; gap: .3em; color: var(--rama); }
.hero__facts-rating strong { font: 700 1.2rem/1 var(--font-cond); }

.hero__stage { position: relative; display: grid; justify-items: center; padding: 150px 0 8px; }

/* dwie lampy nad tablicą, jak nad szyldem na ich elewacji */
.lamps { position: absolute; top: 0; left: 50%; width: min(100%, 560px); height: 150px; translate: -50% 0; pointer-events: none; }
.lamp { position: absolute; top: 0; width: 60px; height: 100%; }
.lamp:nth-child(1) { left: 21%; }
.lamp:nth-child(2) { right: 21%; }
.lamp::before { content: ""; position: absolute; left: 50%; bottom: 86px; width: 3px; height: 900px; margin-left: -1.5px; border-radius: 2px; background: linear-gradient(180deg, #2b2e33, #4a4f57); }
.lamp__shade { position: absolute; left: 50%; bottom: 64px; width: 46px; height: 24px; translate: -50% 0; background: linear-gradient(180deg, #4a4f57, #24272c); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.lamp::after { content: ""; position: absolute; left: 50%; bottom: 62px; width: 44px; height: 5px; translate: -50% 0; border-radius: 50%; background: #fff3d2; box-shadow: 0 0 14px 4px rgba(255, 228, 160, .55); }
.lamp__beam { position: absolute; left: 50%; top: calc(100% - 64px); width: 260px; height: 230px; translate: -50% 0; filter: blur(14px); z-index: -1; }
.lamp__beam::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 228, 160, .26), rgba(255, 228, 160, .08) 55%, rgba(255, 228, 160, 0)); clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); }
.hero__stage .plate--hero { z-index: 1; }


/* auto zaparkowane pod szyldem, jak na ich zdjęciach; koła stoją na linii nad faktami */
.hero__car { grid-area: car; align-self: end; justify-self: end; width: 112%; max-width: 680px; height: auto; margin: clamp(24px, 3.5vw, 48px) 0 0 -12%; overflow: visible; }
.hero__car .c-body { fill: rgba(16, 18, 21, .62); stroke: rgba(243, 242, 238, .46); stroke-width: 2.2; stroke-linejoin: round; }
.hero__car .c-glass { fill: url(#car-glass); stroke: rgba(243, 242, 238, .3); stroke-width: 1.8; stroke-linejoin: round; }
.hero__car .c-pillar { fill: rgba(10, 11, 13, .9); }
.hero__car .c-line { fill: none; stroke: rgba(243, 242, 238, .22); stroke-width: 1.8; stroke-linecap: round; }
.hero__car .c-line--strong { stroke: rgba(243, 242, 238, .4); stroke-width: 3; }
.hero__car .c-well { fill: rgba(8, 9, 11, .92); }
.hero__car .c-mirror { fill: rgba(16, 18, 21, .9); stroke: rgba(243, 242, 238, .32); stroke-width: 1.6; }
.hero__car .c-tire { fill: #111315; stroke: rgba(243, 242, 238, .34); stroke-width: 2; }
.hero__car .c-rim { fill: none; stroke: rgba(243, 242, 238, .42); stroke-width: 1.8; }
.hero__car .c-rim--thin { stroke: rgba(243, 242, 238, .14); }
.hero__car .c-hub { fill: rgba(243, 242, 238, .35); }
.hero__car .c-spoke { fill: none; stroke: rgba(243, 242, 238, .34); stroke-width: 2.4; stroke-linecap: round; }
.hero__car .c-head { fill: none; stroke: #FFEBB8; stroke-width: 4.5; stroke-linecap: round; }
.hero__car .c-tail { fill: none; stroke: #E5735C; stroke-width: 3.5; stroke-linecap: round; opacity: .8; }
.hero__car .c-beam { opacity: .55; }
.hero__car [pathLength] { stroke-dasharray: 1; animation: car-draw 2s var(--ease) .35s backwards; }
.hero__car .c-body, .hero__car .c-glass, .hero__car .c-tire, .hero__car .c-mirror { animation: car-draw 2s var(--ease) .35s backwards, car-fill .9s ease 1.7s backwards; }
.hero__car .c-well, .hero__car .c-pillar, .hero__car .c-hub, .hero__car .c-spoke, .hero__car .c-line--strong, .hero__car .c-rim--thin { animation: car-fade .9s ease 1.7s backwards; }
.hero__car .c-head, .hero__car .c-tail, .hero__car .c-beam, .hero__car .c-shadow { animation: car-fade .7s ease 2.15s backwards; }
@keyframes car-draw { from { stroke-dashoffset: 1; } }
@keyframes car-fill { from { fill-opacity: 0; } }
@keyframes car-fade { from { opacity: 0; } }

/* ---------- Tablica (motyw przewodni) ---------- */
.plate {
  position: relative;
  border: 2px solid transparent; border-radius: 10px;
  background: var(--plate-face) padding-box, var(--chrome) border-box;
  color: var(--szyld);
}
.plate::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(231, 188, 48, .5); border-radius: 6px; pointer-events: none; }

.plate--hero {
  --rx: 6deg; --ry: -14deg; --sheen: 135%;
  display: grid; justify-items: center; align-content: center; gap: .5em;
  width: min(100%, 560px); aspect-ratio: 520 / 134; padding: 0 9.5%;
  border-width: 3px; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 50px 70px -40px rgba(0, 0, 0, .9), 0 24px 40px -24px rgba(0, 0, 0, .75);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ease);
  animation: plate-in 1.15s var(--ease) .15s backwards;
}
.plate--hero::before { inset: 7px; border-width: 1.5px; border-radius: 9px; }
.plate--hero::after {
  content: ""; position: absolute; inset: 0; border-radius: 13px; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .17) 46%, rgba(255, 255, 255, .05) 53%, transparent 66%) no-repeat;
  background-size: 260% 100%; background-position: var(--sheen) 0;
  mix-blend-mode: screen;
  animation: plate-sheen 1.7s ease-in-out .85s backwards;
}
.plate__lettering { width: 100%; height: auto; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.plate__text { font: 600 clamp(.58rem, .4rem + .5vw, .8rem)/1 var(--font-cond); letter-spacing: .24em; text-transform: uppercase; color: rgba(231, 188, 48, .75); }
.plate__screw { position: absolute; top: 50%; width: clamp(7px, 1.4vw, 11px); aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; background: radial-gradient(circle at 35% 30%, #f2f3f5, #8b9098 55%, #34373c); box-shadow: 0 1px 1px rgba(0, 0, 0, .7); }
.plate__screw::after { content: ""; position: absolute; inset: 45% 18%; background: rgba(30, 32, 36, .65); border-radius: 1px; }
.plate__screw--l { left: 3.6%; }
.plate__screw--r { right: 3.6%; }

@keyframes plate-in { from { opacity: 0; transform: perspective(1100px) rotateX(42deg) rotateY(-26deg) translateY(36px); } }
@keyframes plate-sheen { from { background-position: 140% 0; } to { background-position: -45% 0; } }

/* cena na tablicy w kartach aut */
.plate--price {
  display: inline-flex; align-items: baseline; gap: .22em; margin: 0;
  padding: .34em .62em .3em; border-radius: 8px;
  font: 700 1.8rem/1 var(--font-cond); letter-spacing: .01em; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .7);
}
.plate--price small { font-size: .56em; font-weight: 600; color: rgba(231, 188, 48, .85); }

/* wynik kalkulatora */
.plate--result {
  display: inline-flex; align-items: baseline; gap: .3em; margin: 0;
  padding: .3em .55em .26em; border-width: 3px; border-radius: 12px;
  font: 700 clamp(2.8rem, 2rem + 2.6vw, 4rem)/1 var(--font-cond); font-variant-numeric: tabular-nums;
  box-shadow: 0 20px 34px -22px rgba(0, 0, 0, .9);
}
.plate--result::before { inset: 5px; border-radius: 7px; }
.plate--result small { font-size: .38em; font-weight: 600; color: rgba(231, 188, 48, .85); }

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--deep { background: #272B30; }
.section--graphite { background: var(--grafit); }
.section--gravel { background: var(--noise-dark), var(--zwir); color: var(--tusz); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { max-width: 32em; margin: 0; color: var(--mgla-jasna); }

/* ---------- Oferta: filtry ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 12px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .calc__row > label, .calc__label label { font-size: .875rem; font-weight: 500; color: var(--mgla-jasna); }
.input, .select {
  width: 100%; min-height: 52px; padding: .7em .95em;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--antracyt-2); color: var(--rama);
  font-size: 1rem; line-height: 1.3;
  transition: border-color .2s, background-color .2s;
}
.input::placeholder { color: var(--mgla); }
.input:hover, .select:hover { border-color: rgba(243, 242, 238, .34); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--szyld); outline-offset: 1px; border-color: transparent; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23E7BC30' stroke-width='2' d='m1 1.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
.select option { background: var(--grafit); color: var(--rama); }
input[type="search"]::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.filters__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 18px 0 28px; font-size: .9375rem; color: var(--mgla); }
.filters__meta p { margin: 0; }

@media (max-width: 1100px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--search { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Oferta: karty aut ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.car {
  position: relative; container-type: inline-size;
  display: flex; flex-direction: column;
  background: var(--antracyt-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: border-color .2s;
}
.car:hover, .car:focus-within { border-color: rgba(231, 188, 48, .6); }
.car__media { position: relative; aspect-ratio: 4 / 3; background: #202327; }
.car__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car__flag { position: absolute; left: 12px; top: 12px; z-index: 1; padding: .32em .7em; border-radius: 6px; background: var(--szyld); color: var(--grafit); font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.car__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 22px 22px; }
.car__title { font-size: 1.85rem; line-height: 1; }
.car__open { all: unset; cursor: pointer; }
.car__open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.car__open:focus-visible { outline: none; }
.car:has(.car__open:focus-visible) { outline: 2px solid var(--szyld); outline-offset: 3px; }
.car__version { margin: -8px 0 0; font-size: .9688rem; color: var(--mgla-jasna); }
.car__specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px 14px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.car__specs dt { margin-bottom: 2px; font-size: .78rem; color: var(--mgla); }
.car__specs dd { margin: 0; font-size: .9688rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (max-width: 330px) { .car__specs { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 32px; } }
.car__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--mgla-jasna); }
.car__facts li { display: inline-flex; align-items: center; gap: .4em; }
.car__facts svg { width: 15px; height: 15px; color: var(--szyld); }
.car__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.car__more { flex: none; padding-bottom: .35em; font-size: .9688rem; font-weight: 600; color: var(--szyld); }
.car:hover .car__more { text-decoration: underline; text-underline-offset: .25em; }

.cars-empty { max-width: 40em; padding: 40px 0; }
.cars-empty .h3 { margin-bottom: .6rem; }
.cars-empty p { color: var(--mgla-jasna); }
.inventory-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: clamp(28px, 4vw, 44px) 0 0; font-size: .9688rem; color: var(--mgla); }
.inventory-note a { display: inline-flex; align-items: center; gap: .35em; color: var(--rama); font-weight: 500; }
.inventory-note svg { width: 1em; height: 1em; }

/* ---------- Dlaczego my (żwir) ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); }
.why__intro > p { margin-top: 1.4rem; max-width: 27em; color: var(--tusz-2); }
.why__quote { margin: clamp(32px, 4vw, 48px) 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--szyld); }
.why__quote p { margin: 0; font: 600 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1.08 var(--font-cond); color: var(--tusz); }
.why__quote footer { margin-top: .8rem; font-size: .9375rem; font-weight: 500; color: var(--tusz-2); }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 3vw, 48px); margin: 0; padding: 0; list-style: none; align-self: start; }
.why__item { padding: 26px 0 30px; border-top: 1px solid var(--line-gravel); }
.why__item h3 { margin-bottom: .55rem; font-size: 1.65rem; line-height: 1.05; color: var(--tusz); }
.why__item p { font-size: 1.0313rem; color: var(--tusz-2); }

/* ---------- Kroki (sekwencja, więc numeracja) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; counter-reset: krok; }
.step { position: relative; padding-top: 84px; counter-increment: krok; }
.step::before { content: counter(krok); position: absolute; top: 0; left: 0; font: 700 3.6rem/1 var(--font-cond); color: var(--szyld); }
.step::after { content: ""; position: absolute; top: 1.85rem; left: 3.4rem; right: calc(-1 * clamp(24px, 3vw, 40px)); height: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: .6rem; font-size: 1.7rem; }
.step p { font-size: 1.0313rem; color: var(--mgla-jasna); }

/* ---------- Finansowanie ---------- */
.finance { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.finance__intro > p { margin-top: 1.4rem; max-width: 28em; color: var(--mgla-jasna); }
.finance__types { display: grid; gap: 12px; margin: 2rem 0 0; padding: 0; list-style: none; font-weight: 500; }
.finance__types li { display: flex; align-items: center; gap: .65em; }
.finance__types svg { width: 20px; height: 20px; color: var(--szyld); }
.finance__call { margin: 2.5rem 0 0; padding-top: 1.5rem; max-width: 28em; border-top: 1px solid var(--line); color: var(--mgla-jasna); }
.finance__call a { display: block; margin-top: .3rem; font: 700 1.9rem/1.1 var(--font-cond); color: var(--szyld); text-decoration: none; }

.calc { padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 4px; background: var(--antracyt); }
.calc__row { display: grid; gap: 8px; margin-bottom: 22px; }
.calc__row--inline { grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.calc__label { display: flex; justify-content: space-between; gap: 12px; }
.calc__label output { font-weight: 600; color: var(--rama); font-variant-numeric: tabular-nums; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 2.6em; font-variant-numeric: tabular-nums; }
.input-suffix span { position: absolute; right: 1em; top: 50%; translate: 0 -50%; color: var(--mgla); pointer-events: none; }
.input-suffix--short { width: 128px; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.range { --fill: 0%; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--szyld) var(--fill), rgba(243, 242, 238, .16) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 3px solid var(--szyld); border-radius: 50%; background: var(--rama); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(243, 242, 238, .16); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--szyld); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--szyld); border-radius: 50%; background: var(--rama); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(231, 188, 48, .4); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(231, 188, 48, .4); }

.calc__result { display: grid; justify-items: start; gap: 18px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.calc__result-label { margin: 0 0 -6px; font-size: .875rem; font-weight: 500; color: var(--mgla-jasna); }
.calc__breakdown { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 28px; margin: 0; }
.calc__breakdown dt { font-size: .8125rem; color: var(--mgla); }
.calc__breakdown dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-note { margin: 24px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--mgla); }

/* ---------- Opinie ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.proof__rating { display: flex; gap: 24px; align-items: center; }
.proof__score { margin: 0; font: 700 clamp(6rem, 4rem + 6vw, 9.5rem)/.8 var(--font-cond); color: var(--rama); letter-spacing: -.02em; }
.proof__rating-meta { display: grid; gap: 12px; justify-items: start; }
.proof__rating-meta p { margin: 0; color: var(--mgla-jasna); }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__base, .stars__fill { display: flex; gap: 3px; }
.stars svg { width: 24px; height: 24px; flex: none; }
.stars__base { color: rgba(243, 242, 238, .2); }
.stars__fill { position: absolute; inset: 0 auto 0 0; width: var(--pct, 100%); overflow: hidden; color: var(--szyld); }
.proof__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.proof__list li { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.proof__list li:last-child { border-bottom: 1px solid var(--line); }
.proof__list svg { width: 28px; height: 28px; color: var(--szyld); }
.proof__list h3 { margin-bottom: .4rem; font-size: 1.6rem; }
.proof__list p { color: var(--mgla-jasna); font-size: 1.0313rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.quote { margin: 0; padding: 26px 0 0; border-top: 2px solid var(--szyld); }
.quote p { font-size: 1.125rem; }
.quote footer { font-size: .9375rem; color: var(--mgla); }

/* ---------- Zamiana ---------- */
.trade { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 64px; }
.trade > div { max-width: 46em; }
.trade .h2 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.5rem); }
.trade p { margin-top: 1rem; color: var(--tusz-2); max-width: 38em; }

/* ---------- Kontakt ---------- */
.contact-head { margin-bottom: clamp(40px, 5vw, 64px); }
.contact-head__title { font: 600 clamp(3.6rem, 1.4rem + 8vw, 9.5rem)/.86 var(--font-cond); letter-spacing: -.015em; }
.contact-head__sub { margin: 1rem 0 0; font-size: clamp(1.125rem, 1rem + .4vw, 1.35rem); color: var(--mgla-jasna); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.contact__lines { display: grid; gap: 20px; margin: 0 0 36px; }
.contact__lines dt { font-size: .875rem; color: var(--mgla); }
.contact__lines dd { margin: 2px 0 0; font-size: 1.125rem; }
.contact__big { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.2rem)/1.05 var(--font-cond); text-decoration: none; color: var(--szyld); font-variant-numeric: tabular-nums; }
.contact__big:hover { color: var(--szyld-jasny); }
.contact__lines a:not(.contact__big) { text-decoration-color: var(--line-2); }
.hours { padding: 24px 0; border-block: 1px solid var(--line); }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.hours__head h3 { font-size: 1.5rem; }
.hours__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours__table th, .hours__table td { padding: 7px 0; font-size: 1rem; font-weight: 400; text-align: left; color: var(--mgla-jasna); }
.hours__table td { text-align: right; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--rama); font-weight: 600; }
.hours__table tr.is-today th::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px -16px; border-radius: 50%; background: var(--szyld); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Formularz ---------- */
.form { padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 4px; background: var(--antracyt-2); }
.form__title { font-size: 2rem; }
.form__lead { margin: .5rem 0 24px; color: var(--mgla-jasna); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__grid--3 { grid-template-columns: 2fr 1fr 1fr; }
.field--full { grid-column: 1 / -1; }
.field__opt { font-weight: 400; color: var(--mgla); }
.field__error { margin: 0; font-size: .875rem; color: var(--stop); }
.input[aria-invalid="true"] { border-color: var(--stop); }
.form .input, .form .select { background: var(--antracyt); }
.textarea { min-height: 120px; resize: vertical; }
.form__trade { margin: 4px 0 0; padding: 18px; border: 1px dashed var(--line-2); border-radius: 8px; }
.form__trade legend { padding: 0 8px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin: 20px 0; font-size: .8125rem; color: var(--mgla); }
.form__submit { width: 100%; }
.form__status { margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; background: rgba(95, 211, 141, .12); color: var(--rama); font-weight: 500; }
.form__status[data-tone="error"] { background: rgba(238, 138, 110, .14); }
.form__status[data-tone="info"] { background: rgba(231, 188, 48, .12); }

/* ---------- Mapa ---------- */
.map { margin-top: clamp(40px, 5vw, 64px); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map__placeholder, .map iframe { display: block; width: 100%; height: clamp(300px, 36vw, 440px); border: 0; }
.map__placeholder {
  display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center;
  background:
    linear-gradient(rgba(29, 32, 36, .55), rgba(29, 32, 36, .55)),
    repeating-linear-gradient(28deg, transparent 0 46px, rgba(243, 242, 238, .05) 46px 48px),
    repeating-linear-gradient(-62deg, transparent 0 74px, rgba(243, 242, 238, .04) 74px 77px),
    linear-gradient(115deg, transparent 0 46%, rgba(231, 188, 48, .22) 46% 47.2%, transparent 47.2%),
    #23272c;
}
.map__pin { width: 42px; height: 42px; color: var(--szyld); }
.map__address { margin: 0; font: 600 1.6rem/1.1 var(--font-cond); }
.map__note { max-width: 34em; margin: 0; font-size: .8125rem; color: var(--mgla); }

/* ---------- Stopka ---------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--grafit); color: var(--mgla-jasna); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { width: 220px; height: auto; margin-bottom: 18px; }
.site-footer__h { margin-bottom: 14px; font: 600 1.25rem/1 var(--font-cond); color: var(--rama); }
.site-footer a { text-decoration-color: var(--line-2); }
.site-footer a:hover { color: var(--rama); }
.site-footer__links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--mgla); }
.site-footer__bottom p { margin: 0; max-width: 70em; }
.social { display: flex; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.social:empty { display: none; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--rama); }
.social a:hover { box-shadow: inset 0 0 0 1.5px var(--szyld); color: var(--szyld); }
.social svg { width: 20px; height: 20px; }

/* ---------- Pasek akcji (telefon) ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed; inset: auto 0 0; z-index: 45;
    display: grid; grid-template-columns: 1.35fr 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--grafit); border-top: 1px solid var(--line);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 62px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--rama); }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar svg { width: 20px; height: 20px; }
  .action-bar__primary { background: var(--szyld); color: var(--grafit) !important; }
}

/* ---------- Szczegóły auta (dialog) ---------- */
.dialog {
  width: min(1180px, calc(100% - 48px)); height: min(840px, calc(100dvh - 48px));
  max-width: none; max-height: none; padding: 0;
  border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--antracyt); color: var(--rama);
  overflow: hidden;
}
.dialog[open] { animation: dlg-in .38s var(--ease); }
.dialog::backdrop { background: rgba(10, 11, 13, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.dlg { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); height: 100%; }
.dlg__bar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; margin: 0 calc(-1 * clamp(24px, 3vw, 44px)) 0; padding: 12px 14px 12px clamp(24px, 3vw, 44px);
  background: var(--antracyt); transition: box-shadow .2s;
}
.dlg__bar-title { min-width: 0; margin: 0; overflow: hidden; font: 600 1.35rem/1.1 var(--font-cond); white-space: nowrap; text-overflow: ellipsis; opacity: 0; translate: 0 6px; transition: opacity .2s, translate .2s; }
.dlg__bar-title span { margin-left: .5em; color: var(--szyld); }
.dialog.is-scrolled .dlg__bar { box-shadow: 0 1px 0 var(--line); }
.dialog.is-scrolled .dlg__bar-title { opacity: 1; translate: 0 0; }
.dlg__close {
  flex: none;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(20, 22, 25, .85); color: var(--rama); cursor: pointer;
}
.dlg__close:hover { border-color: var(--szyld); }
.dlg__close svg { width: 22px; height: 22px; }
.dlg__media { display: flex; flex-direction: column; min-height: 0; background: #202328; border-right: 1px solid var(--line); overflow: auto; }
.dlg__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #1a1c20; }
.dlg__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dlg__gallery { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.dlg__gallery:hover { color: var(--szyld); }
.dlg__gallery svg { width: 18px; height: 18px; flex: none; }
.dlg__where { display: grid; gap: 12px; padding: 24px; }
.dlg__where h3 { font-size: 1.4rem; }
.dlg__where p { margin: 0; color: var(--mgla-jasna); font-size: 1rem; }
.dlg__where a { color: var(--rama); }

.dlg__main { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 clamp(24px, 3vw, 44px) 36px; }
.dlg__title { font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); line-height: .95; }
.dlg__version { margin: .5rem 0 0; color: var(--mgla-jasna); }
.dlg__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; }
.dlg__price .plate--price { font-size: 2.3rem; }
.dlg__price-meta { margin: 0; font-size: .9375rem; color: var(--mgla-jasna); }
.dlg__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.dlg__facts li { display: inline-flex; align-items: center; gap: .4em; padding: .38em .75em; border-radius: 999px; background: rgba(243, 242, 238, .07); font-size: .875rem; font-weight: 500; }
.dlg__facts svg { width: 15px; height: 15px; color: var(--szyld); }
.dlg__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.dlg__fin { margin: 16px 0 0; font-size: .9375rem; color: var(--mgla-jasna); }
.dlg__fin .link-btn { font-size: inherit; }
.dlg__h { margin: 34px 0 12px; font-size: 1.5rem; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9688rem; }
.spec dt { color: var(--mgla); }
.spec dd { margin: 0; text-align: right; font-weight: 500; }
.equip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.equip li { padding: .42em .8em; border: 1px solid var(--line-2); border-radius: 6px; font-size: .9063rem; }
.dlg__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.dlg__legal { margin: 26px 0 0; font-size: .78rem; color: var(--mgla); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200; translate: -50% 0; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 8px; background: var(--rama); color: var(--grafit); font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .why, .finance, .proof, .contact { grid-template-columns: minmax(0, 1fr); }
  .why__intro > p, .finance__intro > p { max-width: 40em; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step:nth-child(2)::after { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "stage" "copy" "car" "ground"; }
  .hero__stage { padding-top: 12px; }
  .lamps { display: none; }
  .hero__copy { margin-top: 32px; }
  .hero__title { font-size: clamp(2.6rem, 12.2vw, 4.6rem); }
  .hero__car { justify-self: stretch; width: 100%; max-width: 560px; margin: 40px auto 0; }
  .plate--hero { --rx: 4deg; --ry: -8deg; }
}
@media (max-width: 860px) {
  .dialog { width: 100%; height: 100%; max-height: 100dvh; border: 0; border-radius: 0; overflow: auto; }
  .dlg { display: flex; flex-direction: column; height: auto; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .dlg__media { display: contents; }
  .dlg__photo { order: 1; border-bottom: 1px solid var(--line); }
  .gal__thumbs { order: 2; }
  .dlg__main { order: 3; overflow: visible; padding: 28px var(--gutter) 0; }
  .dlg__where { order: 4; margin-top: 32px; }
  .dlg__bar { position: fixed; inset: 0 0 auto; z-index: 6; min-height: 64px; margin: 0; padding: 9px 10px 9px var(--gutter); background: transparent; pointer-events: none; transition: background-color .2s, box-shadow .2s; }
  .dialog.is-scrolled .dlg__bar { background: rgba(29, 32, 36, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .dlg__close { pointer-events: auto; }
  .dlg__cta { position: fixed; inset: auto 0 0; z-index: 6; margin: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(29, 32, 36, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .dlg__where { padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 12px; }
  .why__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step::after { display: none; }
  .step { padding-top: 0; padding-left: 64px; }
  .step::before { font-size: 3rem; }
  .calc__row--inline { grid-template-columns: 1fr; }
  .calc__breakdown { grid-template-columns: 1fr 1fr; }
  .proof__rating { flex-direction: column; align-items: start; gap: 16px; }
  .form__grid, .form__grid--3 { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .dlg__cta { grid-template-columns: 1fr 1fr; }
  .dlg__cta .btn { padding-inline: .8em; font-size: 1rem; }
  .trade .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Ruch: szacunek dla ustawień systemu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .plate--hero { transform: none; }
}

/* ---------- Polityka prywatności ---------- */
.legal-head { border-bottom: 1px solid var(--line); background: var(--grafit); }
.legal-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.legal { max-width: 820px; padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); line-height: .96; }
.legal__meta { margin: 12px 0 40px; color: var(--mgla); }
.legal h2 { margin: 44px 0 14px; font-size: 1.75rem; }
.legal p, .legal li { color: var(--mgla-jasna); }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal li::marker { color: var(--szyld); }
.todo { padding: 0 .3em; border-radius: 4px; background: rgba(231, 188, 48, .18); color: var(--szyld-jasny); }
.site-footer--slim { padding-top: 8px; }
.site-footer--slim .site-footer__bottom { margin-top: 0; }

/* ---------- Galeria zdjęć w oknie auta ---------- */
.dlg__photo { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.gal__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; translate: 0 -50%; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(20, 22, 25, .74); color: var(--rama); cursor: pointer; transition: border-color .2s, background-color .2s; }
.gal__nav:hover { border-color: var(--szyld); background: rgba(20, 22, 25, .9); }
.gal__nav svg { width: 22px; height: 22px; }
.gal__nav--prev { left: 14px; }
.gal__nav--next { right: 14px; }
.gal__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: .3em .7em; border-radius: 999px; background: rgba(20, 22, 25, .8); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gal__thumbs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--antracyt-3) transparent; }
.gal__thumb { position: relative; flex: none; width: 88px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 4px; background: #1a1c20; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.gal__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.is-active { border-color: var(--szyld); opacity: 1; }
.car__noimg { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #24272c 0 14px, #212428 14px 28px); color: var(--mgla); font-size: .9375rem; }
.car__count { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: .35em; padding: .3em .6em; border-radius: 6px; background: rgba(20, 22, 25, .8); font-size: .8125rem; font-weight: 600; }
.car__count svg { width: 15px; height: 15px; }
.dlg__desc p { color: var(--mgla-jasna); font-size: 1rem; }

/* ---------- Kontakt: mapa obok danych (bez formularza) ---------- */
.contact .map { display: flex; margin-top: 0; }
.contact .map > * { flex: 1; height: auto; min-height: 460px; }
@media (max-width: 1100px) { .contact .map > * { min-height: 340px; } }

/* ---------- Stopka: wejście do panelu ---------- */
.site-footer__admin { color: var(--mgla); }


.site-footer__company { flex-basis: 100%; }

.map iframe { background: #23272c; }

/* ---------- Opinie: przewijana taśma ---------- */
.reviews { margin-top: clamp(44px, 5vw, 72px); }
.reviews__track {
  display: flex; align-items: stretch; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 6px max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))) 14px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: -2px; }
.review { flex: none; display: flex; flex-direction: column; gap: 16px; width: clamp(280px, 27vw, 370px); margin: 0; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--antracyt); }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__top svg { width: 30px; height: 30px; color: var(--szyld); flex: none; }
.review__car { padding: .25em .65em; border-radius: 4px; background: rgba(231, 188, 48, .12); color: var(--szyld); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--rama); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--szyld); color: var(--grafit); font: 700 1.15rem/1 var(--font-cond); }
.review__who { display: grid; gap: 1px; }
.review__name { font-weight: 600; }
.review__src { font-size: .8125rem; color: var(--mgla); }
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 16px; }
.reviews__note { max-width: 56em; margin: 0; font-size: .8125rem; color: var(--mgla); }
.reviews__ctrl { display: flex; gap: 8px; }
.round-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--rama); cursor: pointer; transition: border-color .2s, background-color .2s; }
.round-btn:hover { border-color: var(--szyld); background: rgba(243, 242, 238, .04); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn .i-play { display: none; }
.round-btn[aria-pressed="true"] .i-pause { display: none; }
.round-btn[aria-pressed="true"] .i-play { display: block; }

/* ---------- Social media ---------- */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.social-card { --brand: var(--szyld); --brand-bg: var(--antracyt-3); display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 18px 16px; height: 100%; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--antracyt); color: var(--rama); text-decoration: none; transition: border-color .2s, background-color .2s; }
.social-card:hover { border-color: var(--brand); background: var(--antracyt-2); }
.social-card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--brand-bg); color: #fff; }
.social-card__icon svg { width: 28px; height: 28px; }
.social-card__text { display: grid; gap: 4px; min-width: 0; }
.social-card__name { font: 600 1.6rem/1 var(--font-cond); }
.social-card__handle { overflow: hidden; color: var(--mgla-jasna); font-size: .9375rem; white-space: nowrap; text-overflow: ellipsis; }
.social-card__cta { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: .45em; padding-top: 14px; border-top: 1px solid var(--line); color: var(--szyld); font-weight: 600; }
.social-card__cta svg { width: 1em; height: 1em; }
.social-card--facebook { --brand: #1877F2; --brand-bg: #1877F2; }
.social-card--instagram { --brand: #E1306C; --brand-bg: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-card--tiktok { --brand: #25F4EE; --brand-bg: #000; }
.social-card--tiktok .social-card__icon svg { filter: drop-shadow(-1.5px -1px 0 #25F4EE) drop-shadow(1.5px 1px 0 #FE2C55); }
.social-card--youtube { --brand: #FF0000; --brand-bg: #FF0000; }

.calc .select, .calc .input { min-width: 0; }

/* wąskie telefony: długie napisy na przyciskach mogą się zawijać */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .calc__result .btn { width: 100%; }
}

.reviews__note a { color: var(--mgla); text-decoration-color: var(--line-2); }
.reviews__note a:hover { color: var(--rama); }

/* ---------- Poznaj naszą ofertę ---------- */
.offer { position: relative; background: #272B30; }
.offer__hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end; min-height: clamp(460px, 64vh, 700px);
  padding: clamp(72px, 9vw, 128px) 0 clamp(44px, 6vw, 76px);
  background: radial-gradient(55% 70% at 82% 18%, rgba(231, 188, 48, .12), transparent 70%), linear-gradient(180deg, #1D2024, #272B30);
}
/* tło zastępcze, dopóki nie ma filmu: ich zdjęcie, mocno przyciemnione i rozmyte */
.offer__hero::before { content: ""; position: absolute; inset: -24px; z-index: -3; background: url(../img/cars/ford-kuga.webp) 70% 40% / cover no-repeat; filter: blur(7px) saturate(.75); opacity: .32; }
.offer__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.offer__video.is-ready { opacity: 1; }
.offer__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 20, 23, .92) 0%, rgba(18, 20, 23, .72) 42%, rgba(18, 20, 23, .3) 100%), linear-gradient(0deg, #272B30 0%, rgba(39, 43, 48, 0) 38%); }
.offer__intro .h2 { max-width: 12em; }
.offer__lead { max-width: 36em; margin: 1.2rem 0 0; font-size: clamp(1.125rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--rama); }
.offer__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.offer__body { padding-top: clamp(36px, 4vw, 56px); padding-bottom: var(--section-y); }
.offer__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.offer__points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 18px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--antracyt); }
.offer__points svg { width: 30px; height: 30px; margin-top: 2px; color: var(--szyld); }
.offer__points p { margin: 0; font-size: 1.0625rem; line-height: 1.55; color: var(--mgla-jasna); }
.offer__gallery { margin-top: clamp(48px, 6vw, 80px); }
.offer__gallery-title { margin-bottom: 18px; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.sold { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sold__item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #1f2226; cursor: zoom-in; transition: border-color .2s; }
.sold__item:hover { border-color: rgba(231, 188, 48, .6); }
.sold__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .offer__points { grid-template-columns: minmax(0, 1fr); } .offer__actions .btn { width: 100%; } }

/* ---------- Opinie: zamiast oceny liczbowej ---------- */
.proof__rating--text { display: grid; justify-items: start; gap: 14px; }
.proof__icon { width: 46px; height: 46px; color: var(--szyld); }
.proof__claim { margin: 0; font: 600 clamp(2.6rem, 1.8rem + 2.4vw, 4rem)/.95 var(--font-cond); color: var(--rama); }
.proof__sub { margin: 0; color: var(--mgla-jasna); }

/* ---------- Powiększone zdjęcie z galerii ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 11, 13, .95); color: var(--rama); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 11, 13, .85); }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; border-radius: 4px; object-fit: contain; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; background: rgba(20, 22, 25, .85); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__count { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; margin: 0; font-size: .875rem; color: var(--mgla-jasna); }

/* ---------- Hero: tekst wyśrodkowany (jak w materiałach od komisu) ---------- */
.hero__copy { text-align: center; }
.hero__copy .hero__title, .hero__copy .hero__lead { margin-left: auto; margin-right: auto; }
.hero__actions { justify-content: center; }
.hero__facts { justify-content: center; }

/* ---------- Opinie: nagłówek, taśma, wyróżnienia w jednym rzędzie ---------- */
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.section-head--split p { margin: .7rem 0 0; color: var(--mgla-jasna); }
#opinie .reviews { margin-top: 0; }
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; }
.awards li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 14px; padding: 0; border: 0; }
.awards li > svg, .awards .proof__icon { width: 28px; height: 28px; margin: 2px 0 0; color: var(--szyld); }
.awards h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.awards p { margin: 0; font-size: .9688rem; line-height: 1.5; color: var(--mgla-jasna); }
@media (max-width: 900px) { .awards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Galeria: pasek z przesuwającymi się zdjęciami ---------- */
.gal-strip { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3fr); margin-top: clamp(48px, 6vw, 80px); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--antracyt); }
.gal-strip__side { display: grid; align-content: center; justify-items: start; gap: 12px; padding: clamp(22px, 2.6vw, 34px); border-right: 1px solid var(--line); background: var(--grafit); }
.gal-strip__title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.05; }
.gal-strip__count { margin: 0 0 6px; font-size: .9375rem; color: var(--mgla); }
.gal-strip__viewport { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.gal-strip__track { display: flex; width: max-content; padding: 16px 0; animation: gal-roll var(--dur, 40s) linear infinite; }
.gal-strip__viewport:hover .gal-strip__track, .gal-strip__viewport:focus-within .gal-strip__track { animation-play-state: paused; }
.gal-strip__track.is-static { animation: none; }
.gal-strip__viewport:has(.is-static) { overflow-x: auto; }
.gal-strip__item { position: relative; flex: none; width: clamp(220px, 21vw, 300px); aspect-ratio: 4 / 3; margin-right: 12px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #1f2226; cursor: zoom-in; transition: border-color .2s; }
.gal-strip__item:hover { border-color: rgba(231, 188, 48, .6); }
.gal-strip__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes gal-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .gal-strip { grid-template-columns: minmax(0, 1fr); }
  .gal-strip__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .gal-strip__side .btn { width: 100%; }
  .gal-strip__item { width: 200px; }
}

/* ---------- Przeglądarka zdjęć: miniatury ---------- */
.lightbox__img { max-height: 72vh; }
.lightbox__thumbs { position: fixed; left: 50%; bottom: calc(46px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 8px; max-width: min(92vw, 900px); padding: 4px; overflow-x: auto; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs:empty { display: none; }
.lightbox__thumb { position: relative; flex: none; width: 76px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 4px; background: #1a1c20; opacity: .55; cursor: pointer; transition: opacity .2s, border-color .2s; }
.lightbox__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: 1; }
.lightbox__thumb.is-active { border-color: var(--szyld); opacity: 1; }

/* zacisk hamulca w kołach auta w hero */
.hero__car .c-caliper { fill: none; stroke: #C9A227; stroke-width: 6; stroke-linecap: round; opacity: .8; animation: car-fade .6s ease 2.1s backwards; }
@keyframes car-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__car .c-caliper { animation: none; } }

/* odblaski i detale lakieru auta w hero */
.hero__car .c-sheen { fill: url(#car-sheen); animation: car-fade .9s ease 2s backwards; }
.hero__car .c-chrome { fill: none; stroke: rgba(243, 242, 238, .5); stroke-width: 1.6; stroke-linecap: round; animation: car-fade .6s ease 2s backwards; }
.hero__car .c-hl { fill: none; stroke: rgba(243, 242, 238, .16); stroke-width: 3; stroke-linecap: round; animation: car-fade .9s ease 2.1s backwards; }
.hero__car .c-glint { animation: car-fade .9s ease 2.1s backwards; }
.hero__car .c-glint path { fill: rgba(243, 242, 238, .06); }
@media (prefers-reduced-motion: reduce) { .hero__car .c-sheen, .hero__car .c-chrome, .hero__car .c-hl, .hero__car .c-glint { animation: none; } }

/* ---------- Auto w hero: wektor ze szkicu, koła własne ---------- */
.hero__car--sketch .c-fill { fill: rgba(16, 18, 21, .68); }
.hero__car--sketch .c-ink { fill: rgba(243, 242, 238, .58); }
.hero__car--sketch .c-glass { fill: url(#car-glass); stroke: none; }
.hero__car--sketch .c-well { fill: rgba(8, 9, 11, .94); }
.hero__car--sketch .c-pillar { fill: rgba(10, 11, 13, .9); }
.hero__car--sketch .c-headfill { fill: #FFE6A6; opacity: .92; }
.hero__car--sketch .c-tailfill { fill: #E5735C; opacity: .85; }
.hero__car.hero__car--sketch * { animation: none; }
.hero__car.hero__car--sketch { animation: car-arrive 1.6s cubic-bezier(.16, .84, .3, 1) .2s backwards; }
.hero__car.hero__car--sketch .c-roll { transform-box: fill-box; transform-origin: center; animation: car-roll 1.6s cubic-bezier(.16, .84, .3, 1) .2s backwards; }
.hero__car.hero__car--sketch .c-headfill, .hero__car.hero__car--sketch .c-beam, .hero__car.hero__car--sketch .c-tailfill { animation: car-fade .6s ease 1.55s backwards; }
@keyframes car-arrive { from { opacity: 0; transform: translateX(7%); } }
@keyframes car-roll { from { transform: rotate(57deg); } }
@media (prefers-reduced-motion: reduce) { .hero__car.hero__car--sketch, .hero__car.hero__car--sketch * { animation: none !important; } }
