/* Y&P. Projekt koncepcyjny m1studio.
   Zaokrąglenia: przyciski i pigułki pełne, karty 28px, telefon 44px. Jeden akcent: koral. */

:root {
  --base: #5158b0;            /* tło sekcji pod hero */
  --base-deep: #2c2a63;
  --ink: #26234f;             /* tekst na jasnym */
  --paper: #f5f2fc;           /* karty */
  --white: #fffdfb;
  --accent: #ff9478;          /* koral */
  --stone-hi: #f1ecfb; --stone: #cfc6ea; --stone-lo: #9d93cf;
  --display: "Chillax", "Avenir Next", system-ui, sans-serif;
  --text: "Author", "Avenir Next", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(18px, 4.5vw, 64px);
  --s: 0;                     /* scroll w wysokościach ekranu, ustawia main.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--base); color: var(--white);
  font-family: var(--text); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
i, em { font-style: normal; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 8px; }

/* sekcje docelowe menu zatrzymują się pod pływającym nagłówkiem */
[id] { scroll-margin-top: 96px; }
/* cele kotwic tylko się rozjaśniają, bez przesunięcia: inaczej po przewinięciu odjeżdżałyby pod nagłówek */
[id].reveal { transform: none; }

/* ---------- Nawigacja ---------- */
/* U góry strony: logo, menu i przycisk osobno na całą szerokość.
   Po zjechaniu (.is-stuck) zsuwają się w jedną małą pigułkę na środku. */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: center; padding: 14px var(--pad) 0; pointer-events: none; }
.nav-bar {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; max-width: 100%; height: 56px; padding: 0; border-radius: 999px;
  background-color: rgb(255 253 251 / 0); box-shadow: 0 0 0 rgb(44 42 99 / 0);
  transition: max-width .8s var(--ease), padding .8s var(--ease), height .6s var(--ease),
              background-color .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
}
.logo { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; transition: font-size .6s var(--ease); }
.nav-links {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background-color: rgb(255 253 251 / .82); color: var(--ink);
  box-shadow: 0 8px 30px rgb(44 42 99 / .16);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), padding .6s var(--ease);
}
.nav-links a { padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color .3s var(--ease), padding .6s var(--ease); }
.nav-links a:hover { background: rgb(81 88 176 / .14); }
.nav .btn { transition: height .6s var(--ease), padding .6s var(--ease), background-color .5s var(--ease), color .5s var(--ease), font-size .6s var(--ease), transform .25s var(--ease); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--white); color: var(--ink); place-content: center; gap: 6px;
}
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.nav.is-open .menu-btn i:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .menu-btn i:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav.is-stuck .nav-bar {
  max-width: 540px; height: 54px; padding: 0 7px 0 22px; color: var(--ink);
  background-color: rgb(255 253 251 / .88); box-shadow: 0 14px 40px rgb(44 42 99 / .22);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav.is-stuck .logo { font-size: 20px; }
.nav.is-stuck .nav-links { background-color: rgb(255 253 251 / 0); box-shadow: none; padding: 0; }
.nav.is-stuck .nav-links a { padding: 8px 13px; }
.nav.is-stuck .btn { height: 40px; padding: 0 18px; font-size: 14px; background: var(--ink); color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  transition: transform .25s var(--ease), background-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-accent { background: var(--ink); color: var(--white); box-shadow: 0 12px 30px rgb(38 35 79 / .32); }
.btn-accent:hover { background: #38347a; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 160vh; overflow: clip; }

/* Zdjęcia: Unsplash (darmowa licencja), ładowane z ich serwera. Przed wdrożeniem warto je pobrać i hostować u siebie. */
.scene { position: absolute; inset: 0; z-index: 0; background: #8f8fdc; }
.sky {
  position: absolute; inset: -6vh 0 auto; height: 132vh;
  background:
    linear-gradient(180deg, rgb(70 66 160 / .5), rgb(70 66 160 / 0) 46%),
    url("https://images.unsplash.com/photo-1601359865491-c47a8d93159d?auto=format&fit=crop&w=2200&q=70") center 30% / cover;
  transform: translateY(calc(var(--s) * 9vh));
}
.orb {
  position: absolute; left: 50%; top: 96vh; width: min(92vmin, 880px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 253 251 / .75) 0%, rgb(255 236 214 / .4) 38%, rgb(255 220 200 / 0) 70%);
  transform: translateY(calc(var(--s) * 8vh));
}

/* ławica chmur na dole hero: zdjęcie wtopione maską w niebo u góry i w kolor sekcji u dołu */
.bank {
  position: absolute; inset: auto 0 -14vh; height: 96vh;
  background:
    linear-gradient(180deg, rgb(81 88 176 / 0) 30%, rgb(81 88 176 / .55) 100%),
    url("https://images.unsplash.com/photo-1460411794035-42aac080490a?auto=format&fit=crop&w=2200&q=70") center 40% / cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 34%, #000 100%);
  transform: translateY(calc(var(--s) * -14vh));
}
.fade { position: absolute; inset: auto 0 0; height: 30vh; background: linear-gradient(180deg, rgb(81 88 176 / 0), var(--base) 82%); }

.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(110px, 17vh, 170px) var(--pad) 0; text-align: center;
  opacity: calc(1.2 - var(--s) * 2.2);
}
h1 {
  max-width: 14ch; margin: 0 auto;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(56px, 15vw, 120px); line-height: .94; letter-spacing: -.03em;
  text-shadow: 0 4px 40px rgb(60 52 140 / .45);
  text-wrap: balance;
}
.hero-sub {
  max-width: 20ch; margin: 22px auto 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 5.4vw, 30px); line-height: 1.18; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgb(60 52 140 / .45);
  text-wrap: balance;
}
.w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(8px);
  animation: word .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .11s); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.hero-inner .btn { margin-top: 30px; opacity: 0; animation: rise .9s var(--ease) 1.25s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* desktop: tytuł i przycisk po lewej, telefon po prawej, oba wyśrodkowane w pierwszym ekranie */
@media (min-width: 861px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: minmax(100vh, auto);
    align-content: start; align-items: center; column-gap: clamp(24px, 4vw, 72px); padding: 0 var(--pad);
  }
  .hero-inner { padding: 80px 0 0; text-align: left; }
  .hero-inner h1 { margin: 0; max-width: 8ch; font-size: clamp(72px, 8.6vw, 150px); }
  .hero-inner .hero-sub { margin: 26px 0 0; max-width: 21ch; font-size: clamp(24px, 2.3vw, 38px); }
  .hero-inner .btn { margin-top: 36px; }
  .hero .phone-wrap { margin: 0; padding-top: 80px; justify-content: center; }
  /* telefon nie wyższy niż ekran pod nagłówkiem */
  .hero .phone { width: min(23vw, 304px, calc((100vh - 140px) * .548)); aspect-ratio: 9 / 16.4; container-type: inline-size; }
  .hero { min-height: 140vh; }   /* treść mieści się w pierwszym ekranie, niżej zostaje tylko przejście przez chmury */
}
/* w wąskim telefonie (niski laptop) wiersze grafiku nie łamią się na trzy linie */
@container (max-width: 290px) {
  .ph-list button { gap: 8px; padding: 9px 8px 9px 10px; font-size: 13px; }
  .ph-list b { font-size: 14px; }
  .ph-list small { font-size: 12px; }
  .ph-list em { padding: 5px 8px; font-size: 12px; }
  .ph-title { font-size: 20px; }
}

/* ---------- Telefon ---------- */
/* telefon stoi w przepływie pod przyciskiem, więc nigdy na niego nie najedzie, niezależnie od wysokości ekranu */
.phone-wrap {
  position: relative; z-index: 3; display: flex; justify-content: center; margin-top: clamp(44px, 7vh, 80px);
  transform: translateY(calc(var(--s) * -12vh));
}
.phone {
  position: relative; width: clamp(236px, 23vw, 304px); aspect-ratio: 9 / 18.6; padding: 54px 16px 16px;
  border-radius: 44px; border: 7px solid rgb(255 253 251 / .78);
  background: linear-gradient(170deg, rgb(244 240 255 / .82), rgb(214 205 247 / .72));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px rgb(44 42 99 / .38), inset 0 0 0 1px rgb(255 255 255 / .6);
  color: var(--ink); text-align: left;
  animation: phone-in 1.3s var(--ease) .7s backwards;
}
@keyframes phone-in { from { opacity: 0; transform: translateY(26vh); } }
.island { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 34%; height: 22px; border-radius: 999px; background: var(--ink); }
.ph-hello { font-size: 14px; font-weight: 500; opacity: .7; }
.ph-title { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2vw, 26px); line-height: 1.1; letter-spacing: -.02em; margin: 4px 0 16px; }
.ph-list { display: grid; gap: 8px; }
.ph-list button, .slots button, .days button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; text-align: left; }
.ph-list button {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 18px; background: rgb(255 253 251 / .78); font-size: 14px; line-height: 1.25;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .2s var(--ease);
}
.ph-list button:hover:not(:disabled) { transform: translateY(-1px); background: var(--white); }
.ph-list button:active:not(:disabled), .slots button:active:not(:disabled) { transform: scale(.98); }
.ph-list b { font-family: var(--display); font-weight: 600; font-size: 15px; }
.ph-list span { font-weight: 600; }
.ph-list small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; opacity: .75; }
.ph-list em { padding: 6px 10px; border-radius: 999px; background: rgb(81 88 176 / .14); font-size: 12.5px; font-weight: 600; transition: background-color .35s var(--ease); }
.ph-list .is-on, .ph-list .is-on:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.ph-list .is-on em { background: var(--accent); color: var(--ink); }
.ph-list :disabled, .slots :disabled { opacity: .5; cursor: default; }
.ph-list :focus-visible, .week :focus-visible { outline-color: var(--base); }
.ph-breath { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgb(255 253 251 / .6); font-size: 13px; font-weight: 500; }
.ph-breath i { display: inline-block; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 55%, #e8698f); animation: breathe 8s ease-in-out infinite; }
.ph-breath i { width: 30px; height: 30px; flex: none; }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1); } }

/* ---------- Biały pas z kartami ---------- */
.sheet {
  position: relative; z-index: 3; margin: 0 0 12vh;
  background: var(--white); color: var(--ink); border-radius: clamp(28px, 4vw, 56px);
}
.sheet .cards { padding-bottom: clamp(48px, 10vh, 110px); }
.sheet .card:not(.card-dark) { background: #f1edfb; }

/* ---------- Wstęp ---------- */
.intro { position: relative; z-index: 2; padding: 4vh var(--pad) 9vh; text-align: center; }
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -.025em;
}
.line { display: block; overflow: hidden; padding-bottom: .12em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.lines.in .line > span { transform: none; }
.lines.in .line:nth-child(2) > span { transition-delay: .1s; }
.lines.in .line:nth-child(3) > span { transition-delay: .2s; }

/* ---------- Joga i pilates ---------- */
.duo {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad) 12vh;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 64px); align-items: start;
}
.duo-item:nth-child(2) { margin-top: clamp(40px, 9vw, 140px); }   /* przesunięcie zamiast równego rzędu */
.ph { margin: 0 0 24px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #6c6cc6; }
.ph img, .room img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -.025em; }
.duo-item > p { margin-top: 14px; max-width: 46ch; font-size: clamp(17px, 1.35vw, 19px); opacity: .9; }
/* głos instruktora: cytat w kroju nagłówków, pod nim zdjęcie i podpis */
.voice { margin: 30px 0 0; max-width: 500px; }
.voice blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.01em; }
.voice figcaption { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.voice img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgb(255 253 251 / .25); }
.voice span { opacity: .85; }
.voice b { display: block; font-weight: 600; opacity: 1; }

/* zdjęcia lekko przybliżają się przy przewijaniu (tam, gdzie przeglądarka zna animation-timeline) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ph img, .room-main img, .room-side img { animation: zoom-out linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes zoom-out { from { transform: scale(1.18); } to { transform: scale(1); } }
  }
}

/* ---------- Instruktorzy ---------- */
.team { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 10vh, 110px) var(--pad) 0; }
.team-title { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.person { display: flex; flex-direction: column; transition-delay: calc(var(--n) * .07s); }
.person figure { margin: 0 0 16px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #ece8f8; }
.person img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.person:hover img { transform: scale(1.05); }

/* desktop z GSAP (.is-pan): sekcja przypięta na wysokość ekranu, tytuł i karty jadą w lewo przy scrollu w dół */
.team.is-pan { max-width: none; height: 100vh; padding: 64px 0 0; background: var(--white); border-radius: inherit; display: flex; align-items: center; overflow: hidden; }
.is-pan .team-track { display: flex; align-items: center; gap: clamp(40px, 4vw, 72px); padding: 0 var(--pad); will-change: transform; }
.is-pan .team-title { flex: 0 0 auto; width: min(46vw, 680px); margin: 0; text-align: left; font-size: clamp(44px, 5.6vw, 88px); }
.is-pan .people { display: flex; gap: clamp(28px, 3vw, 48px); }
.is-pan .person { flex: 0 0 clamp(200px, min(20vw, 36vh), 300px); }   /* na niskich ekranach karty maleją, żeby zmieścić się pod nagłówkiem */
.is-pan .person:nth-child(even) { margin-top: 70px; }   /* karty na dwóch wysokościach, żeby rząd nie był płaski */
.is-pan .person img { transform: scale(1.15); }          /* zapas na paralaksę zdjęcia w ramce */
.is-pan .person:hover img { transform: scale(1.15); }
.person h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; }
.person .role { margin-top: 2px; font-weight: 600; color: var(--base); }
.person p:not(.role) { margin-top: 8px; font-size: 15px; line-height: 1.45; opacity: .8; }
/* najbliższe zajęcia danej osoby: klik przenosi do grafiku na ten dzień */
.next {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0 0; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; font-weight: 600; color: var(--ink); cursor: pointer;
}
.next span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgb(38 35 79 / .3); transition: text-decoration-color .3s; }
.next:hover span { text-decoration-color: currentColor; }
.slots small { display: block; font-size: 13px; font-weight: 500; opacity: .65; }
.slots .is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgb(81 88 176 / 0); } 30% { box-shadow: 0 0 0 4px rgb(81 88 176 / .55); } }

/* ---------- Karty ---------- */
.cards {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: clamp(48px, 10vh, 110px) var(--pad) 12vh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px;
}
.card { grid-column: span 7; padding: clamp(24px, 3vw, 44px); border-radius: 28px; background: var(--paper); color: var(--ink); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.card p { margin-top: 12px; max-width: 42ch; opacity: .84; }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.card-dark { grid-column: span 5; background: var(--base-deep); color: var(--white); display: flex; flex-direction: column; }
.card-dark p { margin: 0 auto; padding-top: 22px; }

.week { padding: 18px; border-radius: 24px; background: linear-gradient(160deg, #e3dcf9, #f9e3ea); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.days button {
  display: grid; justify-items: center; align-content: start; gap: 5px; padding: 9px 0 8px; border-radius: 14px;
  font-size: 13px; font-weight: 600; min-height: 46px; text-align: center;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.days button:hover { background: rgb(255 253 251 / .6); }
.days i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .3s; }
.days .has-booking i { opacity: 1; }
.days .is-on, .days .is-on:hover { background: var(--ink); color: var(--white); }
.slots { display: grid; gap: 8px; }
.slots li { animation: slot-in .5s var(--ease) backwards; animation-delay: calc(var(--n) * 60ms); }
@keyframes slot-in { from { opacity: 0; transform: translateY(10px); } }
.slots button {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 16px; background: rgb(255 253 251 / .82); font-size: 15px; font-weight: 600;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .2s var(--ease);
}
.slots button:hover:not(:disabled) { background: var(--white); transform: translateY(-1px); }
.slots b { font-family: var(--display); }
.slots em { font-size: 13px; font-weight: 500; opacity: .75; }
.slots .is-on, .slots .is-on:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.slots .is-on em { opacity: 1; color: var(--accent); }
.booked { margin: 12px 4px 0 !important; font-size: 14px; font-weight: 500; opacity: 1 !important; min-height: 1.5em; }

.card-kinds { grid-column: 1 / -1; }
.kinds-head { display: grid; gap: 22px; }
/* wyróżnienie: duża liczba w akcencie i krótkie zdanie obok, na lekko zabarwionym tle */
.note {
  display: flex; align-items: center; gap: 20px; max-width: none !important; margin: 0 !important; padding: 16px 28px 16px 16px;
  border-radius: 22px; background: rgb(255 148 120 / .16); opacity: 1 !important; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; font-weight: 500;
}
.note b {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: var(--accent); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -.02em;
}
.kinds { margin-top: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kinds li {
  position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 22px; border-radius: 22px; overflow: hidden;
  color: var(--ink); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.kinds li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(44 42 99 / .18); }
.kinds h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.02em; }
.kinds p { margin: 10px 0 0 !important; max-width: none !important; opacity: .82; font-size: 15px; line-height: 1.4; }
.kinds .meta { margin-top: auto !important; padding-top: 20px; opacity: 1; font-family: var(--display); font-weight: 600; font-size: 15px; }
.k1 { background: radial-gradient(120% 90% at 85% 0%, #ffd2bf, transparent 60%), linear-gradient(160deg, #ffe9df, #ffb39d); }
.k2 { background: radial-gradient(120% 90% at 85% 0%, #d9d6ff, transparent 60%), linear-gradient(160deg, #ebe8ff, #aeb2ef); }
.k3 { background: radial-gradient(120% 90% at 85% 0%, #f6d4ef, transparent 60%), linear-gradient(160deg, #fbe9f6, #d9aee0); }
.k4 { background: radial-gradient(120% 90% at 85% 0%, #cfeaf5, transparent 60%), linear-gradient(160deg, #e6f4fa, #a9cdea); }

/* karnety na całą szerokość: ceny w trzech kolumnach */
.card-dark { grid-column: 1 / -1; align-items: center; text-align: center; }
.card-dark .prices { width: 100%; max-width: 900px; margin-inline: auto; }
.card-dark .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card-dark .prices div { flex-direction: column; align-items: center; gap: 6px; padding: 18px 20px; border-radius: 20px; background: rgb(255 253 251 / .07); }
.card-dark .prices div + div { border-top: 0; }

.prices { margin-top: 20px; display: grid; gap: 4px; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
.prices div + div { border-top: 1px solid rgb(255 253 251 / .16); }
.prices dd { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); white-space: nowrap; }

/* ---------- Sala ---------- */
.room {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad) 12vh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px;
}
.room-title { grid-column: 1 / -1; text-align: center; margin-bottom: clamp(10px, 2vw, 24px); }
.room figure { margin: 0; border-radius: 28px; overflow: hidden; background: #6c6cc6; }
.room-main { grid-column: 1 / 9; aspect-ratio: 16 / 10; }
.room-side { grid-column: 9 / -1; }
.room-kit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.room-kit li { padding: clamp(20px, 2.2vw, 28px); border-radius: 24px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.4; text-align: center; }
.room-kit b { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 21px); }
.room-kit li:nth-child(2) { transition-delay: .06s; } .room-kit li:nth-child(3) { transition-delay: .12s; } .room-kit li:nth-child(4) { transition-delay: .18s; }

/* ---------- Zakończenie i stopka ---------- */
.end { position: relative; z-index: 2; overflow: clip; isolation: isolate; }
.end::before {
  content: ""; position: absolute; inset: auto 0 0; height: min(100%, 110vh); z-index: -1;
  background:
    linear-gradient(180deg, rgb(81 88 176 / .5), rgb(81 88 176 / 0) 60%),
    url("https://images.unsplash.com/photo-1460411794035-42aac080490a?auto=format&fit=crop&w=2200&q=70") center 62% / cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 52%);
          mask-image: linear-gradient(180deg, transparent 0, #000 52%);
}
.closing { padding: 6vh var(--pad) 20vh; text-align: center; }
.closing .btn { margin-top: 30px; }
/* stopka leży na jasnych chmurach, bez własnego tła, więc tekst jest ciemny */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 36px;
  padding: 26px var(--pad) 30px; color: var(--ink);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; font-weight: 600; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer p { width: 100%; font-size: 14px; font-weight: 500; }

/* ---------- Wejścia ---------- */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(3) { transition-delay: .12s; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav.is-stuck .nav-bar { max-width: 360px; }
  .nav-bar { position: relative; }
  .menu-btn { display: grid; }
  .nav.is-stuck .menu-btn { width: 40px; height: 40px; background: rgb(81 88 176 / .12); }
  .nav-links { display: none; }
  /* przy otwartym menu pasek staje się przezroczysty nad ciemnym panelem */
  /* przy otwartym menu pasek zostaje w tym samym miejscu, zmienia tylko kolory */
  .nav.is-open .nav-bar { background-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--white); }
  .nav.is-open .nav-actions .btn { opacity: 0; pointer-events: none; }
  .nav.is-open .menu-btn { background: var(--white); color: var(--ink); }
  .nav.no-anim .nav-bar, .nav.no-anim .nav-bar * { transition: none !important; }
  .nav-links { display: none; }
  .hero { min-height: 172vh; }
  .phone-wrap { margin-top: 40px; }
  .card, .card-dark, .card-wide { grid-column: 1 / -1; }
  .duo { grid-template-columns: 1fr; }
  /* na telefonie instruktorzy przesuwają się w bok */
  .people { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 60%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .people::-webkit-scrollbar { display: none; }
  .person { scroll-snap-align: start; }
  .duo-item:nth-child(2) { margin-top: 24px; }
  .ph { aspect-ratio: 4 / 3; }
  .room-main, .room-side { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .room-kit { grid-template-columns: 1fr 1fr; gap: 12px; }
  .note { padding-right: 18px; }
  .card-wide { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .kinds li { min-height: 200px; padding: 18px; }
  .card-dark .prices { grid-template-columns: 1fr; }
  .phone { width: min(80vw, 300px); }
  .closing { padding-bottom: 16vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w, .hero-inner .btn, .phone { animation: none; opacity: 1; transform: none; filter: none; }
  .ph-breath i, .slots li { animation: none; }
  .nav-bar, .nav-bar * { transition: none; }
  .reveal, .line > span { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 520px) {
  .kinds { grid-template-columns: 1fr; }
  .kinds li { min-height: 0; }
}

/* ---------- Menu na telefonie ---------- */
.menu-panel { display: none; }
@media (max-width: 860px) {
  .menu-panel {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 9; padding: 120px 28px 36px;
    background:
      radial-gradient(120% 70% at 100% 0%, rgb(255 199 180 / .35), transparent 60%),
      radial-gradient(90% 60% at 0% 100%, rgb(143 149 230 / .45), transparent 70%),
      var(--base-deep);
    color: var(--white);
    /* koło zaczyna się i kończy na środku przycisku menu (pozycję ustawia main.js) */
    clip-path: circle(0 at var(--mx, calc(100% - 46px)) var(--my, 42px));
    transition: clip-path .7s var(--ease);
  }
  .menu-panel.is-open { clip-path: circle(150% at var(--mx, calc(100% - 46px)) var(--my, 42px)); }
  .menu-links { display: grid; gap: 6px; }
  .menu-links a {
    font-family: var(--display); font-weight: 600; font-size: clamp(44px, 13vw, 64px); line-height: 1.1; letter-spacing: -.03em;
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .7s var(--ease), color .3s;
  }
  .menu-links a:active { color: #ffc7b4; }
  .menu-foot { display: grid; gap: 18px; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
  .menu-foot .btn { height: 56px; font-size: 18px; }
  .menu-ig { justify-self: center; font-weight: 500; opacity: .8; }
  .menu-panel.is-open .menu-links a, .menu-panel.is-open .menu-foot {
    opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .06s);
  }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .menu-panel { transition: none; }
  .menu-links a, .menu-foot { transition: none; }
}
