/* ==========================================================================
   KodowanieAutWarszawa.pl — design system + komponenty
   Struktura:
   1. Fonty
   2. Tokeny (kolory, typografia, odstępy, promienie, ruch)
   3. Reset / baza
   4. Layout (container, section, section head)
   5. Prymitywy (eyebrow, button, note, tag, icon)
   6. Header / nawigacja
   7. Sekcje: hero, możliwości, carplay, światła, formularz, cennik,
      marki, realizacje, faq, kontakt, footer
   8. Mobile bar
   9. Reveal (mikroanimacje) + hooki pod przyszłe animacje scroll
   ========================================================================== */

/* 1. Fonty ----------------------------------------------------------------
   Neutralny grotesk w stylu Helvetica. Na macOS/iOS używamy systemowej
   Helvetica Neue; gdzie jej nie ma (Windows, Android), ładuje się
   TeX Gyre Heros: wolny klon Helvetiki (licencja GUST, assets/fonts).       */
@font-face {
  font-family: "Heros";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/heros-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Heros";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/heros-bold.woff2") format("woff2");
}

/* 2. Tokeny --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Tła */
  --bg-0: #050607;
  --bg-1: #0d0f10;
  --bg-2: #15171a;
  --bg-3: #1d2023;

  /* Tekst */
  /* złamana biel + grafit */
  --text: #eceae5;
  --muted: #a4a6a8;
  --faint: #7d8084;

  /* Linie */
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --line-3: rgb(255 255 255 / 0.24);

  /* Akcent: miedź, bardzo oszczędnie — aktywny hotspot, numer, krótka
     linia, hover/focus. Nigdy jako tło dużych elementów. */
  --accent: #c4885e;
  --accent-ink: #120b06;
  --accent-soft: rgb(196 136 94 / 0.14);
  --accent-line: rgb(196 136 94 / 0.45);

  /* Typografia */
  /* "Heros" przed "Helvetica": Windows podmienia nazwę Helvetica na Arial */
  --font-sans: "Helvetica Neue", "Heros", Helvetica, Arial, sans-serif;
  /* Mono tylko dla realnych danych technicznych, nigdy jako dekoracja */
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.25rem, 0.9rem + 5.9vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.75rem;

  /* Odstępy */
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1320px;
  --section-y: clamp(80px, 6rem + 4vw, 168px);
  --gap: clamp(16px, 1rem + 0.8vw, 28px);

  /* Promienie */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-btn: 2px;

  /* Ruch */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;

  --header-h: 68px;
}

/* 3. Reset / baza --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: calc(var(--section-y) * 0.7); }
.section--raised { background: var(--bg-1); }

/* Poniżej folda — przeglądarka może pominąć render do czasu scrolla */
.section--deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 2rem + 2vw, 72px);
}
@media (min-width: 960px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 64px;
  }
}

.h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.1vw, 3.125rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* 5. Prymitywy ------------------------------------------------------------ */

/* Drobny tekst pomocniczy. Bez mono, wersalików i rozstrzelenia. */
.mono {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Ikony (inline SVG sprite) */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* Przyciski */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--text);
  --btn-fg: var(--bg-0);
  --btn-bd: var(--text);
}
.btn--primary:hover { --btn-bg: #fff; --btn-bd: #fff; }

/* Główne CTA na scenach: jasne, prostokątne — nie konkuruje kolorem z autem */
.btn--solid {
  --btn-bg: var(--text);
  --btn-fg: var(--bg-0);
  --btn-bd: var(--text);
}
.btn--solid:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--line:hover { --btn-bd: var(--text); }

/* Secondary CTA: tekst + strzałka + cienka linia */
.cta-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cta-link .icon { transition: transform var(--dur) var(--ease); }
.cta-link:hover .icon { transform: translateX(3px); }

/* Mikro-etykieta: eyebrow, podpisy, oznaczenia */
.label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text);
}

.br-md { display: none; }
@media (min-width: 900px) { .br-md { display: inline; } }

.btn--ghost:hover { --btn-bd: var(--line-3); --btn-bg: rgb(255 255 255 / 0.04); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 0 26px; }
.btn--block { width: 100%; }
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .btn--lg { width: 100%; }
}

/* Link tekstowy ze strzałką */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: 12px; }

/* Nota o kompatybilności — powtarzalny komponent */
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgb(255 255 255 / 0.02);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.note .icon { color: var(--accent); margin-top: 1px; }
.note strong { color: var(--text); font-weight: 700; }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.tag--accent { color: var(--accent); border-color: var(--accent-line); }

/* Ramka medialna z cienkimi znacznikami narożników */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  isolation: isolate;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__label {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 3;
  color: var(--muted);
}

/* 6. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(5 6 7 / 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
}
.brand__mark { width: 28px; height: 28px; }
.brand__name span { color: var(--muted); font-weight: 500; }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }

.site-header__cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: none;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease);
}
.menu-toggle__bars { position: relative; transform: translateY(-3px); }
.menu-toggle__bars::before { content: ""; position: absolute; top: 7px; }
.is-open .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
.is-open .menu-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }

/* Panel menu mobilnego */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 32px;
  padding: 24px var(--gutter) 120px;
  background: var(--bg-0);
  overflow-y: auto;
}
.is-open + .mobile-nav,
.mobile-nav.is-open { display: flex; }
.mobile-nav__list { display: grid; }
.mobile-nav__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

@media (min-width: 1080px) {
  .nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* 7a. EXPERIENCE: cinematic scroll storytelling ----------------------------
   Jedna pinowana scena (assets/js/cinematic.js) zamiast hero + osobnych
   sekcji na zegary/CarPlay/światła/DRL/Easy Entry. Silnik dzieli scroll na
   segmenty: frames (kamera jedzie), hold (klatka STOI, scroll animuje tylko
   hotspoty/zdjęcie/podpis) i transition (nowa scena wjeżdża z prawej i
   rośnie na cały ekran — scene takeover, bez cross-fade).
   Bez klasy .seq na <html> (mobile, prefers-reduced-motion, słabszy sprzęt,
   patrz partials/head.php) zostaje statyczny poster + hero; pełna treść
   każdej funkcji jest wtedy w zwykłych sekcjach .section--fallback-feature
   niżej na stronie (reguła disable poniżej).                                */
.experience { position: relative; background: var(--bg-0); }
.experience__stage { position: relative; padding-top: var(--header-h); }
.experience__poster { display: block; position: relative; aspect-ratio: 1220 / 900; }
.experience__poster img { width: 100%; height: 100%; object-fit: cover; }
.experience__canvas,
.experience__takeover { display: none; }
.experience__stage::after {
  /* mobile: wtopienie posteru w tło */
  content: "";
  position: absolute;
  inset: var(--header-h) 0 auto;
  aspect-ratio: 1220 / 900;
  background: linear-gradient(to bottom, var(--bg-0) 0%, transparent 16%, transparent 62%, var(--bg-0) 100%);
  pointer-events: none;
}
.experience__content {
  position: relative;
  z-index: 5;
  margin-top: -16px;
  padding-bottom: 64px;
}
.experience__title {
  font-size: clamp(2.125rem, 1.3rem + 3.1vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 700;
  text-wrap: balance;
}
.experience__lead {
  margin-top: 18px;
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}
.experience__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 32px;
}

/* Odtwarzanie sceny jak filmu (assets/js/cinematic.js): auto-scroll z
   pauzami na czytanie podpisów, przerywany dowolnym scrollem/dotykiem/
   klawiszem użytkownika. Tylko gdy działa pełna sekwencja (html.seq) — bez
   niej nie ma czego "odtwarzać". Podczas odtwarzania przycisk odkleja się
   od hero (który znika ze scrollem) i zostaje w rogu, żeby zawsze dało się
   zatrzymać. */
html:not(.seq) .experience__play { display: none; }
/* wąskie telefony: przyciski hero w jednej linii każdy, "Odtwórz" zawija się niżej */
.experience__actions .btn { white-space: nowrap; }
.experience__play-icon { display: inline-flex; }
html.is-autoplaying .experience__play {
  position: fixed;
  right: var(--gutter);
  bottom: 28px;
  z-index: 50;
}

/* Ukryj klasyczne sekcje na zegary/CarPlay/światła/DRL/Easy Entry, kiedy
   działa pełna sekwencja: ich treść pokazuje już scena wyżej. Bez .seq
   (mobile, reduced motion) te sekcje zostają jedyną prezentacją funkcji. */
html.seq .section--fallback-feature { display: none; }

@media (min-width: 900px) {
  .experience__stage {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding-top: 0;
    overflow: hidden;
  }
  .experience__poster,
  .experience__canvas--intro {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    z-index: 1;
  }
  /* ta sama pozycja kadru co "focus" w sequence.json, żeby podmiana była niewidoczna */
  .experience__poster img { object-position: 100% 55%; }
  .experience__canvas--intro { display: block; opacity: 0; transition: opacity 300ms linear; }
  .experience__canvas--intro.is-ready { opacity: 1; }
  html:not(.seq) .experience__canvas,
  html:not(.seq) .experience__overlays,
  html:not(.seq) .experience__takeover { display: none; }

  .experience__stage::after {
    /* lewy dół pod tekstem, góra pod nawigacją, dół w tło kolejnej sekcji */
    inset: 0;
    z-index: 1;
    aspect-ratio: auto;
    background:
      radial-gradient(65% 55% at 0% 100%, rgb(5 6 7 / 0.8), transparent 70%),
      linear-gradient(to bottom, rgb(5 6 7 / 0.5) 0%, transparent 16%, transparent 84%, var(--bg-0) 100%);
  }
  .experience__title { text-wrap: nowrap; }
  .experience__content {
    margin-top: 0;
    padding-bottom: clamp(56px, 11vh, 128px);
    opacity: calc(1 - var(--text-out, 0));
    transform: translateY(calc(var(--text-out, 0) * -12px));
    will-change: opacity, transform;
  }
  .experience.is-moving .experience__content { visibility: hidden; }
}

/* Scena sticky: overlay, takeover, domknięcie — wspólne dla desktopu i telefonu
   (tylko gdy działa sekwencja, html.seq). */
/* długość sceny = ekran + dystans przewijania całej historii (segmenty w cinematic.js) */
html.seq .experience { height: calc(100svh + var(--experience-scroll, 150vh)); }

/* Overlay okien "postoju": hotspoty + realne zdjęcie + podpis. Zawsze na
   samej górze (także ponad scenami takeover) — podpisy DRL/Easy Entry
   należą do holdów PO danym takeover, więc muszą być nad nim, a okna
   przed takeover i tak mają tu opacity 0, więc nic to nie zasłania. */
html.seq .experience__overlays { position: absolute; inset: 0; z-index: 6; pointer-events: none; }

/* Scene takeover: kolejna scena wjeżdża z prawej krawędzi i rośnie do
   pełnego ekranu, fizycznie zasłaniając poprzednią — clip-path odsłania
   coraz szerszy pas obrazu od prawej, więc to wygląda jak zmiana sceny
   (wipe), a nie jak mały, przeskalowany obrazek doklejony z boku. Bez
   cross-fade, bez glitchu, ruch precyzyjny i ciężki (nie sprężysty). */
html.seq .experience__takeover {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  will-change: clip-path;
}
/* Domknięcie sceny: ostatni odcinek ozonatora ściemnia cały ekran do
   czerni (--blackout 0→1, liczone w cinematic.js z lokalnego postępu
   ostatniego segmentu), tak żeby moment odklejenia sticky sceny i wejście
   w sekcję outro (też czarną) było płynne — bez twardego cięcia na
   kolejną treść. Patrz docs/ART_DIRECTION.md Załącznik C. */
html.seq .experience__blackout {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #000;
  opacity: var(--blackout, 0);
  pointer-events: none;
}

/* Z czerni wyłania się kadr hero — ten sam poster co w scenie 'intro',
   crossfade w tej samej pinowanej scenie (nie osobna sekcja pod spodem).
   Statyczny odpowiednik dla fallbacku: sections/outro.php. */
html.seq .experience__finale {
  position: absolute;
  inset: 0;
  z-index: 11;
  opacity: var(--finale, 0);
  pointer-events: none;
}
html.seq .experience__finale.is-active { pointer-events: auto; }
html.seq .experience__finale-bg,
html.seq .experience__finale-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
html.seq .experience__finale-bg img { opacity: 0.7; }
html.seq .experience__finale-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(5 6 7 / 0.55), rgb(5 6 7 / 0.75) 60%, #000);
}
html.seq .experience__finale-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
}
/* Finał: jedno zdanie, jedna instrukcja, jedno CTA. Bez "wielkiej sekcji". */
.experience__finale-title,
.outro__title {
  max-width: 18ch;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.experience__finale-text,
.outro__text {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
html.seq .experience__finale-content .btn { margin-top: 12px; }

html.seq .experience__takeover picture,
html.seq .experience__takeover img,
html.seq .experience__takeover canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
html.seq .experience__takeover--drl {
  clip-path: inset(0 0 0 calc(100% - var(--drl-reveal, 0) * 100%));
}
html.seq .experience__takeover--drl picture,
html.seq .experience__takeover--drl canvas {
  transform: scale(calc(1.05 - 0.05 * var(--drl-reveal, 0)));
}
html.seq .experience__canvas--drl { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 300ms linear; }
html.seq .experience__canvas--drl.is-ready { opacity: 1; }

/* TELEFON (html.seq-m): ta sama scena, ale pionowe rendery z własną kamerą
   (assets/sequences/intro-m, garage-m). Brak crop 16:9 i brak
   object-position z desktopu: canvas rysuje klatkę "cover" według
   manifestu, więc pionowy kadr wypełnia cały viewport. */
.experience__poster-v { display: none; }
@media (max-width: 899px) {
  html.seq-m .experience__stage {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100vh;
    height: 100svh;
    min-height: 520px;
    padding-top: 0;
    overflow: hidden;
  }
  html.seq-m .experience__poster { display: none; }
  html.seq-m .experience__poster-v,
  html.seq-m .experience__canvas--intro {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  html.seq-m .experience__poster-v img { width: 100%; height: 100%; object-fit: cover; }
  html.seq-m .experience__canvas--intro { opacity: 0; transition: opacity 300ms linear; }
  html.seq-m .experience__canvas--intro.is-ready { opacity: 1; }
  html.seq-m .experience__stage::after {
    inset: 0;
    z-index: 1;
    aspect-ratio: auto;
    background: linear-gradient(to bottom, rgb(5 6 7 / 0.55) 0%, transparent 16%, transparent 58%, rgb(5 6 7 / 0.7) 100%);
  }
  html.seq-m .experience__content {
    margin-top: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    opacity: calc(1 - var(--text-out, 0));
    transform: translateY(calc(var(--text-out, 0) * -12px));
    will-change: opacity, transform;
  }
  html.seq-m .experience.is-moving .experience__content { visibility: hidden; }
  html.seq-m .experience__finale-content { padding-bottom: 72px; }
}

/* 7b. SCENA (editorial) + 02 MOŻLIWOŚCI -----------------------------------
   Scena = asymetryczny nagłówek + obraz full-bleed + krótki tekst.
   Wzorzec do przenoszenia na kolejne sekcje (docs/ART_DIRECTION.md §1, §3). */
.scene {
  position: relative;
  padding-block: var(--section-y) calc(var(--section-y) * 0.85);
}
.scene__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 2rem + 3vw, 88px);
}
.scene__num { color: var(--accent); margin-right: 0.9em; }
.scene__title {
  max-width: 14ch;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.scene__intro {
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 960px) {
  .scene__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .scene__index { grid-column: 1 / -1; }
  .scene__title { grid-column: 1 / span 6; }
  .scene__intro { grid-column: 8 / span 4; padding-bottom: 8px; }
}

/* Hotspot: mały punkt + cienka biała linia prowadząca (SVG, skos + krótki
   poziomy odcinek) + mały label na jej końcu. Treść funkcji jest tylko w
   panelu, nigdy na punkcie. Kierunek linii (--lx/--ly) ustawia
   cinematic.js z ręcznej definicji hotspotu. Aktywny (miedziany) jest jeden
   naraz, pozostałe widoczne ciszej.                                        */
.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 320ms var(--ease);
}
.experience__hold.is-active .marker { opacity: 0.5; transition-delay: 120ms; }
.experience__hold.is-active .marker.is-current { opacity: 1; }
.marker__dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 1px rgb(5 6 7 / 0.6), 0 0 0 6px rgb(236 234 229 / 0.12);
  transition: background-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.marker.is-current .marker__dot {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgb(5 6 7 / 0.6), 0 0 0 7px rgb(196 136 94 / 0.2), 0 0 18px rgb(196 136 94 / 0.35);
}
.marker__leader {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  overflow: visible;
  pointer-events: none;
}
.marker__leader polyline {
  fill: none;
  stroke: rgb(236 234 229 / 0.7);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 520ms var(--ease) 160ms;
}
.experience__hold.is-active .marker__leader polyline { stroke-dashoffset: 0; }
.marker__label {
  position: absolute;
  left: var(--lx, 26px); /* lewa krawędź labela względem punktu (px, z JS) */
  top: var(--ly, 0);
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  background: rgb(8 9 10 / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(236 234 229 / 0.16);
  border-radius: var(--r-xs);
}
.marker.is-current .marker__label { border-color: rgb(196 136 94 / 0.55); }

/* Stop-klatka: overlay pojedynczego okna "postoju". Aktywna albo nie —
   wejście i wyjście to krótkie przejście (opacity + 14 px), potem wszystko
   stoi do końca HOLD. Bez skalowania ze scrolla.                          */
.experience__hold { position: absolute; inset: 0; pointer-events: none; }

/* Dock: zdjęcie referencyjne + panel jako jedna kompozycja w stałym miejscu
   kadru. data-dock = strona (panel przy krawędzi), data-stack = zdjęcie
   obok panelu (od strony środka) albo nad nim. Nad całością cienka linia
   kompozycyjna z miedzianym znacznikiem przy krawędzi.                    */
.experience__dock {
  --dock-bottom: clamp(40px, 8vh, 96px);
  position: absolute;
  bottom: var(--dock-bottom);
  display: flex;
  align-items: flex-end;
  gap: 20px;
  max-width: calc(100vw - var(--gutter) * 2);
}
.experience__hold[data-dock="left"] .experience__dock { left: var(--gutter); flex-direction: row-reverse; }
.experience__hold[data-dock="right"] .experience__dock { right: var(--gutter); flex-direction: row; }
.experience__hold[data-stack="above"] .experience__dock { flex-direction: column; }
.experience__hold[data-dock="left"][data-stack="above"] .experience__dock { align-items: flex-start; }
.experience__hold[data-dock="right"][data-stack="above"] .experience__dock { align-items: flex-end; }

.experience__dock::before {
  /* linia kompozycyjna: od krawędzi docka przez kadr, wygasa */
  content: "";
  position: absolute;
  top: -22px;
  width: min(72vw, 1100px);
  height: 1px;
  background: linear-gradient(90deg, rgb(236 234 229 / 0.28), rgb(236 234 229 / 0.08) 55%, transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 400ms var(--ease), transform 700ms var(--ease);
}
.experience__dock::after {
  content: "";
  position: absolute;
  top: -22px;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.experience__hold[data-dock="left"] .experience__dock::before,
.experience__hold[data-dock="left"] .experience__dock::after { left: 0; }
.experience__hold[data-dock="right"] .experience__dock::before,
.experience__hold[data-dock="right"] .experience__dock::after { right: 0; }
.experience__hold[data-dock="right"] .experience__dock::before {
  background: linear-gradient(270deg, rgb(236 234 229 / 0.28), rgb(236 234 229 / 0.08) 55%, transparent);
  transform-origin: right;
}
.experience__hold.is-active .experience__dock::before { opacity: 1; transform: none; }
.experience__hold.is-active .experience__dock::after { opacity: 1; }

.experience__panel,
.experience__photo {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 0s linear 280ms;
  visibility: hidden;
}
.experience__hold.is-active .experience__panel,
.experience__hold.is-active .experience__photo {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.experience__hold.is-active .experience__photo { transition-delay: 70ms; }

/* Panel: ciemne szkło, równy promień, subtelny border, dużo oddechu. */
.experience__panel {
  width: min(400px, calc(100vw - var(--gutter) * 2));
  flex: none;
  padding: 30px 32px 28px;
  background: rgb(8 9 10 / 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid rgb(236 234 229 / 0.12);
  border-radius: var(--r-xs);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.experience__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.experience__num {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.experience__num::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: rgb(236 234 229 / 0.3);
}
.experience__panel-title {
  margin-top: 14px;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.experience__panel-text {
  margin-top: 12px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.experience__specs {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.experience__specs li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text);
}
.experience__price {
  margin-top: 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.experience__price--text { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.experience__cta { margin-top: 14px; }
.experience__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Zdjęcie referencyjne: realny kadr, ten sam promień i border co panel.
   Wymiar stały (z proporcji), bez skalowania. */
.experience__photo {
  position: relative;
  flex: none;
  margin: 0;
  aspect-ratio: var(--ar, 1.7778);
  height: clamp(200px, 30vh, 300px);
  border: 1px solid rgb(236 234 229 / 0.16);
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.experience__photo.is-portrait { height: clamp(240px, 36vh, 340px); }
.experience__hold[data-stack="above"] .experience__photo { height: clamp(150px, 24vh, 250px); }
.experience__hold[data-stack="above"] .experience__photo.is-landscape { height: auto; width: min(400px, calc(100vw - var(--gutter) * 2)); }
.experience__photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.experience__photo picture,
.experience__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.experience__photo-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(to top, rgb(5 6 7 / 0.85), transparent);
  pointer-events: none;
}
/* Produkt jako element sklepu: matowa, ciepła powierzchnia zamiast białego
   screenshotu z marketplace (multiply wtapia białe tło pliku). */
.experience__photo--product { background: linear-gradient(160deg, #e9e6df 0%, #d6d1c7 100%); }
.experience__photo--product img { padding: 12px 18px; object-fit: contain; mix-blend-mode: multiply; }
.experience__hold[data-stack="above"] .experience__photo--product.is-landscape {
  width: min(400px, calc(100vw - var(--gutter) * 2));
  height: clamp(150px, 22vh, 210px);
  aspect-ratio: auto;
}

/* Węższe desktopy: zdjęcie obok panelu nie zmieści się bez wejścia na
   obiekt sceny, więc ląduje nad panelem (ten sam porządek, mniejsze). */
@media (min-width: 900px) and (max-width: 1279px) {
  .experience__hold[data-stack="beside"] .experience__dock { flex-direction: column; }
  .experience__hold[data-dock="left"][data-stack="beside"] .experience__dock { align-items: flex-start; }
  .experience__hold[data-dock="right"][data-stack="beside"] .experience__dock { align-items: flex-end; }
  .experience__hold[data-stack="beside"] .experience__photo { height: clamp(140px, 22vh, 220px); }
  .experience__panel { width: min(380px, calc(100vw - var(--gutter) * 2)); padding: 24px 26px 22px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .experience__specs li { padding: 7px 0; }
  .experience__photo,
  .experience__photo.is-portrait { height: clamp(150px, 26vh, 240px); }
  .experience__hold[data-stack="above"] .experience__photo { height: clamp(120px, 20vh, 190px); }
  .experience__hold[data-stack="above"] .experience__photo--product.is-landscape { height: clamp(100px, 16vh, 150px); }
  .experience__panel { padding: 24px 28px 22px; }
  .experience__panel-title { margin-top: 10px; }
  .experience__specs { margin-top: 14px; }
}

/* TELEFON: panel na dole ekranu, zdjęcie jako miniatura w prawym górnym
   rogu panelu (tap = pełne zdjęcie). Hotspoty w górnej części kadru, z
   liniami prowadzącymi w górę, więc nic na siebie nie nachodzi. */
@media (max-width: 899px) {
  html.seq-m .experience__dock,
  html.seq-m .experience__hold[data-stack] .experience__dock {
    left: 12px;
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    display: block;
    max-width: none;
  }
  html.seq-m .experience__dock::before { width: 100%; top: -14px; }
  html.seq-m .experience__hold[data-dock] .experience__dock::before,
  html.seq-m .experience__hold[data-dock] .experience__dock::after { left: 0; right: auto; transform-origin: left; }
  html.seq-m .experience__hold[data-dock] .experience__dock::before { background: linear-gradient(90deg, rgb(236 234 229 / 0.28), transparent); }
  html.seq-m .experience__dock::after { top: -14px; }
  html.seq-m .experience__panel { width: auto; padding: 20px 18px 16px; }
  html.seq-m .experience__panel-title { margin-top: 10px; font-size: 1.375rem; }
  html.seq-m .experience__panel-text { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; max-width: none; }
  /* konkrety jako zwykły tekst w 1-2 liniach (z kropką między), nie lista:
     treść zostaje, panel prawie nie rośnie */
  html.seq-m .experience__specs { display: block; margin-top: 10px; border: 0; font-size: 0.8125rem; line-height: 1.45; }
  html.seq-m .experience__specs li { display: inline; padding: 0; border: 0; font-size: inherit; color: var(--text); }
  html.seq-m .experience__specs li:not(:last-child)::after { content: " · "; color: var(--faint); }
  html.seq-m .experience__price { margin-top: 10px; font-size: 0.9375rem; }
  html.seq-m .experience__cta { margin-top: 6px; min-height: 44px; }
  html.seq-m .experience__actions { margin-top: 12px; gap: 8px; }
  html.seq-m .experience__actions .btn { flex: 1 1 0; min-height: 46px; padding: 0 10px; font-size: 0.8125rem; }
  html.seq-m .experience__photo,
  html.seq-m .experience__photo.is-portrait,
  html.seq-m .experience__hold[data-stack] .experience__photo {
    /* miniatura nad prawym rogiem panelu, nie na tekście */
    position: absolute;
    right: 0;
    bottom: calc(100% + 24px);
    z-index: 1;
    width: 76px;
    height: 76px;
    aspect-ratio: auto;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.4);
  }
  html.seq-m .experience__photo-note { display: none; }
  html.seq-m .experience__photo--product img { padding: 6px; }

  html.seq-m .marker__dot { left: -7px; top: -7px; width: 14px; height: 14px; }

  /* Niskie telefony (iPhone SE, małe Androidy): ciaśniejszy panel, żeby
     zostało miejsce na kadr z hotspotem. */
  @media (max-height: 720px) {
    html.seq-m .experience__dock,
    html.seq-m .experience__hold[data-stack] .experience__dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
    html.seq-m .experience__panel { padding: 14px 16px 10px; }
    html.seq-m .experience__panel-title { margin-top: 6px; font-size: 1.1875rem; }
    html.seq-m .experience__panel-text { margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; }
    html.seq-m .experience__price { margin-top: 6px; font-size: 0.875rem; }
    html.seq-m .experience__specs { margin-top: 6px; font-size: 0.75rem; }
    /* panel produktu (2 przyciski) jest najwyższy: tu konkrety ustępują kadrowi */
    html.seq-m .experience__panel:has(.experience__actions) .experience__specs { display: none; }
    /* karta produktu ma cenę i dwa CTA: konkrety wypadają, żeby nie zasłonić hotspotu */
    html.seq-m .experience__hold--engineShop .experience__specs { display: none; }
    html.seq-m .experience__cta { min-height: 40px; margin-top: 2px; }
    html.seq-m .experience__actions { margin-top: 8px; }
    html.seq-m .experience__actions .btn { min-height: 40px; }
    html.seq-m .experience__photo,
    html.seq-m .experience__photo.is-portrait,
    html.seq-m .experience__hold[data-stack] .experience__photo { width: 64px; height: 64px; bottom: calc(100% + 18px); }
  }
  html.seq-m .marker__label { padding: 8px 12px; font-size: 0.875rem; }
}

/* Telefon obrócony w poziomie w trakcie oglądania (przy wejściu w poziomie
   sekwencja się nie włącza, patrz partials/head.php): kompaktowy panel po
   prawej, bez miniatury i hotspotów, bo pionowy kadr jest mocno przycięty. */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) {
  html.seq-m .experience__dock,
  html.seq-m .experience__hold[data-stack] .experience__dock {
    left: auto;
    right: 12px;
    width: min(360px, 48vw);
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  html.seq-m .experience__panel { padding: 12px 14px 8px; }
  html.seq-m .experience__panel-text,
  html.seq-m .experience__photo,
  html.seq-m .experience__price,
  html.seq-m .marker { display: none; }
  html.seq-m .experience__panel-title { font-size: 1.125rem; margin-top: 4px; }
  html.seq-m .experience__actions .btn,
  html.seq-m .experience__cta { min-height: 38px; }
}

/* Co można zrobić: lista kategorii (numer + kategoria + zakres), cienkie
   linie zamiast kart. */
.services {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .services {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .services__aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); }
  .category-list { grid-column: 6 / -1; }
}
.services__aside { display: grid; gap: 20px; align-content: start; }
.services__aside > * { grid-column: auto; }
.services__aside .scene__title { max-width: 12ch; }
.services__aside .scene__intro { max-width: 34ch; padding-bottom: 0; }
.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(236 234 229 / 0.22);
}
.category {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .category { grid-template-columns: 56px minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: baseline; }
}
.category__num { color: var(--accent); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.category__title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.category__items { grid-column: 2; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
@media (min-width: 720px) { .category__items { grid-column: 3; } }

/* 7d. UKŁAD "obraz + treść" — światła, zegary, easy entry ------------------
   Wspólny wzorzec dla sekcji feature: zdjęcie/render po jednej stronie,
   nagłówek + spec-list + CTA po drugiej. --media-ratio ustawiane inline per
   sekcja (docs/ART_DIRECTION.md §3: nie każda sekcja potrzebuje własnego,
   osobnego layoutu). */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .split--reverse .split__media { order: 2; }
}
.split__media { aspect-ratio: var(--media-ratio, 900 / 840); }
.split__content { display: grid; gap: 28px; }

/* Statyczne stop-klatki (sections/scenes.php): kadr + ta sama treść co
   panel w scenie. Eyebrow/specs/price współdzielone z panelem. */
.scene-static__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-1);
  max-height: 80vh;
}
.scene-static__media img { width: 100%; height: 100%; object-fit: cover; }
.scene-static__note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.8);
}
.scene-static .split__content { gap: 20px; }
.scene-static .experience__specs { margin: 0; max-width: 44ch; }
.scene-static .experience__price { margin: 0; }
.scene-static__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-shot {
  margin: 0;
  max-width: 320px;
  aspect-ratio: 546 / 453;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: linear-gradient(160deg, #e9e6df 0%, #d6d1c7 100%);
}
.product-shot img { width: 100%; height: 100%; padding: 14px 18px; object-fit: contain; mix-blend-mode: multiply; }

.spec-list {
  display: grid;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.spec {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.spec__index { color: var(--accent); padding-top: 4px; }
.spec p { color: var(--muted); font-size: 0.9375rem; }

/* 7e. FORMULARZ ----------------------------------------------------------- */
.check {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(24px, 1rem + 3vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--bg-1);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .check { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; }
}
.check__intro { display: grid; gap: 24px; align-content: start; }
.check__list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}
.check__list li { display: flex; gap: 12px; color: var(--muted); font-size: 0.9375rem; }
.check__list .icon { color: var(--accent); margin-top: 3px; }
.check__alt {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}
.check__alt a { color: var(--text); font-weight: 700; border-bottom: 1px solid var(--line-3); }
.check__alt a:hover { border-color: var(--accent); }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 1rem + 1.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--bg-0);
}
.form__grid { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__grid .field--full { grid-column: 1 / -1; }

.field { display: grid; gap: 8px; }
.field__label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.field__label em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--faint);
}
.field__control {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--bg-1);
  font-size: 1rem; /* ≥16px: brak auto-zoomu na iOS */
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field__control::placeholder { color: var(--faint); }
.field__control:hover { border-color: var(--line-3); }
.field__control:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
select.field__control {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A8ADB3' stroke-width='1.5' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.field__control:invalid { color: var(--faint); }
select.field__control option { color: var(--text); background: var(--bg-1); }
.field__hint { font-size: 0.75rem; color: var(--faint); }
.field__error { display: none; font-size: 0.75rem; color: #ff9b85; }
.field.is-invalid .field__control { border-color: #ff9b85; }
.field.is-invalid .field__error { display: block; }

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 0.9375rem;
  cursor: pointer;
}
.toggle input {
  appearance: none;
  flex: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  transition: background-color var(--dur) var(--ease);
  cursor: pointer;
}
.toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.toggle input:checked { background: var(--accent-soft); border-color: var(--accent-line); }
.toggle input:checked::after { transform: translateX(16px); background: var(--accent); }
.toggle small { display: block; color: var(--muted); font-size: 0.8125rem; }

.form__foot { display: grid; gap: 12px; }
.form__legal { font-size: 0.75rem; color: var(--faint); line-height: 1.5; }
.form__status { font-size: var(--fs-small); color: var(--accent); min-height: 1.2em; }

/* 7f. CENNIK -------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .pricing { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .pricing__head { position: sticky; top: calc(var(--header-h) + 40px); }
}
.pricing__head { display: grid; gap: 24px; }
.price-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur) var(--ease);
}
.price__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.price__desc { grid-column: 1; color: var(--muted); font-size: var(--fs-small); }
.price__value {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  text-align: right;
  white-space: nowrap;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price__value small {
  margin-right: 6px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.pricing__more { margin-top: 20px; color: var(--faint); font-size: var(--fs-small); }
.price--featured .price__name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--accent); }
.price__value--text { font-size: 0.9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: normal; max-width: 16ch; }

/* 7g. MARKI --------------------------------------------------------------- */
.brands { display: grid; gap: 40px; }
.brands__tier { display: grid; gap: 16px; }
.brands__tier-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brands__tier-head p { color: var(--muted); font-size: var(--fs-small); }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .brand-grid--primary { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 720px) { .brand-grid--secondary { grid-template-columns: repeat(4, 1fr); } }
.brand-tile {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--bg-0);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.brand-tile:hover { border-color: var(--line-3); background: var(--bg-2); }
.brand-tile__name {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.brand-grid--secondary .brand-tile { min-height: 96px; background: transparent; }
.brand-grid--secondary .brand-tile__name { font-size: 1.125rem; color: var(--muted); }
.brand-tile__meta { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.brand-tile__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-grid--secondary .brand-tile__meta::before { background: transparent; border: 1px solid var(--faint); }
/* ostatni kafel w siatce 2-kolumnowej (5 elementów) — pełna szerokość */
@media (max-width: 719px) {
  .brand-grid--primary .brand-tile:last-child { grid-column: 1 / -1; }
}

/* 7h. REALIZACJE ----------------------------------------------------------
   Redakcyjnie: duże zdjęcie + dane auta + funkcje na cienkich liniach.
   Bez kart, kolejne wpisy naprzemiennie. */
.cases__head { margin-bottom: clamp(40px, 2rem + 3vw, 88px); }
.cases { display: grid; gap: clamp(64px, 3rem + 5vw, 140px); }
.case { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .case__media { grid-column: 1 / span 5; }
  .case__body { grid-column: 7 / -1; padding-bottom: 8px; }
  .case--reverse .case__media { grid-column: 8 / -1; grid-row: 1; }
  .case--reverse .case__body { grid-column: 1 / span 6; grid-row: 1; }
}
.case__media {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg-1);
}
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { display: grid; align-content: end; }
.case__index { color: var(--accent); font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.case__title {
  margin-top: 18px;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.case__brand { display: block; margin-bottom: 8px; font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.case__year { margin-top: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.case__label { margin-top: clamp(28px, 2vw + 12px, 48px); font-size: var(--fs-small); color: var(--muted); }
.case__done {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(236 234 229 / 0.22);
}
.case__done li {
  display: grid;
  gap: 2px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .case__done li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: baseline; } }
.case__done strong { font-weight: 700; }
.case__done span { color: var(--muted); font-size: 0.9375rem; }
.case__note { margin-top: 16px; max-width: 56ch; color: var(--faint); font-size: var(--fs-small); line-height: 1.55; }
.cases__next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(56px, 3rem + 3vw, 112px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}

/* 7i. FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; } }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--text); }
.faq__plus {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__plus { border-color: var(--accent-line); color: var(--accent); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; }

/* 7j. KONTAKT ------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: end; } }
.contact__title {
  font-size: clamp(1.875rem, 1.3rem + 2.1vw, 3.125rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.contact__cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  overflow: hidden;
}
@media (min-width: 560px) { .contact__cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  background: var(--bg-0);
  transition: background-color var(--dur) var(--ease);
}
a.contact-card:hover { background: var(--bg-1); }
a.contact-card:hover .contact-card__value { color: var(--accent); }
.contact-card__label { font-size: var(--fs-small); color: var(--muted); }
.contact-card__value { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; transition: color var(--dur) var(--ease); }
.contact-card p { color: var(--muted); font-size: var(--fs-small); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { display: block; margin-bottom: 12px; color: var(--text); }
.site-footer__brand span { color: var(--muted); font-weight: 500; }
.site-footer__about { max-width: 42ch; }
.site-footer__nav { display: grid; gap: 8px; align-content: start; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.75rem;
}
.site-footer__legal { max-width: 70ch; }

/* 8. Mobile bar ----------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgb(5 6 7 / 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { min-height: 48px; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* 9. Reveal + hooki animacji ---------------------------------------------
   [data-reveal] — delikatne pojawienie się przy scrollu (IntersectionObserver
   w main.js). [data-scene] na sekcjach to punkty zaczepienia pod przyszłe
   animacje scrollowane i przejścia między scenami.                          */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* Nagłówki kolumn FAQ / Kontakt */
.faq__head,
.contact__head { display: grid; gap: 24px; align-content: start; }
.form__status .link-arrow { margin-left: 4px; }

/* 9b. OUTRO — domknięcie historii cinematic/produktowej (nie całej strony:
   kontakt zostaje ostatnią sekcją, patrz index.php). W spoczynku czarna,
   zdjęcie i tekst dochodzą przez zwykły [data-reveal] — scroll z poprzedniej
   (ciemnej) sekcji w czerń czyta się jako ściemnienie, wejście w viewport
   jako powrót do kadru hero. Zdjęcie fade'uje samą opacity (bez translateY
   z bazowego [data-reveal]) i wolniej — filmowo, zgodnie z docs/ART_DIRECTION.md §11. */
.outro {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
  text-align: center;
  padding: clamp(64px, 10vh, 140px) 0;
}
.outro__bg {
  position: absolute;
  inset: 0;
  margin: 0;
}
.js .outro__bg[data-reveal] {
  transform: none;
  transition: opacity 1400ms var(--ease);
}
.outro__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.outro__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(5 6 7 / 0.55), rgb(5 6 7 / 0.75) 60%, #000);
}
.outro__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 640px;
}
.outro__content .btn { margin-top: 12px; }

/* 10. PHOTO REVEAL — rozwinięcie realnego zdjęcia z hotspotu (assets/js/
   photo-reveal.js). Ciemne tło, zdjęcie prawie na cały ekran, minimalny
   chrome: bez ramek narożnych, bez glow, jeden przycisk zamknięcia.        */
.photo-reveal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgb(6 7 8 / 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease), visibility 0s linear 260ms;
}
.photo-reveal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms var(--ease);
}
.photo-reveal__panel {
  position: relative;
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 88svh;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.55);
  transform: scale(0.96);
  transition: transform 320ms var(--ease);
}
.photo-reveal.is-open .photo-reveal__panel { transform: scale(1); }
.photo-reveal__img { display: block; max-width: 92vw; max-height: 88svh; width: auto; height: auto; }
.photo-reveal__caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 2px;
  color: var(--text);
  text-shadow: 0 1px 16px rgb(0 0 0 / 0.85);
}
.photo-reveal__caption strong { font-size: 0.9375rem; font-weight: 700; }
.photo-reveal__caption span { font-size: 0.8125rem; color: var(--muted); }
.photo-reveal__close {
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgb(5 6 7 / 0.6);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.photo-reveal__close:hover { border-color: var(--line-3); background: rgb(5 6 7 / 0.85); }
.photo-reveal__close .icon { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .photo-reveal,
  .photo-reveal__panel { transition: none; }
}
