/* Spokojne zejście – wywiad redakcyjny o bólu kolan
   Tokeny: złoto, ciemne złoto, lodowy, kobalt (CTA), papier, len, atrament.
   Kształt: ostre rogi, twarde przesunięte cienie. Rytm: jedna myśl na ekran. */
:root {
  --zloto: #967c2c;
  --zloto-ciemne: #5f4e1c;
  --lodowy: #59a6c0;
  --kobalt: #224bc3;
  --kobalt-ciemny: #1a3a99;
  --papier: #faf9f5;
  --len: #f3efe2;
  --atrament: #2d281b;
  --linia: #d9cfb3;
  --szeryf: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --margines: 8.5rem;
  --sticky: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--atrament);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.68;
  padding-bottom: var(--sticky);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kobalt); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lodowy);
  outline-offset: 3px;
}
small { font-size: .9rem; color: #5a5140; display: block; margin-top: .5rem; }
h1, h2, h3 { font-family: var(--szeryf); font-weight: 600; line-height: 1.08; margin: 0; font-variant-numeric: lining-nums; }
.oferta__haslo, .wyciag p, .list blockquote { font-variant-numeric: lining-nums; }
p { margin: 0 0 1rem; }

/* ---------- winieta (nagłówek) ---------- */
.winieta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.1rem, 4vw, 3rem);
  border-bottom: 2px solid var(--atrament);
}
.winieta__znak {
  font-family: var(--szeryf);
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  color: var(--atrament);
  text-decoration: none;
  letter-spacing: .01em;
}

/* ---------- przyciski ---------- */
.przycisk, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--kobalt);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--zloto-ciemne);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.przycisk:hover, .btn:hover { background: var(--kobalt-ciemny); transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--zloto-ciemne); }
.przycisk--maly { min-height: 52px; padding: .6rem 1.4rem; font-size: 1.125rem; }
.przycisk--glowny { min-height: 86px; min-width: 330px; padding: 1rem 2.2rem; font-size: 1.45rem; line-height: 1.25; }

/* ---------- inicjały (podpis: inicjały na marginesie) ---------- */
.inicjaly {
  font-family: var(--szeryf);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--zloto-ciemne);
  letter-spacing: .02em;
}
.inicjaly--pyta { color: var(--zloto); font-style: italic; }

/* ---------- otwarcie (hero) ---------- */
.otwarcie {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.1rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}
.otwarcie__tytul {
  font-size: clamp(2.6rem, 6.3vw, 5.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  max-width: 19ch;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.otwarcie__siatka {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
  border-top: 1px solid var(--atrament);
  padding-top: 2rem;
}
.rozmowcy__osoba { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.8rem; font-size: .95rem; line-height: 1.45; color: #4a4232; }
.otwarcie__lead { font-size: 1.25rem; line-height: 1.6; max-width: 36rem; }
.pytanie { font-weight: 600; font-size: 1.22rem; line-height: 1.5; margin: 0; }
.pytanie--pierwsze { display: flex; gap: 1rem; align-items: baseline; margin: 1.8rem 0 2.2rem; max-width: 36rem; }
.pytanie--pierwsze .inicjaly { font-size: 2rem; flex: 0 0 auto; }
.otwarcie__dopisek { font-size: 1rem; color: #4a4232; margin-top: 1.4rem; }
.portret { margin: 0; }
.portret img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  box-shadow: 14px 14px 0 var(--lodowy);
}
figcaption { font-size: 1rem; line-height: 1.5; color: #4a4232; margin-top: 1.4rem; }

/* ---------- sekcje wspólne ---------- */
.rozmowa, .wyklad, .liczby, .oferta, .listy, .pytania {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.1rem, 4vw, 3rem);
}
.naglowek {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  max-width: 22ch;
  margin: 0 0 3rem var(--margines);
}

/* wymiana: inicjały na marginesie, tekst w kolumnie */
.wymiana {
  display: grid;
  grid-template-columns: var(--margines) minmax(0, 40rem);
  align-items: baseline;
  margin-bottom: 1.6rem;
}
.wymiana > .inicjaly { text-align: right; padding-right: 1.6rem; }
.odpowiedz p:last-child { margin-bottom: 0; }

.watek { padding: 2.5rem 0 4.5rem; position: relative; }
.glos {
  position: absolute;
  right: 0;
  top: 6.5rem;
  width: 13.5rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 3px solid var(--zloto);
  font-family: var(--szeryf);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--zloto-ciemne);
}
.watek + .watek .glos { top: 8.5rem; }
.watek + .watek { border-top: 1px solid var(--linia); padding-top: 4.5rem; }
.watek__tytul {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--zloto-ciemne);
  margin: 0 0 2rem var(--margines);
}
.kadr { margin: 3.5rem 0 0 var(--margines); max-width: 52rem; }
.kadr img { box-shadow: -14px 14px 0 var(--len); outline: 1px solid var(--linia); }

/* ---------- wyciąg ---------- */
.wyciag { background: var(--len); padding: clamp(4.5rem, 10vw, 9rem) clamp(1.1rem, 4vw, 3rem); }
.wyciag blockquote { max-width: 1120px; margin: 0 auto; }
.wyciag p {
  font-family: var(--szeryf);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
  line-height: 1.08;
  max-width: 20ch;
  margin: 0 0 2rem var(--margines);
}
.wyciag footer { margin-left: var(--margines); display: flex; align-items: baseline; gap: .8rem; font-size: 1.05rem; }
.wyciag footer .inicjaly { font-size: 1.8rem; }

/* ---------- wykład ---------- */
.ilustracja { max-width: 760px; margin: 3rem auto 4rem; }
.ilustracja img { width: 100%; box-shadow: 12px 12px 0 var(--len); outline: 1px solid var(--linia); }
.przyczyny {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 2rem 0 0 var(--margines);
}
.przyczyna { border-left: 2px solid var(--zloto); padding-left: 1.3rem; }
.przyczyna h3 { font-size: 1.7rem; margin-bottom: .9rem; }
.przyczyna p { margin: 0; }
.objawy { max-width: 46rem; margin: 4.5rem 0 0 var(--margines); }
.objawy h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.2rem; }

/* ---------- liczby ---------- */
.liczby__uklad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 3rem;
  align-items: start;
}
.liczby__tekst .wymiana { grid-template-columns: var(--margines) minmax(0, 1fr); }
.wykres { margin: 0; }
.wykres img { width: 100%; box-shadow: 12px 12px 0 var(--zloto-ciemne); }

/* ---------- oferta ---------- */
.oferta__ramka {
  margin: 3rem 0 0 var(--margines);
  max-width: 42rem;
  background: var(--len);
  padding: 2.6rem 2.4rem 2.8rem;
  box-shadow: 12px 12px 0 var(--zloto);
}
.oferta__haslo { font-family: var(--szeryf); font-size: 2rem; font-weight: 600; line-height: 1.15; margin-bottom: 1.6rem; }

/* ---------- listy czytelników ---------- */
.listy__rzad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-left: var(--margines);
}
.list { margin: 0; padding-top: 1.2rem; border-top: 2px solid var(--atrament); }
.list blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--szeryf);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.2;
}
.list cite { font-style: normal; font-weight: 600; font-size: 1rem; color: var(--zloto-ciemne); }

/* ---------- pytania ---------- */
.pytania__lista { margin-left: var(--margines); max-width: 46rem; }
.pytania details { border-bottom: 1px solid var(--linia); }
.pytania summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 1.4rem 2.5rem 1.4rem 0;
  position: relative;
}
.pytania summary::-webkit-details-marker { display: none; }
.pytania summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: .8rem;
  font-family: var(--szeryf);
  font-size: 2.2rem;
  color: var(--zloto-ciemne);
}
.pytania details[open] summary::after { content: "–"; }
.pytania details p { padding-bottom: 1.4rem; margin: 0; max-width: 40rem; }

/* ---------- zamknięcie ---------- */
.zamkniecie {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.zamkniecie__foto { margin: 0; }
.zamkniecie__foto img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 38% 50%; box-shadow: 14px 14px 0 var(--lodowy); }
.zamkniecie .naglowek { margin-left: 0; font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin-bottom: 2rem; }
.zamkniecie .wymiana { grid-template-columns: 4.5rem minmax(0, 1fr); }
.zamkniecie .przycisk--glowny { margin-top: 1rem; }

/* ---------- stopka ---------- */
.stopka {
  border-top: 2px solid var(--atrament);
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.6rem clamp(1.1rem, 4vw, 3rem) 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}
.stopka p { margin: 0; }
.stopka__linki { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.stopka__linki a { color: var(--atrament); font-size: .95rem; }

/* ---------- podstrony ---------- */
.podstrona { min-height: 100vh; display: flex; flex-direction: column; }
.podstrona main { flex: 1; width: 100%; }
.podstrona .winieta, .podstrona .stopka { width: 100%; }
.dokument { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2rem); }
.dokument h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1.6rem; }
.dokument h2 { font-size: 1.8rem; margin: 2.4rem 0 .8rem; }
.dokument ul { padding-left: 1.2rem; }
.dokument li { margin-bottom: .5rem; }
.dokument__wstep { font-size: 1.22rem; }
.formularz { display: grid; gap: 1.2rem; margin-top: 2rem; }
.formularz label { display: grid; gap: .4rem; font-weight: 600; font-size: 1.05rem; }
.formularz input, .formularz textarea {
  font: inherit;
  padding: .8rem .9rem;
  border: 2px solid var(--atrament);
  border-radius: 0;
  background: #fff;
}
.formularz button { justify-self: start; min-height: 62px; padding: .8rem 2rem; font-size: 1.15rem; }
#kontaktDakujeme { background: var(--len); padding: 2rem; margin-top: 2rem; box-shadow: 10px 10px 0 var(--zloto); }

/* ---------- popup a lišta (engine) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 23, 14, .82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-overlay.show { display: flex; }
.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  background: var(--papier);
  color: var(--atrament);
  padding: 3rem 2.6rem 2.6rem;
  text-align: center;
  box-shadow: 14px 14px 0 var(--zloto);
}
.modal .close {
  position: absolute;
  top: .5rem;
  right: .6rem;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--atrament);
  cursor: pointer;
}
.modal .badge {
  display: inline-block;
  background: var(--zloto-ciemne);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .45rem .9rem;
  margin-bottom: 1.2rem;
}
.modal h3 { font-family: var(--szeryf); font-size: 3.4rem; line-height: 1; margin: 0 0 .6rem; color: var(--kobalt); }
.modal > p { font-size: 1.35rem; font-weight: 600; margin-bottom: 1.2rem; }
.modal .offer { background: var(--len); padding: 1.2rem 1rem .4rem; margin-bottom: 1.8rem; }
.modal .offer p { margin-bottom: .8rem; font-size: 1.1rem; }
.modal .btn { display: flex; width: 100%; min-height: 90px; font-size: 1.45rem; padding: 1rem 1.4rem; white-space: normal; line-height: 1.25; }
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: .8rem 1rem;
  background: var(--atrament);
  color: var(--papier);
}
.sticky-cta > span { font-size: 1.06rem; }
.sticky-cta .btn { flex: 0 0 auto; min-height: 62px; padding: .6rem 1.6rem; font-size: 1.125rem; box-shadow: 4px 4px 0 var(--zloto); }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .glos { position: static; width: auto; max-width: 30rem; margin: 0 0 2rem var(--margines); }
}
@media (max-width: 1020px) {
  :root { --margines: 5.5rem; }
  .otwarcie__siatka { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); }
  .rozmowcy { grid-column: 1 / -1; display: flex; gap: 2rem; flex-wrap: wrap; }
  .przyczyny { grid-template-columns: 1fr; }
  .listy__rzad { grid-template-columns: 1fr; max-width: 40rem; }
  .liczby__uklad { grid-template-columns: 1fr; }
  .wykres { max-width: 480px; }
}

/* ---------- mobil ---------- */
@media (max-width: 720px) {
  :root { --margines: 0rem; --sticky: 150px; }
  body { font-size: 1.0625rem; }
  .winieta__znak { font-size: 1.55rem; }
  .przycisk--maly { padding: .5rem .9rem; font-size: 1.125rem; min-height: 50px; }
  .przycisk--glowny { width: 100%; min-width: 0; font-size: 1.3rem; min-height: 80px; padding: 1rem 1.2rem; }
  .otwarcie { padding-top: 1.8rem; }
  .otwarcie__tytul { font-size: clamp(2.3rem, 10.5vw, 3rem); margin-bottom: 1.4rem; }
  .otwarcie__siatka { grid-template-columns: 1fr; padding-top: 1.4rem; gap: 2rem; }
  .otwarcie__tekst { display: flex; flex-direction: column; }
  .otwarcie__lead { order: 1; font-size: 1.125rem; }
  .otwarcie__tekst .przycisk--glowny { order: 2; }
  .otwarcie__dopisek { order: 3; margin-bottom: 0; }
  .pytanie--pierwsze { order: 4; margin: 2rem 0 0; }
  .rozmowcy { order: 5; grid-column: auto; display: block; border-top: 1px solid var(--linia); padding-top: 1.4rem; }
  .rozmowcy__osoba { flex-direction: row; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
  .rozmowcy__osoba .inicjaly { font-size: 1.8rem; min-width: 2.8rem; }
  .portret { order: 6; }
  .portret img { aspect-ratio: 4 / 4.2; object-position: 52% 50%; box-shadow: 8px 8px 0 var(--lodowy); }
  .naglowek { margin-left: 0; margin-bottom: 2rem; }
  .wymiana { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .wymiana > .inicjaly { font-size: 1.6rem; padding-right: .8rem; text-align: left; }
  .watek__tytul { margin-left: 0; }
  .glos { display: none; }
  .kadr { margin-left: 0; }
  .kadr img { box-shadow: 8px 8px 0 var(--len); }
  .wyciag p, .wyciag footer { margin-left: 0; }
  .ilustracja { margin: 2rem 0 3rem; }
  .przyczyny, .objawy, .oferta__ramka, .listy__rzad, .pytania__lista { margin-left: 0; }
  .liczby__tekst .wymiana, .zamkniecie .wymiana { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .wykres { max-width: none; }
  .wykres img { box-shadow: 8px 8px 0 var(--zloto-ciemne); }
  .oferta__ramka { padding: 1.8rem 1.2rem 2rem; box-shadow: 8px 8px 0 var(--zloto); }
  .oferta__haslo { font-size: 1.7rem; }
  .zamkniecie { grid-template-columns: 1fr; }
  .zamkniecie__foto img { box-shadow: 8px 8px 0 var(--lodowy); }
  .modal { padding: 2.6rem 1.2rem 1.6rem; box-shadow: 8px 8px 0 var(--zloto); }
  .modal h3 { font-size: 2.6rem; }
  .modal .btn { font-size: 1.25rem; min-height: 80px; }
  .sticky-cta { flex-wrap: wrap; gap: .5rem; padding: .7rem .8rem; text-align: center; }
  .sticky-cta > span { flex: 1 1 100%; font-size: 1rem; }
  .sticky-cta .btn { min-height: 60px; }
  .stopka { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .przycisk, .btn { transition: none; }
}
