/* ==========================================================================
   Klub Akrobatyki Stal Rzeszów — style
   Kolorystyka: biało-niebieska
   ========================================================================== */

:root {
  --navy: #0a2463;
  --navy-900: #061842;
  --blue: #1d5bd8;
  --blue-600: #1748ad;
  --blue-300: #7fa6f0;
  --sky: #e8f0ff;
  --ice: #f5f8ff;
  --white: #ffffff;
  --ink: #0f1b33;
  --muted: #56637f;
  --line: #dbe4f5;

  --gold: #d99a00;
  --silver: #8d9bb0;
  --bronze: #b8692d;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(10, 36, 99, .08);
  --shadow-lg: 0 24px 60px rgba(10, 36, 99, .16);
  --container: 1160px;
  --header-h: 76px;
  --ribbon-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(29, 91, 216, .3); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(-1 * var(--header-h)); /* nagłówek leży na zdjęciu */
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, box-shadow .25s, border-color .25s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 24, 66, .7) 0%, rgba(6, 24, 66, .35) 55%, rgba(6, 24, 66, 0) 100%);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 36, 99, .08); border-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25);
}
.brand__logo { height: 60px; width: auto; flex: none; }
@media (max-width: 480px) { .brand__logo { height: 46px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.brand__text small { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: .55em .9em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--sky); color: var(--navy); }
.nav__link.is-active,
.nav__link[aria-current="page"] { color: var(--blue); background: var(--sky); }
.nav__link--pro { color: var(--blue); }
.nav__cta { margin-left: 8px; padding: .6em 1.2em; font-size: .92rem; }

.nav__social { display: flex; align-items: center; gap: 12px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.nav-social { display: inline-flex; border-radius: 12px; text-decoration: none; transition: transform .2s; }
.nav-social:hover { transform: translateY(-2px); }
.nav-social__label { display: none; }

/* Ikona dyscypliny z plakietką Facebooka */
.sicon {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--sky); color: var(--blue);
  transition: background-color .2s, color .2s, transform .3s;
}
.sicon > svg { width: 22px; height: 22px; }
.sicon__fb {
  position: absolute; right: -5px; bottom: -5px;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1877f2; color: #fff;
  border: 2px solid #fff;
}
.sicon__fb svg { width: 11px; height: 11px; }
.nav-social:hover .sicon { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  position: relative; transition: transform .25s, background-color .25s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Na górze strony: przezroczysty nagłówek na zdjęciu, po przewinięciu – biały */
.site-header:not(.is-scrolled):not(:has(.nav.is-open)) {
  background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header:not(.is-scrolled):not(:has(.nav.is-open))::before { opacity: 1; }
.site-header:not(.is-scrolled):not(:has(.nav.is-open)) .brand { color: #fff; }
.site-header:not(.is-scrolled):not(:has(.nav.is-open)) .brand__logo { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.site-header:not(.is-scrolled):not(:has(.nav.is-open)) .brand__text small { color: #b9c8ee; }
.site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav-toggle { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav-toggle__bars, .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav-toggle__bars::before, .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav-toggle__bars::after { background: #fff; }
@media (min-width: 1101px) {
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav__link { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav__link.is-active, .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav__link[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav__link--pro { color: var(--blue-300); }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav__social { border-left-color: rgba(255, 255, 255, .22); }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .sicon { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .sicon__fb { border-color: var(--navy-900); }
  .site-header:not(.is-scrolled):not(:has(.nav.is-open)) .nav-social:hover .sicon { background: var(--blue); }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(10, 36, 99, .12);
    padding: 12px 20px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: .85em 1em; border-radius: 10px; font-size: 1.05rem; }
  .nav__cta { margin: 10px 0 0; width: 100%; }
  .nav__list > li:has(.nav__cta) { order: 1; }
  .nav__social {
    order: 2;
    justify-content: center; gap: 10px;
    margin: 14px 0 0; padding: 14px 0 0;
    border-left: 0; border-top: 1px solid var(--line);
  }
  .nav-social {
    align-items: center; gap: 12px;
    padding: 6px 16px 6px 6px; border-radius: 14px;
    background: var(--ice); border: 1px solid var(--line);
    color: var(--navy); font-weight: 600;
  }
  .nav-social__label { display: inline; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--ice {
  background:
    radial-gradient(rgba(29, 91, 216, .07) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--ice);
}
.section--navy { background: var(--navy); color: #dfe7fb; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #b9c8ee; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--blue-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #dfe7fb;
  background: var(--navy-900);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(clamp(48px, 8vw, 96px) + var(--header-h)) 0 clamp(36px, 5vw, 56px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
}
.hero__slide.is-active img { animation: heroZoom 9s ease-out both; }
.hero__media img { object-position: 100% 40%; transform-origin: 75% 45%; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 24, 66, .96) 0%, rgba(6, 24, 66, .82) 34%, rgba(10, 36, 99, .25) 64%, rgba(10, 36, 99, 0) 80%),
    linear-gradient(0deg, rgba(6, 24, 66, .92) 0%, rgba(6, 24, 66, 0) 38%),
    radial-gradient(700px 400px at 12% 20%, rgba(29, 91, 216, .35), transparent 70%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 640px; }


.hero h1 { color: #fff; text-transform: uppercase; margin-bottom: .45em; line-height: .86; letter-spacing: -.005em; }
.hero__kicker {
  display: block; margin-bottom: .55em;
  font-family: var(--font-body); font-size: clamp(.9rem, 1.4vw, 1.05rem); font-weight: 700;
  letter-spacing: .32em; color: var(--blue-300);
  animation: fadeUp .8s .2s both;
}
.hero__big { display: block; font-size: clamp(4.2rem, 12vw, 9.5rem); font-weight: 800; animation: fadeUp .9s .3s both; }
.hero__big--outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  animation-delay: .42s;
}
@supports not (-webkit-text-stroke: 2px #fff) { .hero__big--outline { color: #fff; } }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 540px; color: #c8d5f5; margin-bottom: 2em; animation: fadeUp .9s .55s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp .9s .7s both; }
.btn--lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__stats {
  list-style: none; margin: clamp(40px, 7vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  animation: fadeUp 1s .85s both;
}
.hero__stats li { padding: 22px 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero__stats li:last-child { border-right: 0; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hero__stats span { display: block; margin-top: 6px; font-size: .86rem; line-height: 1.35; color: #b9c8ee; }

/* Komputer: hero dokładnie na wysokość ekranu – treść skaluje się z wysokością okna */
@media (min-width: 901px) {
  /* zdjęcie + niebieska wstęga razem wypełniają pierwszy ekran */
  .hero { min-height: calc(100svh - var(--ribbon-h)); min-height: calc(100dvh - var(--ribbon-h)); padding: calc(var(--header-h) + clamp(16px, 4.5vh, 80px)) 0 clamp(20px, 3.6vh, 56px); }
  .hero__big { font-size: clamp(3.6rem, min(12vw, 13.5vh), 9.5rem); }
  .hero__lead { margin-bottom: clamp(18px, 3.6vh, 34px); }
  .hero__stats { margin-top: clamp(20px, 5vh, 72px); }
  .hero__stats li { padding: clamp(14px, 2.4vh, 22px) 24px; }
}
@media (min-width: 901px) and (max-height: 820px) { /* niskie ekrany laptopów */
  .hero__big { font-size: clamp(3.4rem, min(12vw, 12vh), 9.5rem); }
  .hero__lead { font-size: 1rem; max-width: 600px; }
  .hero__actions .btn--lg { padding: .8em 1.6em; }
  .hero__stats strong { font-size: 1.9rem; }
}
/* Tablet, telefon i wysokie okna: zdjęcie u góry, pod nim treść; zdjęcie wypełnia wolne
   miejsce, więc niebieska wstęga zawsze kończy pierwszy ekran, a zdjęcie nie wchodzi pod napisy */
@media (max-width: 900px), (max-aspect-ratio: 6/5) {
  .hero {
    min-height: calc(100svh - var(--ribbon-h));
    min-height: calc(100dvh - var(--ribbon-h)); /* widoczna wysokość, także w Safari z pływającym paskiem */
    padding: 0 0 clamp(28px, 5vw, 44px);
    justify-content: flex-start;
  }
  .hero__media {
    position: relative; inset: auto;
    flex: 1 0 calc(var(--header-h) + 36vw);
  }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 24, 66, .1) 0%, rgba(6, 24, 66, .2) 45%, rgba(6, 24, 66, .88) 76%, var(--navy-900) 88%);
  }
  .hero__shade { display: none; }
  .hero__inner { margin-top: -56px; }
  .hero__media img { object-position: 78% 40%; transform-origin: 75% 45%; }
  .hero__stats { margin-top: 32px; }
}
@media (min-width: 901px) and (max-aspect-ratio: 6/5) {
  .hero__media { flex-basis: calc(var(--header-h) + 18vh); }
}
@media (max-width: 900px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats li:nth-child(2) { border-right: 0; }
  .hero__stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 700px) {
  .hero__media { flex-basis: calc(var(--header-h) + 270px); }
  .hero__media img { object-position: 50% 30%; transform-origin: 50% 40%; }
}
/* Telefon: zwarta treść skalowana z wysokością ekranu, żeby wstęga zmieściła się
   na pierwszym ekranie także z paskami przeglądarki (np. iPhone 13 ≈ 390×660) */
@media (max-width: 480px) {
  .hero__media { flex-basis: calc(var(--header-h) + max(140px, 26svh)); }
  .hero__slide { top: 30px; }
  .hero__media img { object-position: 50% 0; }
  .hero__media::after {
    background: linear-gradient(180deg, var(--navy-900) 0, rgba(6, 24, 66, .35) 40px, rgba(6, 24, 66, .1) 90px, rgba(6, 24, 66, .2) 50%, rgba(6, 24, 66, .88) 80%, var(--navy-900) 92%);
  }
  .hero__kicker { display: none; }
  .hero__inner { margin-top: -36px; }
  .hero__big { font-size: clamp(2.9rem, min(12vw, 8.4svh), 4.2rem); }
  .hero h1 { margin-bottom: .3em; }
  .hero__lead { font-size: .9rem; line-height: 1.5; margin-bottom: 16px; }
  .hero .hero__actions { flex-direction: row; gap: 8px; max-width: none; }
  .hero .hero__actions .btn { width: auto; flex: 1 1 0; padding: .8em .5em; font-size: .9rem; white-space: nowrap; }
  .hero__stats { margin-top: 16px; grid-template-columns: repeat(4, 1fr) !important; }
  .hero__stats li { padding: 9px 4px 10px !important; border-bottom: 0 !important; border-right: 1px solid rgba(255, 255, 255, .12) !important; }
  .hero__stats li:last-child { border-right: 0 !important; }
  .hero__stats strong { font-size: 1.45rem; }
  .hero__stats span { font-size: .62rem; line-height: 1.25; margin-top: 3px; }
}
@media (max-width: 480px) {
  .hero__big--outline { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- Wstęga (marquee) ---------- */
.ribbon-wrap { overflow: hidden; position: relative; z-index: 3; }
.ribbon {
  background: var(--blue);
  overflow: hidden;
  height: var(--ribbon-h);
  display: flex; align-items: center;
}
.ribbon__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 38s linear infinite;
}
.ribbon span {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  text-transform: uppercase; letter-spacing: .04em; color: #fff; white-space: nowrap;
}
.ribbon i { font-style: normal; color: var(--blue-300); font-size: 1.1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 14px)); } }
@media (max-width: 480px) { :root { --ribbon-h: 54px; } }

/* ---------- Tło z dużym napisem ---------- */
.section--watermark { position: relative; overflow: hidden; }
.section--watermark::before {
  content: attr(data-watermark);
  position: absolute; right: -2%; top: 40px;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(6rem, 17vw, 15rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none; white-space: nowrap; z-index: 0;
}
.section--watermark > .container { position: relative; z-index: 1; }

/* ---------- Dyscypliny ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  --pt: 34px; --px: 32px;
  position: relative; overflow: hidden;
  padding: var(--pt) var(--px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card__photo {
  position: relative; display: block; overflow: hidden;
  margin: calc(-1 * var(--pt)) calc(-1 * var(--px)) 0;
  aspect-ratio: 16 / 9; background: var(--navy-900);
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 24, 66, .45));
}
.card:hover .card__photo img { transform: scale(1.06); }
.card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #c3d3f3; }
.card::before {
  content: attr(data-num);
  position: absolute; right: 28px; bottom: 6px; z-index: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 7.5rem; line-height: 1;
  color: var(--sky); transition: color .35s, transform .35s;
}
.card:hover::before { color: #d6e3fd; transform: translateY(-6px); }
.card__icon {
  position: relative; z-index: 1;
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  margin: -29px 0 16px;
  box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(10, 36, 99, .25);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { position: relative; z-index: 1; font-size: 1.8rem; }
.card p { color: var(--muted); margin: 0; position: relative; z-index: 1; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } .card { --pt: 28px; --px: 24px; } }

/* ---------- Nabory ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.levels { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; counter-reset: level; position: relative; }
.levels::before {
  content: ""; position: absolute; left: 33px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--blue-300), var(--navy));
}
.levels li {
  position: relative;
  counter-increment: level;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-weight: 600; color: var(--navy);
  transition: transform .25s, box-shadow .25s;
}
.levels li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.levels li::before {
  content: counter(level);
  position: relative; z-index: 1;
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dot, var(--blue-300));
  color: #fff; box-shadow: 0 0 0 4px #fff;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
}
.levels li:nth-child(1) { --dot: #7fa6f0; }
.levels li:nth-child(2) { --dot: #5a8ae6; }
.levels li:nth-child(3) { --dot: #3a6fdc; }
.levels li:nth-child(4) { --dot: #1d5bd8; }
.levels li span { flex: 1; }
.levels li small { font-size: .8rem; font-weight: 500; color: var(--muted); text-align: right; }
.levels li:last-child { background: linear-gradient(135deg, var(--blue), var(--navy)); border-color: transparent; color: #fff; box-shadow: 0 12px 28px rgba(10, 36, 99, .25); }
.levels li:last-child small { color: #c8d5f5; }
.levels li:last-child::before { background: #fff; color: var(--navy); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.skills li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(10, 36, 99, .05);
  color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.25; text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.skills li:last-child { grid-column: 1 / -1; }
.skills li:hover { transform: translateY(-2px); border-color: #c4d4f3; box-shadow: var(--shadow); }
.skills__icon {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
}
.skills__icon svg { width: 18px; height: 18px; }

.join-box {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 28px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: #dfe7fb;
  box-shadow: var(--shadow-lg);
}
.join-box::before, .join-box::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .14);
}
.join-box::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.join-box::after { width: 340px; height: 340px; right: -130px; top: -150px; border-color: rgba(255, 255, 255, .07); }
.join-box h3 { color: #fff; font-size: 1.9rem; margin-bottom: .25em; }
.join-box p { color: #c8d5f5; }
.join-box__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.join-box small { display: block; margin-top: 14px; color: #a9bbe8; font-size: .82rem; }

/* ---------- Klub PRO teaser ---------- */
.pro-teaser {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.section--pro { position: relative; overflow: hidden; }
.section--pro::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(29, 91, 216, .45), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px) 0 0 / 22px 22px;
  pointer-events: none;
}
.section--pro .container { position: relative; }
.pro-teaser__img {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  display: block;
  transform: perspective(1200px) rotateY(6deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}
.pro-teaser__img img { border-radius: var(--radius-lg); }
.pro-teaser__img:hover { transform: perspective(1200px) translateY(-6px); }
.js .pro-teaser__img.reveal { transform: perspective(1200px) rotateY(18deg) translateY(18px); }
.js .pro-teaser__img.reveal.is-visible { transform: perspective(1200px) rotateY(6deg) rotateX(2deg); }
.js .pro-teaser__img.reveal.is-visible:hover { transform: perspective(1200px) translateY(-6px); }
.pro-teaser__tag {
  position: absolute; z-index: 2; right: -14px; top: -18px;
  padding: 10px 18px; border-radius: 14px;
  background: #fff; color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  transform: rotate(6deg);
}
.section--pro p { color: #c8d5f5; }
@media (max-width: 900px) { .pro-teaser__tag { right: 10px; } }
@media (max-width: 900px) { .pro-teaser { grid-template-columns: 1fr; } }

/* ---------- Osiągnięcia – sezony ---------- */
.years { max-width: 1080px; margin: 0 auto; }

/* Oś lat */
.years__rail {
  display: flex; justify-content: center; gap: 10px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 10px 6px 22px; margin: 0 -6px;
  background: linear-gradient(var(--line), var(--line)) 0 calc(50% - 6px) / 100% 2px no-repeat;
  background-attachment: local;
}
.years__rail::-webkit-scrollbar { display: none; }
html:not(.js) .years__rail { display: none; }
.years__tab {
  position: relative; flex: none; scroll-snap-align: center;
  min-width: 104px; padding: 12px 16px 11px;
  border-radius: 16px; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  box-shadow: 0 4px 14px rgba(10, 36, 99, .05);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .2s, background .3s;
}
.years__tab:hover { border-color: var(--blue-300); transform: translateY(-3px); }
.years__year { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--navy); transition: color .3s; }
.years__dots { display: flex; gap: 4px; min-height: 7px; }
.years__dots i { width: 7px; height: 7px; border-radius: 50%; }
.d-gold { background: var(--gold); }
.d-silver { background: var(--silver); }
.d-bronze { background: var(--bronze); }
.d-world { background: var(--blue-300); }
.years__tab.is-active {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(10, 36, 99, .28);
}
.years__tab.is-active .years__year { color: #fff; }
.years__tab.is-active .d-world { background: #fff; }
.years__tab.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -7px;
  width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: var(--navy); border-radius: 3px;
}

/* Panel sezonu */
.year-panel {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 18px; padding: clamp(22px, 4vw, 40px);
  border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.js .year-panel:not(.is-active) { display: none; }
.js .year-panel.is-active { animation: panelIn .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.year-panel::before {
  content: attr(data-season);
  position: absolute; z-index: -1; right: -10px; bottom: -40px;
  font-family: var(--font-head); font-weight: 800; line-height: 1;
  font-size: clamp(7rem, 20vw, 15rem);
  color: transparent; -webkit-text-stroke: 2px var(--sky);
  pointer-events: none;
}
.year-panel__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.year-panel__title { margin: 0; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: .9; color: var(--navy); }
.year-panel__title small { display: block; margin-bottom: 6px; font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.year-panel__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.chip--gold { background: #fff5d6; color: #8a6200; border-color: #f2dc9a; }
.chip--silver { background: #eef2f7; color: #4b586b; border-color: #d6dde7; }
.chip--bronze { background: #fbeee3; color: #7c4416; border-color: #efcfb3; }
.chip--world { background: var(--sky); color: var(--blue-600); border-color: #cfdcf8; }

/* Karty zawodów */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.comp-card {
  position: relative; overflow: hidden;
  padding: 20px 20px 18px; border-radius: 18px;
  background: var(--ice); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.comp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.js .year-panel.is-active .comp-card { animation: cardIn .5s cubic-bezier(.2, .7, .2, 1) both; }
.js .year-panel.is-active .comp-card:nth-child(2) { animation-delay: .08s; }
.js .year-panel.is-active .comp-card:nth-child(3) { animation-delay: .16s; }
.js .year-panel.is-active .comp-card:nth-child(4) { animation-delay: .24s; }
.js .year-panel.is-active .comp-card:nth-child(5) { animation-delay: .32s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.comp-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.comp-card__icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--blue); box-shadow: 0 4px 10px rgba(10, 36, 99, .08);
}
.comp-card__icon svg { width: 21px; height: 21px; }
.comp-card__tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.comp-card__title { margin: 2px 0 0; font-size: 1.35rem; color: var(--navy); }

/* Zawody międzynarodowe – ciemne karty */
.comp-card--ms, .comp-card--me, .comp-card--ps {
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(127, 166, 240, .28), transparent 70%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-900) 100%);
  border-color: transparent; color: #dfe7fb;
}
.comp-card--ms .comp-card__icon, .comp-card--me .comp-card__icon, .comp-card--ps .comp-card__icon { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.comp-card--ms .comp-card__tag, .comp-card--me .comp-card__tag, .comp-card--ps .comp-card__tag { color: var(--blue-300); }
.comp-card--ms .comp-card__title, .comp-card--me .comp-card__title, .comp-card--ps .comp-card__title { color: #fff; }
.comp-card--ms .result__text, .comp-card--me .result__text, .comp-card--ps .result__text { color: #dfe7fb; }
.comp-card--ms .result__text strong, .comp-card--me .result__text strong, .comp-card--ps .result__text strong { color: #fff; }
.comp-card--ms .result__text em, .comp-card--me .result__text em, .comp-card--ps .result__text em { color: #a9bbe8; }
.comp-card--ms .place, .comp-card--me .place, .comp-card--ps .place { background: rgba(255, 255, 255, .12); color: #fff; }

/* Wyniki i medale */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.result { display: flex; align-items: center; gap: 14px; font-size: .95rem; line-height: 1.45; }
.place {
  flex: none; position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  background: #fff; color: var(--navy); border: 1px solid var(--line);
}
.result--gold .place, .result--silver .place, .result--bronze .place {
  border: 0; font-size: 1.3rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), inset 0 2px 0 rgba(255, 255, 255, .5), 0 6px 14px var(--glow);
}
.result--gold .place { --glow: rgba(217, 154, 0, .4); color: #5a3d00; background: radial-gradient(circle at 32% 28%, #fff6cf 0, #f6cd4c 32%, #d99a00 70%, #a87400 100%); }
.result--silver .place { --glow: rgba(111, 124, 143, .35); color: #2f3a4a; background: radial-gradient(circle at 32% 28%, #ffffff 0, #dfe5ee 32%, #a3afc0 70%, #6f7c8f 100%); }
.result--bronze .place { --glow: rgba(184, 105, 45, .35); color: #4a2508; background: radial-gradient(circle at 32% 28%, #ffe6cc 0, #e0a06a 32%, #b8692d 70%, #7f4519 100%); }
.result--gold .place::after, .result--silver .place::after, .result--bronze .place::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .45);
}
.result__text { color: var(--ink); }
.result__text strong { color: var(--navy); font-weight: 700; }
.result__text em { color: var(--muted); font-style: normal; font-size: .88em; }

@media (max-width: 700px) {
  .years__rail { justify-content: flex-start; padding-left: 16px; padding-right: 16px; margin: 0 -20px; }
  .years__tab { min-width: 86px; padding: 10px 12px 9px; }
  .years__year { font-size: 1.45rem; }
  .year-panel { border-radius: 22px; padding: 22px 16px; }
  .year-panel__head { flex-direction: column; align-items: center; text-align: center; }
  .year-panel__chips { justify-content: center; }
  .year-panel::before { right: 50%; transform: translateX(50%); bottom: -20px; }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-card { padding: 18px 16px 16px; }
}

.tally {
  list-style: none; margin: 0 auto 40px; padding: 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tally__item {
  position: relative; overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(10, 36, 99, .05);
}
.tally__item::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--blue));
}
.tally__item--gold { --c: var(--gold); }
.tally__item--silver { --c: var(--silver); }
.tally__item--bronze { --c: var(--bronze); }
.tally__item--world { --c: var(--blue); }
.tally .medal {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 12px;
  background: var(--c); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.tally .medal svg { width: 18px; height: 18px; }
.tally strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.tally span:last-child { font-size: .86rem; color: var(--muted); }
@media (max-width: 720px) { .tally { grid-template-columns: repeat(2, 1fr); } }


/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.contact-card { transition: transform .3s, box-shadow .3s, opacity .6s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--sky); color: var(--blue);
  margin-bottom: 18px;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.contact-card address { font-style: normal; color: var(--ink); }
.contact-card address strong { color: var(--navy); }
.contact-card .muted { color: var(--muted); font-size: .9rem; }
.contact-card__link { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .92rem; }

.schedule { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 6px; }
.schedule li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ice); border: 1px solid var(--line);
  font-size: .94rem;
}
.schedule strong { color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.board li { display: flex; flex-direction: column; }
.board .role { font-size: .82rem; color: var(--muted); }
.board .name { font-weight: 600; color: var(--navy); }
.board a { font-weight: 600; text-decoration: none; }
.board a:hover { text-decoration: underline; }

.contact-mail {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--navy); color: #c8d5f5;
}
.contact-mail strong { display: block; color: #fff; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); word-break: break-word; }

@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .contact-mail { padding: 22px; } }

/* ---------- Podstrona: page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #c8d5f5;
  padding: calc(clamp(48px, 8vw, 88px) + var(--header-h)) 0 clamp(96px, 12vw, 150px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 24, 66, .97) 0%, rgba(6, 24, 66, .86) 45%, rgba(10, 36, 99, .55) 100%),
    url("../img/akro-1.jpg") 70% 35% / cover no-repeat;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; text-transform: uppercase; }
.page-hero p { max-width: 640px; font-size: 1.1rem; }
.breadcrumbs { font-size: .88rem; margin-bottom: 18px; color: #9fb3e6; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.page-banner { margin-top: calc(-1 * clamp(72px, 10vw, 120px)); position: relative; z-index: 2; }
.page-banner img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.prose { max-width: 760px; font-size: 1.06rem; }
.prose p { color: #26324d; }
.prose .lead { font-size: 1.22rem; color: var(--navy); font-weight: 500; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.6em; }
.page-banner + .section { padding-top: clamp(40px, 6vw, 64px); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.info-box { padding: 26px; border-radius: var(--radius); background: var(--ice); border: 1px solid var(--line); }
.info-box h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.info-box p { margin: 0; color: var(--navy); font-weight: 600; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- Pasek postępu i „do góry” ---------- */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-300), var(--blue));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  box-shadow: 0 10px 24px rgba(10, 36, 99, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Stopka ---------- */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: -1px;
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(29, 91, 216, .35), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--navy-900);
  color: #a9bbe8; font-size: .94rem;
  padding: clamp(56px, 8vw, 88px) 0 0;
}
.site-footer::before {
  content: "STAL";
  position: absolute; z-index: -1; right: -1%; bottom: 40px;
  font-family: var(--font-head); font-weight: 800; line-height: .8;
  font-size: clamp(8rem, 24vw, 20rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06);
  pointer-events: none;
}
.site-footer a { color: #fff; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--blue-300); }

.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.15fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col h4::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--blue); }

.footer-logo {
  display: inline-block; padding: 10px 12px; margin-bottom: 18px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  transition: transform .3s;
}
.footer-logo:hover { transform: rotate(-3deg) scale(1.03); }
.footer-logo img { height: 72px; width: auto; }
.footer-claim { max-width: 340px; line-height: 1.6; margin-bottom: 22px; }
.footer-claim strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }

.social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 340px; }
.social__link {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%;
  padding: 7px 12px 7px 7px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .25s, border-color .25s, transform .25s;
}
.social .sicon { background: linear-gradient(135deg, var(--blue), var(--blue-600)); color: #fff; }
.social .sicon__fb { border-color: var(--navy-900); }
.social__text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; color: #fff; }
.social__text small { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-300); }
.site-footer .social__link:hover { color: #fff; background: rgba(29, 91, 216, .25); border-color: var(--blue); transform: translateY(-3px); }
.social__link:hover .sicon { transform: rotate(-6deg) scale(1.05); }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  transition: transform .2s, background-color .2s;
}
.footer-links a:hover::before { transform: scale(1.5); background: var(--blue-300); }

.footer-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-info li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.footer-info strong { display: block; color: #fff; font-weight: 600; }
.footer-info__icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: var(--blue-300);
}
.footer-info__icon svg { width: 17px; height: 17px; }
.footer-info a { align-self: center; word-break: break-word; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  font-size: .85rem;
}
.footer-pro {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}
.footer-pro svg { width: 13px; height: 13px; }
.site-footer .footer-pro:hover { border-color: var(--blue-300); }
.credit { font-size: .74rem; opacity: .6; }
.site-footer .credit a { color: #a9bbe8; }
.site-footer .credit a:hover { color: #fff; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Animacje wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Telefon – wyśrodkowany układ
   ========================================================================== */
@media (max-width: 700px) {
  /* Nagłówki sekcji i „eyebrow” z kreską po obu stronach */
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .eyebrow { justify-content: center; }
  .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }

  /* Hero */
  .hero__content { text-align: center; margin: 0 auto; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .hero__actions .btn { width: 100%; }
  .hero__stats li { text-align: center; }

  /* Napis w tle sekcji „O klubie” */
  .section--watermark::before { top: 18px; right: 50%; transform: translateX(50%); font-size: 5.5rem; opacity: .7; }

  /* Karty dyscyplin */
  .card { text-align: center; --pt: 30px; --px: 22px; padding-bottom: 34px; }
  .card__icon { margin-left: auto; margin-right: auto; }
  .card::before { right: 50%; transform: translateX(50%); bottom: -8px; font-size: 6rem; opacity: .7; }
  .card:hover::before { transform: translateX(50%) translateY(-6px); }

  /* Nabory */
  #nabory .split > div { text-align: center; }
  .skills { max-width: 420px; margin-left: auto; margin-right: auto; }
  .levels { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
  .levels li { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; row-gap: 2px; align-items: center; padding: 12px 16px; }
  .levels li::before { grid-row: span 2; }
  .levels li small { grid-column: 2; text-align: left; }
  .levels::before { left: 31px; }
  .join-box { text-align: center; padding: 28px 22px; }
  .join-box__actions { flex-direction: column; align-items: stretch; }
  .join-box__actions .btn { width: 100%; }

  /* Klub PRO – zapowiedź */
  .pro-teaser > div { text-align: center; }
  .pro-teaser__img { transform: none; }
  .js .pro-teaser__img.reveal, .js .pro-teaser__img.reveal.is-visible { transform: none; }

  /* Osiągnięcia – kafelki medali */
  .tally__item { text-align: center; }
  .tally .medal { margin-left: auto; margin-right: auto; }

  /* Kontakt */
  .contact-card { text-align: center; align-items: center; padding: 26px 20px; }
  .contact-card__icon { margin-left: auto; margin-right: auto; }
  .contact-card .schedule { width: 100%; text-align: left; }
  .board li { align-items: center; }
  .contact-card__link { align-self: center; }
  .contact-mail { flex-direction: column; text-align: center; }
  .contact-mail .btn { width: 100%; }

  /* Stopka – kompaktowa */
  .hide-sm { display: none !important; }
  .site-footer { padding-top: 40px; }
  .site-footer::before { right: 50%; transform: translateX(50%); bottom: 70px; font-size: 7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 28px; text-align: center; }
  .footer-logo { padding: 7px 9px; margin-bottom: 12px; border-radius: 14px; }
  .footer-logo img { height: 52px; }
  .footer-claim { font-size: 0; margin: 0 auto 16px; }
  .footer-claim strong { font-size: 1.15rem; margin: 0; }
  .social { margin: 0 auto; gap: 8px; }
  .social__link { padding: 6px 14px 6px 6px; gap: 10px; }
  .social .sicon { width: 36px; height: 36px; border-radius: 10px; }
  nav.footer-col { display: none; }
  .footer-col h4 { justify-content: center; margin-bottom: 12px; }
  .footer-col h4::after { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--blue); }
  .footer-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .footer-info li {
    flex: 1 1 140px; max-width: 220px;
    flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 12px; border-radius: 14px; text-align: center; line-height: 1.35;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    font-size: .88rem;
  }
  .footer-info__icon { width: 28px; height: 28px; border-radius: 8px; }
  .footer-info__icon svg { width: 14px; height: 14px; }
  .footer-info a { align-self: auto; }
  .footer-col:last-child .footer-info li {
    flex: 0 1 auto; max-width: none;
    flex-direction: row; gap: 10px;
    padding: 6px 16px 6px 6px; border-radius: 999px;
  }
  .footer-col:last-child .footer-info__icon { border-radius: 50%; }
  .footer-info a { white-space: nowrap; word-break: normal; }
  .footer-bottom { flex-direction: column; gap: 4px; padding: 14px 0 18px; text-align: center; font-size: .78rem; }
  .footer-pro { display: none; }

  /* Podstrony */
  .page-hero .container { text-align: center; }
  .page-hero p { margin-left: auto; margin-right: auto; }
  .page-hero .hero__actions { margin-top: 28px; }
  .page-hero .eyebrow::before, .page-hero .eyebrow::after { display: none; }
  .prose h2, .prose .lead { text-align: center; }

  /* Menu mobilne */
  .nav__list { text-align: center; }
  .nav__cta { justify-content: center; }
  .info-box { text-align: center; }
}
.nowrap { white-space: nowrap; }
