/* Jesteś OK, wariant C: scena podzielona + hasło marki + moduł krytyka.
   Papier w kolorze szałwii, butelkowa zieleń. Na życzenie klienta: delikatne szkło i głębia
   (rozmycie tła, miękkie cienie, połysk), czyli świadome odstępstwo od zasad domu. */
:root {
  --bg: #dbe7f4;
  --paper: #f1f6fc;
  --surface: #e3ecf7;
  --ink: #15233a;
  --muted: #52627a;
  --accent: #1d4a8c;
  --accent-ink: #f1f6fc;

  --step-small: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-head: clamp(2rem, 1.4rem + 2vw, 3.125rem);
  --step-display: clamp(3.5rem, 7.6vw, 7.25rem);

  --m: 12px;
  --pad: clamp(24px, 4.6vw, 76px);
  --r: 10px;
  --gap-section: clamp(96px, 10vw, 152px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --glass: rgba(241, 246, 252, 0.74);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(19, 41, 75, 0.06);
  --depth-1: 0 1px 2px rgba(19, 41, 75, 0.06), 0 10px 28px -14px rgba(19, 41, 75, 0.28);
  --depth-2: 0 2px 4px rgba(19, 41, 75, 0.08), 0 30px 70px -30px rgba(19, 41, 75, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--accent) var(--bg); }
body {
  margin: 0; padding: var(--m);
  background: var(--bg); color: var(--ink);
  font-family: 'STIX Two Text', 'Times New Roman', serif;
  font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.026em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 70%, transparent); transition: text-decoration-color 180ms ease, color 180ms ease; }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
strong { font-weight: 600; }
.skip { position: absolute; left: 24px; top: -80px; z-index: 30; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r); }
.skip:focus { top: 24px; }

/* Przycisk: płaski kolor, cienka krawędź światła u góry, miękki cień, połysk przesuwa się przy najechaniu */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; line-height: 1.1; text-decoration: none;
  border: 0; border-radius: var(--r); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -12px rgba(29, 74, 140, 0.7);
  transition: background-color 180ms ease, transform 180ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.btn::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: skewX(-18deg); transition: left 700ms var(--ease-out); }
.btn:hover { background: #163a70; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 30px -14px rgba(29, 74, 140, 0.8); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px -12px rgba(19, 41, 75, 0.35); }
.btn-quiet:hover { background: #cfdcee; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px -14px rgba(19, 41, 75, 0.45); }

/* ---------- Układ: kolumna i scena ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m); align-items: start; }
.stage { grid-column: 2; grid-row: 1; position: sticky; top: var(--m); height: calc(100svh - 2 * var(--m)); min-height: 480px; border-radius: var(--r); overflow: hidden; background: #c9daee; box-shadow: var(--depth-1); }
.stage img { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; object-fit: cover; opacity: 0; transition: opacity 1600ms ease, transform 900ms var(--ease-out); transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0) scale(1.02); }
.stage img.on { opacity: 1; }
.stage img, .form-row img, .visit > img { filter: grayscale(0.3) sepia(0.16) hue-rotate(172deg) saturate(1.15); }
.stage-anna { object-position: 50% 18%; }
.stage-notes { object-position: 60% 60%; }
/* winieta dodaje głębi i uspokaja brzeg zdjęcia */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 -120px 120px -90px rgba(19, 41, 75, 0.35); }
.stage-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 20px; background: var(--paper); border-radius: var(--r); font-size: var(--step-small); box-shadow: var(--glass-edge), var(--depth-1); }
.stage-bar a { font-weight: 600; padding-block: 8px; white-space: nowrap; }

.column { grid-column: 1; grid-row: 1; min-width: 0; background: var(--paper); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--depth-1); }
.column > section { padding-inline: var(--pad); }
.column > section + section { margin-top: var(--gap-section); }
.column > section:last-child { padding-bottom: var(--gap-section); }
.column h2 { font-size: var(--step-head); margin-bottom: 28px; }
.column h3 { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.2; }
.column > section > p, .column > section > h2 { max-width: 34rem; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 2 * var(--m)); display: flex; flex-direction: column; text-align: center; padding-block: 24px 28px; }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.top a { text-decoration: none; padding-block: 10px; }
.top a:first-child { justify-self: start; }
.top a:last-child { justify-self: end; }
.wordmark { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.hero-body { margin-top: 13svh; display: grid; justify-items: center; gap: 22px; }
.hero h1 { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; color: var(--accent); white-space: nowrap; }
.hero h1 span { display: block; margin-top: 0.7em; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); white-space: normal; }
.hero-body p { max-width: 40ch; text-wrap: balance; }
.hero-links { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; font-size: var(--step-small); }
.hero-links a { padding-block: 10px; text-decoration: none; }
.only-small, .fab { display: none; }
.hero-links a:hover, .top a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Krytyk (żywy element) ---------- */
.critic > p { max-width: 34rem; }
.critic-list { display: grid; gap: 8px; margin-top: 24px; max-width: 34rem; }
.critic-btn { width: 100%; min-height: 52px; padding: 12px 18px; text-align: left; font: inherit; font-size: var(--step-lead); line-height: 1.2; color: var(--ink); background: var(--surface); border: 0; border-radius: var(--r); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: background-color 200ms ease, color 200ms ease, transform 180ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.critic-btn:hover { background: #cfdcee; transform: translateX(4px); }
.critic-btn:active { transform: scale(0.99); }
.critic-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 24px -16px rgba(19, 41, 75, 0.8); }
.critic-answer { position: relative; overflow: hidden; isolation: isolate; margin-top: 20px; max-width: 34rem; padding: clamp(28px, 3.4vw, 44px); background: var(--accent); color: var(--accent-ink); border-radius: var(--r); display: grid; gap: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--depth-2); }
/* płynny połysk: plama światła idzie za kursorem */
.critic-answer::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(420px circle at var(--mx, 78%) var(--my, 0%), rgba(255, 255, 255, 0.1), transparent 62%); transition: opacity 400ms ease; }
.critic-answer :focus-visible { outline-color: var(--accent-ink); }
.critic-soft { font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.026em; min-height: 2.1em; }
.critic-soft span { display: inline-block; transition: opacity 260ms ease, transform 560ms var(--ease-expo), filter 260ms ease; }
.critic-soft span.out { opacity: 0; transform: translateY(0.22em); filter: blur(8px); }

/* ---------- List ---------- */
.letter p { margin-top: 1.1em; line-height: 1.55; }
.letter h2 + p { margin-top: 0; }
.letter mark { background: #cfdcee; color: inherit; padding: 0.05em 0.2em; border-radius: 4px; }
.letter-sign { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: center; margin-top: 2em; }
.letter-sign img { grid-row: 1 / 3; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: var(--depth-1); }
.letter-sign em { align-self: end; }
.letter-sign span { align-self: start; }
.letter-sign em { font-size: var(--step-lead); }
.letter-sign span { font-size: var(--step-small); color: var(--muted); }

/* ---------- Formy wsparcia: pole koloru ---------- */
.column > .forms { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: var(--accent-ink); padding-block: clamp(48px, 6vw, 88px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
.forms ::selection { background: var(--accent-ink); color: var(--accent); }
.forms :focus-visible { outline-color: var(--accent-ink); }
.form + .form { margin-top: clamp(56px, 6vw, 88px); }
.form-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 24px; align-items: start; margin-block: 20px; }
.form-face { object-position: 50% 12%; }
.form-row img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: var(--r); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.7); }
.form-flip .form-row { grid-template-columns: 1fr minmax(120px, 34%); }
.form-flip .form-row img { order: 2; }
.form-row ul { display: grid; gap: 12px; }
.form > p { max-width: 34rem; }

/* ---------- Pierwsze spotkanie: trzy etapy ---------- */
.stages { display: grid; gap: 12px; max-width: 34rem; }
.stages li { padding: 24px 28px; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.stages li:nth-child(3) { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--depth-1); }
.stages p { margin-top: 8px; }

/* ---------- Kurs i YouTube ---------- */
.course > p { margin-bottom: 24px; }
.listen { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 28px; align-items: center; margin-top: clamp(56px, 6vw, 88px); max-width: 34rem; padding: 24px; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.listen video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: #c9daee; box-shadow: var(--depth-1); }
.listen p { margin-top: 12px; }

/* ---------- Cennik: duże liczby ---------- */
.menu dl { display: grid; gap: 22px; max-width: 34rem; font-variant-numeric: tabular-nums lining-nums; }
.menu dl div { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end; }
.menu dt { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.2; }
.menu dd { font-size: var(--step-head); letter-spacing: -0.026em; line-height: 1; white-space: nowrap; color: var(--accent); }
.menu dd.menu-note { grid-column: 1 / -1; font-size: var(--step-small); letter-spacing: 0; line-height: 1.5; color: var(--muted); white-space: normal; margin-top: 4px; }
.menu > p { margin-block: 40px 24px; }

/* ---------- Pytania ---------- */
.faq > div { max-width: 34rem; }
.faq > div + div { margin-top: 32px; }
.faq h3 { font-weight: 600; font-size: var(--step-body); letter-spacing: 0; line-height: 1.35; }
.faq p { margin-top: 6px; line-height: 1.55; }

/* ---------- Kontakt: szklana karta na zdjęciu ---------- */
.visit { position: relative; margin-top: var(--m); min-height: calc(100svh - 2 * var(--m)); border-radius: var(--r); overflow: hidden; display: flex; justify-content: flex-end; align-items: flex-start; padding: clamp(16px, 4.2vw, 60px); background: #c9daee; box-shadow: var(--depth-1); }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.card { position: relative; width: min(100%, 480px); padding: 32px; background: var(--paper); border-radius: calc(var(--r) + 6px); display: grid; gap: 18px; box-shadow: var(--glass-edge), var(--depth-2); }
.card h2 { font-size: var(--step-head); }
.card legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.card fieldset { display: flex; flex-wrap: wrap; gap: 8px; }
.card label { position: relative; cursor: pointer; }
.card input[type="radio"] { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.card label span { display: block; padding: 10px 14px; min-height: 44px; background: rgba(227, 236, 247, 0.9); border-radius: var(--r); line-height: 1.35; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.card label:hover span { background: #cfdcee; }
.card label:active span { transform: scale(0.97); }
.card input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px -14px rgba(29, 74, 140, 0.9); }
.card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-preview { padding: 16px; background: var(--bg); border-radius: var(--r); font-style: italic; line-height: 1.45; box-shadow: inset 0 1px 3px rgba(19, 41, 75, 0.12); transition: opacity 200ms ease; }
.card-preview.swap { opacity: 0.25; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-copy { grid-column: 1 / -1; }
.card-status { min-height: 1.5em; font-size: var(--step-small); color: var(--accent); font-weight: 600; }
.card-direct { font-size: var(--step-small); line-height: 1.6; }
.card-crisis { padding: 12px 16px; background: var(--bg); border-radius: var(--r); line-height: 1.5; }
.card-direct a, .card-crisis a { display: inline-block; padding-block: 6px; font-weight: 600; white-space: nowrap; }

/* Szkło tylko tam, gdzie pod spodem jest zdjęcie, i tylko gdy przeglądarka umie rozmyć tło */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stage-bar, .card { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
  .card { background: rgba(241, 246, 252, 0.84); }
}

/* ---------- Stopka: jedna cicha linia ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; align-items: baseline; padding: clamp(72px, 12svh, 140px) 12px 18px; font-size: var(--step-small); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; color: var(--ink); }
.foot a { display: inline-block; padding-block: 10px; }
.foot-legal { justify-self: end; }
.foot-credits { grid-column: 1 / -1; }

/* ---------- Ruch ---------- */
.reveal.pre { opacity: 0; transform: translateY(14px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity 800ms ease, transform 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 70ms); }
.hero h1 { animation: emerge 1300ms var(--ease-expo) both; }
.hero-body > p, .hero-body > .btn, .top, .hero-links { animation: settle 1100ms var(--ease-expo) both; }
.hero-body > p { animation-delay: 160ms; }
.hero-body > .btn { animation-delay: 260ms; }
.hero-links { animation-delay: 380ms; }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }
@keyframes emerge { from { opacity: 0; transform: translateY(0.18em); filter: blur(10px); } }

@media (prefers-reduced-motion: reduce) {
  .reveal.pre { opacity: 1; transform: none; }
  .hero h1, .hero-body > p, .hero-body > .btn, .top, .hero-links { animation: none; }
  .stage img { transition: none; transform: none; }
  .card-preview, .critic-soft span, .btn::after { transition: none; }
  .btn:hover, .critic-btn:hover { transform: none; }
}

/* ---------- Telefon i tablet pionowo ---------- */
@media (max-width: 820px) {
  :root { --step-display: 17vw; }
  .split { display: block; }
  .stage { position: sticky; top: var(--m); height: 56svh; min-height: 300px; z-index: 0; }
  .stage img { transform: none; inset: 0; width: 100%; height: 100%; }
  .column { position: relative; z-index: 1; margin-top: -10svh; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero-body { margin-top: 64px; }
  .hero .btn { width: 100%; }
  .hero-links { margin-top: 40px; }
  .top a:first-child, .top a:last-child { display: none; }
  .top { grid-template-columns: 1fr; justify-items: center; }
  .hero-links { gap: 4px 16px; }
  .only-small { display: inline; }
  .fab:not([hidden]) { display: inline-flex; position: fixed; right: 12px; bottom: 12px; z-index: 20; min-height: 48px; padding: 10px 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px -10px rgba(19, 41, 75, 0.6); }
  .stage-bar { bottom: calc(10svh + 12px); }
  .listen { grid-template-columns: 132px 1fr; gap: 20px; padding: 16px; }
  .visit { min-height: 0; padding: 0; display: block; background: transparent; overflow: visible; box-shadow: none; }
  .visit > img { position: static; height: 62svh; border-radius: var(--r); }
  .card { width: auto; max-width: none; margin: -80px 4px 0; padding: 24px; }
  .card-actions { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; padding-top: 20svh; }
  .foot-links { justify-content: flex-start; gap: 4px 20px; }
  .foot-legal { justify-self: start; }
}

/* Portret na pierwszym ekranie: wycięta postać na tle sceny, bez filtra */
.stage img.stage-portrait { object-position: 50% 0; filter: drop-shadow(0 30px 34px rgba(19, 41, 75, 0.36)) drop-shadow(0 4px 8px rgba(19, 41, 75, 0.18)); }

/* Wersja z kasztanowym portretem: blok YouTube bez filmu */
.listen.listen-text { display: block; }
.letter-sign { display: grid; grid-template-columns: 1fr; }

/* ---------- Wariant M: błękit, głębia portretu, doświadczenie ---------- */
/* światło za postacią: jaśniej u góry, ciemniej przy krawędziach, żeby portret odchodził od tła */
.stage { background: radial-gradient(120% 85% at 50% 28%, #eef5fd 0%, #c9daee 52%, #a9c2e2 100%); }
.column > .forms { background: #13294b; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: var(--step-small); color: var(--muted); }
.exp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 34rem; }
.exp li { display: grid; gap: 4px; align-content: start; padding: 20px; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.exp strong { font-weight: 400; font-size: var(--step-head); letter-spacing: -0.026em; line-height: 1; color: var(--accent); white-space: nowrap; }
.exp span { font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.card-address a { font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) {
  .exp { grid-template-columns: minmax(0, 1fr); }
}
