/* ════════════════════════════════════════════
   POUKŁADANE — style
   ════════════════════════════════════════════ */

:root{
  /* paleta */
  --bg:        #F5F3EE;   /* papierowa, lekko ciepła biel */
  --main:      #163A25;   /* kolor marki */
  --secondary: #538467;   /* kolor marki — wspierający */
  --brass:     #856329;   /* ciepły akcent — 5,0:1 na tle strony (wcześniej 3,9:1) */
  --ink:       #1A211A;
  --muted:     #5E655D;   /* 5,4:1 na tle strony (wcześniej 4,5:1 — na granicy AA) */
  --hair:      #DBD7CE;
  --deep:      #0F2618;   /* stopka */
  --on-deep:   #8FB8A0;   /* zieleń marki na ciemnej stopce: 7,3:1 (--secondary dawała 3,7:1) */

  --font-display: "Fraunces", Georgia, serif;
  --font-ui:      "Changa", sans-serif;

  /* krzywe ruchu — mocniejsze niż wbudowane ease / ease-out */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-travel: cubic-bezier(.65, 0, .35, 1);   /* ta sama, którą jeździ wskaźnik menu */

  /* Jeden wspólny kontener dla belki, treści i stopki — dzięki temu
     lewa i prawa krawędź logo, tekstów i stopki leżą na tej samej osi.
     Boczny margines rośnie z szerokością okna, a na telefonach z wycięciem
     (landscape) uwzględnia też bezpieczne strefy. */
  --page-max: 1180px;
  --gutter:   clamp(1.25rem, 5vw, 2.5rem);
  --pad-l:    max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r:    max(var(--gutter), env(safe-area-inset-right, 0px));

  /* logo: wysokość z proporcji pliku (1154 × 224), żeby belka mogła
     wyliczyć, ile logo ma „wyjechać" za ekran */
  /* logo = znak (jak w faviconie) + lekki napis obok; wysokość logo to
     wysokość znaku — od niej zależy, o ile chowa się belka na telefonie */
  --logo-h: clamp(2.6rem, 2.2rem + 1.1vw, 3.3rem);
  --logo-size: calc(var(--logo-h) * .43);
  --logo-sub: .62rem;

  /* Menu. Wszystko liczy się od rozstawu (--pitch), więc pięć pozycji
     mieści się na każdym ekranie, a proporcja kropki do przerwy —
     od której zależy sklejanie gooey — zostaje taka sama.
     Na szerokim ekranie wychodzą dokładnie oryginalne wymiary:
     rozstaw 84, kropka 38, wskaźnik 19, margines 23. */
  --pitch: clamp(50px, 16.5vw, 84px);
  --dot:    calc(var(--pitch) / 2.21);
  --dot-mx: calc((var(--pitch) - var(--dot)) / 2);
  --dot-my: 7px;
  --ball:   calc(var(--dot) * .5);

  --travel: 800ms;

  /* zaokrąglenia zdjęć */
  --round: 34px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  /* miejsce na pasek przewijania jest zawsze zarezerwowane — strona nie
     „drga" w bok, gdy ekran powitalny albo okno zespołu blokują scroll */
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body{
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection{ background: color-mix(in srgb, var(--secondary) 28%, transparent); }

/* Odnośnik „przejdź do treści" — widoczny dopiero po Tab */
.skip{
  position: fixed;
  z-index: 10000;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip:focus-visible{ transform: none; outline: 2px solid var(--brass); outline-offset: 2px; }

/* wspólny, widoczny stan fokusu dla klawiatury — wcześniej brakowało go
   przy zwykłych odnośnikach */
:focus-visible{ outline: 2px solid var(--main); outline-offset: 3px; }
a:focus-visible{ border-radius: 3px; }

/* tylko dla czytników ekranu */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* delikatne ziarno papieru zamiast animowanych plamek */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.goo-filter{ position: absolute; width: 0; height: 0; left: -9999px; }

/* ────────────────────────────────────────────
   BELKA — logo po lewej, menu po prawej
   ──────────────────────────────────────────── */
.masthead{
  position: sticky;
  /* Belka NIE zmienia wysokości podczas przewijania — wcześniej na telefonie
     chowała logo przez display:none, przez co treść skakała, przeglądarka
     cofała scroll, belka wracała i całość migotała w pętli (pozycja 40–100 px).
     Teraz ujemne „top" sprawia, że górna część belki po prostu wyjeżdża
     za ekran, a menu zostaje przyklejone. Zero zmian layoutu. */
  top: calc(-1 * var(--hide-top, 1.25rem));
  z-index: 30;
  background: transparent;   /* bez białej płyty — prześwituje tło strony */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(3rem, 10vw, 9rem);
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem var(--pad-r) 1.75rem var(--pad-l);
}

/* Na górze strony belka jest całkiem przezroczysta.
   Dopiero przy scrollu pojawia się delikatna, rozmyta płyta w kolorze tła —
   obie warstwy idą na całą szerokość okna, nie tylko na szerokość kolumny. */
.masthead::before,
.masthead::after{
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.masthead::before{
  /* Płyta zaczyna się dopiero od widocznej części belki. Gdy belka jest
     przyklejona, jej górny fragment (--hide-top) leży nad krawędzią okna,
     a Chrome nie rozmywa tła w tej niewidocznej części — tekst ze stopki
     przebijał wtedy ostro przez belkę. */
  top: var(--hide-top, 1.25rem);
  bottom: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

/* symboliczny, cieniutki pasek pod belką */
.masthead::after{
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right,
              transparent, var(--hair) 18%, var(--hair) 82%, transparent);
}

body.is-stuck .masthead::before,
body.is-stuck .masthead::after{ opacity: 1; }

/* przeglądarki bez color-mix: zwykłe półprzezroczyste tło */
@supports not (background: color-mix(in srgb, red 50%, transparent)){
  .masthead::before{ background: rgba(245, 243, 238, .82); }
}

.masthead__logo{ display: block; line-height: 0; }

/* podstrony tekstowe: w belce jest samo logo — nie ma czego przyklejać */
.masthead:not(:has(.nav)){
  position: relative;
  top: auto;
  grid-template-columns: 1fr;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: calc(var(--logo-h) * .3);
}
.logo__mark{
  height: var(--logo-h);
  width: auto;
  flex: none;
  fill: var(--main);
}
.logo__text{
  display: grid;
  gap: .32rem;
}
.logo__name{
  font-family: var(--font-display);
  font-size: var(--logo-size);
  font-weight: 360;
  font-variation-settings: "opsz" 48;
  line-height: 1;
  letter-spacing: .005em;
  color: var(--secondary);
}
.logo__sub{
  font-size: var(--logo-sub);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: .08em;
}
@media (hover: hover) and (pointer: fine){
  .masthead__logo .logo__name{ transition: color .25s ease; }
  .masthead__logo:hover .logo__name{ color: var(--main); }
}

.masthead__spacer{ display: none; }

/* ────────────────────────────────────────────
   MENU — gooey (mechanika i wymiary 1:1 z oryginału)
   ──────────────────────────────────────────── */
.nav{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
}

.nav__track{
  display: flex;
  filter: url('#gooeyness');
  overflow: hidden;
  position: relative;

  /* własna warstwa kompozycji — filtr rasteryzuje się wtedy w pełnej
     rozdzielczości ekranu, także na wyświetlaczach o dużej gęstości */
  transform: translateZ(0);
  will-change: filter;
}

.nav__dot{
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  /* Jednolite kółko, bez obwódki — wcześniej aktywna kropka miała ciemny brzeg,
     jasne wnętrze i ciemny wskaźnik pośrodku, przez co widać było cienki pierścień. */
  border: 0;
  background: var(--secondary);
  cursor: pointer;
  height: var(--dot);
  width: var(--dot);
  margin: var(--dot-my) var(--dot-mx);
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav__dot.is-active{ background: var(--main); }

/* Przelewanie: kropka, którą wskaźnik opuszcza, jaśnieje na początku przejazdu,
   a ta, do której dojeżdża, ciemnieje pod koniec — kolor „spływa" razem ze smugą,
   zamiast wskakiwać do środka. Przejścia włącza dopiero skrypt (.is-ready),
   żeby przy wczytaniu strony nic nie migało. */
.nav.is-ready .nav__dot{
  transition: background-color calc(var(--travel) * .5) var(--ease-travel)
              calc(var(--travel) * .1);
}
.nav.is-ready .nav__dot.is-active{
  transition: background-color calc(var(--travel) * .5) var(--ease-travel)
              calc(var(--travel) * .4);
}

.nav__ball{
  background: var(--main);
  border-radius: 50%;
  height: var(--ball);
  width: var(--ball);
  left: calc((var(--pitch) - var(--ball)) / 2);
  top:  calc((var(--dot) + 2 * var(--dot-my) - var(--ball)) / 2);
  pointer-events: none;
  position: absolute;
  transform: translateX(0);
  /* przejazdem steruje skrypt (moveBall) — przejście CSS tylko by
     się z nim biło o ten sam transform */
}

.nav__labels{ display: flex; align-items: flex-start; margin-top: .1rem; }

.nav__label{
  color: var(--ink);
  cursor: pointer;
  width: var(--pitch);
  text-align: center;
  font-size: .88rem;
  letter-spacing: .02em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nav.is-ready .nav__label{
  transition: color calc(var(--travel) * .5) var(--ease-travel) calc(var(--travel) * .1);
}
.nav.is-ready .nav__label.is-active{
  transition-delay: calc(var(--travel) * .4);
}
.nav__label.is-active{ color: var(--main); font-weight: 700; }
/* „obszary pracy" — jedyna dwuwyrazowa etykieta, łamie się na dwie linie */
.nav__label--two{ white-space: normal; line-height: 1.15; }

.nav__dot:focus-visible{ outline: 2px solid var(--main); outline-offset: 2px; }

/* ────────────────────────────────────────────
   SCENA
   ──────────────────────────────────────────── */
.stage{
  position: relative;
  z-index: 1;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3rem var(--pad-r) 7rem var(--pad-l);
  min-height: 60vh;
}

.panels{ position: relative; }

.panel[hidden]{ display: none; }

.panel.is-leaving{
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Odjeżdżająca strona nie wystaje pod stopkę, gdy wysokość się zmienia.
     Ucinamy tylko dół — okładka na całą szerokość wychodzi poza kolumnę
     w bok i w górę, więc zwykłe overflow: hidden by ją przycięło. */
  clip-path: inset(-100vh -100vw 0 -100vw);
}

.panel.enter-right, .panel.enter-left,
.panel.leave-left, .panel.leave-right{ will-change: transform; }

.panel.enter-right{ animation: enter-right var(--travel) var(--ease-travel) both; }
.panel.enter-left { animation: enter-left  var(--travel) var(--ease-travel) both; }
.panel.leave-left { animation: leave-left  var(--travel) var(--ease-travel) both; }
.panel.leave-right{ animation: leave-right var(--travel) var(--ease-travel) both; }

@keyframes enter-right{ from{ transform: translateX(100vw); } to{ transform: translateX(0); } }
@keyframes enter-left { from{ transform: translateX(-100vw); } to{ transform: translateX(0); } }
@keyframes leave-left { from{ transform: translateX(0); } to{ transform: translateX(-100vw); } }
@keyframes leave-right{ from{ transform: translateX(0); } to{ transform: translateX(100vw); } }

/* ────────────────────────────────────────────
   TYPOGRAFIA
   ──────────────────────────────────────────── */
.eyebrow{
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

h1{
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 1.4rem;
  color: var(--main);
}

h2{
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 1rem;
  color: var(--main);
}

.lead{
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 46ch;
  color: var(--muted);
  margin: 0;
}

p{ margin: 0 0 1rem; }

h1, h2, h3{ text-wrap: balance; }
p, li{ text-wrap: pretty; }

a{
  color: var(--main);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

/* otwarcie sekcji */
.opener{
  padding: 1.5rem 0 5rem;
  max-width: 52ch;
}
.opener h1{ max-width: 20ch; }
/* zespół: zaraz pod tytułem idzie krótki wstęp, nie zdjęcie */
.opener.opener--tight{ padding-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.opener .lead{ max-width: 48ch; }

/* ────────────────────────────────────────────
   ZDJĘCIA
   ──────────────────────────────────────────── */
figure{ margin: 0; }

figure img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible{ opacity: 1; transform: none; }


/* ────────────────────────────────────────────
   HERO — hasło po lewej, zdjęcie po prawej
   ──────────────────────────────────────────── */
.hero{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero__text .lead{ max-width: 42ch; }

.hero__actions{ margin: 2rem 0 0; }

.hero__figure{
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--hair);
  border-radius: calc(var(--round) * 1.6);
}

/* ────────────────────────────────────────────
   BEAT — naprzemiennie: zdjęcie / hasło
   ──────────────────────────────────────────── */
.beat{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

/* odwrócenie: zdjęcie po prawej */
.beat--flip .beat__figure{ order: 2; }

.beat__figure{
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--hair);
  border-radius: var(--round);
}

/* portrety terapeutek — koła, wszystkie po lewej, jedno pod drugim */
.beat__figure--round{
  aspect-ratio: 1 / 1;
  width: min(300px, 100%);
  border-radius: 50%;
  border: 1px solid var(--hair);
}

/* karta terapeuty: wąska kolumna na portret, szeroka na opis */
.beat:has(.beat__figure--round){
  grid-template-columns: 300px 1fr;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.beat__text p{ color: var(--muted); max-width: 40ch; margin: 0 0 1rem; }
.beat__text p:last-child{ margin-bottom: 0; }

.role{
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass) !important;
  margin: 0 0 .8rem !important;
}

/* ────────────────────────────────────────────
   GALERIA WNĘTRZ
   ──────────────────────────────────────────── */
.block{
  border-top: 1px solid var(--hair);
  padding-top: 3.5rem;
  margin-bottom: clamp(4rem, 9vw, 7rem);
}

.block__title{ margin-bottom: 2.5rem; }

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 1.5rem;
}

.gallery__item{
  overflow: hidden;
  background: var(--hair);
  border-radius: var(--round);
}
.gallery__item.is-tall{ grid-row: span 2; }
.gallery__item.is-wide{ grid-column: span 2; }

/* ────────────────────────────────────────────
   WEZWANIE DO KONTAKTU
   ──────────────────────────────────────────── */
.cta{
  border-top: 1px solid var(--hair);
  padding-top: 3.5rem;
  max-width: 24ch;
}
.cta__title{ margin-bottom: 1.2rem; }
.cta__link{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-decoration: none;
  touch-action: manipulation;
}
.cta__text{
  padding-bottom: 2px;
  background: linear-gradient(var(--secondary), var(--secondary)) 0 100% / 100% 1px no-repeat;
  transition: background-size .3s var(--ease-out);
}
.cta__arrow{
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.cta__link:active .cta__arrow{ transform: translateX(6px); }

/* ────────────────────────────────────────────
   CENNIK
   ──────────────────────────────────────────── */
.price{
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
}
.price th,
.price td{
  text-align: left;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--hair);
  font-weight: 400;
}
.price th{
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}
.price td:nth-child(2){ color: var(--muted); font-size: .9rem; }
.price td:last-child{
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--main);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.note{ font-size: .85rem; color: var(--muted); margin-top: 1.25rem; }

/* ────────────────────────────────────────────
   STOPKA
   ──────────────────────────────────────────── */
.footer{
  position: relative;
  z-index: 1;
  background: var(--deep);
  color: #DEE6DC;
  border-radius: var(--round) var(--round) 0 0;
  padding: 4rem var(--pad-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--pad-l);
}

.footer__inner{
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer p{ margin: 0 0 .8rem; font-size: .92rem; line-height: 1.65; }

.footer__name{
  font-family: var(--font-display);
  font-size: 1.9rem !important;
  font-weight: 400;
  color: #fff;
  margin-bottom: .3rem !important;
  line-height: 1.1;
}
.footer__tag{ color: var(--on-deep); }

.footer__head{
  font-size: .72rem !important;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-deep);
  margin-bottom: .9rem !important;
}

/* odnośniki w stopce: podkreślenie „rysuje się" od lewej zamiast migać */
.footer a{
  color: #DEE6DC;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - var(--ul, 0px)) / 0 1px no-repeat;
  transition: color .2s ease, background-size .3s var(--ease-out);
}
.footer :focus-visible{ outline-color: #DEE6DC; }

.footer__base{
  max-width: var(--page-max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
}
.footer__base p{
  font-size: .8rem !important;
  color: rgba(222,230,220,.7);
  margin: 0;
}


/* ────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────── */
.faq{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.faq__head{ position: sticky; top: 8.5rem; }   /* pod przyklejoną belką */
.faq__lead{ color: var(--muted); max-width: 34ch; margin-bottom: 2rem; }

.faq__figure{
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--hair);
  border-radius: var(--round);
}

.faq__list{ border-top: 1px solid var(--hair); }

.faq__list details{
  border-bottom: 1px solid var(--hair);
}

.faq__list summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.15rem 0;
  touch-action: manipulation;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  transition: color .25s ease;
}
.faq__list summary::-webkit-details-marker{ display: none; }

/* Znacznik +/−: dwie kreski; po otwarciu pionowa się chowa, a całość
   obraca — plus „zamienia się" w minus zamiast przeskakiwać znakiem. */
.faq__list summary::after{
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: .28rem;
  color: var(--secondary);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease-out), background-size .3s var(--ease-out);
}
.faq__list details[open] summary{ color: var(--main); }
.faq__list details[open] summary::after{
  transform: rotate(180deg);
  background-size: 100% 1.5px, 1.5px 0;
}

/* Odpowiedź wjeżdża płynnie. Wysokość — tam, gdzie przeglądarka umie
   animować <details> (::details-content); treść w każdej przeglądarce
   delikatnie się wynurza, z drobnym opóźnieniem między akapitami. */
.faq__list details[open] > :not(summary){ animation: faqIn .4s var(--ease-out) both; }
.faq__list details[open] > :nth-child(3){ animation-delay: .04s; }
.faq__list details[open] > :nth-child(4){ animation-delay: .08s; }
.faq__list details[open] > :nth-child(n+5){ animation-delay: .12s; }
@keyframes faqIn{
  from{ opacity: 0; transform: translateY(-6px); }
}
@supports selector(::details-content){
  :root{ interpolate-size: allow-keywords; }
  .faq__list details::details-content{
    display: flow-root;   /* margines ostatniego akapitu wchodzi do docelowej wysokości — bez skoku na końcu */
    block-size: 0;
    overflow: clip;
    transition: block-size .32s var(--ease-out),
                content-visibility .32s var(--ease-out) allow-discrete;
  }
  .faq__list details[open]::details-content{ block-size: auto; }
}

.faq__list details p{
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 1.3rem;
  padding-right: 2rem;
}


/* ────────────────────────────────────────────
   PRZYCISKI
   ──────────────────────────────────────────── */
.btn{
  display: inline-flex;            /* <a> i <button> mają wtedy ten sam rozmiar */
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;                /* minimalne, wygodne pole dotyku */
  text-decoration: none;           /* przycisk bywa odnośnikiem */
  font-family: var(--font-ui);
  font-size: .88rem;
  line-height: 1.2;
  letter-spacing: .02em;
  padding: .55rem 1.4rem;
  border: 1px solid var(--main);
  border-radius: 999px;
  background: var(--main);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              transform 160ms var(--ease-out);
}
/* wciśnięcie: przycisk się „zapada" — to potwierdza dotyk natychmiast */
.btn:active{ transform: scale(.97); }

.btn--ghost{
  background: transparent;
  color: var(--main);
}

.btn:focus-visible{ outline: 2px solid var(--brass); outline-offset: 2px; }

/* ────────────────────────────────────────────
   BANER COOKIES
   ──────────────────────────────────────────── */
.cookies{
  position: fixed;
  z-index: 20;
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: var(--round);
  box-shadow: 0 18px 40px rgba(15, 38, 24, .14);
}
.cookies[hidden]{ display: none; }

/* baner wjeżdża chwilę po wczytaniu, żeby nie wyskoczył razem z pierwszym malowaniem */
.cookies:not([hidden]){ animation: cookieIn .5s var(--ease-out) .6s both; }
.cookies.is-leaving{ animation: cookieOut .2s var(--ease-out) both; }
@keyframes cookieIn { from{ opacity: 0; transform: translateY(16px); } }
@keyframes cookieOut{ to  { opacity: 0; transform: translateY(12px); } }

.cookies__text{ flex: 1 1 320px; }
.cookies__text p{ margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }

.cookies__title{
  font-family: var(--font-display);
  font-size: 1.05rem !important;
  color: var(--ink) !important;
  margin-bottom: .3rem !important;
}

.cookies__actions{
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* przycisk ustawień w stopce */
.footer__cookies{
  font-family: var(--font-ui);
  font-size: .8rem;
  background: none;
  border: 0;
  padding: .7rem 0;                /* pole dotyku wyższe niż sam napis */
  margin: -.7rem 0;                /* ...bez powiększania stopki */
  color: rgba(222,230,220,.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color .2s ease;
}

/* ────────────────────────────────────────────
   PASEK TELEFONÓW WSPARCIA W STOPCE
   ──────────────────────────────────────────── */
.footer__help{
  max-width: var(--page-max);
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.16);
}
/* Telefony pomocy: każdy numer w osobnej pozycji, z dużym polem dotyku.
   To numery, pod które ktoś może dzwonić w kryzysie — nie mogą być
   drobnym tekstem w jednym akapicie. */
.help-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
}
.help-list li{
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(222,230,220,.8);
}
.help-list a{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background-image: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s ease;
}

/* ────────────────────────────────────────────
   PODSTRONY TEKSTOWE (polityka, standardy)
   ──────────────────────────────────────────── */
.doc{
  position: relative;
  z-index: 1;
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 3rem var(--pad-r) 6rem var(--pad-l);
}
.doc h1{ margin-bottom: 2rem; }
.doc h2{
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}
.doc h3{
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  margin: 2rem 0 .6rem;
}
.doc p, .doc li{ color: var(--muted); }
.doc ul, .doc ol{ padding-left: 1.2rem; margin: 0 0 1.2rem; }
.doc li{ margin-bottom: .5rem; }
.doc__meta{
  font-size: .85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1.5rem;
}
.doc__back{
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--secondary);
}

/* ────────────────────────────────────────────
   CENNIK — opis pod nazwą pozycji
   ──────────────────────────────────────────── */
.price th span{
  display: block;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  margin-top: .25rem;
  max-width: 42ch;
}

/* notka pod opisem terapeuty */
.beat__text .note{
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted);
  opacity: .85;
  border-top: 1px solid var(--hair);
  padding-top: .9rem;
  margin-top: 1.2rem;
}


/* ────────────────────────────────────────────
   POWRÓT NA GÓRĘ

   Pojawia się dopiero przy samym dole strony.
   Chowa się, gdy widoczny jest baner cookies — inaczej
   dwa elementy nachodziłyby na siebie w tym samym rogu.
   ──────────────────────────────────────────── */
.to-top{
  position: fixed;
  z-index: 15;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--bg);
  color: var(--main);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 38, 24, .14);

  /* stan spoczynku: niewidoczny i nieklikalny */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s, background .25s ease, color .25s ease;
  touch-action: manipulation;
}

.to-top svg{ width: 20px; height: 20px; display: block; transition: transform .3s var(--ease-out); }

.to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top.is-visible:active{ transform: scale(.94); transition-duration: 120ms; }
.to-top:focus-visible{ outline: 2px solid var(--brass); outline-offset: 3px; }

/* baner cookies ma pierwszeństwo */
body.cookies-open .to-top{
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}


/* pojedyncze zdjęcie na pełną szerokość kolumny */
.wide-figure{
  margin-top: clamp(3rem, 7vw, 5rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hair);
  border-radius: var(--round);
}

/* listy wewnątrz odpowiedzi FAQ */
.faq__list ul{
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
}
.faq__list li{ margin-bottom: .35rem; }

/* nagłówki cytujące treść klienta bywają dłuższe niż hasło —
   niższy stopień pisma trzyma je w dwóch, trzech wierszach */
.beat__text h2{ font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.hero__text h1{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); max-width: 22ch; }
.opener h1{ max-width: none; }


/* ────────────────────────────────────────────
   ZESPÓŁ — zdjęcie grupowe + lista terapeutek
   ──────────────────────────────────────────── */

.team-intro{
  max-width: 54ch;
  color: var(--muted);
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* jedna terapeutka pod drugą, rozdzielone włosową kreską */
.people{
  display: grid;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.person{
  display: grid;
  grid-template-columns: clamp(170px, 20vw, 240px) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--hair);
}
.person:last-child{ border-bottom: 1px solid var(--hair); }

/* stopniowane wejście wierszy */
.people .person:nth-child(2){ transition-delay: .08s; }
.people .person:nth-child(3){ transition-delay: .16s; }
.people .person:nth-child(4){ transition-delay: .24s; }

.person__photo{
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--round);
  background: var(--hair);
}

.person__body{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.person__name{
  margin: 0 0 .7rem;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.25;
}

.person__lead{
  color: var(--muted);
  margin: 0 0 1.4rem;
  max-width: 46ch;
}

.person__toggle{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

/* znak „+” przy przycisku */
.person__plus{
  position: relative;
  width: .6rem;
  height: .6rem;
  transition: transform .4s cubic-bezier(.3, .8, .3, 1);
}
.person__plus::before,
.person__plus::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
  background: currentColor;
}
.person__plus::after{ transform: rotate(90deg); }


/* ────────────────────────────────────────────
   OKNO Z PEŁNYM OPISEM — natywny <dialog>
   ──────────────────────────────────────────── */
.bio{
  /* „fixed", nie „relative": relative nadpisywało position:fixed z arkusza
     przeglądarki, więc okno liczyło się od początku dokumentu. Po przewinięciu
     listy zespołu było przesunięte o wartość scrolla (na telefonie przycisk ×
     lądował poza ekranem). Fixed nadal jest punktem odniesienia dla krzyżyka. */
  position: fixed;
  width: min(940px, calc(100vw - 2rem));
  max-height: 88vh;
  max-height: 88dvh;
  padding: 0;
  border: 0;
  border-radius: calc(var(--round) * 1.1);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 38, 24, .22);
}

.bio::backdrop{
  background: rgba(15, 38, 24, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bio[open]{ animation: bioIn .34s var(--ease-out); }
.bio[open]::backdrop{ animation: bioFade .34s ease; }

/* zamykanie: krócej niż otwieranie (skrypt dodaje .is-closing i dopiero potem zamyka) */
.bio[open].is-closing{ animation: bioOut .18s var(--ease-out) both; }
.bio[open].is-closing::backdrop{ animation: bioFadeOut .18s ease both; }
@keyframes bioOut{
  to{ opacity: 0; transform: translateY(10px) scale(.985); }
}
@keyframes bioFadeOut{
  to{ opacity: 0; }
}

@keyframes bioIn{
  from{ opacity: 0; transform: translateY(16px) scale(.985); }
  to  { opacity: 1; transform: none; }
}
@keyframes bioFade{
  from{ opacity: 0; }
  to  { opacity: 1; }
}

/* dopóki okno jest otwarte, tło się nie przewija */
html:has(dialog[open]){ overflow: hidden; }

/* Okno jest flexem (tylko gdy otwarte — inaczej nadpisalibyśmy
   display:none, którym przeglądarka chowa zamknięty <dialog>).
   Dzięki min-height:0 krótki opis daje niskie okno, a długi —
   okno na 88vh z przewijaną kolumną tekstu. */
.bio[open]{ display: flex; }

.bio__grid{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
}

.bio__photo{ overflow: hidden; background: var(--hair); }
.bio__photo img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.bio__text{
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(2rem, 3.5vw, 3rem);
  padding-right: clamp(3.25rem, 5vw, 4rem);
}
.bio__text h2{
  margin: 0 0 1.1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
}
.bio__text p{ color: var(--muted); margin: 0 0 1.1rem; }
.bio__text p:last-child{ margin-bottom: 0; }

/* przycisk zamykający — krzyżyk w prawym górnym rogu */
.bio__close{
  position: absolute;
  top: max(.85rem, env(safe-area-inset-top, 0px));
  right: max(.85rem, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--bg);
  color: var(--main);
  font-family: var(--font-ui);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 38, 24, .12);
  touch-action: manipulation;
  transition: background .25s ease, color .25s ease,
              border-color .25s ease, transform 160ms var(--ease-out);
}
.bio__close span{ display: block; margin-top: -2px; transition: transform .35s var(--ease-out); }
.bio__close:active{ transform: scale(.93); }
.bio__close:focus-visible{ outline: 2px solid var(--brass); outline-offset: 2px; }

/* dane kontaktowe na dole okna */
.bio__contact{
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}
.bio__contact-head{
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass) !important;
  margin: 0 0 .9rem !important;
}
.bio__contact p{ margin: 0 0 .55rem; }
.bio__contact a{ color: var(--main); }


/* ────────────────────────────────────────────
   DROBNE OŻYWIENIE — delikatne, nienachalne
   ──────────────────────────────────────────── */

/* zdjęcia wnętrz lekko przybliżają się pod kursorem (patrz blok HOVER na końcu) */
.beat__figure,
.hero__figure{ overflow: hidden; }


/* ────────────────────────────────────────────
   RESPONSYWNOŚĆ
   ──────────────────────────────────────────── */
@media (max-width: 980px){
  /* logo do lewej, menu pod nim i wyśrodkowane */
  /* Logo nad menu. Po przewinięciu logo wyjeżdża za ekran, a menu zostaje
     przyklejone (nic się nie kurczy, więc nic nie skacze):
     schowane = góra 1,5rem + logo + odstęp 1,25rem − 0,5rem zostawione nad menu */
  .masthead{
    --hide-top: calc(var(--logo-h) + 2.25rem);
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.25rem;
    padding: 1.5rem var(--pad-r) 1rem var(--pad-l);
  }
  .nav{ align-items: center; justify-self: center; }
  .masthead__spacer{ display: none; }
  .hero{ grid-template-columns: 1fr; gap: 2.5rem; }
  .faq{ grid-template-columns: 1fr; }
  .faq__head{ position: static; }
  .faq__figure{ aspect-ratio: 16 / 10; }
  .footer__help{ margin-top: 2.5rem; }
  .help-list{ grid-template-columns: 1fr; gap: .9rem; }
  .hero__figure{ aspect-ratio: 16 / 11; }
  .beat{ grid-template-columns: 1fr; gap: 2rem; }
  .beat--flip .beat__figure{ order: 0; }
  .beat:has(.beat__figure--round){ grid-template-columns: 1fr; }
  .beat__figure--round{ width: min(240px, 65%); }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px){
  /* rozstaw menu liczy się z szerokości okna (patrz :root),
     więc tutaj zostają tylko etykiety i odstępy */
  .nav__label{
    font-size: .72rem;
    letter-spacing: 0;
    padding: .7rem .1rem;   /* razem z kropką daje wygodne pole dotyku */
  }
  .stage{ padding: 2rem var(--pad-r) 4rem var(--pad-l); }
  .opener{ padding-bottom: 3.5rem; }
  .gallery{ grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .footer{ padding: 3rem var(--pad-r) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--pad-l); }
  .footer__inner{ grid-template-columns: 1fr; gap: 2rem; }
  .cookies{
    left: max(.75rem, env(safe-area-inset-left, 0px));
    right: max(.75rem, env(safe-area-inset-right, 0px));
    bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
    padding: 1.2rem 1.25rem;
  }
  .to-top{
    right: max(.9rem, env(safe-area-inset-right, 0px));
    bottom: max(.9rem, env(safe-area-inset-bottom, 0px));
    width: 48px; height: 48px;
  }
  .cookies__actions{ width: 100%; }
  .cookies__actions .btn{ flex: 1 1 auto; }
  .doc{ padding: 2rem var(--pad-r) 4rem var(--pad-l); }
  :root{ --round: 26px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .to-top{ transition: opacity 1ms, visibility 1ms; transform: none; }
  .nav.is-ready .nav__dot, .nav.is-ready .nav__label{ transition-duration: 1ms; transition-delay: 0s; }
  .panel{ animation: none !important; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ────────────────────────────────────────────
   ZESPÓŁ + EKRAN POWITALNY — mniejsze ekrany
   ──────────────────────────────────────────── */
@media (max-width: 760px){
  /* zdjęcie nad opisem, nie obok */
  .person{
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: start;
  }
  .person__photo{ width: min(260px, 70%); }
  .person__lead{ max-width: none; }
  
  /* okno z opisem na pełny ekran telefonu */
  .bio{
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
  .bio__grid{
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .bio__photo{ aspect-ratio: 3 / 2; }
  .bio__photo img{ min-height: 0; object-position: center 35%; }
  .bio__text{ padding: 1.75rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }

}

@media (prefers-reduced-motion: reduce){
  .bio[open],
  .bio[open]::backdrop{ animation: none; }
  .person__photo img,
  .beat__figure img,
  .hero__figure img{ transition: none; }
  .person__photo:hover img,
  .beat__figure:hover img,
  .hero__figure:hover img{ transform: none; }
  .person__plus{ transition: none; }
  .person__toggle:hover .person__plus{ transform: none; }
  .people .person{ transition-delay: 0s !important; }
}

/* ────────────────────────────────────────────
   CENNIK — na wąskim ekranie bez ściskania kolumn
   ──────────────────────────────────────────── */
@media (max-width: 620px){
  .price,
  .price tbody,
  .price tr,
  .price th,
  .price td{ display: block; width: 100%; }

  .price tr{
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--hair);
  }
  .price th,
  .price td{ padding: 0; border: 0; }

  .price th{ margin-bottom: .6rem; }

  /* czas i cena w jednym rzędzie, pod nazwą usługi */
  .price td:nth-child(2){
    display: inline-block;
    width: auto;
    margin-right: 1rem;
  }
  .price td:last-child{
    display: inline-block;
    width: auto;
    text-align: left;
    white-space: nowrap;
  }
}

/* ────────────────────────────────────────────
   TYPOGRAFIA NA WĄSKIM EKRANIE
   Na telefonie nagłówki schodzą niżej, żeby wiersz
   mieścił więcej niż kilka słów.
   ──────────────────────────────────────────── */
@media (max-width: 620px){
  h1{ font-size: clamp(1.75rem, 8.5vw, 2.4rem); line-height: 1.12; }
  .hero__text h1{ font-size: clamp(1.5rem, 7.2vw, 2.1rem); line-height: 1.2; }
  h2{ font-size: clamp(1.25rem, 5.6vw, 1.6rem); line-height: 1.25; }
  .beat__text h2{ font-size: clamp(1.2rem, 5.4vw, 1.55rem); }
  body{ font-size: 16px; }
  .lead{ font-size: 1rem; }
  .opener{ max-width: none; }
  .opener h1{ max-width: none; }
}

/* odnośniki w stopce — wygodniejsze do trafienia palcem */
@media (max-width: 620px){
  .footer__col a{
    display: inline-block;
    padding: .35rem 0;
    --ul: .35rem;
  }
}



/* ────────────────────────────────────────────
   ZDJĘCIA — płynne pojawienie po wczytaniu
   (klasę .is-pending skrypt nadaje tylko niewczytanym jeszcze zdjęciom;
   bez JS wszystko jest od razu widoczne)
   ──────────────────────────────────────────── */
.hero__figure img,
.beat__figure img,
.person__photo img,
.faq__figure img,
.wide-figure img,
.bio__photo img{
  transition: transform 1.2s var(--ease-out), opacity .5s var(--ease-out);
}
figure img.is-pending{ opacity: 0; }

/* ────────────────────────────────────────────
   KONTAKT — adres e-mail + „Skopiuj"
   ──────────────────────────────────────────── */
.contact-mail{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1rem;
}
.contact-mail a{ overflow-wrap: anywhere; }

.copy{ font-size: .82rem; padding-inline: 1.1rem; }
.copy__icon{ position: relative; width: 16px; height: 16px; flex: none; }
.copy__i{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), filter .2s var(--ease-out);
}
.copy__i--done{ opacity: 0; transform: scale(.6); filter: blur(2px); }
.copy__i--done path{
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .35s var(--ease-out) .05s;
}
/* dwa napisy w jednej komórce siatki — przycisk nie zmienia szerokości */
.copy__labels{ display: grid; }
.copy__label{
  grid-area: 1 / 1;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
}
.copy__label--done{ opacity: 0; transform: translateY(6px); }

.copy[data-state="done"]{ border-color: var(--secondary); color: var(--main); }
.copy[data-state="done"] .copy__i--copy{ opacity: 0; transform: scale(.6); filter: blur(2px); }
.copy[data-state="done"] .copy__i--done{ opacity: 1; transform: none; filter: none; }
.copy[data-state="done"] .copy__i--done path{ stroke-dashoffset: 0; }
.copy[data-state="done"] .copy__label--idle{ opacity: 0; transform: translateY(-6px); }
.copy[data-state="done"] .copy__label--done{ opacity: 1; transform: none; }

/* ────────────────────────────────────────────
   DOTYK — większe pola trafienia
   ──────────────────────────────────────────── */
@media (pointer: coarse){
  .nav__label{ display: grid; place-items: center; min-height: 44px; }
  .footer__col a{ display: inline-block; padding: .62rem 0; --ul: .62rem; }
}

/* ────────────────────────────────────────────
   HOVER — wyłącznie urządzenia ze wskaźnikiem (mysz, touchpad).
   Na ekranie dotykowym :hover „przykleja się" po tapnięciu — przycisk
   „Wróć na górę" zostawał wypełniony, a zdjęcia przybliżone.
   ──────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine){
  a:hover{ color: var(--brass); }
  .nav__label:hover{ color: var(--main); }

  .cta__link:hover .cta__arrow{ transform: translateX(5px); }
  .cta__link:hover .cta__text{ background-size: 100% 2px; }

  .footer a:hover{ color: #fff; background-size: 100% 1px; }
  .help-list a:hover{ text-decoration-color: currentColor; }
  .footer__cookies:hover{ color: #fff; }

  .faq__list summary:hover{ color: var(--main); }

  .btn:hover{ background: var(--deep); border-color: var(--deep); color: #fff; }
  .btn--ghost:hover{ background: rgba(0,0,0,.05); color: var(--main); border-color: var(--main); }

  .to-top:hover{ background: var(--main); color: #fff; border-color: var(--main); }
  .to-top:hover svg{ transform: translateY(-2px); }

  .bio__close:hover{ background: var(--main); border-color: var(--main); color: #fff; }
  .bio__close:hover span{ transform: rotate(90deg); }

  .person__toggle:hover .person__plus{ transform: rotate(90deg); }

  /* zdjęcia lekko przybliżają się pod kursorem */
  .beat__figure:hover img,
  .hero__figure:hover img,
  .person__photo:hover img{ transform: scale(1.04); }
}

/* ────────────────────────────────────────────
   OGRANICZONY RUCH — nowe animacje
   „Mniej ruchu", nie „zero": zostają zmiany przezroczystości,
   znika przesuwanie, obracanie i skalowanie.
   ──────────────────────────────────────────── */
@keyframes fadeOnly{ from{ opacity: 0; } }
@keyframes fadeOut { to  { opacity: 0; } }

@media (prefers-reduced-motion: reduce){
  .cookies:not([hidden]){ animation: fadeOnly .3s ease both; }
  .cookies.is-leaving{ animation: fadeOut .15s ease both; }

  .faq__list details[open] > :not(summary){ animation: none; }
  .faq__list details::details-content{ transition: none; }
  .faq__list summary::after{ transition: none; }

  .copy__i, .copy__label{ transform: none !important; filter: none !important; }
  .copy__i--done path{ transition: none; }

  .cta__arrow, .to-top svg, .bio__close span, .skip{ transition: none; }
  .btn:active, .bio__close:active, .to-top.is-visible:active{ transform: none; }
  .bio[open].is-closing{ animation: none; }
}


/* ════════════════════════════════════════════
   OŚRODEK — okładka i akapity jeden pod drugim
   ════════════════════════════════════════════ */

/* Zdjęcie na całą szerokość okna, tuż pod menu, na resztę wysokości ekranu.
   --vw i --mh ustawia skrypt (szerokość bez paska przewijania, wysokość belki). */
.cover{
  position: relative;
  width: var(--vw, 100vw);
  margin-left: calc(50% - var(--vw, 100vw) / 2);
  margin-top: -3rem;                       /* zjada górny odstęp sceny */
  height: max(22rem, calc(100vh - var(--mh, 9rem)));
  height: max(22rem, calc(100svh - var(--mh, 9rem)));
  overflow: hidden;
  background: var(--hair);
}
.cover img{ object-position: center 55%; }

/* delikatne przyciemnienie u dołu, żeby wskazówka była czytelna */
.cover::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(15, 38, 24, .42), rgba(15, 38, 24, 0));
  pointer-events: none;
}

.cover__cue{
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.cover__cue-text{ padding-left: .24em; }   /* wyrównanie po rozstrzeleniu liter */
.cover__cue-arrow{
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .3));
  animation: cueBob 2.2s var(--ease-in-out) infinite;
}
@keyframes cueBob{
  0%, 100%{ transform: translateY(0);   opacity: .7; }
  50%     { transform: translateY(7px); opacity: 1; }
}
.cover__cue:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }
body.has-scrolled .cover__cue{ opacity: 0; visibility: hidden; }

.intro{
  max-width: 46rem;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.intro h1{ font-size: clamp(1.9rem, 3.2vw, 2.7rem); max-width: 24ch; }
.intro .lead{ max-width: 44ch; }

/* akapity jeden pod drugim; na szerokim ekranie etykieta po lewej */
.story{
  max-width: 62rem;
  margin-bottom: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--hair);
}
.story__item{
  border-top: 1px solid var(--hair);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}
.story__item h2{ font-size: clamp(1.4rem, 2.4vw, 1.85rem); max-width: 26ch; }
.story__item p:not(.eyebrow){ color: var(--muted); max-width: 54ch; }
.story__item p:last-child{ margin-bottom: 0; }

@media (min-width: 900px){
  .story__item{
    display: grid;
    grid-template-columns: 12rem 1fr;
    column-gap: 3rem;
  }
  .story__item > .eyebrow{ grid-column: 1; grid-row: 1 / span 4; margin-top: .55rem; }
  .story__item > :not(.eyebrow){ grid-column: 2; }
}

/* zdjęcie na samym dole — bez podwójnego odstępu po FAQ */
.block + .wide-figure{ margin-top: 0; }

/* ════════════════════════════════════════════
   OBSZARY PRACY
   ════════════════════════════════════════════ */
.areas{ border-bottom: 1px solid var(--hair); }

.area{
  display: grid;
  grid-template-columns: minmax(13rem, .75fr) 1.25fr;
  gap: clamp(1.25rem, 5vw, 4rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--hair);
}
.area__num{
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.area__head h2{ margin: 0; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.area__body p{ color: var(--muted); max-width: 60ch; }
.area__body p:last-child{ margin-bottom: 0; }
.area__body .area__meta{
  margin-top: 1.4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--main);
}
.areas__cta{ margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }

/* stopniowane wejście kolejnych obszarów nie ma sensu — każdy wchodzi, gdy się pojawi */

/* ════════════════════════════════════════════
   KONTAKT — umówienie wizyty i kafelki terapeutek
   ════════════════════════════════════════════ */
.contact{
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.book h2,
.contact__info h2{ font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.book__lead{ color: var(--muted); max-width: 44ch; margin-bottom: 1.6rem; }
.contact__info p{ color: var(--muted); }

.tiles{
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.tile{
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: .75rem 1rem .75rem .75rem;
  border: 1px solid var(--hair);
  border-radius: calc(var(--round) * .65);
  background: rgba(255, 255, 255, .35);
  color: var(--ink);
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color .25s ease, background-color .25s ease, transform .16s var(--ease-out);
}
.tile:active{ transform: scale(.985); }
.tile__photo{
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hair);
}
.tile__photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.tile__text{ display: grid; gap: .1rem; min-width: 0; }
.tile__name{
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--main);
}
.tile__role{ font-size: .78rem; line-height: 1.4; color: var(--muted); }
.tile__action{
  margin-top: .3rem;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--main);
}
.tile__action span{ display: inline-block; transition: transform .3s var(--ease-out); }

@media (hover: hover) and (pointer: fine){
  .tile:hover{ border-color: var(--secondary); background: rgba(255, 255, 255, .7); }
  .tile:hover .tile__action span{ transform: translateX(4px); }
}

.book__more{ margin: 0 0 1.25rem; }
.book__price{
  margin: 0;
  padding-left: .9rem;
  border-left: 2px solid var(--brass);
  font-size: .92rem;
  color: var(--muted);
}

@media (max-width: 980px){
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .area{ grid-template-columns: 1fr; gap: .9rem; }
}
@media (max-width: 620px){
  .cover{ margin-top: -2rem; }             /* na telefonie scena ma 2rem odstępu */
  .intro h1{ font-size: clamp(1.5rem, 7.2vw, 2.1rem); line-height: 1.2; }
  .story__item h2{ font-size: clamp(1.2rem, 5.4vw, 1.55rem); }
  .tiles{ grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce){
  .cover__cue-arrow{ animation: none; opacity: 1; }
  .tile, .tile__action span{ transition: none; }
}
