/* =========================================================
   obowiazkowelektury.pl — system projektowy
   Breakpoint: 860 px (jeden, bez wersji tabletowej)
   ========================================================= */

:root {
  --papier: #FAF7F1;
  --bialy: #FFFFFF;
  --atrament: #16202B;
  --atrament-2: #24303D;
  --atrament-3: #35424F;
  --granat: #1C3557;
  --granat-jasny: #2E4F7D;
  --cynober: #C2451F;
  --cynober-ciemny: #8A3A1B;
  --zielen: #2E6B52;
  --zielen-ciemna: #1F4A38;
  --zielen-tlo: #E1EFE7;
  --szary: #56636F;
  --szary-jasny: #8A94A0;
  --linia: #E4DCCE;
  --linia-2: #EFE8DC;
  --linia-3: #CFC4B2;
  --wyroznienie: #FDF2E9;
  --wyroznienie-linia: #F0D8C4;
  --wyroznienie-tekst: #6B2E15;
  --thead: #F4EFE6;
  --chevron: #E7E1D6;
  --chevron-tekst: #4C5765;
  --stopka-tekst: #9FB3C8;
  --nav-tekst: #C9D6E2;
  --morela: #E8A27E;
  --bursztyn-tlo: #FBEFD9;
  --bursztyn-tekst: #7A4A12;

  --display: Literata, Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --maks: 1440px;
  --gutter: 56px;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--atrament);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--granat); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--cynober); }

:focus-visible { outline: 3px solid var(--cynober); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.18; margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--atrament); color: #fff;
  padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Układ ---------- */

.ol-wrap { max-width: var(--maks); margin: 0 auto; padding: 0 var(--gutter); }
.ol-page { display: flex; flex-direction: column; min-height: 100vh; }
.ol-main { flex-grow: 1; padding-bottom: 56px; }
.ol-stack { display: flex; flex-direction: column; gap: 28px; }
.ol-stack--lg { gap: 42px; }

/* ---------- Nagłówek ---------- */

.ol-header { background: var(--atrament); }
.ol-header__inner {
  max-width: var(--maks); margin: 0 auto;
  padding: 0 var(--gutter); min-height: 76px;
  display: flex; align-items: center; gap: 40px;
}
.ol-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.ol-logo svg { stroke: var(--morela); }
.ol-logo__text { font-family: var(--display); font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }

.ol-nav { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.ol-nav a { color: var(--nav-tekst); text-decoration: none; font-size: 15px; padding: 27px 0; display: inline-block; }
.ol-nav a:hover { color: #fff; }
.ol-nav .current-menu-item > a,
.ol-nav a[aria-current="page"] { color: #fff; font-weight: 600; border-bottom: 2px solid var(--cynober); }

.ol-search {
  display: flex; align-items: center; gap: 9px;
  background: #22303F; border-radius: 9px;
  padding: 0 14px; height: 42px; width: 300px; flex-shrink: 0;
}
.ol-search input {
  font-family: inherit; font-size: 14px; border: 0; outline: 0;
  background: transparent; flex-grow: 1; color: #fff; min-width: 0;
}
.ol-search input::placeholder { color: #8FA3B8; }
.ol-search button { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; }

.ol-burger, .ol-search-toggle { display: none; }

/* ---------- Ścieżka nawigacji ---------- */

.ol-breadcrumbs { font-size: 13px; color: var(--szary); padding: 26px 0 0; line-height: 1.7; }
.ol-breadcrumbs a { color: var(--granat); }
.ol-breadcrumbs__sep { padding: 0 7px; }
.ol-breadcrumbs [aria-current="page"] { color: var(--atrament); font-weight: 600; }

/* ---------- Typografia stron ---------- */

.ol-h1 { font-size: 42px; line-height: 1.16; max-width: 900px; }
.ol-h1 .ol-h1__sub { font-weight: 400; color: var(--atrament-3); display: block; }
.ol-lead { font-size: 18px; line-height: 1.65; color: var(--atrament-3); }
.ol-h2 { font-size: 27px; }
.ol-h3 { font-size: 21px; }
.ol-meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--szary); }
.ol-meta__sep { width: 1px; height: 14px; background: var(--linia-3); }
.ol-sekcja { display: flex; flex-direction: column; gap: 14px; }
.ol-podtytul { font-size: 15px; color: var(--szary); margin: 0; }

/* ---------- Paski informacyjne ---------- */

.ol-pasek {
  background: var(--bialy); border: 1px solid var(--linia); border-radius: 11px;
  padding: 14px 20px; display: flex; align-items: flex-start; gap: 14px;
  font-size: 15px; color: var(--atrament-3);
}
.ol-pasek svg { flex-shrink: 0; margin-top: 3px; }
.ol-pasek--uwaga {
  background: var(--wyroznienie); border-color: var(--wyroznienie-linia);
  color: var(--wyroznienie-tekst); border-radius: 12px; padding: 17px 22px;
}
.ol-pasek--uwaga a { color: var(--cynober-ciemny); font-weight: 600; }
.ol-pasek--uwaga strong { color: var(--cynober-ciemny); }

/* ---------- Tabele lektur ---------- */

.ol-tabela-box {
  background: var(--bialy); border: 1px solid var(--linia);
  border-radius: 13px; overflow: hidden;
}
table.ol-tabela { border-collapse: collapse; width: 100%; }
.ol-tabela thead tr { background: var(--thead); }
.ol-tabela th[scope="col"] {
  text-align: left; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--szary);
  padding: 14px 18px; border-bottom: 1px solid var(--linia);
}
.ol-tabela td, .ol-tabela th[scope="row"] {
  padding: 13px 18px; border-bottom: 1px solid var(--linia-2); vertical-align: middle;
}
.ol-tabela tbody tr:last-child td,
.ol-tabela tbody tr:last-child th { border-bottom: 0; }
.ol-tabela th[scope="row"] { text-align: left; font-weight: 400; }
.ol-tabela td { font-size: 13.5px; color: var(--atrament-3); }
.ol-tabela .ol-lp { font-family: var(--mono); font-size: 13px; color: var(--szary-jasny); }

.ol-tytul-cela { display: flex; align-items: center; gap: 15px; }
.ol-tytul-cela__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ol-tytul-cela a {
  font-family: var(--display); font-size: 17px; font-weight: 700;
  text-decoration: none; line-height: 1.3;
}
.ol-tytul-cela span { font-size: 13.5px; color: var(--szary); }

.ol-grzbiet {
  width: 42px; height: 60px; flex-shrink: 0;
  border-radius: 2px 5px 5px 2px;
  box-shadow: inset 4px 0 0 rgba(255,255,255,0.16);
}
.ol-grzbiet--s { width: 36px; height: 52px; box-shadow: inset 3px 0 0 rgba(255,255,255,0.16); }
.ol-grzbiet--xs { width: 30px; height: 43px; border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 0 rgba(255,255,255,0.16); }

/* Plakietki */
.ol-plakietka {
  font-size: 12px; font-weight: 600; border-radius: 5px;
  padding: 6px 10px; display: inline-flex; align-items: center; gap: 5px;
  text-decoration: none; white-space: nowrap;
}
.ol-plakietka--darmo { color: var(--zielen-ciemna); background: var(--zielen-tlo); }
.ol-plakietka--fragment { color: var(--bursztyn-tekst); background: var(--bursztyn-tlo); }
.ol-plakietka--szara { color: var(--szary-jasny); background: transparent; font-weight: 400; font-size: 13px; }
.ol-plakietka--granat { color: #fff; background: var(--granat); font-weight: 700; }
.ol-plakietka--kosc { color: var(--atrament); background: #EFEAE1; }

/* Ikonki materiałów */
.ol-ikony { display: flex; gap: 6px; flex-wrap: nowrap; }
.ol-ikona {
  width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--linia); border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  overflow: hidden;
}
/* Na desktopie zostaje samo pole 34x34 — etykieta tylko dla czytników ekranu. */
.ol-ikona__txt {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ol-ikona:hover { border-color: var(--cynober); }
.ol-ikona svg { stroke: var(--granat); }
.ol-ikona:hover svg { stroke: var(--cynober); }

/* ---------- Przyciski i pastylki ---------- */

.ol-btn {
  font-family: inherit; font-size: 15px; font-weight: 600;
  border-radius: 8px; padding: 13px 21px; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; text-decoration: none; border: 1.5px solid transparent;
}
.ol-btn--primary { background: var(--cynober); color: #fff; border-color: var(--cynober); }
.ol-btn--primary:hover { background: #A9391A; color: #fff; }
.ol-btn--outline { background: var(--bialy); color: var(--granat); border-color: var(--granat); }
.ol-btn--outline:hover { color: var(--cynober); border-color: var(--cynober); }
.ol-btn--ghost { background: var(--bialy); color: var(--granat); border-color: var(--linia-3); }
.ol-btn--jasny { background: #fff; color: var(--atrament); }

.ol-pastylki { display: flex; flex-wrap: wrap; gap: 8px; }
.ol-pastylka {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--atrament);
  background: var(--bialy); border: 1.5px solid var(--linia);
  border-radius: 999px; padding: 10px 17px; display: inline-block;
}
.ol-pastylka:hover { border-color: var(--cynober); color: var(--cynober); }
.ol-pastylka--aktywna { color: #fff; background: var(--atrament); border-color: var(--atrament); font-weight: 700; }
.ol-pastylka--akcent { color: var(--granat); border-color: #9FB0C6; }

/* ---------- Karty ---------- */

.ol-karta {
  background: var(--bialy); border: 1px solid var(--linia);
  border-radius: var(--r); padding: 20px 22px; text-decoration: none; display: block;
}
a.ol-karta:hover { border-color: var(--cynober); }

.ol-siatka { display: grid; gap: 14px; }
.ol-siatka--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ol-siatka--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ol-siatka--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ol-siatka--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ol-siatka--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.ol-kafel {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 64px; text-decoration: none;
}
.ol-kafel__nazwa { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--atrament); }
.ol-kafel svg { stroke: var(--cynober); flex-shrink: 0; }

/* Karty materiałów do lektury */
.ol-material {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 20px 22px;
}
.ol-material__ikona svg { stroke: var(--cynober); }
.ol-material__tytul { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--atrament); line-height: 1.25; }
.ol-material__tytul small { display: block; font-size: 14.5px; font-weight: 400; color: var(--szary); }
.ol-material__opis { font-size: 13px; color: var(--szary); line-height: 1.5; }
.ol-material--ciemny { background: var(--atrament); border-color: var(--atrament); }
.ol-material--ciemny .ol-material__tytul { color: #fff; }
.ol-material--ciemny .ol-material__tytul small,
.ol-material--ciemny .ol-material__opis { color: var(--stopka-tekst); }
.ol-material--ciemny svg { stroke: var(--morela); }

/* ---------- Strona lektury ---------- */

.ol-lektura-hero { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.ol-okladka {
  width: 300px; aspect-ratio: 300 / 428;
  border-radius: 4px 12px 12px 4px;
  box-shadow: inset 14px 0 0 rgba(255,255,255,0.13), 0 14px 32px rgba(22,32,43,0.18);
  padding: 40px 30px 30px 50px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ol-okladka__tytul { font-family: var(--display); font-size: 34px; font-weight: 700; color: #fff; line-height: 1.16; }
.ol-okladka__kreska { width: 48px; height: 2px; background: rgba(255,255,255,0.55); margin-top: 14px; }
.ol-okladka__autor { font-size: 15px; color: rgba(255,255,255,0.8); }
.ol-okladka img { width: 100%; border-radius: 4px 12px 12px 4px; display: block; }

.ol-lektura-hero h1 { font-size: 46px; line-height: 1.08; }
.ol-lektura-hero__linia { font-size: 20px; color: var(--atrament-3); }

.ol-pobieranie {
  background: var(--bialy); border: 1px solid var(--linia); border-radius: 14px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 17px;
}
.ol-pobieranie__tytul { font-family: var(--display); font-size: 19px; font-weight: 700; }
.ol-pobieranie__rzad { display: flex; flex-wrap: wrap; gap: 10px; }
.ol-hr { height: 1px; background: var(--linia-2); }
.ol-atrybucja { font-size: 12.5px; color: var(--szary); line-height: 1.6; }

.ol-audio { display: flex; align-items: center; gap: 16px; }
.ol-audio__play {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--granat); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ol-audio__body { flex-grow: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ol-audio__row { display: flex; justify-content: space-between; font-size: 13px; gap: 12px; }
.ol-audio__czas { color: var(--szary); font-family: var(--mono); }
.ol-audio__pasek { height: 6px; background: var(--linia-2); border-radius: 99px; overflow: hidden; }
.ol-audio__pasek i { display: block; height: 6px; background: var(--cynober); border-radius: 99px; }
.ol-audio__opis { font-size: 12px; color: var(--szary); }
.ol-audio audio { width: 100%; }

/* Metryczka */
.ol-metryczka { background: var(--bialy); border: 1px solid var(--linia); border-radius: 13px; padding: 6px 0; }
.ol-metryczka h2 { margin: 18px 22px 12px; font-size: 20px; }
.ol-metryczka table { border-collapse: collapse; width: 100%; }
.ol-metryczka th {
  text-align: left; font-size: 14px; font-weight: 500; color: var(--szary);
  padding: 11px 22px; border-top: 1px solid var(--linia-2); width: 44%;
}
.ol-metryczka td { font-size: 14px; padding: 11px 22px; border-top: 1px solid var(--linia-2); }
.ol-metryczka td a { font-weight: 600; }

/* Pas autora */
.ol-autor-pas {
  background: var(--granat); border-radius: 14px; padding: 30px 34px;
  display: flex; gap: 30px; align-items: center;
}
.ol-autor-pas__awatar {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  background: var(--granat-jasny);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ol-autor-pas__awatar img { width: 100%; height: 100%; object-fit: cover; }
.ol-autor-pas__body { flex-grow: 1; display: flex; flex-direction: column; gap: 9px; }
.ol-autor-pas__nadpis { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #A8C0DC; }
.ol-autor-pas__nazwa { font-family: var(--display); font-size: 25px; font-weight: 700; color: #fff; text-decoration: none; }
.ol-autor-pas p { color: #D7E2EE; font-size: 16px; line-height: 1.65; margin: 0; max-width: 780px; }

/* Postacie */
.ol-postac-karta { display: flex; align-items: center; gap: 14px; padding: 17px 19px; }
.ol-awatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 17px; font-weight: 700; color: #fff;
}
.ol-postac-karta__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ol-postac-karta__imie { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--atrament); }
.ol-postac-karta__rola { font-size: 13px; color: var(--szary); }

/* ---------- FAQ i szczegóły ---------- */

.ol-faq { display: flex; flex-direction: column; gap: 10px; }
.ol-szczegol {
  background: var(--bialy); border: 1px solid var(--linia);
  border-radius: 10px; padding: 15px 18px;
}
.ol-szczegol > summary {
  font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
}
.ol-szczegol > summary::-webkit-details-marker { display: none; }
.ol-szczegol > summary::after {
  content: "+"; font-family: var(--mono); color: var(--cynober); font-size: 20px; line-height: 1;
}
.ol-szczegol[open] > summary::after { content: "–"; }
.ol-szczegol p { margin: 11px 0 0; font-size: 15px; line-height: 1.65; color: var(--atrament-3); }

/* ---------- Spis treści ---------- */

.ol-spis { background: var(--bialy); border: 1px solid var(--linia); border-radius: 12px; padding: 18px 22px; }
.ol-spis h2 { font-size: 16px; margin-bottom: 10px; }
.ol-spis ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ol-spis li { font-size: 15px; }

/* ---------- Oś czasu epok ---------- */

.ol-os { display: flex; align-items: stretch; --szpic: 16px; }
.ol-os__krok {
  flex: 1 1 0; min-width: 0; text-decoration: none; background: var(--chevron);
  padding: 13px 20px 13px 34px; min-height: 64px;
  display: flex; align-items: center;
  margin-left: calc(3px - var(--szpic));
  clip-path: polygon(0 0, calc(100% - var(--szpic)) 0, 100% 50%, calc(100% - var(--szpic)) 100%, 0 100%, var(--szpic) 50%);
  transition: background 0.15s ease;
}
.ol-os__krok:first-child {
  margin-left: 0; padding-left: 22px;
  clip-path: polygon(0 0, calc(100% - var(--szpic)) 0, 100% 50%, calc(100% - var(--szpic)) 100%, 0 100%);
}
.ol-os__krok:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--szpic) 50%);
}
.ol-os__krok span { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--chevron-tekst); line-height: 1.22; }
.ol-os__krok:hover { background: #DCD4C6; }
.ol-os__krok--aktywny, .ol-os__krok--aktywny:hover { background: var(--cynober); }
.ol-os__krok--aktywny span { color: #fff; }

/* ---------- Strona główna ---------- */

.ol-hero { background: var(--atrament); padding: 58px 0 64px; }
.ol-hero__inner { max-width: var(--maks); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ol-hero h1 { font-size: 52px; line-height: 1.14; color: #fff; text-align: center; max-width: 960px; }
.ol-hero__sub { font-size: 32px; font-weight: 400; color: var(--nav-tekst); display: inline-block; margin-top: 6px; }
.ol-hero p { font-size: 19px; line-height: 1.6; color: var(--nav-tekst); max-width: 760px; text-align: center; margin: 0; }
.ol-hero__szukaj {
  width: min(780px, 100%); display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 0 10px 0 20px; height: 66px;
}
.ol-hero__pole { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.ol-hero__szukaj input { font-family: inherit; font-size: 17px; border: 0; outline: 0; background: transparent; flex: 1 1 auto; min-width: 0; color: var(--atrament); }
.ol-hero__szukaj button { flex-shrink: 0; margin-left: auto; }
.ol-hero__szukaj button { font-family: inherit; font-size: 16px; font-weight: 600; color: #fff; background: var(--cynober); border: 0; border-radius: 8px; padding: 0 26px; height: 48px; cursor: pointer; }
.ol-liczby { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ol-liczba { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ol-liczba b { font-family: var(--display); font-size: 27px; font-weight: 700; color: #fff; }
.ol-liczba span { font-size: 13px; color: var(--stopka-tekst); }
.ol-liczby__sep { width: 1px; height: 34px; background: #33414F; }

.ol-naglowek-sekcji { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ol-naglowek-sekcji h2 { font-size: 30px; }
.ol-naglowek-sekcji a { font-size: 15px; font-weight: 600; }
.ol-naglowek-sekcji span { font-size: 15px; color: var(--szary); }

.ol-egzamin-karta { border-radius: 14px; padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.ol-egzamin-karta--cynober { background: var(--cynober); }
.ol-egzamin-karta--granat { background: var(--granat); }
.ol-egzamin-karta__nadpis { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ol-egzamin-karta--cynober .ol-egzamin-karta__nadpis { color: #FBD9C9; }
.ol-egzamin-karta--granat .ol-egzamin-karta__nadpis { color: #A8C0DC; }
.ol-egzamin-karta__tytul { font-family: var(--display); font-size: 30px; font-weight: 700; color: #fff; line-height: 1.15; }
.ol-egzamin-karta__opis { font-size: 16px; line-height: 1.6; }
.ol-egzamin-karta--cynober .ol-egzamin-karta__opis { color: #FBE3D8; }
.ol-egzamin-karta--granat .ol-egzamin-karta__opis { color: var(--nav-tekst); }

.ol-okladka-mini { display: flex; flex-direction: column; gap: 11px; text-decoration: none; }
.ol-okladka-mini__grzbiet {
  width: 100%; aspect-ratio: 3 / 4.2; border-radius: 3px 9px 9px 3px;
  box-shadow: inset 8px 0 0 rgba(255,255,255,0.14), 0 6px 18px rgba(22,32,43,0.12);
  padding: 22px 16px 16px 26px; display: flex; flex-direction: column; justify-content: space-between;
}
.ol-okladka-mini__grzbiet b { font-family: var(--display); font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; }
.ol-okladka-mini__grzbiet em { font-style: normal; font-size: 11px; color: rgba(255,255,255,0.72); }
.ol-okladka-mini__podpis { font-size: 14px; font-weight: 600; color: var(--atrament); line-height: 1.35; }

.ol-wpis-karta { display: flex; flex-direction: column; gap: 6px; }
.ol-wpis-karta__kat { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cynober); }
.ol-wpis-karta__tytul { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--atrament); line-height: 1.3; }
.ol-wpis-karta__data { font-size: 13.5px; color: var(--szary); }

/* ---------- Treść redakcyjna ---------- */

.ol-tresc { font-size: 17px; line-height: 1.75; color: var(--atrament-2); max-width: 780px; }
.ol-tresc h2 { font-size: 27px; margin: 1.6em 0 0.5em; }
.ol-tresc h3 { font-size: 21px; margin: 1.4em 0 0.4em; }
.ol-tresc ul, .ol-tresc ol { padding-left: 24px; }
.ol-tresc li { margin-bottom: 0.4em; }
.ol-tresc blockquote {
  margin: 1.4em 0; padding: 16px 22px; background: var(--bialy);
  border: 1px solid var(--linia); border-radius: 11px; font-style: italic;
}
.ol-tresc img { border-radius: 10px; }
.ol-tresc a { font-weight: 500; }

.ol-cytat {
  background: var(--bialy); border: 1px solid var(--linia); border-radius: 12px;
  padding: 20px 24px; display: flex; flex-direction: column; gap: 10px;
}
.ol-cytat blockquote { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.5; }
.ol-cytat figcaption { font-size: 13.5px; color: var(--szary); }

/* Plan wydarzeń */
.ol-plan { counter-reset: krok; display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ol-plan > li {
  counter-increment: krok; background: var(--bialy); border: 1px solid var(--linia);
  border-radius: 11px; padding: 15px 19px 15px 58px; position: relative; font-size: 16px; line-height: 1.6;
}
.ol-plan > li::before {
  content: counter(krok); position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--granat); color: #fff;
  font-family: var(--mono); font-size: 13px; display: flex; align-items: center; justify-content: center;
}

/* Test */
.ol-pytanie { background: var(--bialy); border: 1px solid var(--linia); border-radius: 12px; padding: 20px 22px; }
.ol-pytanie legend { font-family: var(--display); font-size: 18px; font-weight: 700; padding: 0; }
.ol-pytanie ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ol-pytanie label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; min-height: 32px; }

/* ---------- Stopka ---------- */

.ol-footer { margin-top: auto; background: var(--atrament); padding: 42px 0 34px; }
.ol-footer__inner { max-width: var(--maks); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 30px; }
.ol-footer__kolumny { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ol-footer__kol { display: flex; flex-direction: column; gap: 9px; }
.ol-footer__nadpis { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--morela); }
.ol-footer a { color: var(--nav-tekst); text-decoration: none; font-size: 14px; }
.ol-footer a:hover { color: #fff; }
.ol-footer p { font-size: 13.5px; line-height: 1.6; color: var(--stopka-tekst); max-width: 300px; margin: 0; }
.ol-footer__dol {
  border-top: 1px solid #2B3947; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--stopka-tekst);
}

/* ---------- Paginacja ---------- */

.ol-paginacja { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.ol-paginacja .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  background: var(--bialy); border: 1.5px solid var(--linia); border-radius: 10px;
  text-decoration: none; font-weight: 500;
}
.ol-paginacja .page-numbers.current { background: var(--atrament); color: #fff; border-color: var(--atrament); }

/* =========================================================
   TELEFON — jeden breakpoint
   ========================================================= */

@media (max-width: 860px) {
  :root { --gutter: 16px; }

  body { font-size: 16px; }

  /* Nagłówek */
  .ol-header__inner { min-height: 60px; gap: 0; justify-content: space-between; padding-right: 2px; flex-wrap: wrap; } /* 4.10.2026: bez wrap otwarte menu ściskało się obok logo */
  .ol-logo__text { font-size: 15px; }
  .ol-burger, .ol-search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .ol-burger svg, .ol-search-toggle svg { stroke: var(--nav-tekst); }
  .ol-nav {
    display: none; order: 3; width: 100%; flex-direction: column; gap: 0;
    margin-left: 0; justify-content: flex-start;
    border-top: 1px solid #2B3947; padding: 6px 0 14px;
  }
  .ol-nav a { padding: 13px 0; font-size: 16px; min-height: 44px; }
  .ol-header--otwarty .ol-nav { display: flex; }
  .ol-search { display: none; order: 4; width: 100%; margin-bottom: 14px; }
  .ol-header--szukaj .ol-search { display: flex; }

  /* Typografia */
  .ol-h1 { font-size: 28px; line-height: 1.2; }
  .ol-lead { font-size: 16px; }
  .ol-h2, .ol-naglowek-sekcji h2 { font-size: 22px; line-height: 1.25; }
  .ol-h3 { font-size: 19px; }
  .ol-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ol-meta__sep { display: none; }
  .ol-podtytul { font-size: 14px; }
  .ol-stack { gap: 22px; }
  .ol-stack--lg { gap: 30px; }
  .ol-main { padding-bottom: 30px; }

  /* Tabela zostaje tabelą — zmienia się tylko prezentacja */
  .ol-tabela-box { background: none; border: 0; border-radius: 0; overflow: visible; }
  .ol-tabela thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .ol-tabela tbody { display: flex; flex-direction: column; gap: 10px; }
  .ol-tabela tbody tr {
    display: block; background: var(--bialy); border: 1px solid var(--linia);
    border-radius: 12px; padding: 14px;
  }
  .ol-tabela td, .ol-tabela th[scope="row"] {
    display: block; padding: 0; border: 0;
  }
  .ol-tabela td:not(:empty) { padding-top: 10px; }
  .ol-tabela .ol-lp { display: none; }
  .ol-tytul-cela { align-items: flex-start; gap: 13px; }
  .ol-tytul-cela a { font-size: 17px; }
  .ol-ikony { flex-wrap: wrap; }
  .ol-ikona { width: auto; height: auto; flex: 1 1 0; min-width: 96px; min-height: 44px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--granat); gap: 6px; padding: 0 8px; overflow: visible; }
  .ol-ikona .ol-ikona__txt {
    position: static; width: auto; height: auto; padding: 0; margin: 0;
    overflow: visible; clip: auto; clip-path: none; white-space: nowrap; display: inline;
  }

  /* Wariant gęsty: lektury uzupełniające */
  .ol-tabela--gesta tbody tr {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  }
  .ol-tabela--gesta td, .ol-tabela--gesta th[scope="row"] { padding: 0; }
  .ol-tabela--gesta th[scope="row"] { flex-grow: 1; min-width: 0; }
  .ol-tabela--gesta .ol-tytul-cela a { font-size: 14.5px; }
  .ol-tabela--gesta .ol-tytul-cela span { font-size: 12px; }
  .ol-tabela--gesta .ol-ikony { display: none; }
  .ol-tabela--gesta td:not(:empty) { padding-top: 0; }

  /* Siatki */
  .ol-siatka--3, .ol-siatka--4, .ol-siatka--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ol-siatka--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ol-siatka--2 { grid-template-columns: 1fr; }
  .ol-siatka { gap: 10px; }
  .ol-kafel { min-height: 58px; padding: 14px; }
  .ol-kafel__nazwa { font-size: 15.5px; line-height: 1.25; }
  .ol-material { padding: 15px 15px 17px; }
  .ol-material__tytul { font-size: 16px; }
  .ol-material__tytul small { font-size: 13px; }
  .ol-material__opis { display: none; }

  /* Strona lektury */
  .ol-lektura-hero { grid-template-columns: 1fr; gap: 16px; }
  .ol-okladka { width: 196px; margin: 0 auto; padding: 26px 20px 20px 34px; box-shadow: inset 11px 0 0 rgba(255,255,255,0.13), 0 12px 26px rgba(22,32,43,0.18); }
  .ol-okladka__tytul { font-size: 23px; }
  .ol-okladka__autor { font-size: 12.5px; }
  .ol-lektura-hero h1 { font-size: 32px; line-height: 1.14; }
  .ol-lektura-hero__linia { font-size: 16px; }
  .ol-pobieranie { padding: 18px 16px; gap: 15px; }
  .ol-pobieranie__rzad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ol-pobieranie__rzad .ol-btn { padding: 12px 8px; font-size: 14px; }
  .ol-pobieranie__rzad--pelny { display: block; }
  .ol-pobieranie__rzad--pelny .ol-btn { width: 100%; min-height: 52px; font-size: 16px; }
  .ol-audio { gap: 13px; }
  .ol-metryczka th, .ol-metryczka td { padding: 11px 16px; font-size: 13px; }
  .ol-metryczka h2 { margin: 15px 16px 10px; font-size: 19px; }

  .ol-autor-pas { flex-direction: column; align-items: flex-start; padding: 22px 18px; gap: 14px; }
  .ol-autor-pas__awatar { width: 60px; height: 60px; }
  .ol-autor-pas__nazwa { font-size: 20px; }
  .ol-autor-pas p { font-size: 15px; }
  .ol-autor-pas .ol-btn { width: 100%; }

  .ol-postac-karta { padding: 12px 13px; gap: 10px; }
  .ol-awatar { width: 36px; height: 36px; font-size: 15px; }
  .ol-postac-karta__imie { font-size: 14px; }
  .ol-postac-karta__rola { font-size: 11.5px; }

  /* Oś epok: strzałka w dół zamiast w prawo */
  .ol-os { flex-direction: column; --szpic: 13px; }
  .ol-os__krok {
    margin-left: 0; margin-top: calc(3px - var(--szpic));
    padding: 20px 18px 26px;
    clip-path: polygon(0 0, 50% var(--szpic), 100% 0, 100% calc(100% - var(--szpic)), 50% 100%, 0 calc(100% - var(--szpic)));
  }
  .ol-os__krok:first-child {
    margin-top: 0; padding-top: 14px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--szpic)), 50% 100%, 0 calc(100% - var(--szpic)));
  }
  .ol-os__krok:last-child {
    padding-bottom: 16px;
    clip-path: polygon(0 0, 50% var(--szpic), 100% 0, 100% 100%, 0 100%);
  }
  .ol-os__krok span { font-size: 15px; }

  /* Strona główna */
  .ol-hero { padding: 30px 0 32px; }
  .ol-hero__inner { align-items: stretch; gap: 20px; }
  .ol-hero h1 { font-size: 30px; text-align: left; }
  .ol-hero__sub { font-size: 21px; }
  .ol-hero p { font-size: 16px; text-align: left; }
  .ol-hero__szukaj { flex-direction: column; height: auto; background: none; padding: 0; gap: 9px; }
  .ol-hero__szukaj .ol-hero__pole { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 11px; padding: 0 14px; height: 54px; width: 100%; }
  .ol-hero__szukaj button { width: 100%; min-height: 52px; border-radius: 10px; }
  .ol-liczby { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; border-top: 1px solid #2B3947; padding-top: 20px; }
  .ol-liczba { align-items: flex-start; }
  .ol-liczba b { font-size: 24px; }
  .ol-liczby__sep { display: none; }
  .ol-egzamin-karta { padding: 22px 20px; }
  .ol-egzamin-karta__tytul { font-size: 24px; }
  .ol-egzamin-karta__opis { font-size: 15px; }
  .ol-okladka-mini__grzbiet { padding: 14px 10px 11px 17px; box-shadow: inset 6px 0 0 rgba(255,255,255,0.14), 0 5px 14px rgba(22,32,43,0.12); }
  .ol-okladka-mini__grzbiet b { font-size: 13px; }
  .ol-okladka-mini__grzbiet em { font-size: 9.5px; }
  .ol-okladka-mini__podpis { font-size: 12px; }

  /* Przełącznik klas */
  .ol-przelacznik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .ol-przelacznik .ol-pastylka {
    text-align: center; border-radius: 10px; padding: 13px 4px;
    min-height: 46px; font-size: 13.5px;
  }
  .ol-przelacznik--poziomy { grid-template-columns: 1fr; }
  .ol-przelacznik--poziomy .ol-pastylka { text-align: left; padding: 14px 16px; font-weight: 600; font-size: 14px; }

  /* Treść */
  .ol-tresc { font-size: 16px; line-height: 1.72; }
  .ol-tresc h2 { font-size: 22px; }
  .ol-tresc h3 { font-size: 19px; }
  .ol-szczegol { padding: 14px 16px; }
  .ol-szczegol > summary { font-size: 15px; }
  .ol-szczegol p { font-size: 14.5px; }
  .ol-cytat blockquote { font-size: 17px; }
  .ol-plan > li { font-size: 15px; padding: 14px 16px 14px 54px; }

  /* Stopka */
  .ol-footer { padding: 28px 0 24px; }
  .ol-footer__inner { gap: 24px; }
  .ol-footer__kolumny { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .ol-footer__kol:first-child { grid-column: 1 / -1; }
  .ol-footer p { max-width: none; }
  .ol-footer__dol { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media print {
  .ol-header, .ol-footer, .ol-breadcrumbs, .ol-przelacznik, .ol-pobieranie { display: none; }
  body { background: #fff; font-size: 11pt; }
  .ol-tabela-box { border-color: #999; }
}


/* ---------- Strony zbiorcze taksonomii i huby poziomów ---------- */

.ol-indeks-karta {
  display: flex; flex-direction: column; gap: 7px;
  padding: 20px 22px; text-decoration: none; min-height: 104px;
}
.ol-indeks-karta__nazwa { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--atrament); line-height: 1.25; }
.ol-indeks-karta__lata { font-size: 13px; color: var(--szary); font-family: var(--mono); }
.ol-indeks-karta__opis { font-size: 14px; line-height: 1.55; color: var(--atrament-3); }
.ol-indeks-karta__ile { font-size: 13px; font-weight: 600; color: var(--cynober); margin-top: auto; }

.ol-hub-klasy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ol-hub-klasy--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ol-hub-klasa {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; text-decoration: none; min-height: 88px;
}
.ol-hub-klasa__nazwa { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--atrament); line-height: 1.25; }
.ol-hub-klasa__poziom { font-size: 13px; color: var(--szary); }
.ol-hub-klasa__ile { font-size: 13px; color: var(--cynober); font-weight: 600; margin-top: auto; }

/* ---------- Blog ---------- */

.ol-blog-siatka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ol-blog-karta { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; }
.ol-blog-karta__foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--thead); }
.ol-blog-karta__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.ol-blog-karta__kat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--cynober); }
.ol-blog-karta__tytul { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--atrament); line-height: 1.28; }
.ol-blog-karta__lead { font-size: 14.5px; line-height: 1.55; color: var(--atrament-3); }
.ol-blog-karta__stopka { font-size: 12.5px; color: var(--szary); margin-top: 4px; }

.ol-wpis { max-width: 760px; margin: 0 auto; }
.ol-wpis__naglowek { display: flex; flex-direction: column; gap: 14px; }
.ol-wpis__kat {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--cynober); background: var(--wyroznienie);
  border-radius: 999px; padding: 6px 13px; text-decoration: none;
}
.ol-wpis__foto { width: 100%; border-radius: 14px; display: block; margin: 8px 0; }
.ol-wpis__tresc { font-size: 18px; line-height: 1.78; color: var(--atrament-2); }
.ol-wpis__tresc h2 { font-size: 28px; margin: 1.7em 0 0.5em; }
.ol-wpis__tresc h3 { font-size: 21px; margin: 1.5em 0 0.4em; }
.ol-wpis__tresc ul, .ol-wpis__tresc ol { padding-left: 26px; }
.ol-wpis__tresc li { margin-bottom: 0.5em; }
.ol-wpis__tresc blockquote {
  margin: 1.5em 0; padding: 18px 24px; background: var(--bialy);
  border: 1px solid var(--linia); border-left: 4px solid var(--cynober);
  border-radius: 0 11px 11px 0; font-family: var(--display); font-style: normal; font-size: 19px;
}
.ol-wpis__tresc img { border-radius: 11px; }
.ol-wpis__tresc > *:first-child { margin-top: 0; }
.ol-wpis__stopka {
  border-top: 1px solid var(--linia); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

@media (max-width: 860px) {
  .ol-hub-klasy { grid-template-columns: 1fr 1fr; }
  .ol-blog-siatka { grid-template-columns: 1fr; }
  .ol-wpis__tresc { font-size: 16.5px; line-height: 1.75; }
  .ol-wpis__tresc h2 { font-size: 23px; }
  .ol-wpis__tresc blockquote { font-size: 17px; padding: 15px 18px; }
  .ol-indeks-karta { padding: 16px 18px; min-height: 0; }
  .ol-indeks-karta__nazwa { font-size: 17px; }
}


/* ---------- Treść pełnej szerokości ---------- */

.ol-tresc--szeroka { max-width: none; }
.ol-tresc--sekcje > h2:first-child { margin-top: 0; }

/* Narodowość autora z flagą */
.ol-narodowosc { display: inline-flex; align-items: center; gap: 7px; }
.ol-flaga {
  display: inline-block; border-radius: 2px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(22,32,43,0.18);
}

/* ---------- Plan wydarzeń z podpunktami ---------- */

.ol-plan__pod {
  counter-reset: podpunkt;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ol-plan__pod li {
  counter-increment: podpunkt;
  position: relative;
  padding-left: 32px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--atrament-3);
}
.ol-plan__pod li::before {
  content: counter(podpunkt, lower-alpha) ")";
  position: absolute; left: 0; top: 0;
  width: auto; height: auto; border-radius: 0; background: none; display: inline;
  font-family: var(--mono); font-size: 13px; color: var(--cynober); font-weight: 600;
}
.ol-plan__tekst { display: block; font-weight: 500; }
.ol-plan > li:has(.ol-plan__pod) { padding-bottom: 18px; }

@media (max-width: 860px) {
  .ol-plan__pod li { font-size: 14.5px; padding-left: 28px; }
}

/* Grupa „jedna pozycja do wyboru" na liście lektur */
.ol-tabela tr.ol-grupa td {
  background: var(--thead); font-size: 13px; color: var(--atrament-3);
  padding: 10px 18px; border-bottom: 1px solid var(--linia);
}
.ol-tabela tr.ol-grupa strong { color: var(--atrament); }
