/* Ankieta „Życie młodych po architekturze” · kierunek C2 „Tablica pod paskiem Izby”.
   Układ i ruch z oznakowania budynku (C), paleta, krój i linie Izby (B). Tokeny na górze. */

@font-face {
  font-family: "Archivo";
  src: url(fonty/archivo-latin-ext-standard-normal.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Archivo";
  src: url(fonty/archivo-latin-standard-normal.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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;
}

:root {
  /* czerwień Izby do pól z białym tekstem (#ff0000 z izbaarchitektow.pl ma z bielą tylko 4,0:1) */
  --czer: #e60000;
  --czer-ciemna: #c40000;
  --czer-tint: #fff1f1;
  --tusz: #111;
  --szary: #5a5a5a;
  --szary-jasny: #767676;
  --jasna: #d9d9d9;
  --tlo: #f2f2f2;
  --biel: #fff;
  --blad: #b00000;
  --blad-tlo: #fff5f5;
  --bramka: #cdcdcd;
  --ramka-miejsca: #8f8f8f;
  --pasek-przewijania: #9a9a9a;
  --r: 4px;
  --kolumna-szer: 680px;
  --gora: 56px;
  --nad-trescia: 0px; /* ustawiane w JS: przyklejone paski nad treścią */
  --pod-trescia: 0px; /* ustawiane w JS: przyklejony pasek akcji */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wyjscie: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--biel);
  scroll-padding-top: calc(var(--nad-trescia) + 16px);
  scroll-padding-bottom: calc(var(--pod-trescia) + 16px);
  scrollbar-color: var(--pasek-przewijania) transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 400 17px/1.45 var(--font);
  font-stretch: 100%;
  color: var(--tusz);
  background: var(--biel);
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--czer);
}
::selection { background: var(--czer); color: var(--biel); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
p, li { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ pasek demo */
.demo-pasek {
  margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  padding: 6px 12px;
  background: var(--tusz); color: var(--biel);
  font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center;
}
/* notch: pasek demo schodzi poniżej wycięcia ekranu */
@supports (padding: env(safe-area-inset-top)) {
  .demo-pasek { padding-top: calc(6px + env(safe-area-inset-top)); }
}
.demo-podglad {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 10px;
  background: var(--biel); color: var(--tusz); border: 0; border-radius: 3px;
  font-size: 12.5px; font-weight: 650;
}
.demo-podglad .ico { width: 16px; height: 16px; }
.demo-podglad:focus-visible { outline: 3px solid var(--biel); outline-offset: 2px; }

.app, .ekran, .uklad { flex: 1; display: flex; flex-direction: column; }

/* --------------------------------------------------------- pasek Izby */
.gora { position: sticky; top: 0; z-index: 20; background: var(--czer); color: var(--biel); }
.gora-w {
  max-width: var(--kolumna-szer); margin: 0 auto; height: var(--gora);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.gora-wstecz {
  justify-self: start; width: var(--gora); height: var(--gora);
  display: grid; place-items: center; background: none; border: 0; color: var(--biel);
}
.gora-wstecz .ico { width: 24px; height: 24px; }
.gora-wstecz:focus-visible { outline: 3px solid var(--biel); outline-offset: -6px; }
.gora-znak { height: 21px; width: auto; display: block; }
.gora-tor { justify-self: end; padding-right: 16px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; }

/* ------------------------------------------------- tablica z numerem */
.tablica { position: relative; z-index: 15; background: var(--tlo); border-bottom: 1px solid var(--jasna); }
/* na ekranach pytań pasek Izby przewija się z treścią, a przykleja się sama tablica */
.uklad--pytanie .gora { position: relative; }
.uklad--pytanie .tablica { position: sticky; top: 0; }
.tablica-w {
  max-width: var(--kolumna-szer); margin: 0 auto; padding: 12px 16px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px;
}
.tablica-nr {
  margin: 0; display: flex; min-width: 1.15ch; perspective: 320px;
  color: var(--czer); font-weight: 800; font-stretch: 62%; font-size: 80px; line-height: .82;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.cyfra { display: inline-block; transform-origin: 50% 8%; backface-visibility: hidden; }
.cyfra.klapka { animation: klapka .46s var(--wyjscie) both; }
@keyframes klapka {
  0% { transform: rotateX(-88deg); opacity: .15; }
  55% { transform: rotateX(14deg); opacity: 1; }
  80% { transform: rotateX(-4deg); }
  100% { transform: none; }
}
.tablica-info { min-width: 0; }
.tablica-z { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.2; }
.tablica-czas { margin: 2px 0 8px; font-size: 14px; color: var(--szary); line-height: 1.25; }
.bramki { display: flex; gap: 2px; height: 8px; }
.bramki i { flex: 1; background: var(--bramka); transition: background-color .3s; transform-origin: 50% 100%; }
.bramki i.nowa { animation: bramka .5s calc(var(--i, 0) * 35ms + 200ms) var(--wyjscie) backwards; }
@keyframes bramka { from { transform: scaleY(0); } }
.bramki i.on { background: var(--czer); }

/* ------------------------------------------------------------- treść */
.tresc { flex: 1; display: flex; flex-direction: column; }
.kolumna { width: 100%; max-width: var(--kolumna-szer); margin: 0 auto; padding: 0 16px; }
.pyt { flex: 1; display: flex; flex-direction: column; }
.pyt > .kolumna { padding-top: 22px; padding-bottom: 28px; }
.pyt-tresc {
  margin: 0 0 8px; font-size: 23px; line-height: 1.24; font-weight: 620; letter-spacing: -.012em; text-wrap: balance;
}
.gw { color: var(--czer); margin-left: .15em; }
.pyt-instr { margin: 0 0 18px; font-size: 15px; color: var(--szary); line-height: 1.4; }
.pyt-nieob { white-space: nowrap; }
.pyt-objasnienie { margin: 0 0 14px; padding: 10px 12px; background: var(--tlo); border-radius: var(--r); font-size: 15.5px; }
.miejsce {
  margin: 0 0 16px; padding: 10px 12px; border: 1.5px dashed var(--ramka-miejsca); border-radius: var(--r);
  color: var(--szary); font-size: 14px; line-height: 1.4;
}

/* komunikat o błędzie: zostaje, dopóki problem nie zniknie */
.blad {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 10px 12px;
  border: 1.5px solid var(--blad); border-radius: var(--r); background: var(--blad-tlo);
  color: var(--blad); font-size: 15px; font-weight: 600; line-height: 1.35;
}
.blad .ico { margin-top: -1px; }

/* -------------------------------------------- odpowiedzi jako panele */
.opcje { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.opcja {
  position: relative; display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 14px 12px 16px;
  border: 1.5px solid var(--tusz); border-radius: var(--r); background: var(--biel);
  font-size: 17px; line-height: 1.35; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.opcja input, .kafel input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opcja-znak { display: grid; place-items: center; width: 24px; height: 24px; }
.opcja-znak::before { content: ""; grid-area: 1 / 1; width: 18px; height: 18px; border: 1.5px solid var(--szary); transition: opacity .12s; }
.opcja--jedna .opcja-znak::before { border-radius: 50%; }
.opcja--wiele .opcja-znak::before { border-radius: 3px; }
.opcja-znak .ico { grid-area: 1 / 1; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .25s var(--wyjscie); }
.opcja-znak .ico-pelne { fill: currentColor; stroke: none; }
.opcja:has(:checked) { background: var(--czer); border-color: var(--czer); color: var(--biel); font-weight: 600; }
.opcja:has(:checked) .opcja-znak::before { opacity: 0; }
.opcja:has(:checked) .opcja-znak .ico { opacity: 1; transform: none; }
.opcja:has(:focus-visible) { outline: 3px solid var(--tusz); outline-offset: 2px; }
.inne { margin-top: 6px; }
.inne-pole, .pole-tekst {
  width: 100%; min-height: 50px; padding: 11px 14px;
  border: 1.5px solid var(--tusz); border-radius: var(--r); background: var(--biel);
  font-size: 17px; line-height: 1.45;
}
.pole-tekst { display: block; resize: vertical; }
textarea.pole-tekst { min-height: 9.5em; }
.inne-pole::placeholder, .pole-tekst::placeholder { color: var(--szary-jasny); opacity: 1; }
.inne-pole:focus-visible, .pole-tekst:focus-visible { outline: 3px solid var(--tusz); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--blad); box-shadow: inset 0 0 0 1px var(--blad); }
.licznik { margin: -10px 0 2px; font-size: 14.5px; color: var(--szary); font-variant-numeric: tabular-nums; }
.inne-blad, .opcja-limit { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--blad); font-size: 14px; font-weight: 600; line-height: 1.35; }
.inne-blad .ico, .opcja-limit .ico { width: 18px; height: 18px; }

/* ----------------------------------------- kafelki skali i macierzy */
.kafelki { display: grid; grid-template-columns: repeat(var(--k, 5), minmax(0, 1fr)); gap: 6px; }
.kafel { position: relative; display: grid; cursor: pointer; }
.kafel-txt {
  display: grid; place-items: center; height: 50px;
  border: 1.5px solid var(--tusz); border-radius: var(--r); background: var(--biel);
  font-weight: 750; font-stretch: 75%; font-size: 25px; font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s, border-color .15s;
}
.kafel:has(:checked) .kafel-txt { background: var(--czer); border-color: var(--czer); color: var(--biel); }
.kafel:has(:focus-visible) .kafel-txt { outline: 3px solid var(--tusz); outline-offset: 2px; }
.kafelki-spec { display: grid; gap: 6px; margin-top: 6px; }
.kafel--szeroki .kafel-txt { height: 44px; border-style: dashed; font-weight: 500; font-stretch: 100%; font-size: 15.5px; }
/* wybrane „Trudno powiedzieć” wygląda jak każdy inny wybór: forma nie komentuje odpowiedzi */
.kafel--szeroki:has(:checked) .kafel-txt { border-style: solid; font-weight: 650; }

.skala { border: 0; margin: 0; padding: 0; min-width: 0; }
.skala-konce, .legenda { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; line-height: 1.3; color: var(--szary); }
.skala-konce { margin-top: 10px; }
.skala-konce span:last-child, .legenda span:last-child { text-align: right; }
.skala-konce b, .legenda b { color: var(--tusz); font-weight: 800; font-stretch: 62%; font-size: 17px; margin-right: 3px; }

.legenda {
  position: sticky; top: var(--nad-trescia); z-index: 5;
  margin: 0 -16px; padding: 6px 16px; background: var(--tlo); border-block: 1px solid var(--jasna); font-size: 12.5px;
}
.wiersz {
  border: 0; margin: 0; padding: 16px 0 18px; min-width: 0; border-bottom: 1px solid var(--jasna);
  scroll-margin-top: calc(var(--nad-trescia) + 52px);
}
.wiersz-txt { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-size: 16.5px; font-weight: 520; line-height: 1.38; }
.wiersz .kafelki { clear: both; }
.wiersz--brak { background: var(--blad-tlo); margin-inline: -16px; padding-inline: 16px; }
.wiersz--brak .wiersz-txt { color: var(--blad); }
.wiersz-blad { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--blad); font-size: 14px; font-weight: 600; }
.wiersz-blad .ico { width: 18px; height: 18px; }

/* ------------------------------------------------- dolny pasek akcji */
.dol {
  position: sticky; bottom: 0; z-index: 10; margin-top: auto;
  padding: 12px 0 calc(14px + env(safe-area-inset-bottom));
  background: var(--biel); border-top: 1px solid var(--tusz);
}
.dol-w { max-width: var(--kolumna-szer); margin: 0 auto; padding: 0 16px; display: grid; gap: 4px; justify-items: center; }
.dol-w--para { grid-template-columns: auto minmax(0, 1fr); gap: 8px; justify-items: stretch; }
.blad--wysylka { grid-column: 1 / -1; margin: 0 0 4px; }
.przycisk--wstecz {
  display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 14px 0 8px;
  background: var(--biel); color: var(--tusz); border: 1.5px solid var(--tusz); border-radius: var(--r);
  font-size: 16px; font-weight: 600;
}
.przycisk--wstecz:focus-visible { outline: 3px solid var(--tusz); outline-offset: 2px; }
.przycisk--obrys {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--biel); color: var(--blad); border: 1.5px solid var(--blad); border-radius: var(--r);
  font-size: 16px; font-weight: 650;
}
.przycisk--obrys:focus-visible { outline: 3px solid var(--tusz); outline-offset: 2px; }
.przycisk--odwrocony {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px;
  background: var(--biel); color: var(--czer-ciemna); border: 0; border-radius: var(--r);
  font-size: 17px; font-weight: 650;
}
.przycisk--odwrocony:focus-visible { outline: 3px solid var(--biel); outline-offset: 3px; }
.przycisk--glowny {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  background: var(--czer); color: var(--biel); border: 0; border-radius: var(--r);
  font-size: 18px; font-weight: 650; letter-spacing: .01em;
  transition: background-color .15s;
}
.przycisk--glowny .ico { transition: transform .25s var(--wyjscie); }
.przycisk--glowny:focus-visible { outline: 3px solid var(--tusz); outline-offset: 2px; }
.przycisk--glowny:disabled { cursor: progress; background: var(--czer-ciemna); }
.przycisk--tekst {
  min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--tusz);
  font-size: 15.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.przycisk--tekst:focus-visible { outline: 3px solid var(--tusz); outline-offset: 2px; }

/* ------------------------------------------------------------- start */
.start { flex: 1; display: flex; flex-direction: column; background: var(--biel); }
.start-pole { flex: 1; background: var(--czer); color: var(--biel); container-type: inline-size; }
.start-pole-w { max-width: var(--kolumna-szer); margin: 0 auto; padding: 24px 20px 30px; }
.start-znak { display: block; width: 84px; height: auto; margin: 6px 0 40px; }
.start-tytul {
  margin: 0 0 18px; font-weight: 800; font-stretch: 62%; font-size: min(14.2cqi, 88px); line-height: .88;
  text-transform: uppercase; letter-spacing: -.005em;
}
.start-lead { margin: 0 0 8px; font-size: 18px; font-weight: 550; line-height: 1.3; max-width: 28ch; }
.start-zespol { margin: 0 0 16px; font-size: 14.5px; line-height: 1.35; max-width: 34ch; }
.start-info { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.start-info li { padding: 3px 10px; border: 1.5px solid var(--biel); border-radius: var(--r); font-size: 14px; font-weight: 550; }
.start-dol {
  flex: none; display: flex; flex-direction: column; width: 100%; max-width: var(--kolumna-szer); margin: 0 auto;
  padding: 20px 14px calc(24px + env(safe-area-inset-bottom));
}
.start-zacheta { margin: 0 6px 12px; font-size: 20px; font-weight: 800; }
.tory { display: grid; gap: 10px; }
.tor {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 0 18px;
  background: var(--tusz); color: var(--biel); border: 0; border-radius: var(--r);
  transition: background-color .15s;
}
.tor span { font-weight: 800; font-stretch: 75%; font-size: 34px; line-height: 1; letter-spacing: .02em; }
.tor .ico--duza { width: 44px; height: 44px; stroke-width: 2.6; transition: transform .3s var(--wyjscie); }
/* tablice są lustrzane: STUDENT przy lewej krawędzi, ABSOLWENT przy prawej, napis tuż przy strzałce */
.tor--p { justify-content: flex-end; }
.tor:focus-visible { outline: 3px solid var(--czer); outline-offset: 3px; }
/* tablice wsuwają się z kierunku, w który wskazują ich strzałki */
.start:not(.wejscie-wstecz) .tor--l { animation: znak-l .55s .08s var(--wyjscie) backwards; }
.start:not(.wejscie-wstecz) .tor--p { animation: znak-p .55s .16s var(--wyjscie) backwards; }
@keyframes znak-l { from { transform: translateX(-24px); opacity: 0; } }
@keyframes znak-p { from { transform: translateX(24px); opacity: 0; } }

.wznow { margin: 0 0 18px; padding: 16px; border: 1.5px solid var(--tusz); border-radius: var(--r); background: var(--tlo); }
.wznow-tytul { margin: 0 0 4px; font-size: 18px; font-weight: 650; }
.wznow-opis { margin: 0 0 12px; font-size: 15px; color: var(--szary); }
.wznow-akcje { display: grid; gap: 6px; justify-items: center; }
.wznow-pytanie { justify-self: start; margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }

/* ------------------------------------------------------------- wstęp */
.tresc--wstep > .kolumna { padding-top: 24px; padding-bottom: 24px; }
.wstep-tytul { margin: 0 0 20px; font-weight: 800; font-stretch: 62%; font-size: 44px; line-height: .9; text-transform: uppercase; }
.fakty { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.fakty li { padding: 3px 10px; border: 1.5px solid var(--tusz); border-radius: var(--r); font-size: 14px; font-weight: 550; }
.wstep-tekst { max-width: 62ch; margin-bottom: 18px; }
.wstep-tekst p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.5; }
.wstep-tekst .wstep-zgoda { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--jasna); font-weight: 600; }
.wstep-legenda { margin: 0; font-size: 14.5px; color: var(--szary); }

/* ------------------------------------------------------------ koniec */
.koniec-pole { background: var(--czer); color: var(--biel); container-type: inline-size; }
.koniec-pole .kolumna { padding-top: 28px; padding-bottom: 32px; }
.koniec-tytul { margin: 0 0 14px; font-weight: 800; font-stretch: 62%; font-size: min(17cqi, 112px); line-height: .86; text-transform: uppercase; }
.koniec-opis { margin: 0; font-size: 17px; line-height: 1.45; max-width: 38ch; }
.miejsce--demo { margin-top: 20px; }
.podsum-tytul { margin: 24px 0 8px; font-size: 15px; font-weight: 650; }
.podsum { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tusz); }
.podsum > li { padding: 12px 0; border-bottom: 1px solid var(--jasna); }
.podsum-pyt { margin: 0 0 4px; font-size: 14.5px; line-height: 1.35; color: var(--szary); }
.podsum-id { color: var(--tusz); font-weight: 650; font-variant-numeric: tabular-nums; }
.podsum-odp { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.podsum-odp ul { margin: 0; padding-left: 18px; }
.podsum-odp--brak { color: var(--szary); font-weight: 400; font-style: italic; }
.podsum-wiersze { list-style: none; padding: 0 !important; }
.podsum-wiersze li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14.5px; font-weight: 400; }
.podsum-wiersze b { flex: none; font-weight: 650; }
.pola { margin: 20px 0; border: 1px solid var(--jasna); border-radius: var(--r); }
.pola summary { padding: 12px; cursor: pointer; font-weight: 600; }
.pola table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pola th, .pola td { padding: 6px 12px; border-top: 1px solid var(--jasna); text-align: left; vertical-align: top; }
.pola th { font-weight: 600; white-space: nowrap; }
.pola td { overflow-wrap: anywhere; }
.koniec-akcje { margin-top: 22px; }
.koniec-info { margin: 8px 0 0; min-height: 1.4em; font-size: 14.5px; }
.koniec-dol { margin: 8px 0 40px; }

/* ----------------------------------------------- przejścia ekranów */
.wejscie-dalej .tresc > .kolumna, .wejscie-dalej .pyt > .kolumna { animation: wjazd-p .32s var(--wyjscie); }
.wejscie-wstecz .tresc > .kolumna, .wejscie-wstecz .pyt > .kolumna { animation: wjazd-l .32s var(--wyjscie); }
@keyframes wjazd-p { from { opacity: 0; transform: translateX(28px); } }
@keyframes wjazd-l { from { opacity: 0; transform: translateX(-28px); } }

/* ------------------------------------------------- tryb podglądu */
.podglad-baner { margin: 0 0 14px; padding: 10px 12px; border: 1.5px dashed var(--blad); border-radius: var(--r); color: var(--blad); font-size: 14px; }
.adnotacja { margin-top: 24px; padding: 12px 14px; border: 1.5px dashed var(--ramka-miejsca); border-radius: var(--r); background: var(--tlo); font-size: 13.5px; line-height: 1.4; }
.adnotacja-tytul { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--szary); }
.adnotacja dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.adnotacja dt { color: var(--szary); }
.adnotacja dd { margin: 0; overflow-wrap: anywhere; }
.podglad {
  width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; padding: 0; border: 0; background: var(--biel); color: var(--tusz);
  overscroll-behavior: contain;
}
.podglad::backdrop { background: rgba(0, 0, 0, .45); }
.podglad-gora { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 16px; background: var(--tusz); color: var(--biel); }
.podglad-gora h2 { margin: 0; font-size: 17px; font-weight: 650; }
.podglad-zamknij { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--biel); }
.podglad-zamknij:focus-visible { outline: 3px solid var(--biel); outline-offset: -4px; }
.podglad-opis { margin: 12px 16px; font-size: 14px; color: var(--szary); }
.podglad-akcje { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 0 16px 8px; }
.podglad-przel { display: flex; align-items: center; gap: 8px; font-size: 14.5px; min-height: 44px; }
.podglad-przel input { width: 18px; height: 18px; accent-color: var(--czer); }
.podglad-tory { position: sticky; top: 56px; z-index: 1; display: flex; padding: 0 16px; background: var(--biel); border-bottom: 1px solid var(--tusz); }
.podglad-tor { flex: 1; min-height: 44px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 650; }
.podglad-tor[aria-selected="true"] { border-bottom-color: var(--czer); color: var(--czer-ciemna); }
.podglad-tor:focus-visible { outline: 3px solid var(--tusz); outline-offset: -3px; }
.podglad-lista ol { margin: 0; padding: 8px 0 40px; list-style: none; }
.podglad-czesc { padding: 16px 16px 4px; font-size: 13.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.podglad-czesc small, .podglad-grupa small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--szary); }
.podglad-grupa { padding: 8px 16px 4px; font-size: 14px; font-weight: 650; }
.podglad-pyt button, .podglad-ekran button {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; width: 100%; padding: 8px 16px;
  background: none; border: 0; text-align: left; font-size: 14.5px; line-height: 1.35;
}
.podglad-ekran button { grid-template-columns: 1fr; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.podglad-pyt button:focus-visible, .podglad-ekran button:focus-visible { outline: 3px solid var(--tusz); outline-offset: -3px; }
.podglad-pyt--biezace button { background: var(--czer-tint); }
.podglad-nr { color: var(--czer); font-weight: 800; font-stretch: 75%; font-size: 17px; font-variant-numeric: tabular-nums; }
.podglad-txt { display: grid; gap: 2px; }
.podglad-id { font-size: 12.5px; color: var(--szary); }
.podglad-pyt small { font-size: 12.5px; color: var(--szary); }
.podglad-pyt--ukryte .podglad-txt > span:not(.podglad-id) { color: var(--szary); }
.podglad-ukr { color: var(--blad) !important; font-weight: 600; }

.awaria, .noscript { max-width: 40ch; margin: 48px auto; padding: 0 16px; font-size: 17px; }
.awaria pre { white-space: pre-wrap; font-size: 13px; color: var(--szary); }

/* ------------------------------------------------------- desktop */
@media (min-width: 720px) {
  body { background: var(--tlo); }
  .tresc { background: var(--tlo); }
  .tresc > .kolumna, .pyt > .kolumna { background: var(--biel); padding-left: 32px; padding-right: 32px; }
  .pyt > .kolumna { padding-top: 32px; flex: 1; }
  .legenda { margin: 0 -32px; padding: 6px 32px; }
  .wiersz--brak { margin-inline: -32px; padding-inline: 32px; }
  .start-zacheta { margin-top: 4px; }
  .dol { background: transparent; border-top: 0; padding-top: 0; }
  .dol-w { background: var(--biel); padding: 16px 32px 20px; border-top: 1px solid var(--tusz); }
  .tresc--wstep > .kolumna { padding-top: 40px; }
  .start-dol { padding-top: 28px; }
  .tory { grid-template-columns: 1fr 1fr; }
  .koniec-pole + .kolumna { padding-bottom: 8px; }
  .pyt-tresc { font-size: 26px; }
}

/* hover tylko tam, gdzie jest wskaźnik: na dotyku stan nie „przykleja się” po stuknięciu */
@media (hover: hover) {
  .gora-wstecz:hover { background: var(--czer-ciemna); }
  .opcja:not(:has(:checked)):hover { background: var(--tlo); }
  .kafel:not(:has(:checked)):hover .kafel-txt { background: var(--tlo); }
  .przycisk--glowny:hover { background: var(--czer-ciemna); }
  .przycisk--glowny:hover .ico { transform: translateX(3px); }
  .przycisk--tekst:hover { text-decoration-thickness: 2px; }
  .tor:hover { background: #000; }
  .tor--l:hover .ico--duza { transform: translateX(-5px); }
  .przycisk--wstecz:hover { background: var(--tlo); }
  .przycisk--odwrocony:hover { background: var(--czer-tint); }
  .tor--p:hover .ico--duza { transform: translateX(5px); }
  .podglad-pyt button:hover, .podglad-ekran button:hover { background: var(--tlo); }
}

@media (max-height: 720px) {
  .tablica-nr { font-size: 60px; }
  .tablica-w { padding-block: 8px; }
  .tablica-czas { margin: 1px 0 6px; }
  .dol { padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); }
  .przycisk--glowny, .przycisk--wstecz { min-height: 50px; }
  /* niski telefon: obie tablice kierunkowe muszą być widoczne bez przewijania */
  .start-pole-w { padding-top: 16px; padding-bottom: 20px; }
  .start-znak { width: 72px; margin: 2px 0 18px; }
  .start-tytul { font-size: min(11.6cqi, 88px); margin-bottom: 12px; }
  .start-lead { font-size: 16px; }
  .start-zespol { margin-bottom: 12px; }
  .start-dol { padding-top: 14px; }
  .tor { min-height: 68px; }
  .tor span { font-size: 30px; }
}
/* telefon w poziomie albo bardzo duży tekst: nic nie jest przyklejone, treść ma cały ekran */
@media (max-height: 520px) {
  .gora, .uklad--pytanie .tablica, .legenda, .dol { position: relative; }
  .start-pole { flex: none; }
  .start-pole-w { padding-top: 12px; padding-bottom: 16px; }
  .start-znak { width: 60px; margin: 0 0 10px; }
  .start-tytul { font-size: 40px; margin-bottom: 10px; }
  .start-lead { font-size: 15px; margin-bottom: 2px; max-width: none; }
  .start-zespol { font-size: 13px; margin-bottom: 10px; max-width: none; }
  .tory { grid-template-columns: 1fr 1fr; }
  .tor { min-height: 60px; }
  .tor span { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .opcja:has(:checked), .kafel:has(:checked) .kafel-txt { outline: 3px solid Highlight; }
  .bramki i.on { background: Highlight; }
}
