/* =========================================================
   BAZA + KOMPONENTY (mobile first)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--navy); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--space-4)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-3); top: var(--space-3); z-index: 100; background: var(--lime); color: var(--navy); padding: 8px 16px; border-radius: 8px; }

/* ---------- Typografia ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.035em; line-height: var(--lh-heading); text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 52ch; text-wrap: balance; }
h2 + .lead, h1 + .lead { margin-top: var(--space-5); }

/* etykieta sekcji: „01 — Klub” (jak „— ZANIM PRZYJDZIECIE” w karuzelach) */
.label {
  font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  color: var(--lime); display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-3);
}
/* pigułka (jak „RODZICU Z RADOMIA”) */
.pill {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  padding: 7px 12px; border-radius: 3px;
}
/* odręczne podkreślenie w kolorze piłki */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.16em; height: .32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 17 C 60 8, 140 6, 297 11 M 18 20 C 90 15, 190 14, 285 16' fill='none' stroke='%23D4ED3D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease) .25s;
}
.is-in .hl::after, .hl.is-in::after, .reveal.is-in .hl::after { transform: scaleX(1); }
/* krótkie dopiski na kartach i zdjęciach: ta sama etykieta co pigułki */
.card__tag, .photo__tape, .signup__note { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; line-height: 1.2; }
.br-desk { display: none; }
@media (min-width: 760px) { .br-desk { display: inline; } }
.metric { font-family: var(--font-display); font-weight: 800; color: var(--lime); letter-spacing: -0.03em; }
.todo { font-size: .8rem; color: #ff8f6b; opacity: .9; margin-top: var(--space-3); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 var(--fs-body) var(--font-body); min-height: 52px; padding: 14px 26px;
  border-radius: var(--radius-pill); border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { background: var(--lime-600); }
.btn__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -12px; border-radius: 50%; background: var(--navy); color: var(--lime); font-size: .95rem; transition: transform .4s cubic-bezier(.32,.72,0,1); }
.btn:hover .btn__icon { transform: translateX(3px) scale(1.06); }
.form .btn--lime .btn__icon { background: var(--lime); color: var(--navy); }
.btn--ghost { border-color: color-mix(in srgb, var(--cream) 35%, transparent); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.link { color: var(--lime); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-block: 14px;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--navy) 88%, transparent); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); padding-block: 8px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__name {
  border-left: 2px solid var(--lime); padding-left: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1.35;
}
.nav { display: none; }
.burger { display: inline-grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--cream); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.is-open {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
  position: fixed; inset: 72px 0 0; background: var(--navy); padding: var(--space-5) var(--space-4);
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
}
.nav a { text-decoration: none; }
@media (min-width: 960px) {
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: 28px; font-size: var(--fs-small); font-weight: 600; }
  .nav a:not(.btn) { opacity: .85; transition: opacity .2s, color .2s; }
  .nav a:not(.btn):hover { opacity: 1; color: var(--lime); }
}

/* ---------- Zdjęcia (szablon: ramka z limonkową krawędzią i „taśmą”) ---------- */
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / .035) 14px 28px),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.photo::before { /* podpis placeholdera, znika gdy w środku jest <img> */
  content: attr(data-photo); position: absolute; inset: auto 16px 16px; font-size: var(--fs-small); color: var(--navy-300);
}
.photo:has(img)::before { content: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--frame { overflow: visible; }
.photo--frame::after {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 3px solid var(--lime); border-radius: calc(var(--radius) + 2px); z-index: -1;
}
.photo__tape {
  position: absolute; top: -12px; right: 18px; z-index: 2;
  background: var(--cream); color: var(--navy); padding: 6px 10px; border-radius: 3px; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .5);
}

/* ---------- Piłka tenisowa z numerem (jak w karuzeli „Zapis zajmuje chwilę”) ---------- */
.ball {
  flex: none; position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--navy);
  background: radial-gradient(circle at 35% 30%, #EAF88A, var(--lime) 55%, #A9C21F);
  box-shadow: inset -4px -6px 12px rgb(0 0 0 / .12), 0 10px 20px -10px rgb(28 29 69 / .5);
  overflow: hidden;
}
.ball::before, .ball::after {
  content: ""; position: absolute; width: 64px; height: 64px; border: 2px solid rgb(255 255 255 / .75); border-radius: 50%;
}
.ball::before { left: -44px; }
.ball::after { right: -44px; }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hl::after { transform: scaleX(1); transition: none; }
  .ticker__track { animation: none !important; }
}

/* ---------- Sticky CTA na telefonie ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* ===== Menu: osobny pasek od pierwszej klatki (rama kinowa z paskiem na dole) ===== */
.site-header, .site-header.is-scrolled {
  position: sticky; top: 0; padding-block: 0; height: 72px; display: flex; align-items: center;
  background: rgba(18,19,49,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(246,248,236,.08); box-shadow: none;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.header__inner { width: min(var(--max), 100% - 2 * var(--space-4)); }
.site-header .nav__cta, .site-header:not(.is-scrolled) .nav__cta { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246,248,236,.5); }
.site-header .nav__cta:hover { background: rgba(246,248,236,.08); box-shadow: inset 0 0 0 1px var(--cream); }
.nav.is-open { inset: 60px 0 0; }
@media (max-width: 959px) {
  .site-header, .site-header.is-scrolled { height: 60px; }
  .brand img { width: 38px; height: 38px; }
}

/* logo w pasku menu: jedna linia, ta sama wysokość i rytm co nawigacja */
.site-header .brand { gap: 12px; }
.site-header .brand img { width: 34px; height: 34px; }
.brand__name--bar { display: inline-flex; align-items: baseline; gap: 12px; border-left: 0; padding-left: 0; text-transform: none; letter-spacing: 0; line-height: 1; }
.brand__name--bar b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--cream); }
.brand__name--bar span { font-size: var(--fs-small); font-weight: 500; color: var(--navy-300); padding-left: 12px; border-left: 1px solid rgba(246,248,236,.18); }
@media (max-width: 1199px) { .brand__name--bar span { display: none; } }

/* Wariant 1: menu jak przyciemnione szkło — film przebija pod spodem */
.site-header, .site-header.is-scrolled {
  background: rgba(18,19,49,.58); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(246,248,236,.1);
}
.site-header.is-scrolled { background: rgba(18,19,49,.82); }
/* przycisk w menu: limonkowy jak w hero */
.site-header .nav__cta, .site-header:not(.is-scrolled) .nav__cta { background: var(--lime); color: var(--navy); box-shadow: none; }
.site-header .nav__cta:hover, .site-header:not(.is-scrolled) .nav__cta:hover { background: var(--lime-600); box-shadow: none; }
