/* ==========================================================================
   sprzedajautko.pl – style strony głównej
   Spis treści:
     1. Czcionki i zmienne
     2. Podstawy
     3. Przyciski
     4. Nagłówek
     5. HERO (układ, kolaż zdjęć, atuty)
     6. Formularz wyceny
     7. Stany HERO: zamknięty / otwarty
     8. Sekcje i panele
     9. Jak to działa
    10. Karuzele, kafelki aut i artykułów
    11. O nas + mapa
    12. Obszar działalności
    13. Stopka
    14. Animacje i ograniczenie ruchu
   ========================================================================== */

/* 1. Czcionki i zmienne ---------------------------------------------------- */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext-wght.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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-wght.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;
}
/* Caveat – tylko znaki napisu „Skupujemy różne marki i modele” (ok. 9 KB) */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/caveat-600-napis.woff2') format('woff2');
}

:root {
  --navy: #071633;
  --navy-soft: #1c2b4d;
  --slate: #44516b;
  --muted: #56647d;
  --placeholder: #6b778d;
  --line: #e3e8f0;
  --line-strong: #cfd8e5;
  --bg: #f4f6fa;
  --white: #fff;

  --orange: #ff7a18;            /* akcenty graficzne */
  --orange-cta: #ffa11a;        /* tło przycisków z granatowym tekstem */
  --orange-cta-hover: #ff9200;
  --orange-strong: #f26b00;     /* duży pomarańczowy tekst i przycisk wysyłki (kontrast min. 3:1) */
  --orange-strong-hover: #db5f00;
  --orange-ink: #b84a00;        /* mały pomarańczowy tekst (kontrast min. 4.5:1) */
  --cream: #fff1dc;
  --cream-soft: #fff8ee;
  --cream-line: #f6dcb8;

  --error: #b42318;
  --error-bg: #fef3f2;
  --error-line: #f6c8c2;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgb(7 22 51 / .05), 0 4px 14px rgb(7 22 51 / .05);
  --shadow: 0 2px 6px rgb(7 22 51 / .04), 0 14px 36px rgb(7 22 51 / .07);
  --shadow-lg: 0 4px 12px rgb(7 22 51 / .05), 0 24px 60px rgb(7 22 51 / .13);
  --shadow-photo: 0 3px 8px rgb(7 22 51 / .12), 0 16px 32px rgb(7 22 51 / .16);

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 16px;
  --container: 1280px;
  --header-h: 64px;
  --btn-h: 52px;
  --actions-gap: 10px;
  --hours-h: 16px;
  /* wysokość bloku przycisków HERO na telefonie: 2 przyciski + godziny dostępności */
  --actions-h: calc(2 * var(--btn-h) + 2 * var(--actions-gap) + var(--hours-h));
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 84px; --btn-h: 62px; --actions-gap: 16px; }
}

/* 2. Podstawy ---------------------------------------------------------------- */

*, *::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) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--solid { fill: currentColor; }

.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;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--slate);
}

/* 3. Przyciski ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: 22px; height: 22px; }
.btn-chevron { width: 18px; height: 18px; margin-left: auto; opacity: .75; }

.btn--cta {
  background: var(--orange-cta);
  color: var(--navy);
  box-shadow: 0 6px 16px rgb(255 140 0 / .25);
}
.btn--cta:hover { background: var(--orange-cta-hover); }

.btn--light {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { border-color: #b4c0d2; background: #fbfcfe; }

.btn--soft {
  background: var(--cream);
  color: var(--navy);
  border: 1.5px solid #ffc98c;
}
.btn--soft:hover { background: #ffe8c6; }

.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn--sm .btn-icon { width: 18px; height: 18px; }
.btn--block { display: flex; width: 100%; }

.btn--xl {
  height: var(--btn-h);
  padding: 0 14px 0 16px;
}

/* 4. Nagłówek ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgb(7 22 51 / .06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-a { color: var(--navy); }
.logo-b { color: var(--orange-strong); }

.main-nav { display: none; }

.header-call {
  min-height: 40px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 999px;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgb(255 140 0 / .22);
}
.header-call .icon { width: 17px; height: 17px; }

@media (max-width: 374.98px) {
  .logo { font-size: 1.1rem; }
  .header-call { padding: 0 12px; font-size: .88rem; }
}

@media (min-width: 1024px) {
  .logo { font-size: 1.85rem; }
  .main-nav { display: block; }
  .main-nav-list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
  .main-nav a {
    display: block;
    padding: 8px 2px;
    white-space: nowrap;
    font-size: .97rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease, color .15s ease;
  }
  .main-nav a:hover { border-bottom-color: var(--orange); }
  .header-call { min-height: 52px; padding: 0 26px; font-size: 1.2rem; gap: 12px; }
  .header-call .icon { width: 21px; height: 21px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .logo { font-size: 1.5rem; }
  .main-nav-list { gap: 22px; }
  .main-nav a { font-size: .92rem; }
  .header-call { min-height: 46px; padding: 0 18px; font-size: 1.05rem; }
}

/* 5. HERO ---------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  /* Przycinanie tylko w poziomie (obrócone zdjęcia nie tworzą przewijania).
     W pionie cień panelu formularza i zdjęć może wyjść poniżej HERO, zamiast
     kończyć się ostrą krawędzią. Pierwsza linia to zapas dla starszych przeglądarek. */
  overflow-x: hidden;
  overflow-x: clip;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 14px);
  padding-bottom: 20px;
}

/* Tło: rozmiar zależy tylko od szerokości ekranu, więc otwarcie formularza
   (wyższe HERO) nie przeskalowuje panoramy – odsłania tylko jej dalszą część. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
}
/* rozjaśnienie panoramy pod nagłówkiem H1 – wygasa u dołu razem z obrazem */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 780 / 840;
  background: linear-gradient(90deg, rgb(255 255 255 / .8) 0%, rgb(255 255 255 / .4) 48%, rgb(255 255 255 / 0) 74%);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 96%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "heading"
    "proof"
    "actions"
    "stage"
    "benefits";
}
.hero-heading { grid-area: heading; }
.hero-proof { grid-area: proof; }
.hero-actions { grid-area: actions; }
.hero-stage { grid-area: stage; }
.hero-benefits { grid-area: benefits; }

.hero-title {
  margin-top: 8px;
  font-size: clamp(2.2rem, 9.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--navy);
}
.hero-title-line { display: block; }
.hero-title-accent { color: var(--orange-strong); }

.hero-proof {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgb(255 233 201 / .9);
  font-size: clamp(.78rem, 3.45vw, .95rem);
  font-weight: 600;
  line-height: 1.25;
}
.hero-proof-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  flex: none;
}
.hero-proof-check .icon { width: 15px; height: 15px; stroke-width: 3.2; }

.hero-actions {
  display: grid;
  gap: var(--actions-gap);
  margin-top: 16px;
}
.hero-call { font-size: clamp(1.2rem, 5.6vw, 1.45rem); letter-spacing: -.01em; }
.hero-call .btn-icon { width: 24px; height: 24px; }
/* Telefon: „ZADZWOŃ TERAZ” (numer widać w nagłówku); od 600 px numer do przepisania */
.hero-call-number { display: none; }
.hero-call-text { font-size: clamp(.92rem, 4.3vw, 1.1rem); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
@media (min-width: 600px) {
  .hero-call-number { display: inline; }
  .hero-call-text { display: none; }
}
.hero-quote { font-size: .95rem; }
.hero-quote .btn-label { white-space: normal; text-align: left; }

/* Godziny dostępności (pod przyciskami HERO i pod telefonem w formularzu) */
.hours {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--hours-h);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.hours-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgb(255 122 24 / .18);
}
.hero-actions .hours { padding-left: 4px; }

/* Kolaż zdjęć – wspólne */
.hero-gallery { position: relative; }
.hero-photo {
  position: relative;
  padding: 5px;
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow-photo);
}
.hero-photo img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  background: #e6ebf2;
}
.hero-photo--1 { transform: rotate(-3deg); z-index: 2; }
.hero-photo--2 { transform: rotate(2.5deg); z-index: 1; }
.hero-photo--3 { transform: rotate(-1.5deg); z-index: 3; }

.hero-note {
  position: relative;
  z-index: 4;                 /* napis i strzałka nad zdjęciami */
  width: max-content;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: .95;
  color: var(--navy);
  transform: rotate(-6deg);
}
.hero-note-line { display: block; white-space: nowrap; }
.hero-note-arrow {
  position: absolute;
  width: 46px;
  height: 30px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Telefon: zdjęcie Suzuki obok przycisków, Kia i Audi pod nimi */
@media (max-width: 599.98px) {
  .hero-actions {
    width: 61%;
    grid-template-columns: minmax(0, 1fr);   /* linia godzin nie poszerza przycisków */
    position: relative;
    z-index: 2;
  }
  .hero-quote { font-size: .82rem; padding-inline: 11px; gap: 7px; }
  .hero-quote .btn-icon { width: 19px; height: 19px; }
  .hero-quote .btn-chevron { width: 14px; height: 14px; margin-left: 0; }
  .hero-quote .btn-label { flex: 1; text-align: center; }   /* napis wyśrodkowany między ikoną a strzałką */
  .hero-call .btn-chevron { display: none; }   /* „ZADZWOŃ TERAZ” bez strzałki */
  /* Kolaż jak wcześniej, cały przesunięty o wysokość linii godzin */
  .hero-stage { margin-top: calc(-1 * var(--actions-h)); }
  .hero-gallery {
    display: grid;
    grid-template-columns: 61% minmax(0, 1fr);
    grid-template-rows: var(--actions-h) auto auto;
    column-gap: 12px;
    row-gap: 14px;
  }
  .hero-photo--2 { grid-column: 2; grid-row: 1; align-self: center; margin-left: 2px; }
  /* Suzuki i Audi lekko pochylone ku sobie */
  .hero-photo--1 { grid-column: 1; grid-row: 2 / span 2; align-self: start; margin: 5px 0 0 4px; transform: rotate(2.5deg); }
  /* Audi powiększone w lewo i w górę: lekko zachodzi na Suzuki, bliżej Kii (prawa i dolna krawędź bez zmian) */
  .hero-photo--3 { grid-column: 2; grid-row: 2; align-self: start; margin: -9px -10px 0 -24px; transform: rotate(-2.5deg); }   /* Audi nadal wyżej niż Suzuki */
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-note { grid-column: 2; grid-row: 3; align-self: start; margin-top: 2px; padding-left: 10px; font-size: 1.22rem; }
  /* strzałka w lewo, w stronę dużego zdjęcia */
  .hero-note-arrow { left: -30px; top: 4px; width: 34px; height: 27px; transform: scaleX(-1) rotate(-4deg); }
}

@media (max-width: 379.98px) {
  .hero-quote { font-size: .8rem; padding-inline: 10px; }
  .hero-quote .btn-chevron { display: none; }   /* przy 360 px tekst nie zmieściłby się w jednej linii */
  .hero-actions .hours { gap: 6px; font-size: .63rem; letter-spacing: .035em; }
}

/* Tablet i desktop: kolaż w proporcjonalnym pudełku */
@media (min-width: 600px) {
  .hero-title { font-size: clamp(3.4rem, 9vw, 4.6rem); }
  .hero-proof { font-size: 1.02rem; padding-right: 18px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .hours { order: 3; flex-basis: 100%; margin-top: -2px; }   /* od 600 px pod oboma przyciskami */
  .hero-call { min-width: 250px; font-size: 1.5rem; }
  .hero-quote { min-width: 260px; font-size: 1.02rem; }
  .hero-quote .btn-label { white-space: nowrap; }
  .hero-stage { margin-top: 30px; }
  .hero-gallery {
    max-width: 700px;
    aspect-ratio: 700 / 500;
  }
  .hero-photo { position: absolute; padding: 7px; border-radius: 8px; }
  .hero-photo--1 { left: 1%; top: 16%; width: 53%; }
  .hero-photo--1 img { aspect-ratio: 8 / 7; }
  .hero-photo--2 { left: 54.5%; top: 1%; width: 43.5%; }
  .hero-photo--2 img { aspect-ratio: 3 / 2; }
  .hero-photo--3 { left: 53%; top: 40%; width: 46%; }
  .hero-photo--3 img { aspect-ratio: 3 / 2; }
  /* napis pod dużym zdjęciem, strzałka w górę – w stronę zdjęcia Audi */
  .hero-note { position: absolute; left: 29%; top: 86%; font-size: clamp(1.1rem, 3.4vw, 1.55rem); }
  .hero-note-arrow { left: calc(100% - 4px); top: -20px; width: 44px; height: 35px; }
}

@media (min-width: 768px) {
  .hero-bg::after {
    aspect-ratio: 1672 / 941;
    background: linear-gradient(90deg, rgb(255 255 255 / .65) 0%, rgb(255 255 255 / 0) 52%);
  }
}

/* Desktop: dwie kolumny, prawa – zdjęcia albo formularz */
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 20px); padding-bottom: 12px; }
  /* Panorama ustawiona tak, by Pałac Kultury wystawał nad kolażem zdjęć */
  .hero-bg img {
    left: -16.1vw;
    top: -10.4vw;
    width: 116.1vw;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  }
  .hero-bg::after { display: none; }
  .hero-bg::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 240px;
    /* łagodne wygaszenie zakończone pełnym kolorem tła – bez widocznej linii przy dolnej krawędzi */
    background: linear-gradient(180deg,
      rgb(244 246 250 / 0) 0%,
      rgb(244 246 250 / .35) 30%,
      rgb(244 246 250 / .75) 60%,
      rgb(244 246 250 / .95) 82%,
      var(--bg) 94%);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas:
      "heading  stage"
      "proof    stage"
      "actions  stage"
      "benefits stage"
      ".        stage";
    column-gap: clamp(24px, 3vw, 44px);
  }
  .hero-stage { margin-top: 6px; align-self: start; }

  .hero-title { margin-top: 10px; font-size: clamp(4rem, 5.8vw, 5.25rem); line-height: .98; }
  .hero-proof { margin-top: 18px; padding: 6px 22px 6px 6px; font-size: 1.15rem; gap: 12px; }
  .hero-proof-check { width: 30px; height: 30px; }
  .hero-proof-check .icon { width: 17px; height: 17px; }
  .hero-actions { margin-top: 24px; }
  .hero-call { min-width: 0; flex: 0 1 280px; font-size: 1.65rem; padding: 0 16px 0 20px; gap: 14px; }
  .hero-call .btn-icon { width: 28px; height: 28px; }
  .hero-quote { min-width: 0; flex: 0 1 290px; font-size: 1.05rem; padding: 0 16px 0 18px; }
  /* Kolaż obniżony: nad dużym zdjęciem widać Pałac Kultury,
     napis ze strzałką stoi nad zdjęciem w prawym górnym rogu */
  .hero-gallery { max-width: none; margin-left: auto; aspect-ratio: 700 / 540; }
  .hero-photo--1 { left: 1%; top: 26%; width: 52%; }
  .hero-photo--2 { left: 55%; top: 17%; width: 42%; }
  .hero-photo--3 { left: 53.5%; top: 54%; width: 45%; }
  .hero-note { left: 64%; top: 1.5%; font-size: clamp(1.05rem, 1.62vw, 1.6rem); }
  .hero-note-arrow { left: auto; right: calc(100% - 4px); top: 22px; width: 46px; height: 38px; transform: rotate(180deg); }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .hero-proof { font-size: 1rem; }
  .hero-call { font-size: 1.45rem; }
  .hero-quote { font-size: .98rem; }
}
@media (min-width: 1200px) {
  .hero-gallery { margin-right: -28px; }   /* jak na makiecie: kolaż lekko wychodzi poza siatkę */
}
/* Szerokie ekrany: panorama trzyma się siatki strony (Pałac Kultury nad kolażem),
   jej boczne krawędzie łagodnie przechodzą w rozmytą kopię tego samego obrazu,
   która wypełnia całą szerokość. To ten sam plik co <img> – nie jest pobierany drugi raz. */
@media (min-width: 1440px) {
  .hero-bg img {
    left: calc(50% - 968px);
    top: -150px;
    width: 1700px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 84%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 84%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-bg::after {
    display: block;
    z-index: -1;
    inset: -80px -80px auto;
    height: 1100px;                /* stała wysokość: otwarcie formularza nie przelicza rozmycia */
    aspect-ratio: auto;
    background: url('../img/hero-img.webp') center 70px / 100% 960px no-repeat;
    filter: blur(48px);
    opacity: .75;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Atuty */
.hero-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 15px;
  text-align: center;
}
.benefit:nth-child(odd) { border-right: 1px solid var(--line); }
.benefit:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
}
.benefit-icon .icon { width: 22px; height: 22px; }
.benefit-body { display: grid; gap: 2px; min-width: 0; }
.benefit-title { font-size: .9rem; line-height: 1.25; }
.benefit-text { font-size: .8rem; line-height: 1.35; color: var(--muted); }

@media (min-width: 768px) {
  .hero-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefit { align-items: flex-start; padding: 18px 16px; text-align: left; }
  .benefit:nth-child(n) { border-bottom: 0; border-right: 0; }
  .benefit + .benefit { border-left: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .hero-benefits {
    width: calc(100% + 36px);
    margin-top: 30px;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .benefit { padding: 0 8px 0 10px; gap: 10px; }
  .benefit:first-child { padding-left: 0; }
  .benefit-icon { width: 48px; height: 48px; }
  .benefit-icon .icon { width: 24px; height: 24px; }
  .benefit-title { font-size: .84rem; letter-spacing: -.01em; }
  .benefit-text { font-size: .8rem; }
}

/* 6. Formularz wyceny ---------------------------------------------------------- */

.quote-panel {
  position: relative;
  padding: 16px 16px 18px;
  border: 1px solid rgb(7 22 51 / .07);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.quote-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.quote-head-icon { flex: none; color: var(--navy); }
.quote-head-icon .icon { width: 38px; height: 38px; stroke-width: 1.7; }
.quote-head-text { min-width: 0; }
.quote-title { padding-right: 48px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.quote-sub { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* Telefon: panel prawie na całą szerokość; nagłówek bez podtytułu,
   w jednej linii z przyciskiem zamknięcia */
@media (max-width: 599.98px) {
  .quote-head { align-items: center; gap: 10px; min-height: 40px; margin-bottom: 14px; padding-left: 2px; }
  .quote-head-icon .icon { width: 30px; height: 30px; }
  .quote-title { padding-right: 44px; font-size: clamp(1.25rem, 5.8vw, 1.4rem); }
  .quote-sub { display: none; }
  .quote-panel { margin-inline: calc(8px - var(--gutter)); padding: 14px 12px 16px; }
  .input { padding-left: 40px; padding-right: 8px; }
  .input::placeholder { font-size: clamp(12.4px, 3.38vw, 14px); }
  .field-icon { left: 12px; width: 20px; height: 20px; top: 16px; }
  .dropzone { padding-left: 12px; gap: 10px; }
  .dropzone-text { font-size: .86rem; }
  .dropzone-btn { padding: 8px 13px; }
}


.quote-close {
  position: absolute;
  top: 14px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transition: background-color .15s ease, border-color .15s ease;
}
.quote-close:hover { background: #f3f6fa; border-color: var(--line-strong); }
.quote-close .icon { width: 20px; height: 20px; }

.quote-form { display: grid; gap: 12px; }

.field-control { position: relative; }
.field-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 21px;
  height: 21px;
  color: var(--placeholder);
  stroke-width: 1.75;
  pointer-events: none;
}

.input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px 0 47px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;                 /* min. 16 px – iOS nie powiększa widoku */
  color: var(--navy);
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: #b4c0d2; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(7 22 51 / .14); }
.input--area {
  height: auto;
  min-height: 92px;
  padding-top: 13px;
  padding-bottom: 12px;
  line-height: 1.45;
  resize: vertical;
}

.field.is-invalid .input { border-color: var(--error); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 3px rgb(180 35 24 / .16); }
.field-error {
  margin: 6px 2px 0;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}

/* Zdjęcia */
.dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 7px 7px 7px 15px;
  border: 1.5px dashed #c2cddc;
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--orange); background: var(--cream-soft); }
.file-input:focus-visible + .dropzone { outline: 3px solid var(--navy); outline-offset: 2px; }
.dropzone-icon { width: 22px; height: 22px; color: var(--placeholder); stroke-width: 1.75; }
.dropzone-text { flex: 1; min-width: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.dropzone-btn {
  flex: none;
  padding: 9px 16px;
  border-radius: var(--radius-xs);
  background: #eef2f7;
  font-size: .9rem;
  font-weight: 700;
}
.field--files.is-invalid .dropzone { border-color: var(--error); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: #eef2f7;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(7 22 51 / .8);
  color: #fff;
}
.thumb-remove:hover { background: var(--navy); }
.thumb-remove .icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* Pułapka na boty */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--error-line);
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  font-size: .9rem;
  line-height: 1.45;
  color: var(--error);
}
.form-alert a { font-weight: 700; color: inherit; }

.btn--submit {
  width: 100%;
  height: 58px;
  margin-top: 2px;
  border-radius: var(--radius-sm);
  background: var(--orange-strong);
  color: #fff;
  font-size: 1.2rem;              /* 19+ px pogrubione = duży tekst (kontrast 3:1) */
  box-shadow: 0 8px 18px rgb(242 107 0 / .26);
}
.btn--submit:hover { background: var(--orange-strong-hover); }
.btn--submit .btn-label { margin-left: auto; }
.btn--submit .btn-chevron { opacity: 1; }
.btn-spinner { display: none; width: 22px; height: 22px; }
.btn--submit.is-busy { cursor: progress; background: var(--orange-strong-hover); }
.btn--submit.is-busy .btn-spinner { display: block; animation: spin .9s linear infinite; }
.btn--submit.is-busy .btn-label { margin-left: 0; }
.btn--submit.is-busy .btn-chevron { display: none; }

/* Telefon pod formularzem: „Wolisz porozmawiać?” + przycisk + godziny */
.quote-alt {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.quote-alt-title { font-size: .95rem; font-weight: 700; color: var(--navy-soft); }
.quote-call { width: 100%; height: 52px; font-size: 1.12rem; }
.quote-call .btn-icon { width: 21px; height: 21px; }

/* Pola przewijane tak, by przy otwartej klawiaturze nie chowały się pod nagłówkiem,
   a pod polem zostało miejsce na kolejne */
.quote-form .input,
.quote-form .file-input { scroll-margin: calc(var(--header-h) + 12px) 0 120px; }

.quote-legal {
  margin-top: 2px;
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}
.quote-legal a { color: var(--navy); font-weight: 600; }

.quote-success { display: grid; justify-items: center; gap: 12px; padding: 18px 6px 8px; text-align: center; }
.quote-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--orange-strong);
}
.quote-success-icon .icon { width: 34px; height: 34px; }
.quote-success-title { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.quote-success p { max-width: 38ch; color: var(--muted); }
.quote-success p a { color: var(--navy); font-weight: 700; white-space: nowrap; }

@media (min-width: 600px) {
  .quote-panel { padding: 24px 26px 22px; }
  .quote-close { top: 16px; right: 16px; }
}

@media (min-width: 1024px) {
  .quote-panel { max-width: 560px; margin-left: auto; }
  .quote-title { font-size: 1.75rem; }
  .btn--submit .btn-label { margin-left: 0; }
  .btn--submit .btn-chevron { display: none; }
  .quote-alt { display: none; }   /* telefon i godziny są już w lewej kolumnie */
}

/* 7. Stany HERO ------------------------------------------------------------------- */

.hero-gallery,
.hero-proof,
.hero-actions,
.hero-quote {
  transition: opacity .17s ease, transform .17s ease;
}
.hero[data-state="opening"] .hero-gallery { opacity: 0; transform: translateY(-8px) scale(.985); pointer-events: none; }
.hero[data-state="opening"] .hero-quote { opacity: 0; pointer-events: none; }

.hero[data-state="closing"] .quote-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
}
.quote-panel.is-entering { animation: fade-up .26s var(--ease) both; }
.hero.is-revealing .hero-gallery,
.hero.is-revealing .hero-proof,
.hero.is-revealing .hero-actions,
.hero.is-revealing .hero-quote { animation: fade-up .26s var(--ease) both; }

/* Płynna zmiana wysokości obszaru zdjęć / formularza (ustawiana przez JS) */
.hero-stage.is-resizing {
  overflow: clip;
  overflow-clip-margin: 32px;
  transition: height .28s var(--ease);
}

/* Telefon i tablet: po otwarciu znikają wyróżnik i przyciski, formularz zajmuje ich miejsce */
@media (max-width: 1023.98px) {
  .hero[data-state="opening"] .hero-proof,
  .hero[data-state="opening"] .hero-actions { opacity: 0; transform: translateY(-6px); pointer-events: none; }
  .hero[data-state="open"] .hero-proof,
  .hero[data-state="open"] .hero-actions,
  .hero[data-state="closing"] .hero-proof,
  .hero[data-state="closing"] .hero-actions { display: none; }
  .hero[data-state="open"] .hero-stage,
  .hero[data-state="closing"] .hero-stage { margin-top: 18px; }
}

/* Desktop: lewa kolumna zostaje, znika tylko biały przycisk (formularz jest obok) */
@media (min-width: 1024px) {
  .hero[data-state="open"] .hero-quote,
  .hero[data-state="closing"] .hero-quote { display: none; }
}

/* 8. Sekcje i panele ---------------------------------------------------------------- */

.section { position: relative; padding-block: 10px; }   /* sekcje leżą nad cieniem wystającym z HERO */
.section--kb { padding-block: 44px 36px; }

.panel {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.section-head { margin-bottom: 18px; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-title {
  margin-top: 6px;
  font-size: clamp(1.4rem, 5.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.section-head .eyebrow + .section-title { margin-top: 6px; }
.section-title-accent { display: block; color: var(--orange-strong); }
.section-lead { margin-top: 8px; max-width: 62ch; color: var(--muted); }

@media (min-width: 600px) {
  .panel { padding: 28px 28px; }
}
@media (min-width: 1024px) {
  .section { padding-block: 12px; }
  .section--kb { padding-block: 64px 48px; }
  .panel { padding: 28px 34px 32px; }
  .section-head { margin-bottom: 24px; }
}

/* 9. Jak to działa ---------------------------------------------------------------- */
/* Telefon: oś czasu (ikony połączone przerywaną linią), tablet: 2 × 2,
   desktop: 4 kolumny ze strzałkami. Numer kroku to plakietka na ikonie. */

#jak-to-dziala .section-head { text-align: center; }

.steps { display: grid; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  padding-bottom: 24px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 66px;
  bottom: 8px;
  left: 27px;
  border-left: 2px dashed #d3dbe6;
}

.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef2f8;
  color: var(--navy);
}
.step-icon .icon { width: 25px; height: 25px; }
.step-num {
  position: absolute;
  top: -3px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange-cta);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.step-body { padding-top: 6px; }
.step-title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.step-text { margin-top: 3px; font-size: .9rem; line-height: 1.5; color: var(--muted); }

@media (min-width: 600px) {
  #jak-to-dziala .section-head { text-align: left; }
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .step { padding-bottom: 0; }
  .step:not(:last-child)::before { display: none; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .step-icon { width: 60px; height: 60px; }
  .step-icon .icon { width: 27px; height: 27px; }
  .step-body { padding-top: 0; }
  .step-text { max-width: 30ch; }
  /* przerywana strzałka do następnego kroku */
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 78px;
    right: -12px;
    height: 12px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12' fill='none' stroke='%23b9c4d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6.5 6l-5 4.5'/%3E%3C/svg%3E") right center / 8px 12px no-repeat,
      repeating-linear-gradient(90deg, #c9d3e0 0 6px, transparent 6px 11px) left center / calc(100% - 3px) 2px no-repeat;
  }
}
/* 10. Karuzele -------------------------------------------------------------------- */

.carousel-nav { display: flex; gap: 8px; flex: none; }

/* Telefon: tytuł na pełną szerokość, strzałki pod karuzelą */
@media (max-width: 599.98px) {
  .carousel-block { display: flex; flex-direction: column; }
  .carousel-block .section-head--row { display: contents; }
  .carousel-block .section-head-text { margin-bottom: 16px; }
  .carousel-block .carousel-nav { order: 3; align-self: center; margin-top: 16px; }
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  transition: background-color .15s ease, border-color .15s ease;
}
.carousel-btn:hover { background: var(--cream); border-color: var(--cream-line); }
.carousel-btn .icon { width: 22px; height: 22px; }

.carousel { --slide-gap: 14px; --slide-size: 62%; }
.carousel-viewport { overflow: hidden; padding-block: 4px 8px; margin-block: -4px -8px; }
.carousel-track {
  display: flex;
  margin-left: calc(-1 * var(--slide-gap));
  touch-action: pan-y pinch-zoom;
}
.carousel-slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-gap);
}
.carousel-viewport:active { cursor: grabbing; }

/* Bez JavaScriptu: zwykłe przewijanie w poziomie */
html:not(.js) .carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.js) .carousel-slide { scroll-snap-align: start; }
html:not(.js) .carousel-nav { display: none; }

.carousel--cars { --slide-size: 62%; }
@media (min-width: 480px) { .carousel--cars { --slide-size: 42%; } }
@media (min-width: 768px) { .carousel--cars { --slide-size: 30%; --slide-gap: 16px; } }
@media (min-width: 1024px) { .carousel--cars { --slide-size: 22.5%; } }
@media (min-width: 1280px) { .carousel--cars { --slide-size: 16.6667%; } }

.carousel--articles { --slide-size: 86%; --slide-gap: 16px; }
@media (min-width: 600px) { .carousel--articles { --slide-size: 50%; } }
@media (min-width: 1024px) { .carousel--articles { --slide-size: 33.3333%; --slide-gap: 24px; } }

/* Kafelek auta */
.car-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(7 22 51 / .05);
  user-select: none;
}
.car-card-img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  background: #e6ebf2;
  -webkit-user-drag: none;
}
.car-card-img--empty { display: grid; place-items: center; color: #a3afc0; }
.car-card-img--empty .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.car-card-body { padding: 10px 12px 12px; }
.car-card-title { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.car-card-meta { margin-top: 2px; font-size: .82rem; color: var(--muted); }

/* Kafelek artykułu */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.article-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.article-card:focus-within { border-color: var(--navy); }
.article-cat {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--orange-ink);
}
.article-title { margin-top: 14px; font-size: 1.08rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.article-link { text-decoration: none; }
.article-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.article-link:focus-visible { outline: none; }
.article-link:focus-visible::after { outline: 3px solid var(--navy); outline-offset: 2px; }
.article-excerpt { margin-top: 10px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.article-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--orange-ink);
}
.article-more .icon { width: 17px; height: 17px; transition: transform .15s ease; }
.article-card:hover .article-more .icon { transform: translateX(3px); }

/* 11. O nas + mapa ---------------------------------------------------------------- */

.about { display: grid; gap: 24px; }
.about-copy p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.about-copy p strong { color: var(--navy); }
.about-copy .section-title { margin-bottom: 4px; }

.about-facts { display: grid; gap: 12px; margin-top: 20px; }
.about-facts li { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; line-height: 1.45; }
.about-facts a { font-weight: 700; text-decoration: none; }
.about-facts a:hover { text-decoration: underline; }
.about-fact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
}
.about-fact-icon .icon { width: 19px; height: 19px; }

.map-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf1f6;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgb(255 255 255 / .9) 0, rgb(255 255 255 / 0) 60%),
    #edf1f6;
}
.map-placeholder-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgb(255 122 24 / .3);
}
.map-placeholder-icon .icon { width: 26px; height: 26px; }
.map-placeholder-address { font-size: .95rem; line-height: 1.45; }
.map-placeholder-note { max-width: 34ch; font-size: .78rem; color: var(--muted); }
.map-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
}
.map-link .icon { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
  .map-frame { flex: 1; aspect-ratio: auto; min-height: 380px; }
}

/* 12. Obszar działalności ---------------------------------------------------------- */

.section--area {
  margin-top: 8px;
  padding-block: 44px 48px;
  background: var(--cream-soft);
  border-top: 1px solid #f7e6cf;
}
.area { display: grid; gap: 28px; }
.area-subtitle { margin: 24px 0 12px; font-size: 1rem; font-weight: 700; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  background: #fff;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
}
.pill .icon { width: 15px; height: 15px; color: var(--orange); }
.pill--link { text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.pill--link:hover { border-color: var(--orange); background: var(--cream); }

.contact-card {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-card-title { font-size: 1.3rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.contact-card p { margin-bottom: 6px; color: var(--muted); }
.contact-card .btn--cta { min-height: 56px; font-size: 1.35rem; }
.contact-card .btn--cta .btn-icon { width: 24px; height: 24px; }

@media (min-width: 1024px) {
  .section--area { margin-top: 12px; padding-block: 64px 72px; }
  .area { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .contact-card { margin-top: 36px; padding: 30px 28px; }
}

/* 12a. Podstrony: lokalizacje, poradniki, dokumenty ------------------------------- */

/* Ścieżka nawigacji */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
.breadcrumb li + li::before { content: '/'; margin-inline: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--slate); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.breadcrumb a:hover { color: var(--navy); text-decoration-color: var(--orange); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* Tekst lokalny po „Jak to działa” */
.local .breadcrumb { margin-bottom: 14px; }
.local-lead { max-width: 72ch; }
.local-grid { display: grid; gap: 14px; margin-top: 22px; }
.local-card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.local-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.local-card p { margin-top: 8px; font-size: .95rem; line-height: 1.65; color: var(--slate); }
.local-card a,
.prose a,
.faq-answer a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-color: var(--orange);
}
.local-card a:hover,
.prose a:hover,
.faq-answer a:hover { color: var(--orange-ink); }

@media (min-width: 768px) {
  .local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .local-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
  .local-card:last-child:nth-child(odd) { grid-column: auto; }
  .local-card { padding: 22px 22px 24px; }
}

/* FAQ */
.faq-list { margin-top: 16px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 2px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--orange-ink); }
.faq-icon { width: 20px; height: 20px; color: var(--orange-strong); transform: rotate(90deg); transition: transform .2s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(-90deg); }
.faq-answer { max-width: 72ch; padding: 0 2px 18px; color: var(--slate); }
.faq-answer p + p { margin-top: 10px; }

@media (min-width: 1024px) {
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
  }
  .faq > .eyebrow,
  .faq > .section-title { grid-column: 1; }
  .faq-list { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
}

/* Wezwanie do kontaktu */
.cta-band {
  display: grid;
  gap: 20px;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-title { font-size: clamp(1.35rem, 5.2vw, 1.85rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.cta-text p { margin-top: 8px; max-width: 52ch; color: rgb(255 255 255 / .76); }
.cta-actions { display: grid; gap: 10px; }
.cta-actions .btn { min-height: 54px; }
.cta-actions .btn--cta { font-size: 1.3rem; }
.cta-actions .btn--light { border-color: #fff; }
.cta-actions .hours { color: rgb(255 255 255 / .72); padding-left: 2px; }
.cta-band :focus-visible { outline-color: var(--orange-cta); }

@media (min-width: 600px) {
  .cta-band { padding: 30px 28px; }
  .cta-actions { display: flex; flex-wrap: wrap; }
  .cta-actions .hours { flex-basis: 100%; }
}
@media (min-width: 1024px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 34px 40px; }
  .cta-actions { justify-content: flex-end; max-width: 560px; }
  .cta-actions .hours { justify-content: flex-end; }
}

/* Okoliczne lokalizacje */
.section--near { padding-block: 28px 44px; }
.near-title { font-size: 1.15rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 14px; }
.near-more { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.near-more a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.pill--link:focus-visible { border-color: var(--navy); }
@media (min-width: 1024px) {
  .section--near { padding-block: 36px 64px; }
}

/* HERO poradnika: kategoria, H1 i lead; po prawej spis treści albo formularz */
.hero--article { padding-bottom: 28px; }
/* jaśniejsza panorama: dłuższy tekst (lead, data) musi być czytelny na każdym tle */
.hero--article .hero-bg::after {
  display: block;
  inset: 0;
  z-index: 0;
  height: auto;
  aspect-ratio: auto;
  background: linear-gradient(180deg, rgb(244 246 250 / .78) 0%, rgb(244 246 250 / .7) 60%, rgb(244 246 250 / 0) 100%);
  filter: none;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.hero--article .breadcrumb { margin-bottom: 16px; }
.hero--article .article-cat { display: inline-block; }
.hero-title--article {
  margin-top: 12px;
  font-size: clamp(1.85rem, 7.4vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-lead { margin-top: 14px; max-width: 62ch; font-size: 1.04rem; line-height: 1.6; color: var(--slate); }
.article-meta { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.hero--article .hero-actions { margin-top: 20px; }
.hero--article .hero-stage { margin-top: 24px; }
.hero--article .hero-gallery { display: block; max-width: none; aspect-ratio: auto; margin: 0; }

@media (max-width: 599.98px) {
  .hero--article .hero-actions { width: 100%; }
  .hero--article .hero-quote { font-size: .95rem; }
  .hero--article .hero-quote .btn-chevron { display: block; }
}
@media (min-width: 600px) {
  .hero-title--article { font-size: clamp(2.3rem, 5.6vw, 2.9rem); }
}
@media (min-width: 1024px) {
  .hero--article { padding-bottom: 24px; }
  .hero--article .hero-bg::after {
    background: linear-gradient(90deg, rgb(244 246 250 / .9) 0%, rgb(244 246 250 / .78) 50%, rgb(244 246 250 / .3) 80%, rgb(244 246 250 / .15) 100%);
  }
  .hero--article .hero-grid { grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); column-gap: clamp(32px, 4vw, 64px); }
  .hero-title--article { font-size: clamp(2.5rem, 3.5vw, 3.15rem); line-height: 1.06; }
  .hero-lead { font-size: 1.1rem; }
  .hero--article .hero-stage { margin-top: 34px; }
  .hero--article .hero-gallery { margin: 0 0 0 auto; max-width: 560px; }
}
@media (min-width: 1200px) {
  .hero--article .hero-gallery { margin-right: 0; }
}

/* Spis treści */
.toc-card {
  padding: 20px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .96);
  box-shadow: var(--shadow);
}
.toc-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}
.toc-list { margin-top: 10px; counter-reset: toc; }
.toc-list li { counter-increment: toc; border-top: 1px solid var(--line); }
.toc-list a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  min-width: 1.6em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-ink);
}
.toc-list a:hover { color: var(--orange-ink); }

/* Treść poradnika i dokumentu */
.section--article { padding-block: 12px; }
.section--article .prose { max-width: 820px; margin-inline: auto; }
.prose { font-size: 1.02rem; line-height: 1.72; color: var(--navy-soft); }
.prose h2 {
  margin-top: 40px;
  font-size: clamp(1.3rem, 4.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--navy);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 { margin-top: 26px; font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--navy); }
.prose > :first-child { margin-top: 0; }
.prose p,
.prose ul,
.prose ol,
.prose .table-wrap,
.prose .callout { margin-top: 14px; }
.prose h2 + p, .prose h3 + p { margin-top: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li + li { margin-top: 8px; }
.prose ul > li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.prose ol { counter-reset: lista; }
.prose ol > li { counter-increment: lista; padding-left: 32px; }
.prose ol > li::before {
  content: counter(lista);
  position: absolute;
  left: 0;
  top: .2em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange-ink);
}
.prose strong { color: var(--navy); }
.prose a { overflow-wrap: anywhere; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; min-width: 300px; border-collapse: collapse; font-size: .86rem; line-height: 1.45; }
.prose th,
.prose td { padding: 10px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) {
  .prose table { font-size: .9rem; line-height: 1.5; }
  .prose th,
  .prose td { padding: 11px 14px; }
}
.prose th { background: var(--bg); font-weight: 700; color: var(--navy); }
.prose tbody tr:last-child td { border-bottom: 0; }

.callout {
  padding: 16px 18px;
  border: 1px solid var(--cream-line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--cream-soft);
  font-size: .96rem;
}
.callout p { margin-top: 0; }
.callout p + p { margin-top: 10px; }

@media (min-width: 600px) {
  .prose li { padding-left: 28px; }
}
@media (min-width: 1024px) {
  .section--article { padding-block: 16px; }
  .section--article .prose { padding: 44px 56px 52px; }
  .prose { font-size: 1.06rem; }
  .prose table { min-width: 0; }
}

/* Powiązane artykuły */
.section--related { padding-block: 36px 56px; }
.related-back {
  flex: none;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  text-underline-offset: 3px;
  text-decoration-color: var(--orange);
}
.related-grid { display: grid; gap: 14px; }
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 1024px) {
  .section--related { padding-block: 48px 72px; }
}

/* Dokument (polityka prywatności): bez formularza, spis treści obok tekstu */
.doc-hero { padding-block: 22px 18px; }
.doc-title {
  margin-top: 14px;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.doc-layout { display: grid; gap: 16px; padding-bottom: 56px; }
.doc-layout .prose { max-width: none; margin: 0; }
@media (min-width: 1024px) {
  .doc-hero { padding-block: 40px 24px; }
  /* nagłówek i treść w tej samej, węższej siatce */
  .doc-hero .container,
  .doc-layout { max-width: calc(1128px + 2 * var(--gutter)); }
  .doc-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding-bottom: 80px;
  }
  .doc-toc { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* 13. Stopka ---------------------------------------------------------------------- */

.site-footer {
  padding-top: 48px;
  background: var(--navy);
  color: rgb(255 255 255 / .78);
  font-size: .92rem;
}
.site-footer :focus-visible { outline-color: var(--orange-cta); }
.footer-grid { display: grid; gap: 32px; }
.logo--light { font-size: 1.5rem; }
.logo--light .logo-a { color: #fff; }
.logo--light .logo-b { color: var(--orange-cta); }
.footer-brand p { margin-top: 12px; }
.footer-company { line-height: 1.7; color: rgb(255 255 255 / .62); }
.footer-company a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .4); }
.footer-company a:hover { color: var(--orange-cta); text-decoration-color: currentColor; }
.footer-title {
  margin-bottom: 14px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .55);
}
.footer-list { display: grid; gap: 10px; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-list .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--orange-cta); }
.footer-list a { color: #fff; text-decoration: none; }
.footer-list a:hover { color: var(--orange-cta); text-decoration: underline; }
.footer-list--links a { display: inline-block; padding-block: 2px; }
.footer-note { color: rgb(255 255 255 / .55); font-size: .85em; }
.footer-bottom {
  margin-top: 40px;
  padding-block: 18px 22px;
  border-top: 1px solid rgb(255 255 255 / .12);
  font-size: .82rem;
  color: rgb(255 255 255 / .55);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; }
}

/* 14. Animacje i ograniczenie ruchu ------------------------------------------------ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn--submit.is-busy .btn-spinner { animation: none; }
}
