/* Jesteś OK, wariant B: scena podzielona. Papier w kolorze szałwii, butelkowa zieleń ze ściany gabinetu. */
:root {
  --bg: #dfe3da;
  --paper: #f2f4ee;
  --surface: #e4e8df;
  --ink: #17211c;
  --muted: #4f5a53;
  --accent: #23483a;
  --accent-ink: #f2f4ee;

  --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(2.5rem, 1.6rem + 2.6vw, 3.5rem);

  --m: 12px;
  --pad: clamp(24px, 4.6vw, 76px);
  --r: 6px;
  --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);
}

*, *::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.1; 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; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
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; }

.btn {
  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;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.btn:hover { background: #17352a; }
.btn:active { transform: scale(0.97); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: #d5dbcf; }

/* ---------- 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: #c9d2c6; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease; }
.stage img.on { opacity: 1; animation: drift 5s var(--ease-out) both; }
.stage-anna { object-position: 50% 0; }
.stage-notes { object-position: 60% 60%; }
@keyframes drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.stage-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 20px; background: var(--paper); font-size: var(--step-small); }
.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); }
.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, .column > section > h3 { 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: 15svh; display: grid; justify-items: center; gap: 24px; }
.hero h1 { font-size: var(--step-display); color: var(--accent); max-width: 11em; }
.hero-body p { max-width: 36ch; }
.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; }
.hero-links a:hover, .top a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- List ---------- */
.letter p { margin-top: 1.1em; line-height: 1.55; }
.letter-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 44% 8%; background: var(--surface); }
.letter mark { background: #cfe0cf; color: inherit; padding: 0.05em 0.2em; border-radius: 3px; }
.letter-sign { display: grid; gap: 2px; margin-top: 2em; }
.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 { background: var(--accent); color: var(--accent-ink); padding-block: clamp(48px, 6vw, 88px); }
.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-row img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: var(--r); }
.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: pasek z planem ---------- */
.slip { margin-top: 36px; max-width: 30rem; padding: 28px 28px 44px; background: var(--bg); font-variant-numeric: tabular-nums lining-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95.83% 100%, 91.67% calc(100% - 12px), 87.5% 100%, 83.33% calc(100% - 12px), 79.17% 100%, 75% calc(100% - 12px), 70.83% 100%, 66.67% calc(100% - 12px), 62.5% 100%, 58.33% calc(100% - 12px), 54.17% 100%, 50% calc(100% - 12px), 45.83% 100%, 41.67% calc(100% - 12px), 37.5% 100%, 33.33% calc(100% - 12px), 29.17% 100%, 25% calc(100% - 12px), 20.83% 100%, 16.67% calc(100% - 12px), 12.5% 100%, 8.33% calc(100% - 12px), 4.17% 100%, 0 calc(100% - 12px)); }
.slip h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin: 28px 0 10px; }
.slip h3:first-child { margin-top: 0; }
.slip-row { display: flex; align-items: baseline; gap: 8px; padding-block: 5px; }
.slip-row i { flex: 1; min-width: 16px; height: 4px; align-self: center; border-bottom: 4px dotted #b3bdb0; transform: translateY(2px); }
.slip-row span:last-child { color: var(--muted); text-align: right; }
.slip-total { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 600; }

/* ---------- Kurs i YouTube ---------- */
.course-pic { border-radius: var(--r); overflow: hidden; margin-bottom: 28px; }
.course-pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.course > p { margin-block: 14px 24px; }
.listen { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 28px; align-items: center; margin-top: clamp(56px, 6vw, 88px); padding: 24px; background: var(--surface); border-radius: var(--r); }
.listen video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: #c9d2c6; }
.listen p { margin-top: 12px; }

/* ---------- Cennik jak karta ---------- */
.menu h3 { margin-top: 40px; font-weight: 600; }
.menu h2 + h3 { margin-top: 0; }
.menu dl { margin-top: 14px; display: grid; gap: 18px; 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: baseline; }
.menu dt { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.2; }
.menu dd { font-size: var(--step-lead); white-space: nowrap; }
.menu dd.menu-note { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); white-space: normal; margin-top: 2px; }
.menu > p { margin-top: 40px; color: var(--muted); }

/* ---------- Pytania ---------- */
.faq p { margin-top: 20px; line-height: 1.55; }
.faq h2 + p { margin-top: 0; }

/* ---------- Kontakt: 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: #c9d2c6; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.card { position: relative; width: min(100%, 460px); padding: 32px; background: var(--paper); border-radius: var(--r); display: grid; gap: 18px; }
.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: var(--surface); border-radius: var(--r); line-height: 1.35; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.card label:hover span { background: #d5dbcf; }
.card label:active span { transform: scale(0.97); }
.card input:checked + span { background: var(--accent); color: var(--accent-ink); }
.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; transition: opacity 200ms ease; }
.card-preview.swap { opacity: 0.25; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.card-direct { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--step-small); }
.card-direct a { padding-block: 8px; }

/* ---------- 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; gap: 24px; color: var(--ink); }
.foot a { display: inline-block; padding-block: 8px; }
.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-body > *, .top, .hero-links { animation: settle 1100ms var(--ease-expo) both; }
.hero-body > *:nth-child(2) { animation-delay: 90ms; }
.hero-body > *:nth-child(3) { animation-delay: 180ms; }
.hero-links { animation-delay: 320ms; }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .reveal.pre { opacity: 1; transform: none; }
  .hero-body > *, .top, .hero-links, .stage img.on { animation: none; }
  .stage img { transition: none; }
  .card-preview { transition: none; }
}

/* ---------- Telefon i tablet pionowo ---------- */
@media (max-width: 820px) {
  .split { display: block; }
  .stage { position: sticky; top: var(--m); height: 56svh; min-height: 300px; z-index: 0; }
  .column { position: relative; z-index: 1; margin-top: -14svh; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero-body { margin-top: 72px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.75rem); }
  .top a:first-child, .top a:last-child { display: none; }
  .top { grid-template-columns: 1fr; justify-items: center; }
  .slip-row { display: grid; gap: 0; padding-block: 8px; }
  .slip-row i { display: none; }
  .slip-row span:last-child { text-align: left; font-size: var(--step-small); }
  .hero .btn { width: 100%; }
  .hero-links { margin-top: 40px; }
  .stage-bar { bottom: 14svh; }
  .listen { grid-template-columns: 1fr; }
  .listen video { max-width: 60%; }
  .visit { min-height: 0; padding: 0; display: block; background: transparent; overflow: visible; }
  .visit > img { position: static; height: 62svh; border-radius: var(--r); }
  .card { width: auto; margin: -80px 4px 0; padding: 24px; }
  .card-actions { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; padding-top: 20svh; }
  .foot-links { flex-wrap: wrap; gap: 4px 20px; }
  .foot-legal { justify-self: start; }
}

/* ---------- Po uwagach jury ---------- */
.letter h2 + p { margin-top: 0; }
.stages { display: grid; gap: 12px; max-width: 34rem; }
.stages li { padding: 24px 28px; background: var(--surface); border-radius: var(--r); }
.stages li:nth-child(3) { background: var(--ink); color: var(--paper); }
.stages p { margin-top: 8px; }
.course > p { margin-bottom: 24px; }
.listen { max-width: 34rem; }
.menu dl { gap: 22px; }
.menu dl div { align-items: end; }
.menu dd { font-size: var(--step-head); letter-spacing: -0.026em; line-height: 1; color: var(--accent); }
.menu dd.menu-note { font-size: var(--step-small); letter-spacing: 0; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.menu > p { margin-block: 40px 24px; color: var(--ink); }
.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, .faq h2 + p { margin-top: 6px; }
.card { width: min(100%, 480px); }
.card-copy { grid-column: 1 / -1; }
.card-status { font-size: var(--step-small); color: var(--accent); font-weight: 600; }
.card-status:empty { display: none; }
.card-direct { display: block; line-height: 1.6; }
.card-crisis { font-size: var(--step-small); line-height: 1.6; color: var(--muted); }
.card-direct a, .card-crisis a { display: inline-block; padding-block: 6px; font-weight: 600; white-space: nowrap; }
.foot-links { flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
@media (min-width: 821px) {
  .card-actions { grid-template-columns: 1fr 1fr; }
  .stages li:nth-child(2) { margin-left: clamp(0px, 3vw, 44px); }
  .stages li:nth-child(3) { margin-left: clamp(0px, 6vw, 88px); }
}
@media (max-width: 820px) {
  .foot-links { justify-content: flex-start; }
}

/* ---------- Druga runda jury ---------- */
.stage img { filter: saturate(0.94) sepia(0.06); }
.stage-anna { object-position: 50% 18%; }
.letter-sign { grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.letter-sign img { grid-row: 1 / 3; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.letter-sign em { align-self: end; }
.letter-sign span { align-self: start; }
.form-face { object-position: 50% 12%; }
.stages li:nth-child(3) { background: var(--accent); color: var(--accent-ink); }
.card-status { min-height: 1.5em; }
.card-status:empty { display: block; }
.card-crisis { padding: 12px 16px; background: var(--bg); border-radius: var(--r); font-size: var(--step-body); line-height: 1.5; color: var(--ink); }
.only-small, .fab { display: none; }
@media (min-width: 821px) {
  .stages li:nth-child(2), .stages li:nth-child(3) { margin-left: 0; }
}
@media (max-width: 820px) {
  .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; }
  .listen { grid-template-columns: 132px 1fr; gap: 20px; padding: 16px; }
  .listen video { max-width: none; }
  .card { width: auto; max-width: none; }
}

/* Portret na pierwszym ekranie: wycięta postać na tle sceny, bez filtra */
.stage img.stage-portrait { object-position: 50% 0; filter: none; }

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