/* ==========================================================================
   SL Olimpia Poznań – prototyp strony głównej (wersja ciemna, runda 2)
   Czcionki jak w Deep: Unbounded (nagłówki) + Plus Jakarta Sans (tekst), obie OFL,
   serwowane lokalnie (CSP: font-src 'self').
   ========================================================================== */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin-ext.woff2') format('woff2');
  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: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  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;
}

/* --------------------------------------------------------------------------
   Tokeny – ciemna paleta w stylu Deep, akcenty w barwach klubu
   -------------------------------------------------------------------------- */
:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #1a1a1a;
  --text: #f3f3f3;
  --text-2: #b4b4b4;
  --cobalt: #0055a6;
  --cobalt-2: #1266c4;
  --cyan: #41c7f2;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.42);
  --accent: var(--cyan);
  --focus: var(--cyan);

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-hero: clamp(2.5rem, 10vw, 8.75rem);
  --fs-h2: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  --fs-h3: 1.05rem;
  --fs-stat: clamp(2.4rem, 1.8rem + 3vw, 4.5rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --pill: 999px;
  --frame: 20px;
  --header-h: 104px;
  --header-h-compact: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Warianty sekcji: ciemna i jasna – te same tokeny, inne wartości.
   Szablon platformy może wystawić ten modyfikator jako ustawienie sekcji.
   -------------------------------------------------------------------------- */
.section--dark {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #1a1a1a;
  --text: #f3f3f3;
  --text-2: #b4b4b4;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.42);
  --accent: var(--cyan);
  --focus: var(--cyan);
  background: var(--bg);
  color: var(--text);
}
.section--light {
  --bg: #ffffff;
  --panel: #f3f4f6;
  --panel-2: #e9ebee;
  --text: #0b0b0b;
  --text-2: #4a4f57;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.5);
  --accent: var(--cobalt);
  --focus: var(--cobalt);
  background: var(--bg);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Baza
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
}
img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}
/* Nagłówki jak w Deep: Unbounded 400, wersaliki, szerokie rozstrzelenie */
h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important;
  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: 16px;
  z-index: 200;
  padding: 0.75em 1.25em;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Układ
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section {
  padding-block: clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.rail {
  display: grid;
  gap: clamp(28px, 4vw, 72px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
/* Szeroki Unbounded w wąskiej kolumnie: mniejszy stopień i rozstrzelenie,
   żeby długie polskie słowa („Harmonogram”) nie łamały się w środku */
.rail__head h2 {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2rem);
  letter-spacing: 0.12em;
}
@media (max-width: 820px) {
  .rail {
    grid-template-columns: 1fr;
  }
  .rail__head h2 {
    position: static;
  }
}

/* Ramka zdjęcia jak w Deep: zaokrąglone zdjęcie i cienki obrys przesunięty
   w górę i w prawo. Margines wyrównuje przesunięcie, więc nic nie wystaje
   poza kontener (brak przewijania poziomego na telefonie). */
.frame {
  position: relative;
  margin: var(--frame) var(--frame) 0 0;
}
.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(var(--frame), calc(var(--frame) * -1));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  pointer-events: none;
}
.frame > * {
  position: relative;
}

/* --------------------------------------------------------------------------
   Przyciski (pigułki jak w Deep, wersaliki z rozstrzeleniem)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.75em;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn--primary {
  background: var(--cobalt);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--cobalt-2);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(128, 128, 128, 0.15);
}
.btn--lg {
  padding: 1.15em 2.1em;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Nagłówek strony – logo po lewej, menu wersalikami pośrodku, social po prawej
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.site-header.is-scrolled,
.no-js .site-header {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: var(--line);
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 8px 0;
}
.brand img {
  height: 72px;
  width: auto;
  transition: height 0.3s var(--ease);
}
/* Po przewinięciu pasek jest niższy, ale logo nadal w całości */
.site-header.is-scrolled .site-header__bar {
  min-height: var(--header-h-compact);
}
.site-header.is-scrolled .brand img {
  height: 52px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav__list {
  display: flex;
  gap: 34px;
  list-style: none;
}
.site-nav__list a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5em 0;
  transition: color 0.2s var(--ease);
}
.site-nav__list a:hover {
  color: var(--cyan);
}
.site-social {
  display: flex;
  gap: 12px;
  list-style: none;
}
.site-social a {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transition: background-color 0.2s var(--ease);
}
.site-social a:hover {
  background: var(--cyan);
}
.site-social svg {
  width: 14px;
  height: 14px;
}
.nav-toggle {
  display: none;
}
@media (min-width: 901px) {
  .site-nav__list {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 84px;
    --header-h-compact: 68px;
  }
  .brand img {
    height: 56px;
  }
  .site-header.is-scrolled .brand img {
    height: 44px;
  }
  .js .site-header:has(.site-nav.is-open) .site-header__bar {
    min-height: var(--header-h);
  }
  .js .site-header:has(.site-nav.is-open) .brand img {
    height: 56px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 0 8px 8px;
    cursor: pointer;
  }
  .nav-toggle__bars {
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s var(--ease);
  }
  .nav-toggle__bars::before {
    top: -7px;
  }
  .nav-toggle__bars::after {
    top: 7px;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bars {
    background: transparent;
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px var(--gutter);
    background: var(--bg);
    overflow: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.35s var(--ease),
      visibility 0s linear 0.35s;
  }
  .js .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition:
      transform 0.35s var(--ease),
      visibility 0s;
  }
  .js .site-nav__list {
    flex-direction: column;
    gap: 14px;
  }
  .js .site-nav__list a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.08em;
  }
  .js .site-social a {
    width: 40px;
    height: 40px;
  }
  .js .site-social svg {
    width: 18px;
    height: 18px;
  }
  .js .site-header:has(.site-nav.is-open) {
    background: var(--bg);
    border-bottom-color: var(--line);
  }

  /* Bez JS: menu zwija się w drugi wiersz paska */
  .no-js .site-header__bar {
    flex-wrap: wrap;
    padding-bottom: 12px;
  }
  .no-js .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
  }
  .no-js .site-nav__list {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

/* --------------------------------------------------------------------------
   Baner z filmem: pełnoekranowa pętla, ciemny gradient, tekst po lewej,
   okrągła miniatura najnowszego filmu z zawodów (jak w Deep)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  background: #000;
  color: var(--text);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.7) 38%, rgba(0, 0, 0, 0.25) 72%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 60%);
}
.hero__content {
  position: relative;
  padding-block: clamp(32px, 6vh, 72px) 24px;
}
/* Okrągła miniatura najnowszego filmu nad tekstem banera */
.hero__thumb {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 5vh, 56px);
  color: var(--text);
  text-decoration: none;
}
.hero__thumb-media {
  position: relative;
  width: 124px;
  height: 124px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
}
.hero__thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
}
.hero__thumb-play::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.2s var(--ease);
}
.hero__thumb-play::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #000;
}
.hero__thumb:hover .hero__thumb-play::before,
.hero__thumb:focus-visible .hero__thumb-play::before {
  background: var(--cyan);
}
.hero__thumb-label {
  max-width: 13em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
/* h1 = pierwsze zdanie (prawdziwy fakt ze strony klubu); prowadzi baner, nie przykrywa filmu */
.hero__title {
  max-width: 40rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.hero__sub {
  max-width: 36rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.55;
  margin: 1.1em 0 0;
  color: rgba(255, 255, 255, 0.9);
}
.hero__foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
}
@media (max-width: 600px) {
  .hero__thumb-media {
    width: 88px;
    height: 88px;
  }
  .hero__thumb-play::before {
    width: 40px;
    height: 40px;
  }
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: currentColor;
  opacity: 0.8;
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
.video-toggle {
  padding: 0.7em 1.2em;
}
.video-toggle::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.video-toggle[aria-pressed='false']::before {
  width: 0;
  height: 0;
  border-radius: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--cyan);
  background: none;
}

/* Wejście: miniatura, tytuł, podtytuł i stopka banera jedno po drugim */
.js .hero__thumb,
.js .hero__title,
.js .hero__sub,
.js .hero__foot {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease);
}
.js .hero__title {
  transition-delay: 0.15s;
}
.js .hero__sub {
  transition-delay: 0.3s;
}
.js .hero__foot {
  transition-delay: 0.6s;
}
.js .hero.is-ready .hero__thumb,
.js .hero.is-ready .hero__title,
.js .hero.is-ready .hero__sub,
.js .hero.is-ready .hero__foot {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Okno z filmem z zawodów (natywny <dialog>)
   -------------------------------------------------------------------------- */
.video-dialog {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #111111;
  color: #f3f3f3;
  overflow: hidden;
}
.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
.video-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.video-dialog__title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.video-dialog__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #f3f3f3;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.video-dialog__close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.video-dialog__close svg {
  width: 18px;
  height: 18px;
}
.video-dialog__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* --------------------------------------------------------------------------
   Klub w liczbach – cztery tory na linii startu
   -------------------------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--line);
}
.stats__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: clamp(32px, 4vw, 56px) clamp(16px, 2.5vw, 36px);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 10px;
  max-width: 22ch;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-2);
}
@media (max-width: 800px) {
  .stats__list {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    border-top: 1px solid var(--line);
    padding: 24px 16px;
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(-n + 2) {
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   O klubie (tekst + zdjęcie w ramce)
   -------------------------------------------------------------------------- */
.about .rail__head h2 {
  position: static;
}
.about__media {
  margin-top: 36px;
  max-width: 320px;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--panel-2);
}
.prose {
  max-width: 62ch;
}
.prose .lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
  font-weight: 500;
}
.prose p {
  margin-bottom: 1.2em;
  color: var(--text-2);
}
.prose .lead,
.prose strong {
  color: var(--text);
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Grupy treningowe
   -------------------------------------------------------------------------- */
.groups__list {
  list-style: none;
  display: grid;
  gap: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 28px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.group__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-2);
}
.group__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group__title {
  margin-top: 22px;
}
.group__desc {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 0.98rem;
}
@media (max-width: 1000px) {
  .groups__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .groups__list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Harmonogram (godziny)
   -------------------------------------------------------------------------- */
.schedule__list {
  margin: 0;
  border-top: 1px solid var(--line);
}
.schedule__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.schedule__row dt {
  font-weight: 600;
}
.schedule__row dd {
  margin: 0;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 540px) {
  .schedule__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* --------------------------------------------------------------------------
   Trenerzy
   -------------------------------------------------------------------------- */
.team__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
.member__photo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem);
  overflow: hidden;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member__name {
  margin-top: 16px;
  font-size: 0.95rem;
}
.member__role {
  margin: 6px 0 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.member__bio {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-2);
}
@media (max-width: 1000px) {
  .team__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .team__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Galeria – mozaika (bez ramek: przy 12 px odstępach obrysy by się zlewały)
   -------------------------------------------------------------------------- */
.gallery__grid {
  list-style: none;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 280px);
  grid-template-areas:
    'g1 g1 g2 g3'
    'g1 g1 g4 g5'
    'g6 g7 g4 g8';
}
.gallery__item:nth-child(1) {
  grid-area: g1;
}
.gallery__item:nth-child(2) {
  grid-area: g2;
}
.gallery__item:nth-child(3) {
  grid-area: g3;
}
.gallery__item:nth-child(4) {
  grid-area: g4;
}
.gallery__item:nth-child(5) {
  grid-area: g5;
}
.gallery__item:nth-child(6) {
  grid-area: g6;
}
.gallery__item:nth-child(7) {
  grid-area: g7;
}
.gallery__item:nth-child(8) {
  grid-area: g8;
}
.gallery__item figure {
  position: relative;
  margin: 0;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.3em 0.65em;
  border-radius: 4px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}
@media (max-width: 700px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 42vw;
    grid-template-areas:
      'g1 g1'
      'g1 g1'
      'g2 g3'
      'g4 g5'
      'g4 g6'
      'g7 g8';
  }
}

/* --------------------------------------------------------------------------
   Aktualności
   -------------------------------------------------------------------------- */
.news__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.post__cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel-2);
}
.post__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post__date {
  display: block;
  margin: 20px 0 8px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.post__title {
  font-size: 1rem;
  line-height: 1.4;
}
.post__title a {
  color: inherit;
  text-decoration: none;
}
.post__title a:hover {
  color: var(--accent);
}
.post__excerpt {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 0.98rem;
}
@media (max-width: 800px) {
  .news__list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Mapa / obiekty
   -------------------------------------------------------------------------- */
.map__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.map__image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.map__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.map__address {
  margin: 0;
  white-space: pre-line;
  font-size: 1.05rem;
  font-weight: 500;
}
.map__card .btn {
  align-self: flex-start;
  margin-top: 8px;
}
@media (max-width: 820px) {
  .map__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Dół strony jak w Deep: kontakt (dane + formularz) przechodzący w stopkę,
   jeden blok na całą szerokość
   -------------------------------------------------------------------------- */
.contact {
  background: var(--panel);
  text-align: center;
}
.contact__head {
  max-width: 60ch;
  margin: 0 auto;
}
.contact__intro {
  margin: 20px auto 0;
  max-width: 52ch;
  color: var(--text-2);
}
.contact__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: clamp(40px, 6vw, 72px) auto 0;
}
.contact__item {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.contact__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}
.contact__icon svg {
  width: 22px;
  height: 22px;
}
.contact__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.contact__value {
  color: var(--text-2);
  white-space: pre-line;
}
.contact__value a {
  color: inherit;
}
.contact__value a:hover {
  color: var(--accent);
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 860px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  text-align: left;
}
.field {
  display: grid;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95em 1.2em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
.field textarea {
  min-height: 8em;
  resize: vertical;
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-2);
}
.consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.form__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.form__status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1em 1.25em;
  border-radius: var(--radius);
  background: #10301f;
  color: #b9f0cf;
  font-weight: 500;
  text-align: center;
}
.form__status[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .contact__list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .form {
    grid-template-columns: 1fr;
  }
  .field--full,
  .consent,
  .form__actions,
  .form__status {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   Stopka – kontynuacja bloku kontaktu
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--panel);
  color: var(--text);
  padding: 0 0 32px;
}
.site-footer__inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.site-footer__logo img {
  width: 190px;
  height: auto;
}
.site-footer__text {
  margin: 24px 0 0;
  max-width: 44ch;
  color: var(--text-2);
  font-size: 0.95rem;
  white-space: pre-line;
}
.site-footer__links {
  list-style: none;
  display: grid;
  gap: 12px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer__links a:hover {
  color: var(--accent);
}
.site-footer__links svg {
  width: 18px;
  height: 18px;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-2);
}
.site-footer__bottom a {
  color: inherit;
}
@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Odsłanianie przy przewijaniu (tylko z JS) i ograniczony ruch
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@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;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js .hero__thumb,
  .js .hero__title,
  .js .hero__sub,
  .js .hero__foot {
    opacity: 1;
    transform: none;
  }
  .scroll-cue__line {
    animation: none;
    transform: none;
  }
}
