/* Rytm, studio treningowe. Granat, ciepła biel i jeden żywy kolor (puls).
   Krój nagłówków: Anybody (oś szerokości 50–150), tekst: Archivo. */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 50% 150%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 50% 150%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #16214a;
  --navy-2: #0e1633;
  --navy-3: #22306a;
  --paper: #f5f2ec;
  --paper-2: #e9e5dd;
  --pulse: #ff4f5a;
  --pulse-hi: #ff6c75;
  --steel: #c9d0e3;
  --steel-2: #aab3cd;
  --ink-2: #545c7a;
  --line: rgba(22, 33, 74, 0.16);
  --line-light: rgba(245, 242, 236, 0.2);
  --display: "Anybody", "Arial Narrow", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1360px;
  --gut: clamp(16px, 4vw, 56px);
  --top-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
html.has-dialog, html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--pulse); outline-offset: 3px; }
.first :focus-visible, .row:focus-visible, .blk:focus-visible { outline-color: var(--navy); }
.blk.fam-sila:focus-visible { outline-color: var(--pulse); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--pulse); color: var(--navy); padding: 12px 18px; font-weight: 700; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Typografia ---------- */

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 92%;
  font-size: clamp(36px, 4.6vw, 70px);
  line-height: 0.94;
  letter-spacing: -0.012em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 760;
  font-stretch: 100%;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.link-strong {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  text-decoration-color: var(--pulse);
}
.link-strong:hover { text-decoration-thickness: 4px; }
.link-strong--light { color: var(--paper); }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--pulse); color: var(--navy); }
.btn--accent:hover { background: var(--pulse-hi); }
.btn--ghost { border-color: currentColor; color: var(--paper); background: transparent; }
.btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn--dark { background: var(--navy); color: var(--paper); }
.btn--dark:hover { background: var(--navy-3); }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost-dark:hover { background: var(--navy); color: var(--paper); }

/* ---------- Nagłówek strony ---------- */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--paper);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.top.is-solid, .page-grafik .top { background: var(--navy); box-shadow: 0 1px 0 rgba(245, 242, 236, 0.08); }
.top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  height: var(--top-h); display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); min-height: 44px; }
.logo__mark { width: 26px; height: 26px; fill: var(--pulse); }
.logo__word {
  font-family: var(--display); font-weight: 900; font-stretch: 128%;
  font-size: 30px; line-height: 1; letter-spacing: -0.02em; margin-top: -4px;
}
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 6px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 600; font-size: 15.5px; border-radius: 999px;
}
.nav__list a:hover { background: rgba(245, 242, 236, 0.12); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--pulse); border-radius: 0; }
.top__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.burger {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--paper);
  border-radius: 50%; align-items: center; justify-content: center; margin-right: -8px;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger__lines { position: relative; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -8px; }
.burger__lines::after { top: 8px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--top-h) 0 0 0; z-index: 49;
  background: var(--navy); color: var(--paper);
  padding: 24px var(--gut) 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
}
.menu ul { list-style: none; }
.menu li a {
  display: block; padding: 6px 0; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 40px; line-height: 1.05;
}
.menu li a:active { color: var(--pulse); }
.menu__meta { color: var(--steel-2); margin-top: auto; }

@media (max-width: 1099px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .top__cta { margin-left: auto; }
}
@media (max-width: 599px) {
  :root { --top-h: 64px; }
  .top__cta { display: none; }
  .burger { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--paper);
  min-height: max(660px, 100svh);
  display: flex; align-items: flex-end;
}
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; background: var(--navy-2); }
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.hero__video { z-index: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(22, 33, 74) 0%, rgba(22, 33, 74, 0.72) 12%, rgba(22, 33, 74, 0.3) 32%, rgba(22, 33, 74, 0.06) 55%, rgba(22, 33, 74, 0) 72%),
    linear-gradient(180deg, rgba(14, 22, 51, 0.6) 0, rgba(14, 22, 51, 0) 20%, rgba(14, 22, 51, 0) 62%, rgba(14, 22, 51, 0.55) 100%);
}
.hero__pause {
  position: absolute; z-index: 3; right: 16px; top: calc(var(--top-h) + 14px);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(14, 22, 51, 0.55); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero__pause .i-play { display: none; }
.hero__pause.is-paused .i-play { display: block; fill: currentColor; }
.hero__pause.is-paused .i-pause { display: none; }

.hero__copy {
  position: relative; z-index: 4; width: 100%;
  max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--top-h) + 48px) var(--gut) clamp(40px, 6vh, 64px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 820;
  font-size: clamp(54px, 9.6vw, 152px);
  line-height: 0.91;
  letter-spacing: -0.012em;
  width: min(70vw, 1020px);
  margin: 0 0 30px;
  text-shadow: 0 2px 30px rgba(14, 22, 51, 0.25);
}
.kl { display: block; width: max-content; max-width: none; white-space: nowrap; font-stretch: 100%; }
.hero__lead { max-width: 31em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: rgba(245, 242, 236, 0.88); margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.next {
  position: absolute; z-index: 5; right: var(--gut); bottom: clamp(40px, 6vh, 64px);
  width: 300px; padding: 18px 20px 20px;
  background: var(--paper); color: var(--navy); border-radius: 6px;
  box-shadow: 0 20px 50px -20px rgba(14, 22, 51, 0.6);
}
.next__label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.next__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 0 4px rgba(255, 79, 90, 0.2); }
.next__title { font-family: var(--display); font-weight: 780; font-stretch: 96%; font-size: 24px; line-height: 1.05; margin: 0 0 4px; }
.next__meta { font-size: 15px; margin: 0 0 14px; color: var(--ink-2); }
.next__btn { width: 100%; min-height: 46px; }

@media (min-width: 900px) and (max-width: 1239px) {
  .hero__title { width: min(76vw, 900px); }
  .next { display: none; }
}

@media (max-width: 899px) {
  .hero { display: block; min-height: 0; padding-top: var(--top-h); }
  .hero__media { position: relative; width: 100%; height: min(92vw, 520px); }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(14, 22, 51, 0.35) 0, rgba(14, 22, 51, 0) 30%, rgba(22, 33, 74, 0) 50%, rgba(22, 33, 74, 0.7) 82%, rgb(22, 33, 74) 100%);
  }
  .hero__pause { top: 12px; }
  .hero__copy { padding: 0 var(--gut) 28px; margin-top: -0.95em; font-size: clamp(54px, 15.4vw, 120px); }
  .hero__title { width: 100%; font-size: 1em; margin-bottom: 24px; }
  .next { position: relative; right: auto; bottom: auto; width: auto; margin: 0 var(--gut) 32px; }
}

/* ---------- Dziś i jutro ---------- */

.today { padding: clamp(72px, 9vw, 120px) 0; }
.today__head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  margin-bottom: 44px;
}
.today__head .h2 { margin: 0; }
.today__lead { margin: 0; color: var(--ink-2); max-width: 34em; }
.today__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.day__h {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  padding-bottom: 12px; border-bottom: 3px solid var(--navy); margin-bottom: 6px;
}
.day__name { font-family: var(--display); font-weight: 820; font-stretch: 118%; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.day__date { color: var(--ink-2); font-weight: 500; }
.day__past { font-size: 14.5px; color: var(--ink-2); margin: 10px 0 4px; }
.day__empty { padding: 18px 0; color: var(--ink-2); }
.rows { list-style: none; }
.rows li + li { border-top: 1px solid var(--line); }

.row {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 24px; gap: 4px 18px; align-items: center;
  width: 100%; min-height: 68px; padding: 12px 10px 12px 18px;
  border: 0; background: transparent; text-align: left; color: inherit; border-radius: 4px;
  transition: background-color 0.15s;
}
.row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 3px; background: var(--navy); }
.row.fam-tempo::before { background: var(--pulse); }
.row.fam-spokoj::before { background: var(--steel-2); }
.row:hover { background: rgba(22, 33, 74, 0.06); }
.row__time { font-family: var(--display); font-weight: 760; font-stretch: 88%; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.row__title { display: block; font-weight: 700; font-size: 18px; line-height: 1.2; }
.row__who { display: block; font-size: 14.5px; color: var(--ink-2); }
.row__seats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row__left { font-size: 14px; font-weight: 650; white-space: nowrap; }
.row.is-full .row__left { color: var(--ink-2); }
.row.is-mine { background: rgba(255, 79, 90, 0.1); }
.row.is-mine .row__left { color: #b3202b; }
.row__go { color: #c22834; }
.row__go .ico { width: 22px; height: 22px; stroke-width: 2.6; }

.seats { display: inline-flex; gap: 3px; color: var(--navy); }
.seat { width: 7px; height: 14px; border-radius: 2px; border: 1.5px solid currentColor; opacity: 0.35; }
.seat--taken { background: currentColor; opacity: 0.85; }
.seat--mine { background: var(--pulse); border-color: var(--pulse); opacity: 1; }

.today__tabs { display: none; }
@media (max-width: 1099px) {
  .today__head { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .today__cols { grid-template-columns: 1fr; gap: 0; }
  .today__tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 18px;
    background: var(--paper-2); border-radius: 12px;
  }
  .today__tabs button {
    display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 52px; border: 0; border-radius: 9px;
    background: transparent; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 22px;
  }
  .today__tabs button span { font-family: var(--text); font-stretch: 100%; font-weight: 500; font-size: 14px; color: var(--ink-2); }
  .today__tabs button[aria-selected="true"] { background: var(--navy); color: var(--paper); }
  .today__tabs button[aria-selected="true"] span { color: var(--steel); }
  .day:not(.is-active) { display: none; }
  .day__h { display: none; }
}
@media (max-width: 559px) {
  .row { grid-template-columns: 58px minmax(0, 1fr) 20px; padding-left: 16px; }
  .row__time { font-size: 21px; }
  .row__seats { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .row__go { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- Rodzaje zajęć ---------- */

.types { background: var(--navy); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.types__intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.types__intro .h2 { margin: 0; }
.types__intro p { margin: 0; color: rgba(245, 242, 236, 0.8); max-width: 32em; }
.types__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 64px; align-items: start; }
.types__list { list-style: none; }
.tname {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 4px 0; color: rgba(245, 242, 236, 0.42);
}
.tname__word {
  display: block;
  font-family: var(--display); font-weight: 820; font-stretch: 76%;
  font-size: clamp(50px, 7.4vw, 116px); line-height: 0.95; letter-spacing: -0.01em;
  transition: font-stretch 0.55s var(--ease), color 0.3s;
}
.tname:hover { color: rgba(245, 242, 236, 0.75); }
.tname.is-active { color: var(--paper); }
.tname.is-active .tname__word { font-stretch: var(--on, 126%); color: var(--pulse); }
.tname__word { width: max-content; max-width: 100%; }
.tname__meta {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  font-size: 15.5px; color: rgba(245, 242, 236, 0.75);
  transition: max-height 0.4s var(--ease), opacity 0.3s, margin 0.3s;
}
.tname.is-active .tname__meta { max-height: 60px; opacity: 1; margin: 6px 0 14px; }

.types__panel { position: sticky; top: calc(var(--top-h) + 28px); }
.tp__photo { margin: 0 0 24px; }
.tp__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.tp__desc { font-size: 18px; line-height: 1.55; }
.tp__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 18px; }
.tp__facts dt { font-size: 13.5px; color: var(--steel-2); }
.tp__facts dd { margin: 2px 0 0; font-weight: 700; }
.tp__for { color: rgba(245, 242, 236, 0.78); }
.tp__next-h { font-weight: 700; margin: 26px 0 8px; }
.tp__next { list-style: none; margin-bottom: 18px; }
.tp__next button {
  display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 12px; width: 100%; min-height: 48px; align-items: center;
  border: 0; border-top: 1px solid var(--line-light); background: transparent; color: var(--paper); text-align: left; padding: 8px 4px;
  font-size: 15.5px;
}
.tp__next li:last-child button { border-bottom: 1px solid var(--line-light); }
.tp__next button span:last-child { text-align: right; color: var(--steel); }
.tp__next button:hover { background: rgba(245, 242, 236, 0.07); }

.meter { display: inline-flex; gap: 4px; vertical-align: middle; }
.meter i { width: 18px; height: 8px; border-radius: 2px; background: rgba(22, 33, 74, 0.18); }
.meter i.on { background: var(--navy); }
.meter--light i { background: rgba(245, 242, 236, 0.22); }
.meter--light i.on { background: var(--pulse); }

@media (max-width: 899px) {
  .types__intro { grid-template-columns: 1fr; }
  .types__grid { grid-template-columns: 1fr; gap: 0; }
  .types__item { border-top: 1px solid var(--line-light); }
  .types__item:last-child { border-bottom: 1px solid var(--line-light); }
  .tname { padding: 14px 0; }
  .tname__word { font-size: clamp(44px, 13vw, 76px); }
  .tname.is-active .tname__word { font-stretch: min(112%, var(--on, 112%)); }
  .types__panel { position: static; padding: 4px 0 28px; }
}

/* ---------- Studio ---------- */

.studio { padding: clamp(80px, 10vw, 140px) 0; }
.studio__top { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: 40px 64px; align-items: center; margin-bottom: clamp(64px, 8vw, 120px); }
.studio__lead { font-size: 18px; max-width: 30em; }
.studio__photo { margin: 0; }
.studio__photo img { width: 100%; border-radius: 4px; }
.rooms { margin: 28px 0 0; max-width: 26em; }
.rooms div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.rooms div:last-child { border-bottom: 1px solid var(--line); }
.rooms dt { font-weight: 600; }
.rooms dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto; gap: 56px 64px; }
.offer__item--tall { grid-row: span 2; }
.offer__item img { width: 100%; border-radius: 4px; }
.offer__item--tall img { aspect-ratio: 4 / 4.4; object-fit: cover; }
.offer__item:not(.offer__item--tall) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.offer__item:not(.offer__item--tall) img { aspect-ratio: 4 / 5; object-fit: cover; }
.offer__item--tall .offer__text { padding-top: 24px; max-width: 34em; }
.offer__price { font-weight: 700; display: inline-block; padding: 6px 12px; background: var(--paper-2); border-radius: 4px; font-size: 15.5px; }

@media (max-width: 899px) {
  .studio__top { grid-template-columns: 1fr; }
  .studio__photo { order: -1; }
  .offer { grid-template-columns: 1fr; gap: 48px; }
  .offer__item--tall { grid-row: auto; }
  .offer__item:not(.offer__item--tall) { grid-template-columns: 1fr; }
  .offer__item:not(.offer__item--tall) img { aspect-ratio: 3 / 2; }
}

/* ---------- Trenerzy ---------- */

.team { background: var(--paper-2); padding: clamp(80px, 10vw, 140px) 0; }
.team__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.team__head .h2 { margin: 0; }
.team__head p { margin: 0; color: var(--ink-2); max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.team .chips { margin: 36px 0 40px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font-weight: 650; font-size: 15.5px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color 0.15s, color 0.15s;
}
.chip:hover { background: rgba(22, 33, 74, 0.08); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.team__grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.team__grid.is-switching .coach:not([hidden]) { animation: rise 0.45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.coach__btn { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.coach__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); border-radius: 4px; }
.coach__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.coach__btn:hover .coach__img img { transform: scale(1.04); }
.coach__name { display: block; margin-top: 14px; font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; }
.coach__role { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.coach__btn:hover .coach__name { text-decoration: underline; text-decoration-color: var(--pulse); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.team__empty { color: var(--ink-2); }
.coach__cta {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 24px; border-radius: 4px; background: var(--navy); color: var(--paper);
}
.coach__cta-h { font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.02; margin: 0 0 8px; }
.coach__cta p:not(.coach__cta-h) { color: rgba(245, 242, 236, 0.82); font-size: 15.5px; margin-bottom: 18px; }
.coach__cta .btn { align-self: flex-start; }
@media (max-width: 599px) {
  .coach--cta { grid-column: 1 / -1; }
}

@media (max-width: 1099px) { .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .team__head { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .team .chips { flex-wrap: nowrap; overflow-x: auto; margin: 28px calc(var(--gut) * -1) 32px; padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .team .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .coach__role { font-size: 14px; }
}

/* ---------- Karnety ---------- */

.plans { background: var(--navy); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; }
.plans__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 56px; align-items: end; }
.plans__head .h2 { grid-column: 1 / -1; }
.plans__head .h2 { margin: 0; font-size: clamp(48px, 7vw, 110px); font-stretch: 120%; }
.plans__head p { margin: 0; color: rgba(245, 242, 236, 0.8); max-width: 30em; }
.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  background: var(--navy-2); border-radius: 999px; padding: 4px; border: 1px solid var(--line-light);
}
.switch button {
  position: relative; z-index: 1; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--paper); font-weight: 650; font-size: 15.5px; white-space: nowrap;
  transition: color 0.3s;
}
.switch button[aria-checked="true"] { color: var(--navy); }
.switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--paper); border-radius: 999px; transition: transform 0.4s var(--ease);
}
.switch.is-yearly .switch__thumb { transform: translateX(100%); }

.plans__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-light); }
.plan { display: flex; flex-direction: column; padding: 34px 28px 32px; border-left: 1px solid var(--line-light); }
.plan:first-child { border-left: 0; }
.plan--featured { background: var(--paper); color: var(--navy); border-left: 0; border-radius: 0 0 6px 6px; position: relative; }
.plan--featured + .plan { border-left: 0; }
.plan__flag {
  position: absolute; top: -15px; left: 28px; margin: 0;
  background: var(--pulse); color: var(--navy); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px;
}
.plan__name { font-family: var(--display); font-weight: 800; font-stretch: 104%; font-size: 28px; line-height: 1.05; min-height: 2.1em; }
.plan__lead { color: inherit; opacity: 0.78; font-size: 15.5px; margin: 6px 0 22px; }
.plan__price { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 10px; }
.plan__num {
  font-family: var(--display); font-weight: 820; font-stretch: 84%; font-size: clamp(72px, 7vw, 112px);
  line-height: 0.8; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.plan__unit { font-size: 14px; line-height: 1.2; font-weight: 600; padding-bottom: 4px; opacity: 0.85; }
.plan__sub { font-size: 14.5px; min-height: 3em; opacity: 0.9; }
.plan__sub strong { color: var(--pulse); font-weight: 700; }
.plan--featured .plan__sub strong { color: #c22834; }
.plan__feat { list-style: none; margin: 8px 0 28px; flex: 1; }
.plan__feat li { display: flex; gap: 10px; font-size: 15px; padding: 6px 0; line-height: 1.35; }
.plan__feat .ico { color: var(--pulse); margin-top: 1px; stroke-width: 2.6; }
.plan--featured .plan__feat .ico { color: #c22834; }
.plan--featured .btn--accent { background: var(--navy); color: var(--paper); }
.plan--featured .btn--accent:hover { background: var(--navy-3); }

.compare { margin-top: 80px; }
.compare__title { margin-bottom: 20px; }
.compare__scroll { position: relative; overflow-x: auto; border-radius: 4px; }
.compare__table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15.5px; }
.compare__table th, .compare__table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-light); }
.compare__table thead th { font-family: var(--display); font-weight: 760; font-size: 19px; font-stretch: 100%; vertical-align: bottom; }
.compare__table tbody th { font-weight: 500; color: rgba(245, 242, 236, 0.86); width: 32%; }
.compare__table td { font-weight: 600; }
.compare__table .is-featured { background: rgba(245, 242, 236, 0.07); }
.compare__table .ico--yes { color: var(--pulse); width: 22px; height: 22px; stroke-width: 2.8; }
.compare__table .no { display: inline-block; width: 14px; height: 2px; background: var(--steel-2); opacity: 0.6; vertical-align: middle; }

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 56px; }
.extras p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.extras strong { font-family: var(--display); font-weight: 760; font-size: 20px; }
.extras span { color: rgba(245, 242, 236, 0.78); }

@media (max-width: 1099px) {
  .plans__head { grid-template-columns: 1fr; }
  .plans__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .plan:nth-child(3) { border-left: 0; }
  .plan { border-top: 1px solid var(--line-light); }
  .plan--featured { border-radius: 6px; }
}
@media (max-width: 899px) {
  .compare__table th:first-child, .compare__table td:first-child { position: sticky; left: 0; }
  .compare__table tbody th { background: var(--navy); min-width: 190px; }
  .compare__table thead th:first-child { background: var(--navy); }
}
@media (max-width: 599px) {
  .plans__row { grid-template-columns: 1fr; border-top: 0; }
  .plan { border-left: 0; padding: 30px 0; }
  .plan--featured { padding: 34px 22px 26px; margin: 18px 0 8px; }
  .plan__name { min-height: 0; }
  .switch { width: 100%; }
  .switch button { padding: 0 10px; font-size: 14.5px; }
  .extras { grid-template-columns: 1fr; }
  .plan__feat li:nth-child(n+4) { display: none; }
  .plan__feat { margin-bottom: 20px; }
  .plan__lead { margin-bottom: 14px; }
  .compare { margin-top: 56px; }
  .compare__table { font-size: 14.5px; min-width: 640px; }
  .compare__table th, .compare__table td { padding: 10px 10px; }
  .compare__table tbody th { min-width: 160px; }
}

/* ---------- Pierwszy trening za darmo ---------- */

.first { background: var(--pulse); color: var(--navy); padding: clamp(80px, 10vw, 140px) 0; }
.first__wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px 72px; align-items: start; }
.first__text .h2 { font-size: clamp(44px, 6vw, 96px); font-stretch: 96%; }
.first__text > p { font-size: 18.5px; max-width: 28em; }
.steps { list-style: none; counter-reset: s; margin-top: 36px; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 64px; border-top: 2px solid var(--navy); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 10px;
  font-family: var(--display); font-weight: 820; font-stretch: 120%; font-size: 40px; line-height: 1;
}
.steps strong { font-weight: 750; }

.first__form { background: var(--paper); border-radius: 6px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 30px 60px -30px rgba(14, 22, 51, 0.45); }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.form__legend { font-family: var(--display); font-weight: 760; font-size: 22px; margin-bottom: 14px; padding: 0; }
.goals__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.goal, .pill { position: relative; display: block; cursor: pointer; }
.goal input, .pill input, .check input, .tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.goal__box {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-height: 84px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 6px; background: #fff;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.goal__box svg { grid-row: span 2; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.goal__name { font-weight: 750; font-size: 17px; line-height: 1.2; }
.goal__hint { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.goal:hover .goal__box { border-color: var(--navy); }
.goal input:checked + .goal__box { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.goal input:checked + .goal__box .goal__hint { color: var(--steel); }
.goal input:checked + .goal__box svg { color: var(--pulse); }
.goal input:focus-visible + .goal__box, .pill input:focus-visible + span, .check input:focus-visible + span, .tgl input:focus-visible + span {
  outline: 3px solid var(--navy); outline-offset: 3px;
}
.times__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill span {
  display: flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 6px 16px;
  border: 2px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; font-size: 15.5px; line-height: 1.2;
  transition: border-color 0.15s, background-color 0.15s;
}
.pill small { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.pill:hover span { border-color: var(--navy); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.pill input:checked + span small { color: var(--steel); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15.5px; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; background: #fff;
  font-size: 16px; transition: border-color 0.15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field textarea:hover { border-color: rgba(22, 33, 74, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 33, 74, 0.18); }
.field input::placeholder, .field textarea::placeholder { color: #7d849e; }
[aria-invalid="true"] { border-color: #c22834 !important; }
.goals [aria-invalid="true"] + .goal__box, .times [aria-invalid="true"] + span { border-color: #c22834; }
.form__error { color: #b3202b; font-size: 14.5px; font-weight: 600; margin: 8px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 4px 0 6px; font-size: 15px; }
.check span { position: relative; padding-left: 36px; min-height: 26px; }
.check span::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 2px solid var(--navy); border-radius: 4px; background: #fff;
}
.check input:checked + span::before { background: var(--navy); }
.check input:checked + span::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.form .btn--block { margin-top: 22px; }

.done:focus { outline: none; }
.done__title { font-family: var(--display); font-weight: 800; font-stretch: 96%; font-size: clamp(30px, 3vw, 42px); line-height: 1; margin-bottom: 16px; }
.done__sum { font-size: 17px; }
.done__note { background: var(--paper-2); padding: 14px 16px; border-radius: 6px; }
.done__h { font-weight: 700; margin-top: 22px; }
.done__list { list-style: none; margin-bottom: 26px; }
.done__list button {
  display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 12px; width: 100%; min-height: 52px; align-items: center; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: transparent; padding: 8px 6px; font-size: 15.5px;
}
.done__list li:last-child button { border-bottom: 1px solid var(--line); }
.done__list button span:first-child { font-weight: 700; }
.done__list button:hover { background: rgba(22, 33, 74, 0.06); }

@media (max-width: 899px) {
  .first__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 559px) {
  .goals__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .pill { flex: 1 1 calc(50% - 4px); }
  .done__list button { grid-template-columns: 1fr 1fr; }
  .done__list button span:last-child { grid-column: span 2; color: var(--ink-2); margin-top: -8px; }
}

/* ---------- Kontakt i stopka ---------- */

.contact { background: var(--navy-2); color: var(--paper); padding: clamp(80px, 10vw, 130px) 0 clamp(56px, 7vw, 96px); }
.contact__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px 72px; align-items: center; }
.contact__lead { color: rgba(245, 242, 236, 0.82); max-width: 32em; font-size: 18px; }
.contact__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-light); }
.hours dt { color: rgba(245, 242, 236, 0.75); }
.hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.reach p { margin: 0 0 14px; font-weight: 650; font-size: 17px; }
.reach__k { display: block; font-weight: 500; font-size: 14px; color: var(--steel-2); }
.map { margin: 0; border-radius: 6px; overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map__bg { fill: var(--navy); }
.map__park { fill: #2a3a74; }
.map__street { stroke: rgba(201, 208, 227, 0.35); stroke-width: 10; fill: none; stroke-linecap: round; }
.map__street--main { stroke: rgba(201, 208, 227, 0.6); stroke-width: 26; }
.map__tram { stroke: var(--pulse); stroke-width: 2.5; stroke-dasharray: 8 7; fill: none; opacity: 0.85; }
.map__stop { fill: var(--navy); stroke: var(--pulse); stroke-width: 3; }
.map__bldg { fill: rgba(245, 242, 236, 0.16); }
.map__pin { fill: var(--pulse); stroke: var(--paper); stroke-width: 4; }
.map__label { fill: rgba(245, 242, 236, 0.75); font-family: var(--text); font-size: 15px; font-weight: 600; }
.map__label--street { font-family: var(--display); font-weight: 800; font-size: 22px; fill: var(--navy-2); }
.map__label--strong { fill: var(--paper); font-weight: 750; font-size: 17px; }

.foot { background: var(--navy-2); color: rgba(245, 242, 236, 0.8); padding: 0 0 48px; }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; padding-top: 36px; border-top: 1px solid var(--line-light); }
.foot__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; justify-self: end; }
.foot__nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 10px; text-decoration: none; font-weight: 600; }
.foot__nav a:hover { color: var(--paper); text-decoration: underline; }
.foot__addr, .foot__note { margin: 0; font-size: 14.5px; }
.foot__note { justify-self: end; }
.foot__note a { color: var(--paper); font-weight: 700; text-decoration-color: var(--pulse); text-underline-offset: 3px; }

@media (max-width: 899px) {
  .contact__wrap { grid-template-columns: 1fr; }
  .contact__cols { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__nav, .foot__note { justify-self: start; }
  .foot__nav { margin-left: -10px; }
}

/* ---------- Okna (zajęcia, trener) ---------- */

.dlg {
  width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px);
  padding: 0; border: 0; border-radius: 8px; background: var(--paper); color: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.dlg::backdrop { background: rgba(14, 22, 51, 0.74); }
.dlg[open] { animation: dlg-in 0.32s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.dlg__inner { position: relative; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.dlg__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(245, 242, 236, 0.92); color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
}
.dlg__close .ico { width: 22px; height: 22px; }
.dlg__close:hover { background: #fff; }
.dlg__head { padding: 30px 72px 26px 32px; }
.dlg__head.fam-sila { background: var(--navy); color: var(--paper); }
.dlg__head.fam-tempo { background: var(--pulse); color: var(--navy); }
.dlg__head.fam-spokoj { background: var(--steel); color: var(--navy); }
.dlg__when { margin: 0 0 6px; font-weight: 600; opacity: 0.9; }
.dlg__title { font-family: var(--display); font-weight: 820; font-stretch: 108%; font-size: clamp(38px, 5vw, 58px); line-height: 0.95; }
.tag { display: inline-flex; align-items: center; gap: 6px; margin: 14px 8px 0 0; padding: 5px 12px 5px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tag .ico { width: 16px; height: 16px; stroke-width: 3; }
.tag--mine { background: var(--paper); color: var(--navy); }
.fam-sila .tag--mine .ico { color: #c22834; }
.tag--wait { background: var(--navy-2); color: var(--paper); }
.dlg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 26px 32px 6px; align-items: center; }
.dlg__who { display: flex; gap: 14px; align-items: center; }
.dlg__who img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.dlg__label { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.dlg__name { margin: 0; font-weight: 750; font-size: 18px; line-height: 1.2; }
.dlg__role { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.dlg__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; }
.dlg__facts dt { font-size: 13.5px; color: var(--ink-2); }
.dlg__facts dd { margin: 0; font-weight: 700; }
.dlg__desc { padding: 14px 32px 0; margin: 0 0 10px; font-size: 17px; }
.dlg__for { padding: 0 32px; color: var(--ink-2); font-size: 15.5px; }
.dlg__seats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 32px 0; padding: 16px 0; border-top: 1px solid var(--line); }
.dlg__seats .seat { width: 12px; height: 22px; }
.dlg__count { margin: 0; font-weight: 700; }
.dlg__flash { margin: 6px 32px 0; padding: 12px 14px; background: var(--navy); color: var(--paper); border-radius: 6px; font-weight: 600; }
.dlg__actions { padding: 18px 32px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.dlg__actions .btn { min-width: 220px; }
.dlg__note { margin: 0; font-size: 14.5px; color: var(--ink-2); flex: 1 1 220px; }

.dlg--trainer { width: min(940px, calc(100vw - 32px)); }
.tr { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.tr__img img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.tr__text { padding: 36px 36px 32px; }
.tr__name { font-family: var(--display); font-weight: 820; font-stretch: 104%; font-size: clamp(34px, 4vw, 50px); line-height: 0.98; padding-right: 40px; }
.tr__role { color: var(--ink-2); margin: 8px 0 14px; }
.tr__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tr__specs li { padding: 4px 12px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 14px; font-weight: 650; }
.tr__bio { font-size: 16.5px; }
.tr__creds { list-style: none; margin-bottom: 18px; }
.tr__creds li { position: relative; padding: 4px 0 4px 20px; font-size: 15px; }
.tr__creds li::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 3px; background: var(--pulse); }
.tr__next-h { font-weight: 750; margin: 18px 0 6px; }
.tr__next { list-style: none; margin-bottom: 22px; }
.tr__next button {
  display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px; width: 100%; min-height: 46px; align-items: center; text-align: left;
  border: 0; border-top: 1px solid var(--line); background: transparent; padding: 6px 4px; font-size: 15px;
}
.tr__next li:last-child button { border-bottom: 1px solid var(--line); }
.tr__next button:hover { background: rgba(22, 33, 74, 0.06); }
.tr__when { font-weight: 700; }
.tr__left { color: var(--ink-2); font-size: 14px; }
.tr__phone { margin: 0; }

@media (max-width: 699px) {
  .dlg, .dlg--trainer {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 14px 14px 0 0;
  }
  .dlg[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .dlg__inner { max-height: 92dvh; }
  .dlg__head { padding: 26px 64px 22px 20px; }
  .dlg__grid { grid-template-columns: 1fr; padding: 20px 20px 4px; gap: 18px; }
  .dlg__desc { padding: 12px 20px 0; font-size: 16px; }
  .dlg__for { padding: 0 20px; }
  .dlg__seats { margin: 4px 20px 0; }
  .dlg__flash { margin: 6px 20px 0; }
  .dlg__actions { padding: 16px 20px 26px; }
  .dlg__actions .btn { width: 100%; min-width: 0; }
  .tr { grid-template-columns: 1fr; }
  .tr__img img { max-height: 46vh; object-position: 50% 25%; }
  .tr__text { padding: 24px 20px 28px; }
}

/* ---------- Grafik (podstrona) ---------- */

.g-head { background: var(--navy); color: var(--paper); padding: calc(var(--top-h) + clamp(32px, 4vw, 56px)) 0 clamp(32px, 3.5vw, 48px); overflow: hidden; }
.g-head__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.g-title {
  font-family: var(--display); font-weight: 830; font-stretch: 140%;
  font-size: clamp(72px, 8.8vw, 140px); line-height: 0.78; letter-spacing: -0.02em; margin: 0 0 22px;
}
.g-lead { max-width: 36em; color: rgba(245, 242, 236, 0.82); margin: 0; }
.weeknav { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.weeknav__btns { display: inline-flex; background: var(--navy-2); border-radius: 999px; padding: 4px; border: 1px solid var(--line-light); }
.weeknav button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--paper); font-weight: 650; font-size: 15.5px;
}
.weeknav button[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
.weeknav__range { margin: 0; font-weight: 600; color: var(--steel); }

.g-tools { background: var(--paper); border-bottom: 1px solid var(--line); }
.g-tools__in { padding-top: 22px; padding-bottom: 20px; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; }
.fgroup__label, .fgroup label.fgroup__label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--ink-2); }
.fgroup--types { grid-column: 1 / -1; }
.fgroup--row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-end; grid-column: 1 / -1; }
.chip .ico { width: 18px; height: 18px; }
.chip.fam-tempo[aria-pressed="true"] { background: var(--pulse); border-color: var(--pulse); color: var(--navy); }
.chip.fam-spokoj[aria-pressed="true"] { background: var(--steel); border-color: var(--steel-2); color: var(--navy); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--navy); border-radius: 999px; padding: 3px; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 650; font-size: 15px; }
.seg button[aria-checked="true"] { background: var(--navy); color: var(--paper); }
.select { position: relative; display: inline-block; }
.select select {
  appearance: none; -webkit-appearance: none; min-height: 46px; padding: 0 44px 0 16px; border: 1.5px solid var(--navy); border-radius: 999px;
  background: transparent; font-weight: 650; font-size: 15.5px; min-width: 220px;
}
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none;
}
.tgl { position: relative; display: inline-flex; align-items: center; min-height: 46px; cursor: pointer; }
.tgl span { position: relative; padding-left: 58px; font-weight: 650; font-size: 15.5px; }
.tgl span::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 46px; height: 26px; margin-top: -13px; border-radius: 999px;
  background: var(--paper-2); border: 1.5px solid var(--navy); transition: background-color 0.2s;
}
.tgl span::after {
  content: ""; position: absolute; left: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--navy); transition: transform 0.25s var(--ease), background-color 0.2s;
}
.tgl input:checked + span::before { background: var(--navy); }
.tgl input:checked + span::after { transform: translateX(20px); background: var(--pulse); }
.link-btn { min-height: 44px; border: 0; background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; }
.g-filter-toggle { display: none; }
.g-count { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }

.g-mine { background: var(--paper); }
.g-mine__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; padding-bottom: 4px; }
.g-mine__h { margin: 0; font-weight: 750; }
.g-mine__item {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 0; background: rgba(255, 79, 90, 0.16); font-weight: 650; font-size: 14.5px;
}
.g-mine__item .ico { color: #c22834; stroke-width: 2.8; width: 16px; height: 16px; }
.g-mine__item.is-wait { background: var(--paper-2); }

.g-board { padding: 22px 0 80px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 3px; background: var(--navy); }
.legend .lg-tempo { background: var(--pulse); }
.legend .lg-spokoj { background: var(--steel); }
.legend .lg-full { background: repeating-linear-gradient(135deg, var(--steel-2) 0 3px, transparent 3px 6px); border: 1px solid var(--steel-2); }
.legend .lg-mine { background: var(--paper); box-shadow: inset 0 0 0 3px var(--pulse); }

.board { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); column-gap: 8px; }
.board__dh {
  position: sticky; top: var(--top-h); z-index: 5; background: var(--paper);
  padding: 12px 4px 10px; border-bottom: 3px solid var(--navy); margin-bottom: 10px;
}
.board__dh--corner { border-bottom-color: transparent; }
.board__dn { display: block; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 22px; line-height: 1; }
.board__dd { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.board__dh.is-today { border-bottom-color: var(--pulse); }
.board__dh.is-today .board__dd { color: #b3202b; font-weight: 700; }
.board__t {
  font-family: var(--display); font-weight: 760; font-stretch: 86%; font-size: 17px; font-variant-numeric: tabular-nums;
  padding-top: 10px; color: var(--ink-2); border-top: 1px solid var(--line);
}
.board__c { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.board__c.is-today { background: rgba(255, 79, 90, 0.05); }

.blk {
  position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; min-height: 104px;
  padding: 10px 10px 10px 11px; border: 0; border-radius: 5px; text-align: left; overflow: hidden;
  background: var(--navy); color: var(--paper);
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.blk:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(14, 22, 51, 0.6); }
.blk.fam-tempo { background: var(--pulse); color: var(--navy); }
.blk.fam-spokoj { background: var(--steel); color: var(--navy); }
.blk__top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; opacity: 0.9; }
.blk__time { font-variant-numeric: tabular-nums; font-weight: 750; }
.blk__name { font-family: var(--display); font-weight: 790; font-stretch: 92%; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.02; }
.blk__who { font-size: 13px; line-height: 1.25; opacity: 0.88; }
.blk__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; }
.blk .seats { color: inherit; gap: 2px; }
.blk .seat { width: 4px; height: 10px; border-width: 1px; border-radius: 1px; }
.blk.fam-sila .seat--mine { background: var(--pulse); border-color: var(--pulse); }
.blk.fam-tempo .seat--mine { background: var(--paper); border-color: var(--paper); }
.blk.is-full::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(245, 242, 236, 0.16) 0 4px, transparent 4px 9px);
}
.blk.fam-tempo.is-full::after, .blk.fam-spokoj.is-full::after { background: repeating-linear-gradient(135deg, rgba(22, 33, 74, 0.12) 0 4px, transparent 4px 9px); }
.blk.is-mine { box-shadow: inset 0 0 0 3px var(--pulse); }
.blk.fam-tempo.is-mine { box-shadow: inset 0 0 0 3px var(--navy); }
.blk.is-mine .blk__name::after {
  content: "Twoje"; display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px;
  font-family: var(--text); font-stretch: 100%; font-size: 11.5px; font-weight: 750; background: var(--paper); color: var(--navy);
}
.blk.is-past { opacity: 0.38; filter: grayscale(1); }
.blk.is-past:hover { transform: none; box-shadow: none; }
.board__none { font-size: 13px; color: var(--ink-2); padding: 8px 2px; }

.dayview { display: none; }
.daytabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; position: sticky; top: var(--top-h); z-index: 5; background: var(--paper); padding: 10px 0; }
.daytab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 4px 0;
  border: 1.5px solid var(--line); border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; position: relative;
}
.daytab b { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; font-stretch: 100%; }
.daytab.is-today::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--pulse); }
.daytab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.daypanel { min-height: 50vh; touch-action: pan-y; }
.daypanel__h { font-family: var(--display); font-weight: 820; font-stretch: 116%; font-size: 34px; line-height: 1; margin: 16px 0 6px; }
.daypanel__d { color: var(--ink-2); margin: 0 0 8px; }
.daypanel .row.is-past { opacity: 0.45; filter: grayscale(1); }
.swipe-hint { font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; text-align: center; }

.g-rules { background: var(--paper-2); padding: clamp(64px, 8vw, 110px) 0; }
.g-rules__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 72px; }
.g-rules dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.g-rules dt { font-family: var(--display); font-weight: 760; font-size: 21px; margin-bottom: 6px; }
.g-rules dd { margin: 0; color: var(--ink-2); }
.g-rules .btn { margin-top: 8px; }

@media (max-width: 1239px) {
  .board { column-gap: 5px; grid-template-columns: 50px repeat(7, minmax(0, 1fr)); }
  .blk { padding: 8px 7px 8px 8px; }
  .blk__who { font-size: 12px; }
  .blk__top span:last-child { display: none; }
}
@media (max-width: 999px) {
  .board, .legend--board { display: none; }
  .dayview { display: block; }
  .g-head__in { grid-template-columns: 1fr; }
  .weeknav { align-items: flex-start; }
  .g-filter-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px;
    border: 1.5px solid var(--navy); background: transparent; font-weight: 700;
  }
  .g-filter-toggle[aria-expanded="true"] { background: var(--navy); color: var(--paper); }
  .filters { display: none; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .filters.is-open { display: grid; }
  .g-rules__in { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .g-title { font-stretch: 120%; }
  .g-rules dl { grid-template-columns: 1fr; }
  .fgroup--types .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .fgroup--types .chips::-webkit-scrollbar { display: none; }
  .select select { min-width: 0; width: 100%; }
  .select { display: block; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 24px; }
  .seg button { padding: 0 8px; }
  .fgroup--row { gap: 14px; }
  .fgroup--row > * { width: 100%; }
  .weeknav__btns { width: 100%; }
  .weeknav__btns button { flex: 1; }
}

/* ---------- Ruch ograniczony ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__video { display: none; }
  .hero__pause { display: none; }
}
