/* =========================================================
   Pewne Punkty — style
   Mobile-first. Kolory w tokenach na :root, tryb ciemny niżej.
   ========================================================= */

/* Fonty zastępcze dopasowane szerokością do Onest/Unbounded,
   żeby tekst nie przeskakiwał, gdy załadują się fonty Google */
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto"); font-weight: 400 500; size-adjust: 103.9%; }
@font-face { font-family: "Onest Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Roboto Bold"); font-weight: 600 800; size-adjust: 100.9%; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Roboto Bold"); font-weight: 600 800; size-adjust: 129.8%; }

:root {
  --blue: #1F4FBF;
  --yellow: #FFE14D;

  --bg: #F4F7FD;
  --grid: rgba(31, 79, 191, .075);
  --surface: #FFFFFF;
  --surface-2: #EDF2FC;
  --text: #172036;
  --muted: #535E78;
  --accent: #1F4FBF;          /* linki, akcenty tekstowe */
  --btn: #1F4FBF;             /* tło głównych przycisków */
  --btn-hover: #1A44A6;
  --btn-ink: #FFFFFF;
  --hl: rgba(255, 225, 77, .9);
  --hl-ink: inherit;
  --border: rgba(23, 32, 54, .09);
  --focus: #1F4FBF;
  --good: #1E8A57;
  --good-bg: #E3F5EC;
  --bad: #B8322F;
  --bad-bg: #FCE9E8;
  --shadow-sm: 0 1px 2px rgba(23, 40, 90, .06), 0 2px 8px rgba(23, 40, 90, .05);
  --shadow: 0 2px 4px rgba(23, 40, 90, .04), 0 10px 30px rgba(31, 79, 191, .09);
  --shadow-lg: 0 6px 12px rgba(23, 40, 90, .06), 0 24px 50px rgba(31, 79, 191, .14);
  --pencil-op: .32;
  --level2-bg: rgba(255, 225, 77, .45);
  --level2-ink: #5C4600;

  --radius: 20px;
  --radius-sm: 14px;
  --font-head: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --font-body: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1524;
    --grid: rgba(150, 180, 255, .065);
    --surface: #171F35;
    --surface-2: #1D2742;
    --text: #E8EDF8;
    --muted: #A9B4CC;
    --accent: #8FB0FF;
    --btn: #3361D6;
    --btn-hover: #4170E3;
    --hl: rgba(255, 225, 77, .4);
    --border: rgba(200, 215, 255, .1);
    --focus: #FFE14D;
    --good: #6FD6A2;
    --good-bg: rgba(60, 190, 130, .16);
    --bad: #FF9B97;
    --bad-bg: rgba(240, 90, 80, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 12px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 6px 12px rgba(0, 0, 0, .25), 0 24px 50px rgba(0, 0, 0, .4);
    --pencil-op: .2;
    --level2-bg: rgba(255, 225, 77, .14);
    --level2-ink: #FFE14D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1524;
  --grid: rgba(150, 180, 255, .065);
  --surface: #171F35;
  --surface-2: #1D2742;
  --text: #E8EDF8;
  --muted: #A9B4CC;
  --accent: #8FB0FF;
  --btn: #3361D6;
  --btn-hover: #4170E3;
  --hl: rgba(255, 225, 77, .4);
  --border: rgba(200, 215, 255, .1);
  --focus: #FFE14D;
  --good: #6FD6A2;
  --good-bg: rgba(60, 190, 130, .16);
  --bad: #FF9B97;
  --bad-bg: rgba(240, 90, 80, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 12px 30px rgba(0, 0, 0, .3);
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, .25), 0 24px 50px rgba(0, 0, 0, .4);
  --pencil-op: .2;
  --level2-bg: rgba(255, 225, 77, .14);
  --level2-ink: #FFE14D;
  color-scheme: dark;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; overflow-x: clip; }
* { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* kartka w kratkę */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
strong { font-weight: 700; }

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

.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: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow); transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); position: relative; }
.wrap--narrow { max-width: 760px; }
.center { text-align: center; display: flex; justify-content: center; }
.icon { width: 24px; height: 24px; flex: none; }
.icon--lg { width: 30px; height: 30px; }

main, .footer { position: relative; z-index: 1; }

/* ---------- Ołówki w tle ---------- */
.pencils {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  contain: strict;
}
.pencil {
  position: absolute; top: 0; left: 0;
  width: 150px; height: 20px;
  opacity: var(--pencil-op);
  will-change: transform;
  transform: translate3d(var(--x, 0), var(--y, -200px), 0) rotate(var(--r, 0deg));
}
.pencil--1 { --x: 4vw;  --y: 18vh; --r: 62deg; --pencil-body: #FFE14D; }
.pencil--2 { --x: 72vw; --y: 46vh; --r: -48deg; --pencil-body: #1F4FBF; }
.pencil--3 { --x: 38vw; --y: 80vh; --r: 118deg; --pencil-body: #F7C948; }
@media (min-width: 768px) {
  .pencil { width: 230px; height: 31px; }
}

/* ---------- Typografia ---------- */
.hero__title, .section__title, .offer__name, .countdown__days, .stat__num, .step__no, .brand__name, .sec-card__no {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section__title {
  font-size: clamp(1.45rem, 5.6vw, 2.35rem);
  text-align: center;
  margin-bottom: 14px;
  text-wrap: balance;
}
.section__lead {
  text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 28px;
}
.scribble {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--accent);
}

/* Animowany zakreślacz */
.hl {
  background-image: linear-gradient(100deg, transparent .6%, var(--hl) 2%, var(--hl) 97%, transparent 98.5%);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 58%;
  padding: 0 .14em;
  margin: 0 -.06em;
  border-radius: .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1s var(--ease) .15s;
}
.js .hl:not(.is-on) { background-size: 0% 58%; }

/* ---------- Przyciski ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(var(--lift)) scale(var(--s, 1));
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), background-color .2s, color .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) { .btn:hover { --lift: -3px; box-shadow: var(--shadow); } }
.btn:active { --lift: 0px; --s: .95; transition-duration: .12s; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.04rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--btn); color: var(--btn-ink); }
@media (hover: hover) { .btn--primary:hover { background: var(--btn-hover); } }
.btn--ghost { background: var(--surface); color: var(--accent); border-color: currentColor; }
@media (hover: hover) { .btn--ghost:hover { background: var(--surface-2); } }
.btn--accent { background: var(--yellow); color: #172036; }
@media (hover: hover) { .btn--accent:hover { background: #FFD91F; } }

.link-btn {
  background: none; border: 0; padding: 8px; margin: 8px auto 0; display: block;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row > .btn { flex: 1 1 100%; }
.cta-row--center { justify-content: center; }
@media (min-width: 480px) { .cta-row > .btn { flex: 0 1 auto; } }

.pay-note {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--muted);
}
.pay-note::before { content: "🔒 "; }
.pay-note.center { display: block; text-align: center; }

/* ---------- Karty ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tilt { transition: transform .5s var(--spring), box-shadow .3s var(--ease); }
@media (hover: hover) { .tilt:hover { transform: translateY(-4px) rotate(-1.1deg); box-shadow: var(--shadow-lg); } }
@media (hover: hover) { .tilt:nth-child(even):hover { transform: translateY(-4px) rotate(1.1deg); } }

.icon-bubble {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--accent);
}

/* ---------- Górny pasek ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; }
/* Pasek na całą szerokość: marka przy lewej krawędzi, przyciski przy prawej */
.topbar .wrap { max-width: none; }
@media (min-width: 768px) {
  .topbar .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; color: var(--text); min-width: 0; }
.brand__mark {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  box-shadow: inset 0 -5px 0 var(--yellow);
}
.brand__name { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; transition: transform .45s var(--spring);
}
@media (hover: hover) { .theme-toggle:hover { transform: rotate(-18deg) scale(1.06); } }
.theme-toggle .icon { width: 20px; height: 20px; }
.icon--sun { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}
.topbar .btn { white-space: nowrap; }
.hide-xs { display: none; }
@media (min-width: 340px) { .hide-xs { display: inline; } }
@media (max-width: 459px) {
  .brand { gap: 7px; }
  .brand__name { white-space: normal; overflow: visible; font-size: .72rem; line-height: 1.12; max-width: 7.5em; letter-spacing: -.03em; }
  .brand__mark { width: 32px; height: 32px; }
  .topbar__actions { gap: 6px; }
  .theme-toggle { width: 44px; height: 44px; }
  .topbar .btn--sm { padding: 8px 12px; min-height: 44px; }
}
@media (min-width: 640px) { .brand__name { font-size: 1rem; } }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 28px; overflow: hidden; }
.hero__inner { display: grid; gap: 36px; align-items: center; }
.pill-label {
  display: inline-block;
  padding: 6px 14px; margin-bottom: 18px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.hero__title {
  font-size: clamp(2rem, 9.4vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero__lead { font-size: 1.06rem; color: var(--muted); margin-bottom: 24px; max-width: 34em; }
.hero__lead strong { color: var(--text); }

/* Wachlarz kartek */
.fan {
  position: relative; margin: 0 auto;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
}
.fan__page {
  position: absolute; left: 50%; top: 4%;
  width: 54%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 35, 80, .12), 0 18px 40px rgba(20, 35, 80, .18);
  transform-origin: 50% 110%;
  transition: transform .6s var(--spring);
}
.fan__page--l { transform: translateX(-50%) translateX(-34%) rotate(-11deg); }
.fan__page--r { transform: translateX(-50%) translateX(34%) rotate(10deg); }
.fan__page--c { transform: translateX(-50%) translateY(-2%) rotate(-1.5deg); z-index: 2; }
@media (hover: hover) { .fan:hover .fan__page--l { transform: translateX(-50%) translateX(-42%) rotate(-15deg); } }
@media (hover: hover) { .fan:hover .fan__page--r { transform: translateX(-50%) translateX(42%) rotate(14deg); } }
@media (hover: hover) { .fan:hover .fan__page--c { transform: translateX(-50%) translateY(-5%) rotate(0deg); } }
.fan__note {
  position: absolute; right: 2%; bottom: 0; z-index: 3;
  transform: rotate(-6deg);
}

@media (min-width: 960px) {
  .hero { padding: 64px 0 40px; }
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .fan { width: 100%; max-width: 480px; }
  .fan__page { width: 58%; }
}

/* ---------- Sekcje ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 24px 0 40px; }
@media (min-width: 768px) { .section { padding: 84px 0; } }

/* Po co płacić */
.reasons { display: grid; gap: 16px; margin-top: 28px; }
.reason { padding: 22px; }
.reason h3, .feature h3, .step h3, .plan h3 { font-size: 1.1rem; font-weight: 700; margin: 12px 0 6px; font-family: var(--font-body); }
.reason p, .feature p, .step p, .plan p { color: var(--muted); }
.punchline {
  margin: 34px auto 22px; max-width: 30em;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.1rem, 4.4vw, 1.5rem); line-height: 1.4; text-align: center;
  text-wrap: balance;
}
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

/* Liczby */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--blue); color: #fff;
  border-radius: var(--radius); padding: 18px 10px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat__num { font-size: clamp(1.6rem, 8vw, 2.6rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .82rem; line-height: 1.25; opacity: .95; }
@media (min-width: 640px) { .stat__label { font-size: 1rem; } .stats { padding: 26px 18px; } }

/* Odliczanie */
.countdown {
  margin-top: 16px; padding: 22px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.countdown__label { color: var(--muted); font-weight: 600; }
.countdown__value { margin: 4px 0 6px; }
.countdown__days { font-size: clamp(2.8rem, 15vw, 4.6rem); line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown__unit { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.countdown__hint { transform: rotate(-1.5deg); }

/* Co w karcie */
.features { display: grid; gap: 14px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.feature h3 { margin-top: 2px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature--wide {
  grid-column: 1 / -1;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.feature--wide p b { color: var(--text); font-weight: 650; }

/* Etykiety poziomów: łatwe · średnie · maturalne */
.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.level {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; line-height: 1.4;
}
.level--1 { background: var(--good-bg); color: var(--good); }
.level--2 { background: var(--level2-bg); color: var(--level2-ink); }
.level--3 { background: var(--surface-2); background: color-mix(in srgb, var(--btn) 16%, transparent); color: var(--accent); }
.levels--sm { margin-top: 8px; gap: 4px; }
.levels--sm .level { font-size: .72rem; padding: 2px 8px; }
.levels .sep { display: none; }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Quiz */
.quiz { padding: 22px 18px; }
@media (min-width: 640px) { .quiz { padding: 32px; } }
.quiz__meta { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.quiz__q { font-size: 1.12rem; font-weight: 500; margin-bottom: 18px; }
.math { font-family: "Cambria Math", "Times New Roman", serif; font-style: italic; white-space: nowrap; font-size: 1.08em; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz__opt {
  min-height: 56px; padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  font-size: 1.1rem; text-align: left; cursor: pointer;
  transition: transform .45s var(--spring), border-color .2s, background-color .2s;
}
.quiz__opt b { color: var(--accent); margin-right: 6px; }
@media (hover: hover) { .quiz__opt:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); } }
.quiz__opt:active:not(:disabled) { transform: scale(.96); }
.quiz__opt:disabled { cursor: default; }
.quiz__opt.is-correct { border-color: var(--good); background: var(--good-bg); }
.quiz__opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.quiz__opt.is-correct::after { content: " ✓"; color: var(--good); font-weight: 700; }
.quiz__opt.is-wrong::after { content: " ✗"; color: var(--bad); font-weight: 700; }
.quiz__result { margin-top: 20px; text-align: center; animation: pop .5s var(--spring); }
.quiz__verdict { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
.quiz__verdict.good { color: var(--good); }
.quiz__verdict.bad { color: var(--bad); }
.quiz__explain { color: var(--muted); text-align: left; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.quiz__nudge { margin: 16px 0 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Oferty */
.offers { display: grid; gap: 20px; margin-top: 30px; align-items: start; }
.offer { padding: 26px 22px; position: relative; }
.offer--best {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--yellow) 22%, transparent), transparent 60%),
    var(--surface);
}
.sticker {
  position: absolute; top: -14px; right: 18px;
  background: var(--yellow); color: #172036;
  font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px;
  transform: rotate(3deg);
  box-shadow: 0 4px 12px rgba(160, 120, 0, .25);
}
.offer__name { font-size: 1.5rem; margin-bottom: 6px; }
.offer__desc { color: var(--muted); margin-bottom: 14px; }
.offer__thumb {
  float: right; width: 84px; margin: 0 0 8px 12px;
  transform: rotate(5deg);
}
.offer__thumb img { border-radius: 6px; box-shadow: var(--shadow); }
.ticks { margin: 0 0 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 7px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 2.8 2.8 6-6.2' fill='none' stroke='%231F4FBF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; clear: both; }
.price__now { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.price__was { color: var(--muted); }
.price__was s { text-decoration-thickness: 2px; text-decoration-color: var(--bad); }
.price--sm .price__now { font-size: 1.8rem; }
.price__tag { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
.save {
  display: inline-block; margin: 10px 0 18px;
  background: var(--yellow); color: #172036;
  font-weight: 700; padding: 4px 12px; border-radius: 10px;
  transform: rotate(-1.5deg);
}
@media (min-width: 860px) {
  .offers { grid-template-columns: 1.1fr .9fr; gap: 28px; }
  .offer { padding: 34px 32px; }
  .offer--best { transform: translateY(-6px); }
}

/* Plany */
.plans { display: grid; gap: 20px; }
.plan { padding: 20px; display: grid; gap: 18px; }
.plan h3 { font-size: 1.2rem; margin-top: 0; }
.plan p { margin-bottom: 14px; }
.plan .price { margin-bottom: 14px; }
.mini-fan {
  position: relative; height: 190px;
  background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden;
}
.mini-fan img {
  position: absolute; top: 18px; left: 50%; width: 46%; max-width: 170px;
  border-radius: 6px; background: #fff;
  box-shadow: 0 2px 6px rgba(20, 35, 80, .12), 0 12px 24px rgba(20, 35, 80, .16);
  transition: transform .6s var(--spring);
}
.mini-fan img:first-child { transform: translateX(-20%) rotate(8deg); }
.mini-fan img:last-child { transform: translateX(-80%) rotate(-5deg); }
@media (hover: hover) { .plan:hover .mini-fan img:first-child { transform: translateX(-12%) rotate(12deg); } }
@media (hover: hover) { .plan:hover .mini-fan img:last-child { transform: translateX(-88%) rotate(-8deg); } }
@media (min-width: 768px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 26px; }
  .mini-fan { height: 220px; }
}

/* Działy */
.filters { display: grid; gap: 14px; margin-bottom: 22px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 999px; padding: 0 18px; min-height: 52px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); }
.search .icon { color: var(--muted); width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; outline: none; font-size: 1rem; }
.search input::placeholder { color: var(--muted); opacity: .85; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: transform .4s var(--spring), background-color .2s, color .2s;
}
@media (hover: hover) { .chip:hover { transform: translateY(-2px); } }
.chip[aria-pressed="true"] { background: var(--btn); color: #fff; border-color: transparent; }
@media (min-width: 860px) {
  .filters { grid-template-columns: minmax(260px, 340px) 1fr; align-items: center; }
  .chips { flex-wrap: wrap; overflow: visible; padding: 0; }
}

.sections-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .sections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sections-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.sec-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sec-card__top { display: flex; align-items: flex-start; gap: 14px; }
.sec-card__no {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--surface-2); color: var(--accent);
  font-size: 1.15rem;
}
/* fallback */ .sec-card:nth-child(3n+1) .sec-card__no { background: #FFF1A6; color: #172036; }
.sec-card:nth-child(3n+1) .sec-card__no { background: color-mix(in srgb, var(--yellow) 55%, var(--surface)); color: #172036; }
.sec-card__name { font-size: 1.06rem; font-weight: 700; line-height: 1.3; font-family: var(--font-body); }
.sec-card__meta { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.sec-card__meta b { color: var(--text); }
.sec-card__actions { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.sec-card__actions .btn { min-height: 44px; padding: 8px 16px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 399px) {
  .sec-card__actions .btn { padding: 8px 12px; font-size: .9rem; }
}
@media (max-width: 359px) {
  .sec-card__actions { grid-template-columns: 1fr; }
  .sec-card { padding: 16px; }
}
.empty { text-align: center; color: var(--muted); padding: 24px 0; }
.upsell {
  margin-top: 26px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: var(--surface-2);
}
@media (min-width: 768px) { .upsell { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Jak to działa */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { padding: 24px 22px; position: relative; }
.step .icon { color: var(--accent); }
.step__no {
  position: absolute; top: 16px; right: 18px;
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--yellow); color: #172036; font-size: 1.05rem;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; font-weight: 700; font-size: 1.04rem;
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--accent); transition: transform .4s var(--spring); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding: 0 20px 20px; color: var(--muted); }

/* Stopka */
.footer {
  margin-top: 40px; padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
}
.footer__inner { display: grid; gap: 18px; }
.brand--footer { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.footer__small { color: var(--muted); font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__nav a { padding: 6px 0; font-weight: 600; }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__copy { grid-column: 1 / -1; }
}

/* Pasek deweloperski (tylko lokalnie, gdy są placeholdery) */
.dev-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  background: #172036; color: #fff; font-size: .85rem;
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.dev-banner button { background: var(--yellow); color: #172036; border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 700; cursor: pointer; }

/* ---------- Ogranicz ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .hl:not(.is-on) { background-size: 100% 58%; }
  .btn:hover, .tilt:hover, .tilt:nth-child(even):hover, .chip:hover, .quiz__opt:hover:not(:disabled), .theme-toggle:hover { transform: none; }
}

/* ---------- Podstrony prawne ---------- */
.legal { padding: 40px 0 20px; }
.legal__doc { padding: 26px 20px; }
@media (min-width: 640px) { .legal__doc { padding: 40px 44px; } }
.legal h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 10px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text); margin-bottom: 10px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.todo {
  background: #FFF1A6;
  background: color-mix(in srgb, var(--yellow) 45%, transparent);
  border-radius: 6px; padding: 0 5px; font-weight: 600;
}
.notice {
  background: var(--surface-2); border-left: 4px solid var(--yellow);
  border-radius: 12px; padding: 14px 16px; margin: 16px 0 8px; color: var(--muted);
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 18px; }

@supports not (aspect-ratio: 1 / 1) {
  .fan { height: min(92vw, 420px); }
}
.search input { -webkit-appearance: none; appearance: none; border-radius: 0; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* Komunikat (np. produkt jeszcze niepodlinkowany) */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  width: max-content; max-width: calc(100vw - 32px);
  background: #172036; color: #fff; padding: 12px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow-lg); font-size: .92rem; text-align: center;
  transition: transform .45s var(--spring), opacity .25s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
