/* =========================================================
   karolswierczewski.pl — style (wersja futurystyczna, jasna)
   Paleta: biel, jasne szarości, niebieski
   Kierunek: panel sterowania / HUD na białym tle —
   jasnoniebieskie pierścienie radaru, niebieskawe napisy,
   rozciągnięty krój nagłówków, ścięte narożniki przycisków.
   ========================================================= */

:root {
  /* zaokrąglenia: jeden system dla całej strony */
  --r-lg: 10px;   /* panele, karty, guziki wyboru */
  --r-md: 6px;    /* pola dni, tabela */
  --r-btn: 8px;   /* przyciski, pola formularza */
  --r-tag: 4px;   /* plakietki */
  --r-pill: 999px;

  /* tła */
  --white: #ffffff;
  --page: #e9ecf2;          /* tło całej strony — minimalnie ciemniejsze (autor), wcześniej #f4f4f4 */
  --mist: #e9ecf2;
  --sky: #e1e9fb;           /* bardzo jasny niebieski: panele, pola */
  --sky-deep: #cddcf8;

  /* napisy: lekko niebieskie */
  --heading: #1a3278;       /* nagłówki (10:1 na tle) */
  --ink: #26375f;           /* tekst główny (9.9:1) */
  --muted: #4a5d86;         /* tekst drugorzędny (5.5:1 na tle) */

  /* niebieski */
  --action: #1f54d4;        /* przyciski i linki (6.4:1 z białym) */
  --action-hover: #1a46b4;
  --electric: #3b7bff;      /* ozdoby, poświata */

  /* linie */
  --line: #d1dae9;          /* obramowania ozdobne */
  --line-blue: #b8caee;     /* obramowania paneli */
  --line-strong: #8a9ab8;   /* obramowania pól (kontrast 3:1) */
  --ring: rgba(59, 123, 255, .16);

  /* typografia */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  --fs-h1: clamp(2.2rem, .9rem + 3.7vw, 4.2rem);

  /* układ */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  /* lekka winieta: krawędzie ekranu minimalnie ciemniejsze */
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(20, 30, 60, .10) 100%) fixed,
    var(--page);
  -webkit-font-smoothing: antialiased;
}

/* lekki ambient w tle: kilka rozmytych, bladoniebieskich plam pod całą stroną
   (stała warstwa pod treścią, nie osobny kafelek); bardzo wolno dryfuje */
body::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 18% 22%, rgba(59, 123, 255, .28), transparent 70%),
    radial-gradient(38% 34% at 84% 30%, rgba(120, 150, 255, .23), transparent 70%),
    radial-gradient(46% 40% at 62% 88%, rgba(59, 160, 255, .20), transparent 70%),
    /* drugi kolor: delikatne ciepłe plamy, żeby strona nie była blada */
    radial-gradient(30% 26% at 92% 70%, rgba(255, 140, 60, .13), transparent 70%),
    radial-gradient(26% 22% at 6% 92%, rgba(255, 160, 90, .10), transparent 70%);
  /* bez filter: blur — gradienty są już miękkie, a rozmywanie animowanej warstwy
     większej niż ekran kosztowało kartę graficzną co klatkę (przycięcia) */
  will-change: transform;
  animation: ambient-drift 40s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -2%, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* bez display:block — html2canvas mierzy linię bazową tekstu obrazkiem wstawionym
   w <body>; blokowy img przesuwa w PDF cały tekst w dół względem tła plakietek */
img { max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.25; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--btn);
  color: var(--white);
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 840px; }

/* atrybut hidden ma wygrywać z display z klas (np. .btn) — puste przyciski kontaktu */
[hidden] { display: none !important; }

/* tekst tylko dla czytników ekranu */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- przyciski: zaokrąglone ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font: inherit;
  font-weight: 650;
  font-size: .9375rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.btn-primary {
  background: var(--btn);
  color: var(--white);
}
.btn-primary:hover { background: var(--btn-hover); }

.btn-light { background: var(--surface); color: var(--action-hover); }
.btn-light:hover { background: var(--sky); }

.btn-ghost,
.btn-outline {
  background: transparent;
  border-color: var(--action);
  color: var(--action-hover);
}
.btn-ghost:hover,
.btn-outline:hover { background: var(--sky); }

/* biały przycisk z delikatną poświatą i cieniem */
.btn-white {
  background: var(--surface);
  border-color: #c3d4f5;
  color: var(--heading);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px -12px rgba(37, 99, 235, .35);
}
.btn-white:hover {
  border-color: var(--action);
  color: var(--action);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 30px -12px rgba(37, 99, 235, .45);
}

.btn-small { min-height: 40px; padding: 8px 20px; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- nagłówek: jasne szkło ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* minimalnie przezroczysty: treść i ambient lekko prześwitują przez rozmycie */
  background:
    radial-gradient(60% 140% at 12% 0%, rgba(59, 123, 255, .18), transparent 70%),
    radial-gradient(50% 140% at 88% 100%, rgba(120, 150, 255, .15), transparent 70%),
    rgba(219, 224, 234, .85);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(195, 212, 245, .7);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.logo-mark i {
  width: 4px;
  background: var(--electric);
  border-radius: 2px;
}
.logo-mark i:nth-child(1) { height: 45%; }
.logo-mark i:nth-child(2) { height: 100%; }
.logo-mark i:nth-child(3) { height: 70%; opacity: .5; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--heading); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--electric);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--heading);
  font: inherit;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
}

.lead {
  margin-top: 26px;
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- panel rozpiski: HUD ---------- */

.split {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.split-tag {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--action-hover);
  border: 1px solid var(--line-blue);
  background: var(--sky);
  border-radius: var(--r-tag);
  padding: 3px 8px;
}

/* ---------- sekcje ---------- */

.section { padding-block: var(--section); }
.section-gray { background: transparent; } /* ambient z body ma prześwitywać */

.section-lead {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- kreator: pierwszy ekran z jednym przyciskiem ---------- */

/* każdy krok stoi na środku ekranu, tam gdzie był przycisk startowy;
   wyższe kroki (np. gotowy plan) zaczynają się od góry. W obrębie kroku nic
   nie zmienia wysokości (warianty leżą jeden na drugim), więc nic nie skacze. */
.stage {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(40px, 7vh, 80px);
}
.stage-inner { width: 100%; }
.wizard { max-width: 980px; margin-inline: auto; }
.wizard:has(.step-wynik) { max-width: 1180px; }   /* plan tygodniowy potrzebuje więcej miejsca */

.step-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vh, 40px);
}
/* krótkie „Jak to działa?” nad przyciskiem startowym */
.how {
  max-width: 40rem;
  text-align: center;
}
.how-title {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  margin-bottom: 12px;
}
.how-text {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.btn-launch {
  min-height: 72px;
  max-width: 100%;
  padding: 20px 52px;
  font-size: 1.25rem;
}
@media (min-width: 900px) {
  .btn-launch { min-height: 84px; padding: 24px 64px; font-size: 1.4rem; }
}

.step-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--action-hover);
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
}
.btn-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.btn-back:hover { color: var(--heading); }
.crumbs {
  color: var(--muted);
  font-size: var(--fs-small);
}
.step-q {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}
.split + .step-q,
.split-stack + .step-q { margin-top: 44px; }
.step-q:focus,
.split-name:focus { outline: 0; }
.step-end { margin-top: 32px; }

/* warianty planu leżą w jednym miejscu jeden na drugim:
   wysokość = najwyższy wariant, więc nic nie skacze */
.split-stack { display: grid; }
.split-stack > .split { grid-area: 1 / 1; }
.split.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .step { animation: step-in .6s cubic-bezier(.2,.7,.2,1) both; }
  .step.is-leaving { animation: step-out .3s ease-in both; }
  @keyframes step-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes step-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-8px); }
  }
  .split-stack > .split { transition: opacity .45s ease, visibility .45s; }
  .split .cell {
    animation: cell-in .45s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(.15s + var(--i, 0) * 55ms);
  }
  @keyframes cell-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* rozpiska tygodnia */
.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.split-name {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
}
.split-week {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 82px;
  padding: 12px 10px 10px;
  border: 1px solid #9db8f0;
  border-radius: var(--r-md);
  background: var(--sky);
  box-shadow: inset 0 2px 0 var(--action);
}
.cd {
  font-size: .8125rem;
  color: var(--muted);
}
.cw {
  color: var(--heading);
  font-weight: 700;
  font-size: clamp(.8125rem, .55rem + .55vw, 1rem);
  letter-spacing: -.01em;
}
.cell.is-rest {
  border-style: dashed;
  border-color: #c4cfe3;
  background: var(--surface);
  box-shadow: none;
}
.cell.is-rest .cw { font-weight: 400; color: var(--muted); }
.split-cap {
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}
.split-cap + .split-week { margin-top: 0; }
.split-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.55;
  max-width: 90ch;
}
.split-desc {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 72ch;
}

/* guziki wyboru: białe, zaokrąglone */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tiles-text { grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 14px 12px;
  background: var(--surface);
  border: 1.5px solid var(--line-blue);
  border-radius: var(--r-lg);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .25s, border-color .25s, background-color .25s;
}
.tile-n {
  color: var(--heading);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -.02em;
  transition: color .25s;
}
.tiles-text .tile { min-height: 80px; }
.tiles-text .tile-n { font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; }
.tile-l {
  font-size: var(--fs-small);
  color: var(--muted);
}
.tile:hover {
  border-color: var(--action);
}
.tile:hover .tile-n { color: var(--action); }
.tile:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
/* wybrany wariant */
.tile[aria-pressed="true"] {
  border-color: var(--action);
  background: var(--sky);
  box-shadow: inset 0 0 0 1px var(--action);
}
.tile[aria-pressed="true"] .tile-n { color: var(--action); }

/* ---------- kreator: przycisk „Dalej” ---------- */

.step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}
.pick-count {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
}
.btn-next { min-width: 180px; min-height: 54px; font-size: 1rem; }
/* „Nie chcę tego ćwiczyć” obok „Dalej” — spokojniejszy, żeby nie konkurował z głównym przyciskiem */
.btn-skip {
  min-height: 54px;
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.btn-skip:hover { border-color: var(--action); color: var(--action-hover); background: var(--surface); }
.btn:disabled,
.btn[disabled] {
  background: #c9d3e6;
  color: var(--white);
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------- intro: płynnie pojawiający się napis ---------- */

.step-intro { text-align: center; }
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: clamp(24px, 10vh, 120px);
}
.intro-text {
  max-width: 24ch;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.25;
  text-wrap: balance;
}
.intro-text:focus { outline: 0; }
.btn-ok { min-width: 160px; min-height: 60px; font-size: 1.125rem; }

@media (prefers-reduced-motion: no-preference) {
  .intro-text .word {
    display: inline-block;
    animation: word-in .6s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--w) * 90ms + 200ms);
  }
  @keyframes word-in {
    from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }
  .btn-ok { animation: ok-in .6s cubic-bezier(.2,.7,.2,1) var(--d, 1.5s) both; }
  @keyframes ok-in {
    from { opacity: 0; transform: translateY(8px) scale(.96); visibility: hidden; }
    to   { opacity: 1; transform: none; visibility: visible; }
  }
}

/* ---------- budowanie planu: napisy → checkmark → „Twój plan jest gotowy!” ---------- */

.step-budowanie { display: flex; justify-content: center; }
.build {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 320px;
  text-align: center;
}
.build-mark { position: relative; width: 112px; height: 112px; }
.build-mark svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.ring-bg, .ring-fg { fill: none; stroke-width: 6; }
.ring-bg { stroke: var(--sky-deep); }
.ring-fg {
  stroke: var(--action);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);          /* pierścień zaczyna się u góry */
  transform-origin: 50% 50%;
}
.ring-fill { fill: var(--action); transform: scale(0); transform-origin: 50% 50%; }
.ring-check {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.build.is-done .ring-fill { transform: scale(1); }
.build.is-done .ring-check { stroke-dashoffset: 0; }

/* napis i „gotowy” leżą w tym samym miejscu — nic nie skacze */
.build-text { display: grid; place-items: center; min-height: 3.5rem; }
.build-text > * { grid-area: 1 / 1; }
.build-status { color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.build-done {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
}
.build-done:focus { outline: 0; }
.build.is-done .build-status { opacity: 0; visibility: hidden; }
.build.is-done .build-done { opacity: 1; visibility: visible; }

/* iskry wylatujące spod kółka */
.build-burst { position: absolute; inset: 0; pointer-events: none; }
.build-burst i {
  --d: -96px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--electric);
  opacity: 0;
}
.build-burst i:nth-child(odd) { --d: -80px; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--btn); }
/* fala rozchodząca się od kółka */
.build-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--action);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ring-fg {
    stroke-dashoffset: 100;
    animation: ring-load var(--t, 3s) cubic-bezier(.45, .05, .35, 1) forwards;
  }
  @keyframes ring-load { to { stroke-dashoffset: 0; } }

  .build-status.is-in { animation: status-in .35s cubic-bezier(.2, .7, .2, 1) both; }
  .build-status.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s; }
  @keyframes status-in { from { opacity: 0; transform: translateY(8px); } }

  .build.is-done .build-status { transition: opacity .2s, visibility .2s; }
  .build.is-done .ring-fill { animation: fill-pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes fill-pop { from { transform: scale(.4); } }
  .build.is-done .ring-check { transition: stroke-dashoffset .4s cubic-bezier(.65, 0, .35, 1) .22s; }
  .build.is-done .build-mark::after { animation: pulse .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
  @keyframes pulse {
    from { opacity: .45; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.7); }
  }
  .build.is-done .build-burst i { animation: burst .75s cubic-bezier(.2, .7, .2, 1) .12s both; }
  @keyframes burst {
    0%   { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.6); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateY(var(--d)) scale(.3); }
  }
  .build.is-done .build-done { animation: done-in .55s cubic-bezier(.2, .7, .2, 1) .35s both; }
  @keyframes done-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
}

@media (max-width: 640px) {
  .build-mark { width: 96px; height: 96px; }
}

/* ---------- wybór ćwiczeń dla partii ---------- */

.progress {
  height: 4px;
  margin-bottom: 28px;
  border-radius: 2px;
  background: var(--sky-deep);
  overflow: hidden;
}
.progress span {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--btn);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.step-sub {
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: var(--fs-small);
}
/* zalecenie przy wyborze ćwiczeń (wszystkie plany oprócz FBW ×1) */
.step-tip {
  margin: -12px 0 24px;
  padding: 10px 14px;
  border-left: 3px solid var(--action);
  border-radius: var(--r-tag);
  background: var(--sky);
  color: var(--heading);
  font-size: var(--fs-small);
  font-weight: 600;
}
/* kafelek ćwiczenia: nazwa | kółko wyboru */
.tiles.tiles-ex { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tile.tile-ex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  text-align: left;
}
.tile-ex .tile-n {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

/* limit osiągnięty: pozostałe ćwiczenia wyszarzone */
.tile:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.tile:disabled:hover { border-color: var(--line-blue); box-shadow: none; }
.tile:disabled:hover .tile-n { color: var(--heading); }

/* kółko z ptaszkiem: puste → wypełnione po wyborze */
.tile-check {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-blue);
  border-radius: 50%;
  background: var(--surface);
  transition: background-color .2s, border-color .2s;
}
.tile-ex[aria-pressed="true"] .tile-check {
  border-color: var(--action);
  background:
    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='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--action);
}

/* ---------- wynik: plan na cały tydzień ---------- */

.result { max-width: 100%; }
.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--heading);
}
.sheet-brand {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
}
.sheet-title {
  margin-top: 2px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}
.sheet-title:focus { outline: 0; }
.sheet-meta {
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}
.sheet-cap {
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}
/* siedem dni obok siebie; linie między dniami robi tło siatki */
.wk {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.wd {
  min-width: 0;
  padding: 12px 10px 14px;
  background: var(--surface);
}
.wd.is-rest { background: #f5f6f8; }
.wd-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
  font-size: .875rem;
  letter-spacing: 0;
}
.wd-day { color: var(--heading); font-weight: 700; }
.wd-type {
  padding: 1px 6px;
  border-radius: var(--r-tag);
  background: var(--sky);
  color: var(--action-hover);
  font-size: .75rem;
  font-weight: 600;
}
.wd ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cw;
}
.wd li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 2px;
  counter-increment: cw;
}
.wd li::before {
  content: counter(cw) ".";
  grid-row: span 2;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
}
.wd .ex {
  color: var(--heading);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.wd .mu { color: var(--muted); font-size: .75rem; }
.wd .sets { color: var(--ink); font-weight: 600; white-space: nowrap; }
.wd-rest { color: var(--muted); font-size: .8125rem; }
.sheet-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.55;
  max-width: 90ch;
}
.sheet-info {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #f5f6f8;
}
.sheet-info h3 { margin-bottom: 6px; font-size: .875rem; letter-spacing: 0; }
.sheet-info p { color: var(--ink); font-size: .875rem; line-height: 1.6; max-width: 100ch; }
.sheet-info .sheet-vol { margin-bottom: 8px; }
.sheet-vol strong { color: var(--heading); font-weight: 700; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* wersja do PDF: A4 w poziomie, zawsze 7 kolumn */
.pdf-box {
  position: fixed;
  top: 0;
  left: -12000px;
  width: 1400px;
  background: #fff;
}
.sheet.sheet--pdf {
  width: 1400px;
  border: 0;
  border-radius: 0;
  padding: 36px 40px 32px;
}
.sheet--pdf .wk { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.sheet--pdf .wd { padding: 12px 10px 14px !important; }
.sheet--pdf .sheet-title { font-size: 28px !important; }
.sheet--pdf .wd ol { gap: 6px; }
.sheet--pdf .wd .ex { font-size: 13px; line-height: 1.3; }
.sheet--pdf .wd .mu { font-size: 11px; }

/* formularz e-mail: wyraźny panel pod planem (plan jest za darmo bez maila — to zaproszenie) */
.mail {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 28px);
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
}
.mail-label {
  display: block;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.mail-sub {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: .9375rem;
}
.mail-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.mail-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--action);
  cursor: pointer;
}
.mail-note a { color: var(--action); }
.mail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mail-row input {
  flex: 1 1 240px;
  min-height: 50px;
  padding: 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.mail-row input:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-color: var(--action); }
.mail-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: .875rem;
}
.mail-status { margin-top: 10px; font-size: .9375rem; font-weight: 600; }
.mail-status:empty { display: none; }
.mail-status.is-error { color: #b42318; }
.mail-status.is-ok { color: #067647; }

@media (max-width: 900px) {
  .wk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sheet { padding: 20px 16px 18px; }
  .wk { grid-template-columns: 1fr; }
  .wd.is-rest { display: flex; justify-content: space-between; align-items: center; padding: 10px; }
  .wd.is-rest .wd-head { margin: 0; }
  .result-actions .btn,
  .mail-row .btn { width: 100%; }
}

/* ---------- na czym to polega ---------- */

.about {
  padding-block: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.about-inner { max-width: 760px; }
.about h2 { margin-bottom: 32px; text-wrap: balance; }
.about p {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.75;
}
.about p + p { margin-top: 24px; }
.about .btn { margin-top: 40px; }

/* ---------- pakiety ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan h3,
.plan-name {
  font-size: 1.4rem;
}
.plan p { color: var(--muted); }
.price {
  font-size: var(--fs-small);
  color: var(--muted);
}
.plan .price span {
  color: var(--heading);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.price small { font-size: var(--fs-small); }

.plan-featured {
  border-color: var(--action);
  box-shadow: inset 0 0 0 1px var(--action);
}
.plan-featured .price span { color: var(--action); }
.plan-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  transform: translateY(-50%);
  font-size: .75rem;
  font-weight: 650;
  background: var(--btn);
  color: var(--white) !important;
  border-radius: var(--r-tag);
  padding: 4px 10px;
}
.plan-for { min-height: 3.2em; }
/* duża oferta (Plan indywidualny): okładka po lewej, treść po prawej */
.plan-wide {
  display: grid;
  grid-template-columns: minmax(300px, 540px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 3vw, 36px);
}
.plan-wide .plan-cover { margin: 0; }
.plan-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 480px;
}
.plan-wide .plan-name { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.plan-wide .price span { font-size: clamp(2.8rem, 2.2rem + 1.6vw, 3.6rem); }
.plan.plan-wide .plan-desc {
  flex: none;
  margin: 2px 0 10px;
  font-size: var(--fs-body);
}
.plan-wide .btn { min-width: 240px; }
/* ---------- okładka jako gruba płytka 3D ----------
   Autor: „3D” = okładka ma wyglądać na POGRUBIONĄ (jak kafel), NIE jako dwie
   przesunięte warstwy, NIGDY pod kątem, bez połysku na licu i BEZ ruchu po najechaniu
   myszką (autor: „karta się rusza po najechaniu” — usunięte: przechył i uniesienie).
   Grubość: dolna krawędź z ułożonych cieni po 1 px, ciemniej ku dołowi. */
.cover-3d {
  position: relative;
  padding-bottom: 12px; /* miejsce na grubość krawędzi */
}
.cover-card {
  position: relative;
  border-radius: 4.2% / 3.4%;
  overflow: hidden;
  --edge:
    0 1px 0 #6f95ea, 0 2px 0 #648ce4, 0 3px 0 #5a83dd, 0 4px 0 #517bd6,
    0 5px 0 #4974cf, 0 6px 0 #426cc8, 0 7px 0 #3c66c1, 0 8px 0 #3760ba,
    0 9px 0 #335ab3, 0 10px 0 #2f55ac, 0 11px 0 #2c50a6, 0 12px 0 #29499c;
  --drop:
    0 18px 8px -6px rgba(30, 58, 138, .20),
    0 44px 64px -26px rgba(30, 58, 138, .45);
  box-shadow: var(--edge), var(--drop);
}
.cover-card .plan-cover { box-shadow: none; margin: 0; border-radius: 0; }

/* okładka 02 (Prowadzenie online, fioletowa): krawędź i cień w odcieniach indygo */
.cover-violet .cover-card {
  --edge:
    0 1px 0 #8c7ff0, 0 2px 0 #8073e8, 0 3px 0 #7568df, 0 4px 0 #6a5dd5,
    0 5px 0 #5f53ca, 0 6px 0 #5549bf, 0 7px 0 #4b40b3, 0 8px 0 #4237a7,
    0 9px 0 #3a2f9b, 0 10px 0 #33298f, 0 11px 0 #2d2384, 0 12px 0 #271e78;
  --drop:
    0 18px 8px -6px rgba(43, 33, 131, .22),
    0 44px 64px -26px rgba(43, 33, 131, .45);
}
/* ---------- „Zostań ekspertem” (high ticket) — karta na Ofercie ----------
   Na dole, trochę niżej niż pozostałe. Tylko nazwa, krótki opis i „Dowiedz się więcej”,
   który otwiera podstronę ekspert.html (tam opis krok po kroku i cena dopiero na końcu). */
.plan-expert {
  margin-top: clamp(32px, 6vw, 88px);
  padding: clamp(28px, 4vw, 56px);
}
.expert-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
}
.plan .expert-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--action);
}
.plan-expert .plan-name { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.plan.plan-expert .plan-for { min-height: 0; color: var(--ink); font-size: var(--fs-body); }
.expert-toggle { margin-top: 8px; min-width: 240px; }

/* ramka z ceną (używana na ekspert.html) */
.expert-offer {
  margin-top: 36px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--sky);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
}
.expert-offer .btn { min-width: 240px; }
@media (max-width: 960px) {
  .plan-expert { max-width: 540px; }
  .expert-toggle, .expert-offer .btn { width: 100%; min-width: 0; }
}
/* pakiety jeden pod drugim */
.plans-stack { display: grid; gap: clamp(28px, 4vw, 48px); }

/* wejście dużej oferty przy otwarciu strony: karta wjeżdża, okładka prosto wyłania się
   z rozmycia (bez obrotu), a po prawej po kolei nazwa, cena, opis, przycisk */
@media (prefers-reduced-motion: no-preference) {
  .plan-hero { animation: offer-in .8s cubic-bezier(.2,.7,.2,1) backwards; }
  .plan-hero .cover-card {
    animation: cover-in 1s cubic-bezier(.16,.8,.24,1) .15s backwards;
  }
  .plan-hero .plan-body > * {
    animation: offer-item-in .7s cubic-bezier(.2,.7,.2,1) backwards;
  }
  .plan-hero .plan-body > :nth-child(1) { animation-delay: .45s; }
  .plan-hero .plan-body > :nth-child(2) { animation-delay: .57s; }
  .plan-hero .plan-body > :nth-child(3) { animation-delay: .69s; }
  .plan-hero .plan-body > :nth-child(4) { animation-delay: .81s; }

  @keyframes cover-in {
    from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
    60%  { filter: blur(0); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  @keyframes offer-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes offer-item-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }

  /* karty niżej wjeżdżają przy przewinięciu (klasa .js-reveal dodawana w js/main.js) */
  .js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--reveal-i, 0) * 120ms);
  }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* krótki opis pod ceną (zamiast listy) — wypycha przycisk na dół karty */
.plan .plan-desc {
  flex: 1;
  margin: 4px 0 22px;
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* okładka pakietu (grafika autora, granat — odcina się od jasnego tła).
   Plik ma czarne narożniki poza zaokrągleniem (~40 px przy 1122 px szerokości),
   więc border-radius musi je przykryć. display:block tylko tutaj (nie globalnie — PDF). */
.plan-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  border-radius: 4.2% / 3.4%;
  box-shadow: 0 28px 50px -24px rgba(30, 58, 138, .45);
  margin-bottom: 10px;
}
.plan-list {
  list-style: none;
  margin: 8px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: var(--fs-small);
  flex: 1;
  align-content: start;
}
.plan-list li {
  position: relative;
  padding-left: 24px;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  background: var(--electric);
  border-radius: 50%;
}

/* kontynuacja pakietu (np. „Potem tylko 500 zł / miesiąc”) — wyróżniona okazja */
.plan-next {
  margin: -8px 0 10px;
  padding: 14px 16px;
  background: var(--sky);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-md);
}
.plan .plan-next-price { color: var(--heading); font-weight: 600; }
.plan-next-price strong {
  color: var(--action);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.plan .plan-next-text { margin-top: 4px; color: var(--ink); font-size: .875rem; line-height: 1.5; }

/* ---------- podstrona oferty ---------- */

.page-hero {
  padding-block: clamp(56px, 7vw, 96px) clamp(130px, 15vw, 180px);
}
.page-hero .lead { color: var(--ink); }
.section-pull {
  position: relative;
  z-index: 2;
  padding-top: 0;
  margin-top: clamp(-120px, -11vw, -84px);
}
.hero-note { margin-top: 14px; color: var(--muted); font-size: var(--fs-small); }
.hero-note a { color: var(--action); font-weight: 600; }

.table-scroll {
  margin-top: 44px;
  overflow-x: auto;
  border: 1px solid var(--line-blue);
  border-radius: var(--r-md);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.compare th,
.compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th {
  background: var(--sky);
  color: var(--heading);
  font-weight: 650;
}
.compare thead th:nth-child(3) { box-shadow: inset 0 -2px 0 var(--action); }
.compare tbody th { font-weight: 500; color: var(--heading); }
.compare .yes { color: var(--action-hover); font-weight: 650; }
.compare .no { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  color: var(--heading);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--electric), var(--electric)) center / 14px 2px no-repeat,
    linear-gradient(var(--electric), var(--electric)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- podstrony tekstowe: O mnie, polityka prywatności ---------- */

.page-hero-plain { padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 48px); }
.section-flush { padding-top: 0; }
.prose h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.75rem);
}
.prose > :first-child { margin-top: 0; }
.prose p,
.prose li {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 66ch;
}
.prose p + p { margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.prose strong { color: var(--heading); font-weight: 650; }
.prose a:not(.btn) { color: var(--action); }
.prose-link { margin-top: 28px; }

/* miejsce na tekst autora — widać od razu, że to do podmiany */
.do-uzupelnienia {
  padding: 14px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted) !important;
  font-style: italic;
}
.lead.do-uzupelnienia { font-size: 1.0625rem; }
.luka {
  padding: 1px 5px;
  border-radius: var(--r-tag);
  background: var(--sky-deep);
  color: var(--heading);
  font-weight: 600;
}

.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.socials li:has(> [hidden]) { display: none; }
.socials a { font-weight: 600; }

/* ---------- CTA ---------- */

.cta { padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { max-width: 20ch; }
.cta-text { margin-top: 12px; color: var(--ink); font-size: 1.125rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.cta-addr {
  flex-basis: 100%;
  color: var(--muted);
  font-size: .9375rem;
  user-select: all;
}

/* ---------- stopka ---------- */

.site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: .875rem;
}
.footer-nav a { color: var(--muted); text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-nav a:hover { color: var(--action); }
.copy { font-size: .875rem; color: var(--muted); }

/* ---------- responsywność ---------- */

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 540px; }
  .plan-wide { grid-template-columns: 1fr; max-width: 540px; }
  .plan-body { max-width: none; }
  .plan-wide .btn { width: 100%; min-width: 0; }
  .cover-3d { padding-bottom: 8px; }
  .cover-card {
    --edge:
      0 1px 0 #6a91e8, 0 2px 0 #5a83dd, 0 3px 0 #4c76d3, 0 4px 0 #426cc8,
      0 5px 0 #3961bd, 0 6px 0 #3259b1, 0 7px 0 #2d51a7, 0 8px 0 #29499c;
  }
  .cover-violet .cover-card {
    --edge:
      0 1px 0 #887bee, 0 2px 0 #7568df, 0 3px 0 #6457d1, 0 4px 0 #5549bf,
      0 5px 0 #483dae, 0 6px 0 #3c329d, 0 7px 0 #32288c, 0 8px 0 #271e78;
  }
  .plan-for { min-height: 0; }
  .plan-featured { margin-top: 10px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .header-row { position: relative; }
  .nav {
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(30,58,138,.25);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn { margin-top: 16px; min-height: 48px; }

}

@media (max-width: 760px) {
  .split-week { grid-template-columns: 1fr; gap: 6px; }
  .cell {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 10px 14px;
    box-shadow: inset 2px 0 0 var(--action);
  }
  .cw { font-size: 1rem; }
  .tiles-text { grid-template-columns: 1fr; }
  .tiles-text .tile { min-height: 72px; }
  .tiles.tiles-ex { grid-template-columns: 1fr; }
  /* wybór ćwiczeń: „Dalej” i „Nie chcę tego ćwiczyć” jeden pod drugim, na całą szerokość */
  .step-partia .step-actions { gap: 10px; }
  .step-partia .step-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .cta .btn { width: 100%; }
  .tiles { gap: 10px; }
  .tile { min-height: 80px; padding: 12px 10px; }
  .tile-n { font-size: 1.9rem; }
  .btn-launch { padding-inline: 28px; font-size: 1.125rem; }
}

/* =========================================================
   PODSTRONA „ZOSTAŃ EKSPERTEM” (ekspert.html)
   1) Prezentacja (.deck): scena o stałej wysokości, slajdy leżą jeden na drugim i się
      przenikają — nic nie zmienia wysokości, więc nic nie skacze (autor: „dziwnie
      przeskakuje”). Napis u góry, kreski i przyciski zawsze w tym samym miejscu.
   2) Po pytaniu „przeniesienie” (autor): prezentacja gaśnie, pojawia się zakładka
      .ekspert-tab ([data-deck-after], klasa .deck-done na <html>).
   Przełączanie: js/main.js, [data-deck]. Bez JS wszystko stoi jedno pod drugim.
   ========================================================= */
.deck { padding-block: clamp(40px, 7vh, 88px); }
.deck-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 4.5vh, 44px);
  width: 100%;
}
.deck-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--action);
}
.deck-slides { width: 100%; }

/* bez JS: wszystkie slajdy po kolei */
.slide + .slide { margin-top: clamp(40px, 6vw, 72px); }
.deck-controls, .deck-dots { display: none; }

/* z JS: scena na całą wysokość ekranu, slajdy nałożone na siebie */
.js-deck .deck {
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 520px;
  padding-block: clamp(20px, 4vh, 48px);
}
.js-deck .deck-inner {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  height: 100%;
  gap: clamp(16px, 3vh, 32px);
}
.js-deck .deck-slides { position: relative; height: 100%; min-height: 0; }
.js-deck .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;          /* awaryjnie, gdyby ekran był bardzo niski */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.js-deck .slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.js-deck .deck-controls { display: grid; }
.js-deck .deck-dots { display: flex; }

/* zakładka i kontakt czekają, aż prezentacja się skończy */
.js-deck:not(.deck-done) .ekspert-tab,
.js-deck:not(.deck-done) #kontakt { display: none; }
.js-deck.deck-done .deck { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js-deck .slide {
    transform: translateY(14px);
    transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s linear .6s;
  }
  .js-deck .slide.is-leaving { transform: translateY(-10px); }
  .js-deck .slide.is-active {
    transform: none;
    transition: opacity .7s ease .3s, transform .9s cubic-bezier(.2,.7,.2,1) .3s, visibility 0s;
  }
  /* „przeniesienie”: prezentacja gaśnie… */
  .deck-closing .deck { animation: deck-out .6s ease both; }
  @keyframes deck-out { to { opacity: 0; transform: translateY(-16px); } }
  /* …a zakładka wchodzi: pierwszy blok od razu (.tab-in), reszta przy przewijaniu ([data-reveal]) */
  .deck-done .ekspert-tab .tab-in {
    animation: tab-in .8s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(.05s + var(--d, 0) * .14s);
  }
  @keyframes tab-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}

/* slajdy z tekstem */
.slide-text { text-align: center; }
.slide-text p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--heading);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.slide-question p { color: var(--action); }

/* kropki postępu i przyciski — zawsze w tym samym miejscu */
.deck-dots { gap: 8px; }
.deck-dots i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-blue);
  transition: background .5s ease;
}
.deck-dots i.is-on { background: var(--btn); }
.deck-controls {
  grid-template-columns: 1fr auto 1fr;   /* „Dalej” zawsze na środku */
  align-items: center;
  width: 100%;
  max-width: 520px;
}
.deck-back { justify-self: end; margin-right: 16px; }
.deck-next { grid-column: 2; min-width: 200px; }
.deck-back {
  background: none;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.deck-back:hover { color: var(--heading); }
.deck-controls [data-off] { visibility: hidden; }

/* komputer: obszar slajdów ma stałą, niższą wysokość zaraz pod napisem u góry,
   więc kreski i przyciski są wyżej (autor: „wyżej to na pc”). Pozycja nadal ta sama
   na każdym slajdzie — nic nie skacze. */
@media (min-width: 901px) {
  .js-deck .deck {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-top: clamp(32px, 7vh, 80px);
  }
  .js-deck .deck-inner { height: auto; grid-template-rows: auto auto auto auto; }
  .js-deck .deck-slides { height: clamp(280px, 38vh, 360px); }
}

/* zakładka „w praktyce” (tekst autora) */
.ekspert-tab { outline: none; }
.ekspert-tab .deck-eyebrow { margin-bottom: 18px; }
.ekspert-tab h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); margin-bottom: 20px; }
.ekspert-tab h2 ~ h2 { margin-top: clamp(48px, 7vw, 72px); }
.ekspert-tab p {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.75;
}
.ekspert-tab p + p { margin-top: 18px; }
.ekspert-tab .ekspert-lead { font-size: 1.25rem; color: var(--heading); font-weight: 500; }
.ekspert-tab .ekspert-note {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--sky);
  border: 1px solid var(--line-blue);
  border-left: 3px solid var(--action);
  border-radius: var(--r-md);
  font-size: 1rem;
}
.ekspert-end h2 { margin-top: 0; }

/* „W pakiecie dostajesz” — podsumowanie wartości tuż przed ceną */
.ekspert-stack {
  margin-top: 36px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
}
.ekspert-tab .ekspert-stack-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--action);
}
.ekspert-checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ekspert-checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.5;
}
.ekspert-checklist li::before {  /* ptaszek */
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--btn);
}
.ekspert-checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* podsumowanie i cena — na samym końcu zakładki */
.ekspert-end {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
.ekspert-tab .ekspert-summary {
  color: var(--heading);
  font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.ekspert-offer { margin-top: 36px; }
.ekspert-tab .ekspert-offer-label { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; }
.ekspert-tab .ekspert-price {
  color: var(--heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .deck-next { min-width: 160px; }
  .ekspert-offer .btn { width: 100%; }
  .ekspert-tab p { font-size: 1.0625rem; }
}

/* ---------- płynne przejście między podstronami ----------
   .page-leaving (js/main.js, [data-page-transition]): treść gaśnie i odjeżdża w górę,
   zanim przeglądarka przejdzie na nową stronę; body.page-enter: nowa strona wjeżdża.
   Nagłówek i tło zostają, więc wygląda to jak jedno płynne przejście. */
@media (prefers-reduced-motion: no-preference) {
  .page-leaving main,
  .page-leaving .site-footer { animation: page-out .45s cubic-bezier(.4,0,.2,1) both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-18px); } }
  .page-enter main { animation: page-in .8s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- „dopaminowa” oferta eksperta (autor: „udopaminuj całą ofertę”) ----------
   Liczby na start, zakreślacz pod kluczowymi zdaniami, ptaszki wskakujące po kolei,
   mocna ciemna karta z ceną i pulsujący przycisk. Bez połysków i „szkła” (autor ich nie chce). */

/* liczby na start */
.ekspert-stats {
  list-style: none;
  margin: 0 0 clamp(40px, 6vw, 64px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ekspert-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px -22px rgba(30, 58, 138, .45);
}
.ekspert-stats strong {
  color: var(--action);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ekspert-stats li > span {
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
}
@media (prefers-reduced-motion: no-preference) {
  .ekspert-stats .is-counted { animation: count-pop .45s cubic-bezier(.3,1.6,.5,1); }
  @keyframes count-pop { 50% { transform: scale(1.12); } }
  .ekspert-stats strong { display: inline-block; transform-origin: left bottom; }
}

/* wyróżnione słowa: sam kolor i pogrubienie, BEZ paska zakreślacza pod spodem
   (autor: „nie podoba mi się ten sposób podkreślenia”) */
mark.hl {
  background: none;
  padding: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

/* lista „W pakiecie dostajesz”: ptaszki wskakują po kolei */
.ekspert-checklist strong { color: var(--action); }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .ekspert-stack[data-reveal] .ekspert-checklist li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(.35s + var(--i, 0) * .16s);
  }
  .js-reveal .ekspert-stack[data-reveal] .ekspert-checklist li::before,
  .js-reveal .ekspert-stack[data-reveal] .ekspert-checklist li::after {
    transform: scale(0);
    transition: transform .45s cubic-bezier(.3,1.7,.5,1);
    transition-delay: calc(.5s + var(--i, 0) * .16s);
  }
  .js-reveal .ekspert-stack[data-reveal] .ekspert-checklist li::after { transform: rotate(45deg) scale(0); }
  .js-reveal .ekspert-stack.is-in .ekspert-checklist li { opacity: 1; transform: none; }
  .js-reveal .ekspert-stack.is-in .ekspert-checklist li::before { transform: scale(1); }
  .js-reveal .ekspert-stack.is-in .ekspert-checklist li::after { transform: rotate(45deg) scale(1); }
}

/* karta z ceną — mocny, ciemny granat, żeby cena „biła po oczach” */
.ekspert-pricecard {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  color: #e9f0fd;
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(59, 123, 255, .45), transparent 60%),
    linear-gradient(160deg, #1e3a8a 0%, #142a6b 55%, #0f1f52 100%);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(20, 42, 107, .7);
}
.ekspert-tab .ekspert-pricecard-label {
  color: #9cc0ff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ekspert-tab .ekspert-pricecard-price {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}
.ekspert-tab .ekspert-pricecard-day {
  max-width: 30rem;
  margin: 14px auto 0;
  color: #c9d9fb;
  font-size: 1rem;
  line-height: 1.55;
}
.ekspert-pricecard-day strong { color: #fff; }
.ekspert-pricecard-btn {
  margin-top: 26px;
  min-width: 260px;
  background: #fff;
  color: var(--action);
  font-weight: 700;
}
.ekspert-pricecard-btn:hover { background: #e9f0fd; color: var(--action-hover); }
@media (prefers-reduced-motion: no-preference) {
  .ekspert-pricecard.is-in .ekspert-pricecard-btn { animation: cta-pulse 2.4s ease-out 1.2s infinite; }
  @keyframes cta-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  }
}

/* karta eksperta na Ofercie: liczby jako zajawka */
.expert-facts {
  list-style: none;
  margin: 6px 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.expert-facts li {
  padding: 7px 12px;
  background: var(--sky);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-tag);
  color: var(--heading);
  font-size: .875rem;
  font-weight: 600;
}
.expert-facts b { color: var(--action); font-weight: 800; }

@media (max-width: 640px) {
  .ekspert-stats { grid-template-columns: repeat(2, 1fr); }
  .ekspert-pricecard-btn { width: 100%; min-width: 0; }
}

/* =========================================================
   DRUGI KOLOR: ciepły pomarańcz (autor: „trochę blada ta strona, przydałby się jeszcze
   jeden kolor”). Dopełnia granat/niebieski (kolor dopełniający), niebieski zostaje główny.
   --accent        #ff7a2f  tylko ozdobniki (kropki, ptaszki, kreski, belka logo)
   --accent-strong #c2410c  małe napisy i plakietki (kontrast 4.7–5.2:1 na jasnym tle)
   Na pomarańczowym przycisku tekst granatowy #0f1f52 (6:1), nie biały (2.6:1).
   ========================================================= */
:root {
  --accent: #f56b1f;
  --accent-strong: #b23a0a;
  --accent-soft: #fde9dc;
  --accent-mark: rgba(255, 154, 72, .38);
}
::selection { background: #ffd7b0; color: #1e3a8a; }

/* logo: trzecia belka w akcencie (na każdej stronie) */
.logo-mark i:nth-child(3) { background: var(--accent); opacity: 1; }

/* menu: podkreślenie aktywnej strony */
.nav a[aria-current="page"] { text-decoration-color: var(--accent); }

/* krótka pomarańczowa kreska nad głównymi nagłówkami sekcji */
.page-hero h1::before,
.about h2::before,
.section > .wrap > h2::before,
.ekspert-tab h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--accent);
}

/* kreator */
.step-tip { border-left-color: var(--accent); }
.build-burst i:nth-child(odd) { background: var(--accent); }

/* oferta */
.plan-list li::before { background: var(--accent); }
.plan-badge { background: var(--accent-strong); }
.plan .expert-eyebrow { color: var(--accent-strong); }
.expert-facts b { color: var(--accent-strong); }

/* ekspert: prezentacja */
.deck-eyebrow { color: var(--accent-strong); }
.deck-dots i.is-on { background: var(--accent); }

/* ekspert: zakładka */
.ekspert-stats li { border-top: 3px solid var(--accent); }
.ekspert-tab .ekspert-stack-title { color: var(--accent-strong); }
.ekspert-checklist li::before { background: var(--accent); }
.ekspert-checklist strong { color: var(--accent-strong); }
.ekspert-tab .ekspert-note { border-left-color: var(--accent); background: var(--accent-soft); border-color: #ffd7b0; border-left-color: var(--accent); }

/* karta z ceną: pomarańczowy przycisk na granacie = najmocniejszy punkt strony */
.ekspert-tab .ekspert-pricecard-label { color: #ffb27a; }
.ekspert-pricecard-day strong { color: #ffb27a; }
.ekspert-pricecard-btn { background: var(--accent); color: #0f1f52; border-color: transparent; }
.ekspert-pricecard-btn:hover { background: #ff7f36; color: #0f1f52; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cta-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(245, 107, 31, .6); }
    70%  { box-shadow: 0 0 0 16px rgba(245, 107, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 107, 31, 0); }
  }
}

/* =========================================================
   EKRAN STARTOWY (index.html) — autor: „tu nadal pusto”
   Po lewej: napis, duży nagłówek z zakreślaczem, tekst autora „Jak to działa?”, niebieski
   przycisk i 4 fakty. Po prawej (komputer): podgląd przykładowego planu — prosto, bez kątów.
   Na telefonie wszystko na środku, bez podglądu.
   ========================================================= */
.wizard:has(.step-start) { max-width: 1180px; }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.hero-eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.hero-title {
  max-width: 14ch;
  color: var(--heading);
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-copy .how { max-width: 34rem; text-align: inherit; }
.hero-copy .how-title { font-size: 1.125rem; margin-bottom: 8px; }
.hero-copy .how-text { font-size: 1rem; line-height: 1.7; }
.hero-copy .btn-launch {
  margin-top: 6px;
  box-shadow: 0 20px 40px -16px rgba(37, 99, 235, .65);
}
.hero-copy .btn-launch:hover { background: var(--btn-hover); }
.hero-facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-facts li {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-tag);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
}
.hero-facts b { color: var(--accent-strong); font-weight: 800; }

/* podgląd planu */
.hero-preview { display: none; }
.preview-card {
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-top: 4px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(30, 58, 138, .45), 0 2px 6px rgba(30, 58, 138, .06);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}
.preview-title { color: var(--heading); font-weight: 800; font-size: 1.125rem; }
.preview-tag {
  padding: 5px 10px;
  background: var(--sky);
  border-radius: var(--r-tag);
  color: var(--action);
  font-size: .8125rem;
  font-weight: 700;
}
.preview-days { list-style: none; margin: 0; padding: 0; }
.preview-days li {
  display: grid;
  grid-template-columns: 44px 92px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.pd-day { color: var(--muted); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.pd-type { color: var(--heading); font-weight: 700; }
.pd-off .pd-type { color: var(--muted); font-weight: 500; font-style: italic; }
.pd-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-parts i {
  padding: 3px 8px;
  background: var(--sky);
  border-radius: var(--r-tag);
  color: var(--heading);
  font-size: .75rem;
  font-style: normal;
  font-weight: 600;
}
.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.preview-pdf {
  padding: 8px 14px;
  background: var(--btn);
  border-radius: var(--r-btn);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
}
.preview-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: .875rem;
  font-weight: 700;
}
.preview-ok::before {   /* ptaszek w kółku */
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

@media (min-width: 960px) {
  .step-start {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
  }
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero-facts { justify-content: flex-start; }
  .hero-preview { display: block; }
}

/* wejście: zakreślacz się rysuje, podgląd wjeżdża, dni pojawiają się po kolei */
@media (prefers-reduced-motion: no-preference) {
  .hero-preview .preview-card { animation: preview-in .9s cubic-bezier(.2,.7,.2,1) .25s both; }
  @keyframes preview-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .preview-days li { animation: preview-row .55s ease both; }
  .preview-days li:nth-child(1) { animation-delay: .7s; }
  .preview-days li:nth-child(2) { animation-delay: .8s; }
  .preview-days li:nth-child(3) { animation-delay: .9s; }
  .preview-days li:nth-child(4) { animation-delay: 1s; }
  .preview-days li:nth-child(5) { animation-delay: 1.1s; }
  .preview-days li:nth-child(6) { animation-delay: 1.2s; }
  @keyframes preview-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
  .preview-ok { animation: preview-row .5s ease 1.45s both; }
}

/* ---------- większy pasek z menu na komputerze (autor: „zwiększ nagłówek u góry strony”) ----------
   --header-h = wysokość paska; używają jej ekrany na całą wysokość (kreator, prezentacja eksperta). */
:root { --header-h: 69px; }
@media (min-width: 821px) {
  :root { --header-h: 85px; }
  .header-row { min-height: 84px; }
  .logo { font-size: 1.6rem; gap: 12px; }
  .logo-mark { height: 24px; gap: 4px; }
  .logo-mark i { width: 5px; }
  .nav { gap: 40px; }
  .nav a:not(.btn) { font-size: 1.0625rem; font-weight: 600; }
  .nav a[aria-current="page"] { text-underline-offset: 10px; text-decoration-thickness: 3px; }
}

/* tytuł na ekranie startowym: „pod Ciebie” w pomarańczu (duży tekst — #e8590c ma 3.3:1 na tle) */
.hero-title mark.hl { color: #d9520b; font-weight: inherit; }

/* ---------- pod „Pobierz plan (PDF)”: przejście do płatnego planu od autora ----------
   Pomarańczowy przycisk z granatowym tekstem (6:1); otwiera Ofertę w nowej karcie, żeby
   nie zniknął ułożony plan. */
.result-upsell { margin-top: 14px; }
.btn-accent {
  background: var(--accent);
  border-color: transparent;
  color: #0f1f52;
  font-weight: 700;
  box-shadow: 0 14px 30px -14px rgba(245, 107, 31, .7);
}
.btn-accent:hover { background: #ff7f36; color: #0f1f52; }
@media (max-width: 640px) { .result-upsell .btn { width: 100%; } }

/* ---------- podstrona Kontakt (kontakt.html) — osobna zakładka (autor) ----------
   Dwie karty: e-mail i Instagram; nad nimi „Piszesz w sprawie: …”, jeśli przyszło się
   z przycisku pakietu (?pakiet=…). */
.kontakt-pakiet {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid #ffd7b0;
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--ink);
}
.kontakt-pakiet b { color: var(--accent-strong); }
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.kontakt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -34px rgba(30, 58, 138, .45);
}
.kontakt-ikona {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--sky);
  color: var(--action);
}
.kontakt-tytul { font-size: var(--fs-h3); }
.kontakt-adres {
  margin-bottom: 8px;
  color: var(--heading);
  font-weight: 600;
  word-break: break-all;
}
@media (max-width: 640px) { .kontakt-grid { grid-template-columns: 1fr; } }

/* ---------- podstrona O mnie (o-mnie.html) ----------
   Na górze imię i nazwisko + zdanie + przyciski, obok miejsce na zdjęcie (pion 4:5).
   Niżej sekcje; to, czego autor jeszcze nie podał, w ramkach .do-uzupelnienia. */
.omnie-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.omnie-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.omnie-name {
  color: var(--heading);
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.omnie-hero .lead { max-width: 34rem; }
.omnie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.omnie-foto {
  margin: 0;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--r-lg);
}
img.omnie-foto { object-fit: cover; height: auto; box-shadow: 0 40px 80px -40px rgba(30, 58, 138, .45); }

.omnie-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: clamp(40px, 6vw, 64px) 0 16px; }
.omnie-body h2:first-child { margin-top: 0; }
.omnie-body p { color: var(--ink); font-size: 1.125rem; line-height: 1.75; }
.omnie-body p + p { margin-top: 16px; }

/* „Jak możemy współpracować” — 4 drogi jako klikalne kafelki */
.omnie-drogi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.omnie-drogi a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.omnie-drogi a:hover { border-color: var(--action); border-left-color: var(--accent); box-shadow: 0 16px 34px -22px rgba(30, 58, 138, .5); }
.omnie-drogi b { color: var(--heading); font-size: 1.0625rem; }
.omnie-drogi span { color: var(--muted); font-size: .9375rem; line-height: 1.45; }

@media (max-width: 820px) {
  .omnie-hero-grid { grid-template-columns: 1fr; }
  .omnie-foto { justify-self: start; max-width: 320px; }
  .omnie-drogi { grid-template-columns: 1fr; }
}

/* O mnie: liczby autora (5 lat, +30 kg, 2 kursy GSA) i lista kursów */
.omnie-stats { grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; }
.omnie-kursy {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.omnie-kursy li {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  color: var(--ink);
  line-height: 1.5;
}
.omnie-kursy li::before {   /* pomarańczowy ptaszek w kółku */
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.omnie-kursy b { color: var(--heading); }
@media (max-width: 640px) { .omnie-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .omnie-stats li { padding: 14px 10px; } }

/* O mnie: tekst ma tę samą lewą krawędź co nagłówek na górze i szerszą kolumnę
   (autor: „niech dorównuje temu na górze, nie chcę, żeby sekcja była taka skondensowana”) */
.omnie-body > * { max-width: 920px; }

/* =========================================================
   CIEMNY MOTYW (autor: „zmieniamy kolorystykę całą na mroczną i ciemną z lekką dozą
   granatu i brązu”). Prawie czarne tło, karty w ciemnym granacie, ciepły jasny tekst,
   granatowe przyciski, miedź/brąz jako akcent. Kontrast sprawdzony (tekst ≥5.8:1).
   Jasne kolory zostają TYLKO w .pdf-box (PDF ma być biały, do druku) — niżej.
   ========================================================= */
:root {
  color-scheme: dark;
  --page: #0f1014;          /* tło strony: prawie czarne, chłodne */
  --mist: #0f1014;
  --surface: #171a21;       /* karty, panele (ciemny granat) */
  --surface-2: #1e222b;
  --sky: #1b2336;           /* granatowe panele, zaznaczenia, plakietki */
  --sky-deep: #24304a;

  --heading: #f1ece4;       /* nagłówki: ciepła biel (16:1) */
  --ink: #cfc8bd;           /* tekst (10.5:1 na karcie) */
  --muted: #9a948a;         /* tekst poboczny (5.8:1 na karcie) */

  --action: #8fa8f0;        /* niebieskie NAPISY i linki na ciemnym (7.5:1) */
  --action-hover: #b3c4f6;
  --btn: #2f4ea3;           /* tło przycisków: granat, biały tekst 7.7:1 */
  --btn-hover: #3a5cbc;
  --electric: #6f8fe8;      /* ozdoby */

  --line: #262a34;
  --line-blue: #303749;
  --line-strong: #6b7282;   /* obramowania pól (≥3:1) */
  --ring: rgba(111, 143, 232, .28);

  --accent: #c27a44;        /* miedź/brąz: ozdobniki, przycisk ceny */
  --accent-strong: #e3a678; /* miedziane napisy na ciemnym (8:1) */
  --accent-soft: #2a1f18;   /* brązowe tło ramek */
}
::selection { background: #c27a44; color: #140e0a; }

/* tło: winieta i ambient — granatowe i brązowe poświaty zamiast jasnoniebieskich */
body {
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55) 100%) fixed,
    var(--page);
}
body::before {
  background:
    radial-gradient(42% 36% at 18% 22%, rgba(42, 72, 170, .26), transparent 70%),
    radial-gradient(38% 34% at 84% 30%, rgba(30, 50, 120, .22), transparent 70%),
    radial-gradient(46% 40% at 62% 88%, rgba(38, 62, 140, .18), transparent 70%),
    radial-gradient(30% 26% at 92% 70%, rgba(150, 90, 45, .16), transparent 70%),
    radial-gradient(26% 22% at 6% 92%, rgba(130, 80, 40, .14), transparent 70%);
}

/* pasek z menu: ciemne szkło */
.site-header {
  background:
    radial-gradient(60% 140% at 12% 0%, rgba(60, 90, 190, .14), transparent 70%),
    radial-gradient(50% 140% at 88% 100%, rgba(150, 90, 45, .10), transparent 70%),
    rgba(14, 15, 19, .8);
  border-bottom-color: rgba(255, 255, 255, .07);
}

/* przyciski */
.btn-white { border-color: var(--line-blue); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { border-color: var(--line-strong); }
.plan-badge { background: var(--accent); color: #140e0a !important; }

/* miedziany przycisk (cena eksperta, „Chcę bardziej spersonalizowany plan”): ciemny tekst 5.6:1 */
.ekspert-pricecard-btn,
.btn-accent { background: var(--accent); color: #140e0a; }
.ekspert-pricecard-btn:hover,
.btn-accent:hover { background: #d08a55; color: #140e0a; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cta-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(194, 122, 68, .6); }
    70%  { box-shadow: 0 0 0 16px rgba(194, 122, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 122, 68, 0); }
  }
}
.btn-accent { box-shadow: 0 14px 30px -14px rgba(194, 122, 68, .6); }
.hero-copy .btn-launch { box-shadow: 0 20px 40px -16px rgba(47, 78, 163, .8); }

/* tytuł na stronie głównej: „pod Ciebie” w miedzi */
.hero-title mark.hl { color: var(--accent-strong); }

/* brązowe ramki zamiast jasnopomarańczowych */
.ekspert-tab .ekspert-note,
.kontakt-pakiet { border-color: #4a3526; border-left-color: var(--accent); }

/* karta z ceną eksperta: głębszy granat, żeby odcinała się od ciemnego tła */
.ekspert-pricecard {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(80, 110, 210, .35), transparent 60%),
    linear-gradient(160deg, #22356f 0%, #18264f 55%, #121b38 100%);
  border: 1px solid rgba(143, 168, 240, .18);
}

/* okładki pakietów: cienka jasna krawędź, żeby granat okładki nie zlał się z tłem */
.cover-card { outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; }

/* cienie: na ciemnym tle granatowe cienie znikają — czarne */
.plan, .kontakt-card, .preview-card, .ekspert-stats li, .ekspert-stack {
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7);
}

/* PDF planu ZOSTAJE JASNY (druk): w ukrytym kontenerze .pdf-box wracają jasne kolory */
.pdf-box {
  color-scheme: light;
  --page: #f4f4f4;
  --mist: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --sky: #e9f0fd;
  --sky-deep: #d6e3fb;
  --heading: #1e3a8a;
  --ink: #2f4372;
  --muted: #566a93;
  --action: #2563eb;
  --action-hover: #1d4fd8;
  --btn: #2563eb;
  --btn-hover: #1d4fd8;
  --electric: #3b7bff;
  --line: #dbe3f0;
  --line-blue: #c3d4f5;
  --line-strong: #8a9ab8;
  --accent: #ff7a2f;
  --accent-strong: #c2410c;
  --accent-soft: #fff1e6;
  color: var(--ink);
}

/* plan na ekranie: dni odpoczynku i ramka z objętością miały jasne tło wpisane na sztywno */
.wd.is-rest,
.sheet-info { background: var(--surface-2); }
.cell.is-rest { border-color: var(--line-blue); }
/* …ale w PDF (druk) zostają jasne, jak wcześniej */
.pdf-box .wd.is-rest,
.pdf-box .sheet-info { background: #f5f6f8; }
.pdf-box .cell.is-rest { border-color: #c4cfe3; }

/* ---------- telefon: przycisk „Menu” lekko migocze małymi iskierkami (autor) ----------
   Dwie malutkie czteroramienne iskry (miedziana i granatowa) zapalają się na zmianę przy
   rogach przycisku + delikatna miedziana poświata obramowania. Tylko gdy menu jest zamknięte,
   tylko na telefonie i bez „ogranicz ruch”. */
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .nav-toggle { position: relative; overflow: visible; }
  .nav-toggle[aria-expanded="false"] { animation: menu-glow 3.2s ease-in-out infinite; }
  .nav-toggle[aria-expanded="false"]::before,
  .nav-toggle[aria-expanded="false"]::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    pointer-events: none;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: 0;
    animation: menu-spark 2.6s ease-in-out infinite;
  }
  .nav-toggle[aria-expanded="false"]::before {
    top: -5px;
    right: -4px;
    background: var(--accent-strong);
  }
  .nav-toggle[aria-expanded="false"]::after {
    bottom: -4px;
    left: -5px;
    width: 7px;
    height: 7px;
    background: var(--action);
    animation-delay: 1.3s;
  }
  @keyframes menu-spark {
    0%, 55%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
    18%           { opacity: 1; transform: scale(1) rotate(45deg); }
    36%           { opacity: 0; transform: scale(.4) rotate(90deg); }
  }
  @keyframes menu-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(194, 122, 68, 0); border-color: var(--line-strong); }
    50%      { box-shadow: 0 0 14px 0 rgba(194, 122, 68, .35); border-color: rgba(227, 166, 120, .7); }
  }
}

/* telefon: linki w rozwijanym menu wyśrodkowane (autor: „daj to na środek”) */
@media (max-width: 820px) {
  .nav a:not(.btn) { text-align: center; }
  /* pasek .wrap ma już pełną szerokość ekranu — menu od krawędzi do krawędzi, nie wystaje w lewo */
  .nav { left: 0; right: 0; }
}

/* O mnie bez zdjęcia (do czasu, aż autor je przyśle): nagłówek na całą szerokość */
.omnie-hero-grid:not(:has(.omnie-foto)) { grid-template-columns: 1fr; }

/* zawsze rezerwuj miejsce na pasek przewijania — inaczej na krótkich stronach (np. Kontakt)
   pasek znika, strona robi się szersza i cała treść przeskakuje kilka px w prawo (autor) */
html { scrollbar-gutter: stable; }