/* learnflik.com — wspólny wygląd wszystkich podstron.
   Kolory wzięte z apki (Flik/DesignSystem/FlikStyle.swift): głęboki granat oceanu,
   turkus jako jedyny akcent UI, kolory poziomów tylko tam, gdzie są treścią, koralowy Okto.
   Czcionka: systemowa zaokrąglona (na iPhonie i Macu to ta sama SF Rounded co w apce).
   Zero zewnętrznych czcionek i skryptów — strona niczego nie pobiera z cudzych serwerów
   (obietnica z polityki prywatności, punkt 9).
   Przegląd 24.09.2026 wg skilli Impeccable, no-ai-design-slop, tastemaker, landing-page-design:
   bez etykiet nad nagłówkami, bez siatek identycznych kafelków, pokazywać zamiast opisywać. */

:root {
  --bg: #0b1622;
  --bg-deep: #07111b;
  --surface: #142233;
  --surface-2: #1d2e43;
  --line: rgba(234, 242, 247, 0.09);
  --line-strong: rgba(234, 242, 247, 0.16);
  --text: #eaf2f7;
  --text-2: #a9bccb;
  --muted: #8298a9;
  --accent: #26d8c9;
  --accent-ink: #03211f;
  --accent-soft: rgba(38, 216, 201, 0.12);
  --good: #3ccf86;
  --bad: #ff6068;

  --lvl-a1: #73d1d9;
  --lvl-a2: #33b3a8;
  --lvl-b1: #3a95d6;
  --lvl-b2: #7a82cf;
  --lvl-c1: #9b7cc4;
  --lvl-c2: #a58fc9;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 16px;
  --max: 1120px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);

  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;

  color-scheme: dark;
  accent-color: var(--accent);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-color: var(--surface-2) var(--bg-deep);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  caret-color: var(--accent);
  background-color: var(--bg);
  /* Ocean z apki (OceanBackgroundView): jedno jaśniejsze światło od powierzchni, głębia w dół. */
  background-image:
    radial-gradient(900px 600px at 8% -10%, rgba(38, 216, 201, 0.11), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(38, 216, 201, 0.32);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-round);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 22, 34, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}
/* Logo z Okto i napisem „flik” (BrandAssets/logo/social-www-2026-09-24, napis rozjaśniony pod ciemne tło). */
.brand img {
  width: auto;
  height: 35px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(234, 242, 247, 0.06);
}
.nav a:active { background: rgba(234, 242, 247, 0.1); }
.nav .nav-optional { display: none; }
@media (min-width: 640px) {
  .nav .nav-optional { display: inline-block; }
}

/* ---------- Przyciski ---------- */

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 16px;
  background: var(--text);
  color: var(--bg);
  line-height: 1.15;
  min-height: 56px;
}
.store-pill svg { width: 26px; height: 26px; flex: none; }
.store-pill small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.72;
}
.store-pill strong {
  display: block;
  font-family: var(--font-round);
  font-size: 1.125rem;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 6px;
  min-height: 44px;
  border-radius: 10px;
}
.text-link:hover { color: var(--accent); }
.text-link:active { transform: translateY(1px); }
.text-link span { transition: transform 0.2s var(--ease-out); }
.text-link:hover span { transform: translateY(2px); }

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 72px;
  /* Odlatująca fiszka wychodzi poza ekran — bez tego telefon dostawał poziomy scroll. */
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 104px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 11em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text-2);
  max-width: 32em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.94rem;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Fiszka (pokaz w hero i trzy ruchy) ---------- */

.demo {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  /* Okto (150 × 129 px) opiera macki o górną krawędź fiszki. */
  padding-top: 112px;
}

.demo-okto {
  position: absolute;
  top: 0;
  left: 50%;
  width: 150px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.demo-stage {
  position: relative;
  z-index: 1;
  height: 300px;
}

.flashcard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 22px;
  background: #0d1a29;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  text-align: center;
  transform-origin: 50% 110%;
  will-change: transform, opacity;
}

.flashcard .pl-small {
  position: absolute;
  top: 22px;
  left: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}
.flashcard .pl-big {
  font-family: var(--font-round);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}
.flashcard .en {
  font-family: var(--font-round);
  font-size: clamp(2.1rem, 8.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.flashcard .sentence {
  font-size: 0.98rem;
  color: var(--text);
  background: rgba(234, 242, 247, 0.05);
  border-radius: 12px;
  padding: 10px 16px;
}
.flashcard .sentence b { color: var(--accent); font-weight: 700; }

.flashcard .is-front,
.flashcard .is-back { display: none; }
.flashcard[data-side="front"] .is-front { display: block; }
.flashcard[data-side="back"] .is-back { display: block; }

.stamp {
  position: absolute;
  top: 58px;
  padding: 6px 12px;
  border: 3px solid currentColor;
  border-radius: 12px;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.18s var(--ease-out);
}
.stamp-know { left: 22px; color: var(--good); transform: rotate(-14deg); }
.stamp-dont { right: 22px; color: var(--bad); transform: rotate(14deg); }
.flashcard[data-stamp="know"] .stamp-know,
.flashcard[data-stamp="dont"] .stamp-dont { opacity: 1; }

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 26px;
}
.demo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.15s var(--ease-out);
}
.demo-btn .circle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out);
}
.demo-btn svg { width: 24px; height: 24px; }
.demo-btn.dont { color: var(--bad); }
.demo-btn.dont .circle { background: rgba(255, 96, 104, 0.12); border-color: rgba(255, 96, 104, 0.4); }
.demo-btn.know { color: var(--good); }
.demo-btn.know .circle { background: rgba(60, 207, 134, 0.12); border-color: rgba(60, 207, 134, 0.4); }
.demo-btn.pressed .circle { transform: scale(0.9); }
.demo-btn.know.pressed .circle { background: rgba(60, 207, 134, 0.26); }
.demo-btn.dont.pressed .circle { background: rgba(255, 96, 104, 0.26); }
.demo-actions[data-hidden="true"] .demo-btn { opacity: 0; }

/* ---------- Sekcje ---------- */

.section {
  padding: 72px 0;
}
.section-tight { padding-top: 0; }
@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .section-tight { padding-top: 0; }
}

.section-head {
  max-width: 38em;
  margin-bottom: 40px;
}
/* Nagłówek sekcji: ~60% wielkości nagłówka hero, żeby hero zostało jedynym krzykiem. */
.section h2 {
  font-size: clamp(1.875rem, 4.4vw, 2.5rem);
  font-weight: 800;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 1.0625rem;
}
.section-head a { font-weight: 600; }

.note {
  margin-top: 32px;
  max-width: 38em;
  color: var(--text-2);
}

/* Trzy ruchy: te same fiszki co w apce, w trzech stanach, bez ramek dookoła. */
.moves {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 820px) {
  .moves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
.move h3 {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 700;
}
.move p {
  margin-top: 6px;
  color: var(--text-2);
}
.flashcard.mini {
  position: relative;
  inset: auto;
  height: 176px;
  padding: 22px 18px;
  gap: 12px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}
@media (min-width: 820px) {
  .flashcard.mini { height: 220px; }
}
.flashcard.mini .pl-big { font-size: 2.1rem; }
.flashcard.mini .en { font-size: 2.2rem; }
.flashcard.mini .sentence { font-size: 0.92rem; padding: 8px 14px; }
.flashcard.mini .pl-small { top: 18px; left: 18px; }
/* Jak w apce: pieczątka ląduje na polskim podpisie w rogu, nie na odpowiedzi. */
.flashcard.mini .stamp { top: 12px; left: 12px; font-size: 0.95rem; }
/* Jedyny celowo „krzywy” element sekcji: trzecia karta już odlatuje w prawo. */
.move-swiped .flashcard.mini {
  transform: rotate(3deg);
  transform-origin: 50% 110%;
}
@media (min-width: 820px) {
  .move-swiped .flashcard.mini { transform: translateX(14px) rotate(4deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .move-swiped .flashcard.mini { transition: transform 0.5s var(--ease-fluid); }
  .move-swiped:hover .flashcard.mini { transform: translateX(26px) rotate(7deg); }
}

/* Terminarz powtórek: prawdziwe odstępy z Flik/Models/SRS.swift (1, 3, 7, 21, 60, 180 dni),
   rozstawione logarytmicznie — rosnące przerwy widać, zanim przeczyta się podpisy. */
.schedule {
  margin: 0;
  padding: 36px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.track {
  position: relative;
  height: 480px;
  margin: 0 0 0 8px;
  padding: 0;
  list-style: none;
}
.track::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(38, 216, 201, 0.15));
  border-radius: 2px;
}
.track li {
  position: absolute;
  left: 0;
  top: calc(var(--p) * (100% - 16px));
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 30px;
  white-space: nowrap;
}
.track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.track li:first-child::before { background: var(--accent); }
.track .when {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.05rem;
}
.track .what { color: var(--muted); font-size: 0.94rem; }
.schedule figcaption {
  margin-top: 28px;
  color: var(--text-2);
  max-width: 44em;
}
@media (min-width: 980px) {
  .schedule { padding: 44px 48px 36px; }
  .track {
    height: 96px;
    margin: 0 88px 0 8px;
  }
  .track::before {
    left: 8px;
    right: 8px;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(38, 216, 201, 0.15));
  }
  .track li {
    top: 0;
    left: calc(var(--p) * (100% - 16px));
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 34px 0 0;
  }
  .track li::before { top: 0; }
}

/* Poziomy: długość paska = liczba słówek (dane z Flik/Data/seed_words.json na main). */
.levels-layout {
  display: grid;
  gap: 8px;
}
@media (min-width: 980px) {
  .levels-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
  .levels-layout .section-head { margin-bottom: 0; }
}
.level-chart { margin: 0; }
.level-chart ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.level-chart li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "lvl name count"
    "lvl bar  bar";
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
}
.lvl {
  grid-area: lvl;
  justify-self: start;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--bg);
}
.lvl-a1 { background: var(--lvl-a1); }
.lvl-a2 { background: var(--lvl-a2); }
.lvl-b1 { background: var(--lvl-b1); }
.lvl-b2 { background: var(--lvl-b2); }
.lvl-c1 { background: var(--lvl-c1); }
.lvl-c2 { background: var(--lvl-c2); }
.lvl-name { grid-area: name; font-weight: 600; }
.count {
  grid-area: count;
  font-family: var(--font-round);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.count small { font-weight: 500; color: var(--muted); font-size: 0.8em; }
.bar {
  grid-area: bar;
  height: 8px;
  border-radius: 4px;
  background: rgba(234, 242, 247, 0.06);
  position: relative;
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--n) / 1879 * 100%);
  border-radius: 4px;
  background: currentColor;
}
.level-chart li:nth-child(1) .bar { color: var(--lvl-a1); }
.level-chart li:nth-child(2) .bar { color: var(--lvl-a2); }
.level-chart li:nth-child(3) .bar { color: var(--lvl-b1); }
.level-chart li:nth-child(4) .bar { color: var(--lvl-b2); }
.level-chart li:nth-child(5) .bar { color: var(--lvl-c1); }
.level-chart li:nth-child(6) .bar { color: var(--lvl-c2); }

/* Zrzuty z apki: na telefonie przewijane w bok, na komputerze cztery obok siebie. */
.screens-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.screens-scroller::-webkit-scrollbar { display: none; }
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 260px);
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter) 8px;
  list-style: none;
}
@media (min-width: 1000px) {
  .screens-scroller { overflow: visible; }
  .screens {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 28px;
  }
}
.screens li { scroll-snap-align: start; }
.screens img {
  width: 100%;
  border-radius: 13.5% / 6.2%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  background: var(--surface);
}
.screens p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.97rem;
}
.screens strong { color: var(--text); }

/* Prywatność: jedyny pas z Okto w środku strony. */
.band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
@media (min-width: 820px) {
  .band { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; padding: 48px; }
}
.band img { width: 132px; margin: 0 auto; }
@media (min-width: 820px) {
  .band img { width: 168px; }
}
.band h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.band > div > p { margin-top: 12px; color: var(--text-2); font-size: 1.0625rem; }
.band .more {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 24px;
  min-height: 44px;
  font-weight: 600;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .band .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2326d8c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Cena: dwie kolumny, porównanie „za darmo / Premium”, bez kwot (ceny ustawia App Store). */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
.plan {
  padding: 28px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.plan h3 { font-size: 1.375rem; font-weight: 800; }
.plan .checks { margin-top: 18px; }
.plan-premium {
  background: var(--surface);
  border-color: rgba(38, 216, 201, 0.35);
}
.plan-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.97rem;
}

/* Pytania: nagłówek po lewej, odpowiedzi po prawej na szerokim ekranie. */
.faq-layout {
  display: grid;
  gap: 8px;
}
@media (min-width: 980px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
}

/* Zakończenie */
.finale {
  text-align: center;
  padding: 56px 0 96px;
}
.finale img { width: 168px; margin: 0 auto 24px; }
.finale h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.finale .cta-row { justify-content: center; margin-top: 28px; }
.finale p { margin: 24px auto 0; color: var(--text-2); max-width: 32em; }

/* ---------- Stopka ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.94rem;
}
.site-footer .wrap {
  display: grid;
  gap: 18px;
}
@media (min-width: 800px) {
  .site-footer .wrap {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .footer-links { justify-content: flex-end; }
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  display: inline-block;
  padding: 10px 0;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footnote {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Dokumenty (prywatność, pomoc) ---------- */

.doc {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 96px;
}
.doc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.doc-head img { width: 96px; flex: none; }
.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
}
.doc .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.doc h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 48px;
  scroll-margin-top: 84px;
}
.doc h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 24px;
}
.doc p,
.doc ul,
.doc ol { margin-top: 12px; color: var(--text-2); max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); }

.summary {
  padding: 22px 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(38, 216, 201, 0.24);
  border-radius: var(--radius);
}
.summary h2 { margin-top: 0; font-size: 1.125rem; }
.summary ul { color: var(--text); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 0.95rem;
}

/* Pytania i odpowiedzi (strona główna i pomoc) */
.faq { margin-top: 20px; }
.faq-layout .faq { margin-top: 0; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease-out);
}
.faq details + details { margin-top: 10px; }
.faq details:hover { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  position: relative;
  font-weight: 600;
  color: var(--text);
  min-height: 44px;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; }
.faq details > div > p:first-child,
.faq details > div > ol:first-child { margin-top: 0; }
.faq details p { color: var(--text-2); }

.contact-card {
  display: grid;
  gap: 6px;
  padding: 24px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card .mail {
  font-family: var(--font-round);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 700;
  word-break: break-word;
}
.contact-card p { margin-top: 0; }

/* 404 */
.notfound {
  text-align: center;
  padding: 96px 0 120px;
}
.notfound img { width: 160px; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { margin-top: 12px; color: var(--text-2); }

/* Wartości w CSS, nie w style="": CSP (style-src 'self' w _headers) blokuje atrybuty style,
   więc na żywej stronie wszystkie punkty terminarza lądowały w jednym miejscu (24.09.2026). */
.track li:nth-child(1) { --p: 0; }
.track li:nth-child(2) { --p: 0.1235; }
.track li:nth-child(3) { --p: 0.2869; }
.track li:nth-child(4) { --p: 0.4428; }
.track li:nth-child(5) { --p: 0.6225; }
.track li:nth-child(6) { --p: 0.8084; }
.track li:nth-child(7) { --p: 1; }
.level-chart li:nth-child(1) { --n: 890; }
.level-chart li:nth-child(2) { --n: 1004; }
.level-chart li:nth-child(3) { --n: 1879; }
.level-chart li:nth-child(4) { --n: 1807; }
.level-chart li:nth-child(5) { --n: 1235; }
.level-chart li:nth-child(6) { --n: 944; }
