/* Konfigurator garaży ESSTAL — świat esstal.com.
   Telefon: jedna kolumna pod kciuk, podziałka u góry, przycisk u dołu.
   Od 860 px widżetu: pytania + prawa kolumna „Twój garaż" z przyciskiem.
   Od 1240 px: po lewej jeszcze lista etapów. Progi liczą się z szerokości
   widżetu (@container), nie okna — w WordPressie bywa węższy niż ekran. */

:root {
  --bialy:       #ffffff;
  --szary:       #f2f2f0;   /* tło strony pod białym arkuszem */
  --szary-2:     #e6e6e2;
  --grafit:      #101113;   /* ciemne sekcje esstal.com */
  --tekst:       #16171a;
  --tekst-2:     #50545a;   /* 7,1:1 na białym */
  --tekst-3:     #6c7073;   /* 5,0:1 na białym, 4,5:1 na szarym — nie schodzić niżej */
  --linia:       #e3e3df;
  --linia-mocna: #c8c8c3;
  --blad:        #a8120b;

  --akcent:       #e11b12;
  --akcent-tekst: #ffffff;
  --akcent-mocny: color-mix(in srgb, var(--akcent) 80%, black);
  --akcent-cichy: color-mix(in srgb, var(--akcent) 8%, white);

  --wys: "Barlow Condensed", "Arial Narrow", sans-serif;
  --r: 10px;
  --r-duzy: 16px;
  --cien: 0 1px 2px rgba(16, 17, 19, .06), 0 12px 30px -16px rgba(16, 17, 19, .24);
  --cien-gora: 0 -1px 2px rgba(16, 17, 19, .05), 0 -14px 28px -16px rgba(16, 17, 19, .26);

  --skok: 180ms;
  --lad: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--szary); }
body {
  margin: 0;
  font-family: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tekst);
  background: var(--szary);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--akcent); color: var(--akcent-tekst); }
:focus-visible { outline: 2px solid var(--grafit); outline-offset: 2px; border-radius: 3px; }

#kg { container-type: inline-size; }
.ramka {
  /* Po wysłaniu treść jest krótka; bez tego pod podziękowaniem zostaje dziura.
     --kg-gora to wysokość przyklejonego nagłówka strony, jeśli motyw taki ma. */
  min-height: calc(100svh - var(--kg-gora, 0px));
  display: flex;
  flex-direction: column;
  background: var(--szary);
}
.uklad { flex: 1; width: 100%; }

/* ══ szczyt: zdjęcie z esstal.com, logo, telefon ═════════════════════ */
.szczyt {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  scroll-margin-top: var(--kg-gora, 0px);
  color: #fff;
  background: var(--grafit) var(--tlo, none) center 60% / cover no-repeat;
}
.szczyt::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 17, 19, .66) 0%, rgba(16, 17, 19, .88) 100%);
}
.szczyt-tresc { position: relative; z-index: 1; margin-inline: auto; }
.marka {
  display: block;
  font-family: var(--wys);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.marka .logo { display: block; width: auto; height: 26px; max-width: 60%; object-fit: contain; }
.szczyt h1 {
  margin: .9rem 0 0;
  font-family: var(--wys);
  font-size: clamp(2.1rem, 10cqi, 2.7rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.szczyt h1 span { color: #b9bdc1; }
.szczyt-lead { margin: .55rem 0 0; max-width: 42ch; font-size: .95rem; color: rgba(255, 255, 255, .86); }

.szczyt-kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1rem; }
.telefon {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .45rem 1.1rem .45rem .85rem;
  font-size: .9rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  transition: border-color var(--skok) ease-out, background var(--skok) ease-out;
}
.telefon:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.telefon svg { flex: none; width: 18px; height: 18px; }
.telefon b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── podziałka postępu (telefon i środkowy układ) ───────────────────── */
.miarka {
  position: sticky;
  top: var(--kg-gora, 0px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1.25rem;
  background: var(--bialy);
  border-bottom: 1px solid var(--linia);
}
.miarka-tor {
  position: relative;
  display: block;
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: var(--szary-2);
  border-radius: 3px;
}
.miarka-przebyte {
  position: absolute; inset: 0;
  background: var(--akcent);
  border-radius: inherit;
  transform: scaleX(var(--postep, 0));
  transform-origin: left center;
  transition: transform var(--skok) var(--lad);
}
.miarka-odczyt {
  font-family: var(--wys);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tekst-2);
  white-space: nowrap;
}

/* ══ pytania ══════════════════════════════════════════════════════════ */
.pytania, .dziekujemy { background: var(--bialy); }

.grupa {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0;
  padding: 1.6rem 1.25rem .2rem;
  font-family: var(--wys);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--grafit);
  border-top: 8px solid var(--szary);   /* na telefonie grupy oddziela pas tła */
  scroll-margin-top: calc(var(--kg-gora, 0px) + 3rem);
}
.grupa:first-child { border-top: 0; }
.grupa-nr { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--akcent); }

.pyt {
  /* Ukryte radia mają position:absolute — bez pozycjonowanego przodka
     uciekają do bloku zawierającego strony i rozciągają dokument. */
  position: relative;
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid var(--linia);
  scroll-margin-top: calc(var(--kg-gora, 0px) + 3.5rem);
}
.grupa + .pyt { border-top-color: transparent; }
.pyt--nowe { animation: wejscie .5s var(--lad); }
@keyframes wejscie { from { background: var(--akcent-cichy); } to { background: transparent; } }

.pyt-naglowek { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pyt-tytul {
  margin: 0;
  font-family: var(--wys);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--grafit);
}
.pyt-znacznik { font-size: .78rem; color: var(--tekst-3); }
.pyt-podpis { margin: .25rem 0 0; max-width: 52ch; font-size: .88rem; color: var(--tekst-2); }
.pyt-pole { margin-top: .85rem; }

.pyt-blad { display: none; margin: .6rem 0 0; font-size: .86rem; font-weight: 600; color: var(--blad); }
.pyt--blad .pyt-blad { display: block; }
.pyt--blad input:not([type=radio]), .pyt--blad textarea, .pyt--blad select { border-color: var(--blad); }
.pyt--blad .wybor span, .pyt--blad .kafel, .pyt--blad .zgoda { border-color: var(--blad); }

/* ── suwak ─────────────────────────────────────────────────────────── */
.suwak-rzad { display: flex; align-items: center; gap: 1rem; }
.suwak-wartosc {
  min-width: 6.4rem;
  padding: .25rem .6rem;
  font-family: var(--wys);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--grafit);
  background: var(--szary);
  border-radius: var(--r);
}
input[type=range] {
  flex: 1;
  min-width: 0;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: grab;
  touch-action: pan-y;   /* pionowy scroll strony wygrywa z przypadkowym przeciągnięciem */
}
input[type=range]:active { cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(var(--akcent), var(--akcent)) 0 / var(--wypelnienie, 0%) 100% no-repeat,
              var(--szary-2);
}
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--szary-2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--akcent); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px; height: 28px;           /* cel dotykowy, nie ozdoba */
  margin-top: -11px;
  background: #fff;
  border: 2px solid var(--akcent);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(16, 17, 19, .12), 0 4px 10px -4px rgba(16, 17, 19, .3);
  transition: transform var(--skok) var(--lad);
}
input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px;
  background: #fff;
  border: 2px solid var(--akcent);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(16, 17, 19, .12), 0 4px 10px -4px rgba(16, 17, 19, .3);
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.08); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(.94); }
input[type=range]:focus-visible { outline-offset: 4px; }
.suwak-skala {
  display: flex;
  justify-content: space-between;
  margin-top: .3rem;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  color: var(--tekst-3);
}
.suwak-standard {
  margin: .7rem 0 0;
  padding: .55rem .8rem;
  font-size: .86rem;
  color: var(--tekst-2);
  background: var(--szary);
  border-radius: var(--r);
}
.suwak-standard b { color: var(--tekst); }
.suwak-standard button {
  margin-left: .5rem;
  padding: .1rem 0;
  font: inherit;
  font-weight: 700;
  color: var(--akcent-mocny);
  background: none;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  cursor: pointer;
}
.suwak-standard button:hover { color: var(--grafit); }

/* ── wybory ────────────────────────────────────────────────────────── */
.wybor input, .wzornik input, .obrazy input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wybor { display: flex; flex-wrap: wrap; gap: .5rem; }
.wybor label { flex: 1 1 auto; min-width: 3.4rem; }
.wybor span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;                  /* cel dotykowy */
  padding: .55rem .9rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: var(--bialy);
  border: 1px solid var(--linia-mocna);
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--skok) ease-out, border-color var(--skok) ease-out,
              color var(--skok) ease-out, transform var(--skok) var(--lad);
}
.wybor span:hover { border-color: var(--grafit); }
.wybor span:active { transform: scale(.97); }
.wybor input:checked + span {
  color: var(--akcent-tekst);
  background: var(--akcent);
  border-color: var(--akcent);
}
.wybor input:focus-visible + span { outline: 2px solid var(--grafit); outline-offset: 2px; }
.wybor input:disabled + span {
  color: #9a9ea2;
  background: var(--szary);
  border-color: var(--linia);
  cursor: not-allowed;
  transform: none;
}
.wybor-nota { margin: .6rem 0 0; font-size: .86rem; color: var(--tekst-2); }
.wybor-nota:empty { display: none; }

/* ── kafle ze zdjęciem: spad dachu, rodzaj bramy ───────────────────── */
.obrazy { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.obrazy .kafel {
  position: relative;
  display: block;
  height: 100%;
  padding: .4rem .4rem .6rem;
  background: var(--bialy);
  border: 1px solid var(--linia-mocna);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--skok) ease-out, box-shadow var(--skok) ease-out;
}
.obrazy .kafel:hover { border-color: var(--grafit); }
.obrazy img, .obrazy .brak-zdjecia {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 6px;
  background: var(--szary);
}
.obrazy img { object-fit: contain; }
.obrazy .brak-zdjecia {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  font-size: .74rem;
  line-height: 1.35;
  text-align: center;
  color: var(--tekst-2);
  border: 1px dashed var(--linia-mocna);
}
.obrazy .nazwa {
  display: block;
  margin-top: .45rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--tekst-2);
}
.obrazy input:checked + .kafel {
  border-color: var(--akcent);
  box-shadow: 0 0 0 1px var(--akcent), var(--cien);
}
.obrazy input:checked + .kafel .nazwa { color: var(--grafit); }
/* znak wyboru — kolor ramki sam nie wystarczy (daltonizm, blask ekranu) */
.obrazy input:checked + .kafel::after {
  content: "";
  position: absolute;
  top: .7rem; right: .7rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--akcent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3.1 3.1 6.4-6.9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.obrazy input:focus-visible + .kafel { outline: 2px solid var(--grafit); outline-offset: 2px; }

/* ── wzornik kolorów: realne zdjęcia blachy ────────────────────────── */
.wzornik { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .65rem .5rem; }
.wzornik label { display: block; }
.wzornik .probka { position: relative; display: block; }
.wzornik img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(16, 17, 19, .2);
  border-radius: 8px;
  cursor: pointer;
  transition: transform var(--skok) var(--lad);
}
.wzornik img:hover { transform: translateY(-2px); }
.wzornik input:checked + .probka img { outline: 3px solid var(--akcent); outline-offset: 2px; }
.wzornik input:focus-visible + .probka img { outline: 3px solid var(--grafit); outline-offset: 2px; }
/* Wyboru nie niesie sam kolor — 23 odcienie blachy bywają bliźniacze. */
.wzornik input:checked + .probka .ptaszek { display: flex; }
.wzornik .ptaszek {
  display: none;
  position: absolute;
  right: 5px; bottom: 5px;
  width: 20px; height: 20px;
  align-items: center;
  justify-content: center;
  color: var(--akcent-tekst);
  background: var(--akcent);
  border-radius: 50%;
  pointer-events: none;
}
.wzornik .ptaszek svg { display: block; width: 12px; height: 12px; }
.wzornik-nazwa {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  line-height: 1.25;
  color: var(--tekst-2);
}
.wybrany { margin: .75rem 0 0; font-size: .88rem; color: var(--tekst-2); }
.wybrany b { color: var(--tekst); }

/* ── zgoda ─────────────────────────────────────────────────────────── */
.zgoda {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .8rem .9rem;
  background: var(--bialy);
  border: 1px solid var(--linia-mocna);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--skok) ease-out, background var(--skok) ease-out;
}
.zgoda:hover { border-color: var(--grafit); }
.zgoda input {
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--akcent);
  cursor: pointer;
}
.zgoda-tresc { font-size: .9rem; line-height: 1.45; }
.zgoda:has(input:checked) { border-color: var(--akcent); background: var(--akcent-cichy); }
.zgoda:has(input:focus-visible) { outline: 2px solid var(--grafit); outline-offset: 2px; }
.zgoda-info { margin: .65rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--tekst-2); }
.zgoda-info a, .dziekujemy a {
  color: var(--tekst);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--linia-mocna);
}
.zgoda-info a:hover, .dziekujemy a:hover { text-decoration-color: currentColor; }

/* ── pola tekstowe ─────────────────────────────────────────────────── */
input[type=text], input[type=tel], input[type=email], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: .65rem .8rem;
  font: inherit;
  font-size: 16px;              /* mniej niż 16px = iOS zoomuje przy focusie */
  color: var(--tekst);
  caret-color: var(--akcent);
  background: var(--bialy);
  border: 1px solid var(--linia-mocna);
  border-radius: var(--r);
  transition: border-color var(--skok) ease-out, box-shadow var(--skok) ease-out;
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background: var(--bialy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23101113' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .8rem center / 16px no-repeat;
}
input::placeholder, textarea::placeholder { color: var(--tekst-3); }
input:hover, textarea:hover, select:hover { border-color: var(--grafit); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--akcent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--akcent) 22%, transparent);
}
textarea { min-height: 96px; resize: vertical; }

/* ══ karta „Twój garaż" ═══════════════════════════════════════════════
   Na telefonie stoi pod pytaniami jako przegląd przed wysłaniem;
   od 860 px jest przyklejona w prawej kolumnie razem z przyciskiem. */
.bok, .bok-klej { display: contents; }
.zestawienie {
  padding: 1.6rem 1.25rem 1.9rem;
  background: var(--szary);
}
.zestawienie-tytul {
  margin: 0;
  font-family: var(--wys);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--grafit);
}
.zest-wymiar { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; margin: .55rem 0 0; }
.zest-wymiar b {
  font-family: var(--wys);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--grafit);
}
.zest-wymiar span { font-size: .88rem; color: var(--tekst-2); }
.zest-lista {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 1rem 0 0;
  font-size: .9rem;
}
.zest-lista dt, .zest-lista dd { padding: .55rem 0; border-top: 1px solid var(--linia); }
.zest-lista dt {
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tekst-3);
}
.zest-lista dt { padding-right: 1rem; }   /* odstęp w komórce, nie w siatce — linia wiersza idzie bez przerwy */
.zest-lista dd { margin: 0; line-height: 1.4; color: var(--tekst); }
.zest-probka {
  width: 16px; height: 16px;
  margin-right: .4rem;
  vertical-align: -3px;
  object-fit: cover;
  border: 1px solid rgba(16, 17, 19, .2);
  border-radius: 4px;
}
.zest-brak { color: var(--tekst-3); }

/* ── stopka z przyciskiem ──────────────────────────────────────────── */
.stopka {
  position: sticky;
  bottom: 0;
  z-index: 6;
  padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom));
  background: var(--bialy);
  border-top: 1px solid var(--linia);
  box-shadow: var(--cien-gora);
}
.wyslij {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 54px;
  padding: .85rem 1.5rem;
  font-family: var(--wys);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--akcent-tekst);
  background: var(--akcent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 17, 19, .14), 0 10px 22px -12px color-mix(in srgb, var(--akcent) 80%, transparent);
  transition: background var(--skok) ease-out, transform var(--skok) var(--lad);
}
.wyslij svg { flex: none; width: 20px; height: 20px; transition: transform var(--skok) var(--lad); }
.wyslij:hover { background: var(--akcent-mocny); }
.wyslij:hover svg { transform: translateX(3px); }
.wyslij:active { transform: translateY(1px); }
.wyslij[aria-busy=true] { opacity: .7; cursor: progress; }
.stopka-nota { margin: .5rem 0 0; font-size: .82rem; color: var(--tekst-2); text-align: center; }
.stopka-nota.blad { color: var(--blad); font-weight: 600; }

/* ── lista etapów (tylko najszerszy układ) ─────────────────────────── */
.spis { display: none; }
.spis-postep {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .45rem .5rem;
  padding: .2rem .75rem 1rem;
}
.spis-postep span {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tekst-3);
}
.spis-postep .miarka-odczyt { color: var(--grafit); }
.spis-postep .miarka-tor { grid-column: 1 / -1; background: var(--szary-2); }
.spis-lista { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.spis-lista button {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem;
  width: 100%;
  min-height: 44px;
  padding: .45rem .75rem;
  font: inherit;
  font-size: .95rem;
  text-align: left;
  color: var(--tekst-2);
  background: none;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--skok) ease-out, color var(--skok) ease-out, box-shadow var(--skok) ease-out;
}
.spis-lista button:not(:disabled):hover { color: var(--grafit); background: rgba(255, 255, 255, .7); }
.spis-lista button:disabled { cursor: default; }
.spis-nr { font-family: var(--wys); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tekst-3); }
.spis-nazwa { font-weight: 600; }
.spis-stan { display: flex; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--tekst-3); }
.spis-stan svg { width: 15px; height: 15px; color: var(--grafit); }
.spis-lista .spis--gotowe { color: var(--tekst); }
.spis-lista .spis--biezaca { color: var(--grafit); background: var(--bialy); box-shadow: var(--cien); }
.spis--biezaca .spis-nr { color: var(--akcent); }

/* ── podziękowanie ─────────────────────────────────────────────────── */
.dziekujemy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
  outline: none;
}
.dziekujemy h2 {
  margin: 0;
  font-family: var(--wys);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--grafit);
  text-wrap: balance;
}
.dziekujemy p { max-width: 42ch; margin: .8rem auto 0; color: var(--tekst-2); }
.dziekujemy a { white-space: nowrap; }   /* numer telefonu w jednym kawałku */
.dziekujemy .znak {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto 1.3rem;
  color: var(--akcent-tekst);
  background: var(--akcent);
  border-radius: 50%;
}
.dziekujemy .znak svg { display: block; width: 26px; height: 26px; }
.ramka--wyslane .miarka, .ramka--wyslane .stopka { display: none; }

/* ══ od 640 px: więcej powietrza w jednej kolumnie ═════════════════════ */
@container (min-width: 640px) {
  .szczyt { padding: 1.9rem 2rem 2.1rem; }
  .marka .logo { height: 32px; }
  .szczyt h1 { font-size: 3rem; }
  .miarka, .grupa, .pyt, .zestawienie, .stopka { padding-inline: 2rem; }
}

/* ══ od 860 px: pytania + przyklejona karta „Twój garaż" ═══════════════ */
@container (min-width: 860px) {
  .ramka { --kg-szer: 1018px; }
  .szczyt-tresc { max-width: var(--kg-szer); }
  .szczyt { padding: 2.5rem 2rem 2.75rem; }
  .szczyt::after {
    background: linear-gradient(90deg, rgba(16, 17, 19, .92) 0%, rgba(16, 17, 19, .74) 48%, rgba(16, 17, 19, .4) 100%);
  }
  .szczyt h1 { font-size: 3.6rem; }
  .szczyt-lead { font-size: 1.05rem; }

  .uklad {
    display: grid;
    grid-template-columns: minmax(0, 700px) 290px;
    grid-template-areas: "miarka bok" "pytania bok";
    grid-template-rows: auto 1fr;
    justify-content: center;
    column-gap: 28px;
    max-width: calc(var(--kg-szer) + 4rem);
    margin-inline: auto;
    padding: 1.75rem 2rem 3.5rem;
  }
  .miarka {
    grid-area: miarka;
    align-self: start;
    padding-inline: 1.75rem;
    border-radius: var(--r-duzy) var(--r-duzy) 0 0;
  }
  .pytania, .dziekujemy {
    grid-area: pytania;
    overflow: clip;
    border-radius: 0 0 var(--r-duzy) var(--r-duzy);
    box-shadow: var(--cien);
  }
  .ramka--wyslane .dziekujemy { border-radius: var(--r-duzy); }
  /* jeden arkusz: grupy oddziela linia i powietrze, nie pas tła */
  .grupa { padding: 2.3rem 1.75rem .2rem; border-top: 1px solid var(--linia); }
  .pyt { padding-inline: 1.75rem; }

  .bok { display: block; grid-area: bok; }
  .bok-klej {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: calc(var(--kg-gora, 0px) + 1.25rem);
    /* niski laptop: karta przewija się sama, zamiast uciąć przycisk */
    max-height: calc(100svh - var(--kg-gora, 0px) - 2.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--linia-mocna) transparent;
    /* miejsce na cień karty wewnątrz przewijanego pudełka */
    margin: -8px -14px;
    padding: 8px 14px 18px;
  }
  .zestawienie {
    padding: 1.35rem 1.4rem 1rem;
    background: var(--bialy);
    border-radius: var(--r-duzy);
    box-shadow: var(--cien);
  }
  .zest-wymiar b { font-size: 2rem; }
  .zest-lista { font-size: .88rem; }
  .stopka { position: static; padding: 0; background: none; border: 0; box-shadow: none; }
}

/* ══ od 1240 px: lista etapów po lewej, pytania środkiem, karta po prawej ═ */
@container (min-width: 1240px) {
  .ramka { --kg-szer: 1520px; }
  .szczyt { padding: 3.25rem 2.5rem 3.5rem; background-image: var(--tlo-duze, var(--tlo, none)); }
  .szczyt h1 { font-size: 4.4rem; }
  .szczyt-kontakt { margin-top: 1.4rem; }

  .uklad {
    /* Pytania dostają swoje 720 px pierwsze, boczne kolumny rosną z resztą
       miejsca — na dużym monitorze nie zostają puste pasy po bokach. */
    grid-template-columns: minmax(210px, 1fr) minmax(0, 720px) minmax(310px, 1.35fr);
    grid-template-areas: "spis pytania bok";
    grid-template-rows: 1fr;
    column-gap: clamp(36px, 3cqi, 56px);
    max-width: calc(var(--kg-szer) + 5rem);
    padding: 2.5rem 2.5rem 4.5rem;
  }
  .miarka { display: none; }
  .pytania, .dziekujemy { border-radius: var(--r-duzy); }
  .grupa, .pyt { scroll-margin-top: calc(var(--kg-gora, 0px) + 1.5rem); }
  .grupa:first-child { padding-top: 1.9rem; }

  .spis { display: block; grid-area: spis; }
  .spis-klej { position: sticky; top: calc(var(--kg-gora, 0px) + 1.25rem); }
}

/* Telefon w poziomie albo bardzo niskie okno: przyklejone paski zostawiałyby
   na pytania kilkadziesiąt pikseli — płyną z treścią. */
@media (max-height: 560px) {
  .miarka, .stopka, .bok-klej, .spis-klej { position: static; box-shadow: none; }
  .bok-klej { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
