/* ==========================================================================
   Avo Tenis: prototyp redesignu
   Paleta: optic (kolor piłki) + jeden głęboki kolor bazowy (--base),
   kreda na jasne sekcje. Jedna rodzina: Archivo z osią szerokości.
   ========================================================================== */

:root {
  /* Głęboka zieleń: skórka awokado / korty trawiaste */
  --base: #0F2A1F;
  --base-deep: #0A1E16;
  --base-mid: #1E4936;
  --glow: #3C7A5A;
  --muted: #4C5F55;
  --muted-light: #A9BDB1;

  --chalk: #F2F3EE;
  --paper: #FFFFFF;
  --optic: #D7EE3A;
  --optic-deep: #C3DB22;
  --ink: var(--base);
  --line-dark: color-mix(in srgb, var(--base) 14%, transparent);
  --line-light: rgba(242, 243, 238, .18);

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 12vw, 168px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --font: "Archivo", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 3px solid var(--optic);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-nav="light"] :focus-visible,
.about :focus-visible,
.camps :focus-visible { outline-color: var(--base-mid); }

.sr-only {
  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: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--optic); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.display {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .94;
  text-wrap: balance;
}

h2.display { font-size: clamp(2.6rem, 6.4vw, 6rem); }

.lead {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head p {
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.section-head--row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

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

.btn {
  --bg: var(--optic);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: 1rem;
  font-stretch: 110%;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s;
}
.btn:hover { background: #E4F65C; }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn--ghost {
  --bg: transparent;
  --fg: var(--chalk);
  box-shadow: inset 0 0 0 1.5px rgba(242, 244, 239, .5);
}
.btn--ghost:hover { background: rgba(242, 244, 239, .1); }
.btn--dark { --bg: var(--ink); --fg: var(--chalk); }
.btn--dark:hover { background: var(--base-mid); }

.link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--optic-deep);
}

/* Logo ------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: .02em;
  font-weight: 850;
  font-stretch: 125%;
  font-size: 1.25rem;
  letter-spacing: .02em;
  text-decoration: none;
  line-height: 1;
}
.logo span:last-child { margin-left: .28em; }
.logo__ball {
  position: relative;
  width: .86em;
  height: .86em;
  border-radius: 50%;
  background: var(--optic);
  overflow: hidden;
  flex: none;
}
.nav[data-on="light"] .logo__ball,
.footer .logo__ball { box-shadow: inset 0 0 0 .07em var(--ink); }
.logo__ball::before,
.logo__ball::after {
  content: "";
  position: absolute;
  top: -10%;
  width: 70%;
  height: 120%;
  border: .09em solid #fff;
  border-radius: 50%;
}
.logo__ball::before { left: -48%; }
.logo__ball::after { right: -48%; }

/* Nawigacja -------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 var(--gutter);
  color: var(--chalk);
  transition: color .3s, background-color .3s, box-shadow .3s;
}
.nav[data-on="light"] { color: var(--ink); }
.nav.is-solid {
  background: var(--nav-bg, var(--chalk));
}
.nav.is-solid[data-on="light"] { box-shadow: 0 1px 0 var(--line-dark); }
.nav.is-solid[data-on="dark"] { box-shadow: 0 1px 0 var(--line-light); }
.nav.is-yellow {
  background: transparent !important;
  box-shadow: none !important;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  position: relative;
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav[data-on="light"] .btn--small { --bg: var(--ink); --fg: var(--chalk); }
.nav.is-yellow .btn--small { --bg: var(--ink); --fg: var(--optic); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav__toggle-bars,
.nav__toggle-bars::before {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .3s var(--ease-out);
}
.nav__toggle-bars { transform: translateY(-4px); }
.nav__toggle-bars::before { content: ""; transform: translateY(8px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: rotate(-90deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 104px var(--gutter) 32px;
  background: var(--base);
  color: var(--chalk);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1.15;
}
body.menu-open .nav { color: var(--chalk); background: transparent; box-shadow: none; }
body.menu-open .nav__cta { visibility: hidden; }

/* ==========================================================================
   HERO: serwis
   ========================================================================== */

.serve {
  position: relative;
  height: 580vh;
  background: var(--base);
}
.serve__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--chalk);
  background:
    radial-gradient(70% 60% at 78% 6%, color-mix(in srgb, var(--glow) 38%, transparent) 0%, transparent 70%),
    radial-gradient(60% 50% at 12% 0%, color-mix(in srgb, var(--glow) 45%, transparent) 0%, transparent 70%),
    radial-gradient(100% 60% at 50% 120%, color-mix(in srgb, var(--glow) 35%, transparent) 0%, transparent 70%),
    var(--base);
}
.serve__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.serve__fallback { display: none; }
.serve.is-fallback .serve__canvas { display: none; }
.serve.is-fallback .serve__fallback {
  display: block;
  position: absolute;
  right: 12vw;
  top: 50%;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #F2FF8C 0%, var(--optic) 35%, #8FA514 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}

.serve__intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 72px var(--gutter) 0;
  pointer-events: none;
}
.serve__intro-inner {
  max-width: min(46rem, 52vw);
  pointer-events: auto;
  will-change: transform, opacity;
}
.serve__title {
  font-size: clamp(3rem, 6.4vw, 6.75rem);
  margin-bottom: 28px;
}
.serve__lead {
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: rgba(242, 244, 239, .82);
  margin-bottom: 36px;
}
.serve__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.serve__hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: .875rem;
  font-weight: 550;
  color: rgba(242, 244, 239, .7);
  pointer-events: none;
}
.serve__hint i {
  display: block;
  width: 2px;
  height: 44px;
  background: linear-gradient(var(--optic), transparent);
  transform-origin: top;
  animation: hint 2.2s var(--ease-in-out) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.serve__phases {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(32px, 9vh, 96px);
  width: min(380px, calc(100% - var(--gutter) * 2));
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}
.serve__phases::before {
  /* przyciemnienie pod podpisami, żeby tekst był czytelny na tle rakiety */
  content: "";
  position: absolute;
  inset: -80px -60px -60px calc(var(--gutter) * -1);
  z-index: -1;
  background: radial-gradient(closest-side at 40% 60%, color-mix(in srgb, var(--base-deep) 78%, transparent), color-mix(in srgb, var(--base-deep) 0%, transparent));
  pointer-events: none;
}
.serve__rail {
  position: relative;
  background: rgba(242, 244, 239, .18);
  border-radius: 2px;
}
.serve__rail i {
  position: absolute;
  inset: 0;
  background: var(--optic);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
}
.serve__phases ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.serve__phases li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  color: rgba(242, 244, 239, .45);
  transition: color .4s;
}
.serve__phase-num {
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.serve__phase-name {
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 112%;
}
.serve__phase-text {
  grid-column: 2;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.serve__phase-text p {
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(242, 244, 239, .82);
}
.serve__phases li.is-active { color: var(--chalk); }
.serve__phases li.is-active .serve__phase-num { color: var(--optic); }
.serve__phases li.is-active .serve__phase-text { grid-template-rows: 1fr; }
.serve__phases li.is-active .serve__phase-text p { padding: 6px 0 12px; }
.serve__phases li.is-done { color: rgba(242, 244, 239, .7); }

.serve__speed {
  position: absolute;
  right: var(--gutter);
  top: 18vh;
  display: grid;
  justify-items: end;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
}
.serve__speed { text-shadow: 0 1px 14px rgba(5, 18, 12, .55); }
.serve__speed-label {
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(242, 244, 239, .72);
}
.serve__speed-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: .9;
}
.serve__speed-value b {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 850;
  font-stretch: 62%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--optic);
}
.serve__speed-value small {
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 700;
}

.serve__wash {
  position: absolute;
  inset: 0;
  background: var(--optic);
  opacity: 0;
  pointer-events: none;
}
.serve__outro {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(48px, 12vh, 140px);
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 9rem);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   O nas (żółta)
   ========================================================================== */

.about {
  position: relative;
  background: var(--optic);
  color: var(--ink);
  padding: clamp(40px, 6vw, 96px) 0 var(--section);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px var(--gutter);
  align-items: start;
}
.about__title {
  grid-column: 1 / span 7;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
}
.about__body {
  grid-column: 8 / span 5;
  padding-top: 10px;
}
.about__body p:not(.lead) { color: color-mix(in srgb, var(--base) 82%, transparent); }
.programs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
}
.programs li {
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 650;
  font-size: .9375rem;
}

/* Tablica wyników */
.board {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--base);
  color: var(--chalk);
  border-radius: 6px;
  padding: 10px;
  gap: 10px;
}
.board__cell {
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 26px 24px 22px;
  background: var(--base-deep);
  border-radius: 3px;
  min-height: 200px;
}
.board__num {
  display: flex;
  font-size: clamp(3rem, 5.6vw, 5.25rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--optic);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  height: 1em;
}
.board__digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}
.board__digit > span {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s var(--ease-out);
}
.board__digit > span > span { height: 1em; line-height: 1; }
.board__label {
  font-size: 1rem;
  font-weight: 550;
  color: var(--muted-light);
  max-width: 14ch;
}

/* ==========================================================================
   Oferta
   ========================================================================== */

.offer {
  position: relative;
  padding: var(--section) 0;
  overflow: hidden;
  isolation: isolate;
}
/* Pas „gem set mecz” na dole oferty: litery puchną pod kursorem (osie wdth i wght),
   a delikatne pogrubienie samo wędruje po napisie */
.offer__type {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 .14em;
  margin: clamp(64px, 9vw, 128px) 0 calc(var(--section) * -0.5);
  padding: 0 var(--gutter) .1em;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: layout paint style;
  color: var(--base);
  font-size: clamp(4.5rem, 12.4vw, 15rem);
  line-height: .84;
  letter-spacing: -.02em;
}
.offer__word { white-space: nowrap; }
.offer__word > span {
  display: inline-block;
  font-stretch: 72%;
  font-weight: 260;
  opacity: .1;
}

.offer__list { border-top: 2px solid var(--ink); }
.offer__item { border-bottom: 1px solid var(--line-dark); }
.offer__head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 36px) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.offer__name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.75rem, 3.8vw, 3.5rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -.02em;
  line-height: 1;
  transition: font-stretch .5s var(--ease-out);
}
.offer__item.is-open .offer__name { font-stretch: 125%; }
.offer__short {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
}
.badge {
  font-style: normal;
  font-size: .8125rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--optic);
  vertical-align: middle;
}
.offer__icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background-color .25s, transform .5s var(--ease-out);
}
.offer__icon::before,
.offer__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.offer__icon::after { transform: rotate(90deg); }
.offer__head:hover .offer__icon { background: var(--optic); }
.offer__item.is-open .offer__icon { transform: rotate(180deg); }
.offer__item.is-open .offer__icon::after { transform: rotate(0deg); }

.offer__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-out);
}
.offer__item.is-open .offer__panel { grid-template-rows: 1fr; }
.offer__inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 64px);
}
.offer__text {
  padding-bottom: 40px;
  max-width: 36rem;
}
.offer__inner .ph {
  aspect-ratio: 4 / 3;
  margin-bottom: 40px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  font-weight: 550;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--optic);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* Placeholder zdjęcia */
.ph {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .35) calc(50% - 1px), rgba(255, 255, 255, .35) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(transparent 22%, rgba(255, 255, 255, .35) 22%, rgba(255, 255, 255, .35) calc(22% + 2px), transparent calc(22% + 2px), transparent calc(78% - 2px), rgba(255, 255, 255, .35) calc(78% - 2px), rgba(255, 255, 255, .35) 78%, transparent 78%),
    linear-gradient(135deg, color-mix(in srgb, var(--base-mid) 80%, var(--glow)), var(--base-mid));
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--base-deep) 70%, transparent);
  color: var(--chalk);
  font-size: .8125rem;
  font-weight: 600;
}

/* ==========================================================================
   Dzieci: pięć etapów umiejętności
   ========================================================================== */

.kids {
  padding: var(--section) 0;
  background: var(--base);
  color: var(--chalk);
}
.kids .section-head p { color: rgba(242, 243, 238, .75); }
.stages {
  --fill: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.4vw, 40px);
}
.stages__line {
  /* położenie liczone w JS: od środka pierwszego do środka ostatniego numeru */
  position: absolute;
  background: var(--line-light);
  pointer-events: none;
}
.stages__line i {
  position: absolute;
  inset: 0;
  background: var(--optic);
  transform-origin: left center;
  transform: scaleX(var(--fill));
}
.stages.is-vertical .stages__line i {
  transform-origin: center top;
  transform: scaleY(var(--fill));
}
.stage {
  position: relative;
  z-index: 1;
  padding-top: 76px;
}
.stage__n {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--base);
  box-shadow: inset 0 0 0 2px rgba(242, 243, 238, .28);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  transition: background-color .45s var(--ease-out), color .45s, box-shadow .45s, transform .45s var(--ease-out);
}
.stage.is-on .stage__n {
  background: var(--optic);
  color: var(--ink);
  box-shadow: none;
  transform: scale(1.08);
}
.stage__age {
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 16px;
  text-wrap: balance;
}
.stage p {
  font-size: 1rem;
  color: rgba(242, 243, 238, .78);
  transition: color .45s;
}
.stage.is-on p { color: var(--chalk); }

/* ==========================================================================
   Trenerzy
   ========================================================================== */

.coaches { padding: var(--section) 0; }
.coaches__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.coach {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.coach__photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--base-mid);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.coach__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.coach__name {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.coach__role { color: var(--muted); font-weight: 550; }
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
}
.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: .875rem;
  font-weight: 600;
}
.coach__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-out);
}
.coach__more > div { overflow: hidden; }
.coach__more > div > p:first-child { margin-top: 1em; }
.coach__more.is-open { grid-template-rows: 1fr; }
.more-btn {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--optic-deep);
}

/* ==========================================================================
   Cennik (kort twardy)
   ========================================================================== */

.pricing {
  position: relative;
  padding: var(--section) 0;
  background: var(--base-mid);
  color: var(--chalk);
  overflow: hidden;
  isolation: isolate;
}
.pricing::before {
  /* linie kortu w tle */
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .12) calc(50% - 1px), rgba(255, 255, 255, .12) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, .12) calc(18% + 2px), transparent calc(18% + 2px));
}
.pricing .section-head p { color: rgba(242, 244, 239, .78); }
.prices {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  border-top: 3px solid var(--chalk);
}
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(120px, 180px);
  align-items: center;
  gap: 16px 32px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 2px solid rgba(242, 244, 239, .55);
}
.price__name h3 {
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 750;
  font-stretch: 115%;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.price__name p { color: rgba(242, 244, 239, .78); }
.price__value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}
.price__value b {
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 850;
  font-stretch: 80%;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price__value small {
  font-size: 1rem;
  font-weight: 550;
  color: rgba(242, 244, 239, .78);
}
.price__note {
  margin: 0;
  justify-self: end;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--base-deep) 28%, transparent);
  font-size: .9375rem;
  font-weight: 600;
}

/* ==========================================================================
   Galeria
   ========================================================================== */

.gallery { padding: var(--section) 0; overflow: hidden; }
.gallery__nav { display: flex; gap: 8px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  cursor: pointer;
  transition: background-color .2s;
}
.round-btn:hover { background: var(--optic); }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 var(--gutter) 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track.is-dragging .ph { pointer-events: none; }
.gallery__track .ph {
  flex: none;
  height: clamp(280px, 38vw, 520px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
}
.gallery__track .ph--tall { aspect-ratio: 3 / 4; }
.gallery__track .ph--wide { aspect-ratio: 3 / 2; }

/* ==========================================================================
   Lokalizacje
   ========================================================================== */

.places {
  padding: var(--section) 0;
  background: var(--base);
  color: var(--chalk);
}
.places__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.places__intro { color: rgba(242, 244, 239, .78); max-width: 32rem; margin: 24px 0 40px; }
.places__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.places__lists h3 {
  font-size: 1.125rem;
  font-weight: 750;
  font-stretch: 112%;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--chalk);
}
.places__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.places__list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 1rem;
  font-weight: 500;
  transition: color .2s, padding-left .3s var(--ease-out);
}
.places__list li small {
  display: block;
  font-size: .875rem;
  color: rgba(242, 244, 239, .6);
}
.places__list li[data-town] { cursor: default; }
.places__list li.is-hot { color: var(--optic); padding-left: 8px; }
.places__more { color: rgba(242, 244, 239, .6); border-bottom: 0 !important; }

.radar { margin: 0; }
.radar svg { width: 100%; height: auto; overflow: visible; }
.radar figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: .875rem;
  color: rgba(242, 244, 239, .55);
}
.radar__rings circle {
  fill: none;
  stroke: rgba(242, 244, 239, .16);
  stroke-width: .5;
}
.radar__rings line { stroke: rgba(242, 244, 239, .08); stroke-width: .5; }
.radar__rings text {
  fill: rgba(242, 244, 239, .45);
  font-size: 4.2px;
  font-weight: 600;
}
.radar__sweep {
  animation: sweep 7s linear infinite;
  transform-origin: 0 0;
}
@keyframes sweep { to { transform: rotate(-360deg); } }
.radar__dot { cursor: pointer; }
.radar__dot circle.core {
  fill: var(--optic);
  transition: r .3s var(--ease-out);
}
.radar__dot circle.halo {
  fill: none;
  stroke: var(--optic);
  stroke-width: .6;
  opacity: 0;
  transition: opacity .3s, r .4s var(--ease-out);
}
.radar__dot text {
  fill: var(--chalk);
  font-size: 5.2px;
  font-weight: 650;
  font-stretch: 110%;
  opacity: .75;
  transition: opacity .2s, fill .2s;
}
.radar__dot.is-hot circle.core { r: 3.6px; }
.radar__dot.is-hot circle.halo { opacity: 1; r: 8px; }
.radar__dot.is-hot text { opacity: 1; fill: var(--optic); }
.radar__home circle.core { fill: var(--chalk); }
.radar__home .pulse {
  fill: none;
  stroke: var(--chalk);
  stroke-width: .6;
  transform-origin: 0 0;
  animation: pulse 2.6s var(--ease-out) infinite;
}
.radar__home text { font-size: 6.4px; font-weight: 800; opacity: 1; }
@keyframes pulse {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(4.5); opacity: 0; }
}

/* ==========================================================================
   Obozy
   ========================================================================== */

.camps {
  padding: var(--section) 0;
  background: var(--optic);
  color: var(--ink);
}
.camps__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px var(--gutter);
  align-items: end;
}
.camps h2 {
  grid-column: 1 / span 7;
  font-size: clamp(2.6rem, 6vw, 5.75rem);
}
.camps__body {
  grid-column: 8 / span 5;
  display: grid;
  gap: 28px;
  justify-items: start;
}
.camps__body p { font-size: 1.1875rem; margin: 0; }
.ph--camp {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 8;
}

/* ==========================================================================
   Partnerzy
   ========================================================================== */

.partners { padding: 56px 0; border-bottom: 1px solid var(--line-dark); }
.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}
.partners h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}
.partners ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.partners li a,
.partners__ph {
  display: grid;
  place-items: center;
  min-width: 168px;
  height: 64px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 700;
  font-stretch: 110%;
  text-decoration: none;
}
.partners li a { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-dark); }
.partners li a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.partners__ph {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--base) 4%, transparent) 8px 9px);
}

/* ==========================================================================
   Kontakt (z interaktywną siatką)
   ========================================================================== */

.contact {
  position: relative;
  padding: var(--section) 0;
  background: var(--base);
  color: var(--chalk);
  overflow: hidden;
  isolation: isolate;
}
.contact__net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.contact__hint {
  position: absolute;
  left: var(--gutter);
  bottom: 20px;
  margin: 0;
  font-size: .8125rem;
  color: rgba(242, 244, 239, .45);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__info h2 { font-size: clamp(2.6rem, 5.6vw, 5.25rem); margin-bottom: 24px; }
.contact__info > p { color: rgba(242, 244, 239, .78); max-width: 28rem; }
.contact__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin: 48px 0 0;
}
.contact__list dt {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(242, 244, 239, .6);
  margin-bottom: 4px;
}
.contact__list dd {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 700;
  font-stretch: 108%;
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--optic); }

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 6px;
  background: color-mix(in srgb, var(--base-deep) 94%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 600; }
.opt { font-weight: 450; color: rgba(242, 244, 239, .55); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: rgba(242, 244, 239, .08);
  box-shadow: inset 0 -2px 0 rgba(242, 244, 239, .35);
  color: var(--chalk);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field select option { color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 244, 239, .4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: rgba(242, 244, 239, .12);
  box-shadow: inset 0 -2px 0 var(--optic);
}
.field.is-invalid input { box-shadow: inset 0 -2px 0 #FF8A7A; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__status { margin: 0; min-height: 1.5em; font-size: .9375rem; color: var(--optic); }
.form__status.is-error { color: #FFB1A6; }

/* Stopka */
.footer {
  padding: 40px 0;
  background: var(--base-deep);
  color: rgba(242, 244, 239, .72);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.footer .logo { color: var(--chalk); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer nav a { text-decoration: none; font-size: .9375rem; }
.footer nav a:hover { color: var(--optic); }
.footer p { margin: 0; font-size: .875rem; }

/* ==========================================================================
   Responsywność
   ========================================================================== */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 4px; }
  .coaches__grid { grid-template-columns: 1fr; max-width: 760px; }
  .board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .about__title,
  .about__body,
  .camps h2,
  .camps__body { grid-column: 1 / -1; }
  .offer__head { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 16px; }
  .offer__short { grid-column: 1; grid-row: 2; font-size: 1rem; }
  .offer__icon { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .offer__inner { grid-template-columns: 1fr; }
  .offer__text { padding-bottom: 8px; }
  .places__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .radar { max-width: 520px; margin: 0 auto; width: 100%; }
  .price { grid-template-columns: 1fr auto; }
  .price__name { grid-column: 1 / -1; }
  .price__note { justify-self: end; }
  .ph--camp { aspect-ratio: 16 / 10; }

  .stages { grid-template-columns: 1fr; gap: 0; }
  .stage { padding: 6px 0 36px 72px; }
  .stage:last-of-type { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .nav { height: 64px; gap: 12px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .logo { font-size: 1.125rem; }

  .serve__intro { align-items: flex-start; padding-top: 104px; }
  .serve__intro-inner { max-width: 100%; }
  .serve__title { font-size: clamp(2.6rem, 12.5vw, 3.5rem); margin-bottom: 18px; }
  .serve__lead { font-size: 1rem; margin-bottom: 24px; }
  .serve__cta .btn { min-height: 48px; padding: 0 20px; }
  /* na telefonie dół sticky sceny może chować się pod paskiem przeglądarki */
  .serve__phases { bottom: calc(100lvh - 100svh + 24px); gap: 16px; }
  .serve__outro { bottom: calc(100lvh - 100svh + 48px); }
  .serve__phases li:not(.is-active) { display: none; }
  .serve__phases::before {
    inset: -120px calc(var(--gutter) * -1) -24px;
    background: linear-gradient(color-mix(in srgb, var(--base-deep) 0%, transparent), color-mix(in srgb, var(--base-deep) 88%, transparent) 55%);
  }
  .serve__phases li.is-active .serve__phase-text p { padding-bottom: 0; }
  .serve__speed { top: 88px; }
  .serve__hint { display: none; }

  .board__cell { min-height: 150px; padding: 20px 16px 16px; }
  .board__label { font-size: .875rem; }
  .places__lists,
  .contact__list { grid-template-columns: 1fr; }
  .section-head--row { grid-template-columns: 1fr; }
  .gallery__nav { display: none; }
  .footer nav { margin-left: 0; }
  .offer__type { flex-wrap: wrap; justify-content: flex-start; font-size: 25vw; gap: 0 .22em; }
  .coach { grid-template-columns: 1fr; }
  .coach__photo { aspect-ratio: 4 / 5; }
  .coach__photo img { object-position: 50% 20%; }
}

/* Telefon w poziomie: niski ekran, hero musi się zmieścić */
@media (max-height: 520px) and (orientation: landscape) {
  .serve__intro { padding-top: 64px; }
  .serve__title { font-size: clamp(2rem, 9.5vh, 2.6rem); margin-bottom: 14px; }
  .serve__lead { font-size: .9375rem; max-width: 26rem; margin-bottom: 18px; }
  .serve__cta .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
  .serve__hint { display: none; }
  .serve__phases { bottom: 16px; }
  .serve__phase-text p { font-size: .875rem; }
  .serve__speed { top: 72px; }
  .serve__speed-value b { font-size: 3.5rem; }
}

@media (max-height: 760px) and (min-width: 641px) {
  .serve__phases { bottom: 24px; }
  .serve__phase-text p { font-size: .9375rem; }
}

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