/* =========================================================================
   RADOM BASKET CUP — styl (etap 2: kierunek "Red Bull" na kolorach marki)
   Blokowy/bento układ, wielkie kondensowane nagłówki, kinowy hero,
   numerowane sekcje, duotone zdjęć, magazynowe karty. Kolory: marka.
   Klasy z prefiksem rbc- (przenośne na WordPress).
   ========================================================================= */

/* ---- Tokeny marki -------------------------------------------------------- */
:root {
  --rbc-navy:        #034EA2;  /* granat główny — bloki */
  --rbc-navy-deep:   #023C7C;  /* ciemniejszy granat */
  --rbc-blue:        #006EDF;  /* jaśniejszy niebieski (akcent/linki/bloki) */
  --rbc-blue-elec:   #0A63E6;  /* elektryczny błękit bloków (jak w referencji) */
  --rbc-orange:      #FF5A00;  /* pomarańcz — wyróżnik (numery, CTA, trójkąty) */
  --rbc-orange-deep: #E65200;
  --rbc-orange-text: #C6480A;  /* ciemniejszy pomarańcz na JASNYM tle — kontrast WCAG AA dla drobnego tekstu */
  --rbc-white:       #FFFFFF;
  --rbc-ink:         #111111;
  --rbc-ink-soft:    #3A3A3A;
  --rbc-bg:          #FFFFFF;
  --rbc-bg-1:        #F6F6F6;
  --rbc-bg-2:        #EEF2F5;
  --rbc-line:        #D8DEE4;

  --rbc-maxw:        1200px;
  --rbc-gap:         24px;
  --rbc-radius:      2px;   /* ostre, kwadratowe rogi (jak get.basketball) */
  --rbc-shadow:      0 18px 50px rgba(3,78,162,.16);
  --rbc-shadow-sm:   0 8px 24px rgba(3,78,162,.10);

  --rbc-font-display: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* nagłówki (800 italic) */
  --rbc-font-ui:      "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* nawigacja/UI */
  --rbc-font-body:    "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --rbc-header-h:    72px;

  /* skala odstępów sekcji (block rhythm) */
  --rbc-space-sec:   96px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body.rbc-body {
  margin: 0;
  font-family: var(--rbc-font-body);
  color: var(--rbc-ink);
  background: var(--rbc-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;          /* elementy dekoracyjne (kolaże/band/wachlarz) nie robią poziomego przewijania */
  max-width: 100%;
}

.rbc-body h1, .rbc-body h2, .rbc-body h3, .rbc-body h4 {
  font-family: var(--rbc-font-display);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 .5em;
}
/* Wielkie nagłówki display = ciężka KURSYWA (jak get.basketball) */
.rbc-body h1 { font-style: italic; }
.rbc-body h2 { font-weight: 700; font-style: normal; }
.rbc-body h3, .rbc-body h4 { font-weight: 700; font-style: normal; }
/* Kursywa 800 tylko na hero i centralnych hasłach (jak get.basketball) */
.rbc-hero h1, .rbc-center h2, .rbc-section--brand h2 { font-weight: 800; font-style: italic; }
.rbc-body a { color: var(--rbc-blue); }
.rbc-body img { max-width: 100%; display: block; }

/* ---- Layout helpers ------------------------------------------------------ */
.rbc-container {
  width: 100%;
  max-width: var(--rbc-maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.rbc-section { padding: var(--rbc-space-sec) 0; }
/* Sekcje jasne z DELIKATNYM płynącym efektem (biało-szare plamy zamiast płaskiej szarości).
   Lekko, bez filtrów blur — animowane tylko przesunięcie tła (tanie, brak janku przy zoomie). */
.rbc-section--tint,
.rbc-section--tint2 { background: var(--rbc-bg-1); }
.rbc-section--tint::before,
.rbc-section--tint2::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 48% at 15% 24%, #ffffff 0%, rgba(255,255,255,0) 62%),
    radial-gradient(48% 58% at 86% 38%, #c2cee1 0%, rgba(194,206,225,0) 64%),
    radial-gradient(34% 38% at 66% 70%, rgba(255,90,0,.20) 0%, rgba(255,90,0,0) 64%),
    radial-gradient(52% 60% at 48% 90%, #cdd7e8 0%, rgba(205,215,232,0) 66%),
    radial-gradient(38% 44% at 74% 8%, #dfe8f6 0%, rgba(223,232,246,0) 60%),
    var(--rbc-bg-1);
  background-size: 240% 240%;
  animation: rbc-flow 20s ease-in-out infinite alternate;
}
.rbc-section--tint2::before {
  background:
    radial-gradient(42% 50% at 22% 32%, #ffffff 0%, rgba(255,255,255,0) 62%),
    radial-gradient(50% 60% at 82% 26%, #bccadd 0%, rgba(188,202,221,0) 64%),
    radial-gradient(32% 36% at 32% 72%, rgba(255,90,0,.19) 0%, rgba(255,90,0,0) 64%),
    radial-gradient(52% 60% at 58% 90%, #cad5e7 0%, rgba(202,213,231,0) 66%),
    var(--rbc-bg-2);
  background-size: 240% 240%;
  animation: rbc-flow 24s ease-in-out infinite alternate;
}
/* treść tint-sekcji nad płynącym tłem */
.rbc-section--tint  > .rbc-container,
.rbc-section--tint2 > .rbc-container { position: relative; z-index: 1; }
/* Sekcja z „duchowym" czarno-białym zdjęciem w tle — ledwo widoczne, wtapia się
   w biel (maska góra/dół). WAŻNE: obraz na PRAWDZIWYM elemencie `.rbc-ghost` przez
   inline background-image (NIE var() w CSS — url() w custom property gubi ścieżkę,
   rozwiązuje względem assets/css/; ten sam gotcha co hero). Użycie w HTML:
   <div class="rbc-ghost" style="background-image:url('assets/img/...')" aria-hidden="true"></div> */
.rbc-section--ghost { position: relative; overflow: hidden; }
.rbc-ghost {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: var(--ghost-pos, 50% 32%);
  filter: grayscale(1) contrast(1.08);
  opacity: var(--ghost-opacity, .10);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.rbc-section--ghost > .rbc-container { position: relative; z-index: 1; }

/* ===== Parallax „moment": centralny tekst (sticky) + zdjęcia przemykające w górę
   (fade+scale na wyjściu). Sterowane JS initParallax przez data-parallax na figure. ===== */
.rbc-parallax { position: relative; min-height: 220vh; overflow: clip; }
.rbc-parallax--brand {
  background: linear-gradient(120deg, #022a5c 0%, #034EA2 40%, #006EDF 70%, #FF7A2E 140%);
  color: #fff;
}
.rbc-parallax__photos { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.rbc-parallax__photos figure {
  position: absolute; margin: 0; width: 26vw; max-width: 300px; min-width: 148px;
  border: 4px solid #fff; border-radius: 2px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(2,18,44,.28); will-change: transform, opacity;
}
.rbc-parallax__photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rbc-parallax__photos .p1 { left: 4vw;  top: 96vh;  aspect-ratio: 3/4; }
.rbc-parallax__photos .p2 { right: 5vw; top: 108vh; aspect-ratio: 4/3; width: 30vw; }
.rbc-parallax__photos .p3 { left: 12vw; top: 150vh; aspect-ratio: 4/3; }
.rbc-parallax__photos .p4 { right: 9vw; top: 168vh; aspect-ratio: 3/4; width: 24vw; }
.rbc-parallax__photos .p5 { left: 40vw; top: 128vh; aspect-ratio: 1/1; width: 20vw; z-index: 3; }
.rbc-parallax__photos .p6 { right: 28vw; top: 196vh; aspect-ratio: 4/3; width: 22vw; }
.rbc-parallax__stage {
  position: sticky; top: 0; height: 100vh; display: grid; place-items: center;
  text-align: center; z-index: 2; pointer-events: none; padding: 0 20px;
}
.rbc-parallax__stage a, .rbc-parallax__stage button { pointer-events: auto; }
.rbc-parallax__inner { max-width: 760px; margin: 0 auto; }
.rbc-parallax__stage h2 {
  font-family: "Rubik", sans-serif; font-weight: 800; font-style: italic;
  text-transform: uppercase; line-height: .98; letter-spacing: -1px;
  font-size: clamp(2.4rem, 7vw, 5rem); margin: 0 0 10px;
}
.rbc-parallax__stage .rbc-lead { margin-left: auto; margin-right: auto; }
.rbc-parallax--brand .rbc-section__kicker { color: #ffd9c2; }
@media (max-width: 720px) {
  .rbc-parallax { min-height: 200vh; }
  .rbc-parallax__photos figure,
  .rbc-parallax__photos .p2, .rbc-parallax__photos .p5, .rbc-parallax__photos .p6 { width: 42vw; }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-parallax { min-height: auto; overflow: visible; }
  .rbc-parallax__photos { display: none; }
  .rbc-parallax__stage { position: static; height: auto; padding: 72px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-section--tint::before, .rbc-section--tint2::before { animation: none; }
}

/* Duży blok koloru (jak elektryczny błękit w referencji) */
.rbc-section--navy,
.rbc-section--blue {
  color: var(--rbc-white);
  position: relative;
}
.rbc-section--navy { background: linear-gradient(160deg, var(--rbc-navy), var(--rbc-navy-deep)); }
.rbc-section--blue { background: linear-gradient(160deg, var(--rbc-blue-elec), var(--rbc-blue)); }
.rbc-section--navy h1, .rbc-section--navy h2, .rbc-section--navy h3,
.rbc-section--blue h1, .rbc-section--blue h2, .rbc-section--blue h3 { color: var(--rbc-white); }

/* Nagłówki sekcji */
.rbc-section__head { margin-bottom: 40px; max-width: 900px; }
.rbc-section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }               /* lewe nagłówki — skromniej */
.rbc-section__head.rbc-center h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }    /* centralne hasła — duże (kursywa) */
.rbc-section__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rbc-font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  font-size: .82rem; color: var(--rbc-orange-text); margin-bottom: 12px;
}
/* trójkąt-akcent przy kickerze (nawiązanie do referencji) */
.rbc-section__kicker::before {
  content: ""; width: 0; height: 0;
  border-left: 7px solid var(--rbc-orange);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.rbc-section--navy .rbc-section__kicker, .rbc-section--blue .rbc-section__kicker { color: #ffd9c2; }
.rbc-section--navy .rbc-section__kicker::before, .rbc-section--blue .rbc-section__kicker::before { border-left-color: var(--rbc-orange); }

/* ---- Placeholder zdjęcia jako "duotone foto" ----------------------------- */
.rbc-ph {
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--rbc-font-display); text-transform: uppercase;
  letter-spacing: 2px; font-size: .8rem;
  border-radius: var(--rbc-radius);
  padding: 16px; position: relative; overflow: hidden;
}
.rbc-ph--img, .rbc-ph--logo {
  background:
    linear-gradient(135deg, rgba(255,90,0,.55), rgba(255,90,0,0) 55%),
    linear-gradient(160deg, var(--rbc-blue), var(--rbc-navy-deep));
}
.rbc-ph--img::after {
  content: "FOTO"; position: absolute; right: 12px; bottom: 10px;
  font-size: .7rem; letter-spacing: 2px; color: rgba(255,255,255,.6);
}
/* mały trójkąt w rogu placeholderu */
.rbc-ph--img::before {
  content: ""; position: absolute; left: 12px; top: 12px;
  width: 0; height: 0; border-left: 12px solid var(--rbc-orange);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; opacity: .9;
}
.rbc-ph--img { min-height: 200px; }
.rbc-ph--logo {
  min-height: 120px; color: #6b7480; background: #fff;
  border: 1px solid var(--rbc-line); border-radius: 8px;
  box-shadow: var(--rbc-shadow-sm);
  font-family: var(--rbc-font-ui); font-weight: 700; letter-spacing: 1px; font-size: .9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rbc-ph--logo:hover { transform: translateY(-3px); box-shadow: var(--rbc-shadow); }
.rbc-note {
  display: inline-block; background: #FFF3E8; color: #a34600;
  border: 1px solid #ffd3ad; border-radius: 6px;
  padding: 2px 8px; font-size: .78rem; font-weight: 600;
}

/* Duotone dla PRAWDZIWYCH zdjęć (do użycia później):
   <div class="rbc-duotone"><img src="..."></div> */
.rbc-duotone { position: relative; border-radius: var(--rbc-radius); overflow: hidden; }
.rbc-duotone img { filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
.rbc-duotone::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(150deg, var(--rbc-navy), var(--rbc-blue));
  mix-blend-mode: multiply;
}
.rbc-duotone::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(255,90,0,.45), transparent 55%);
  mix-blend-mode: screen;
}

/* ---- Grid ---------------------------------------------------------------- */
.rbc-grid { display: grid; gap: var(--rbc-gap); }
.rbc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rbc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rbc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rbc-grid--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---- Buttons ------------------------------------------------------------- */
.rbc-btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--rbc-font-display); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 2px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.rbc-btn:hover { transform: translateY(-2px) scale(1.05); }
.rbc-btn:active { transform: translateY(0); }
.rbc-btn:focus-visible { outline: 3px solid var(--rbc-orange); outline-offset: 3px; }
.rbc-btn--primary {
  background: linear-gradient(180deg, #ff6b1a, var(--rbc-orange));
  color: #fff; -webkit-text-fill-color: #fff; box-shadow: 0 6px 18px rgba(255,90,0,.30);
  text-shadow: 0 1px 2px rgba(2,18,44,.35);
}
.rbc-btn--primary:hover {
  background: linear-gradient(180deg, var(--rbc-orange), var(--rbc-orange-deep));
  box-shadow: 0 10px 26px rgba(255,90,0,.40);
}
.rbc-btn--blue { background: var(--rbc-blue); color: #fff; -webkit-text-fill-color: #fff; }
.rbc-btn--blue:hover { background: var(--rbc-navy); }
/* OUTLINE (na jasnym tle): solidny granatowy tekst, wysoki kontrast */
.rbc-btn--outline {
  border-color: var(--rbc-navy);
  background: transparent;
  color: var(--rbc-navy); -webkit-text-fill-color: var(--rbc-navy);
}
.rbc-btn--outline:hover { border-color: var(--rbc-orange); color: var(--rbc-orange-deep); -webkit-text-fill-color: var(--rbc-orange-deep); }
/* GHOST (na zdjęciu/ciemnym): solidny biały tekst + przyciemniające tło + cień = zawsze czytelny */
.rbc-btn--ghost {
  border-color: rgba(255,255,255,.9);
  background: transparent;
  color: #fff; -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 6px rgba(2,18,44,.8);
  box-shadow: inset 0 0 0 999px rgba(2,18,44,.5);
  backdrop-filter: blur(2px);
}
.rbc-btn--ghost:hover { box-shadow: inset 0 0 0 999px rgba(2,18,44,.68); border-color: #fff; }

/* ---- Motyw FX na WSZYSTKICH przyciskach: gradientowa OBWÓDKA (maska) + poświata + światło za kursorem + ripple ---
   Ważne: gradient wyłącznie jako ramka przez mask-composite — NIE zakrywa wypełnienia ani tekstu. */
@property --rbc-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rbc-spin { to { --rbc-angle: 360deg; } }
.rbc-btn { position: relative; z-index: 0; isolation: isolate; }
.rbc-btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--rbc-angle),
    var(--rbc-navy), var(--rbc-blue), var(--rbc-orange), var(--rbc-blue), var(--rbc-navy));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 1; animation: rbc-spin 5s linear infinite;
}
.rbc-btn:hover::before { animation-duration: 2.4s; }
/* miękka poświata na zewnątrz (nie wchodzi do środka) */
.rbc-btn:hover { box-shadow: 0 8px 24px rgba(255,90,0,.30), 0 0 16px rgba(0,110,223,.30); }
/* subtelne światło podążające za kursorem (pod tekstem) */
.rbc-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.20), transparent 60%);
  opacity: 0; transition: opacity .2s ease;
}
.rbc-btn:hover::after { opacity: 1; }
.rbc-ripple {
  position: absolute; z-index: 0; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.45); pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

/* ---- Header / nav -------------------------------------------------------- */
/* Rezerwacja miejsca na nagłówek (wstrzykiwany przez JS) — zapobiega „skokowi"
   układu przy ładowaniu i ujednolica zachowanie na wszystkich podstronach. */
#rbc-header-mount { min-height: calc(var(--rbc-header-h) + 3px); background: var(--rbc-navy); }
.rbc-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--rbc-navy); color: #fff;
  border-bottom: 3px solid var(--rbc-orange);
}
.rbc-header__inner { height: var(--rbc-header-h); display: flex; align-items: center; gap: 14px; max-width: 1360px; }
.rbc-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; white-space: nowrap; flex: 0 0 auto; }
.rbc-logo__ball {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--rbc-orange); position: relative; flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.15);
}
.rbc-logo__ball::before, .rbc-logo__ball::after { content: ""; position: absolute; background: rgba(0,0,0,.3); }
.rbc-logo__ball::before { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); }
.rbc-logo__ball::after  { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
.rbc-logo__text { line-height: 1; font-family: var(--rbc-font-display); }
.rbc-logo__text b { display: block; font-size: 1.2rem; letter-spacing: 1px; }
.rbc-logo__text span { display: block; font-size: .68rem; letter-spacing: 4px; color: #cfe0f5; }

.rbc-nav { margin-left: auto; }
.rbc-nav ul { list-style: none; display: flex; gap: 1px; margin: 0; padding: 0; }
.rbc-nav a {
  display: block; font-family: var(--rbc-font-display); text-transform: uppercase;
  letter-spacing: .2px; font-size: .86rem; color: #eaf1fb; text-decoration: none;
  padding: 8px 9px; border-radius: 6px; transition: background .2s, color .2s;
  white-space: nowrap;   /* PL: nie łam „STRONA GŁÓWNA" / „O TURNIEJU" na 2 linie */
}
.rbc-nav a:hover { background: rgba(255,255,255,.12); }
.rbc-nav a.is-active { color: #fff; background: var(--rbc-blue); }
.rbc-nav__cta { display: none; }   /* CTA w menu tylko na mobile (na desktopie jest w pasku) */

.rbc-header__actions { display: flex; align-items: center; gap: 10px; }
.rbc-header__actions .rbc-btn { padding: 10px 18px; font-size: .88rem; }

.rbc-lang { display: flex; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; overflow: hidden; }
.rbc-lang button {
  background: transparent; color: #dbe7f7; border: 0; cursor: pointer;
  font-family: var(--rbc-font-display); font-size: .85rem; letter-spacing: 1px; padding: 6px 10px;
}
.rbc-lang button.is-active { background: #fff; color: var(--rbc-navy); }

.rbc-burger { display: none; background: transparent; border: 0; cursor: pointer; width: 40px; height: 40px; }
.rbc-burger span { display: block; height: 3px; background: #fff; margin: 5px 6px; border-radius: 2px; }

/* ---- HERO kinowy (full-bleed) ------------------------------------------- */
.rbc-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--rbc-navy-deep), var(--rbc-navy) 45%, var(--rbc-blue));
}
/* tło "foto" hero (do podmiany na prawdziwe zdjęcie: background-image) */
.rbc-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,90,0,.35), transparent 60%),
    radial-gradient(900px 600px at 10% 120%, rgba(0,110,223,.5), transparent 60%);
  z-index: 0;
}
.rbc-hero__inner { position: relative; z-index: 2; padding: 64px 0 72px; max-width: 900px; }

/* wariant strony głównej — pełnoekranowe zdjęcie na górze (parallax) + statyczny scrim */
@keyframes rbc-flow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.rbc-hero--home {
  min-height: 80vh; display: flex; align-items: flex-start;
  background: var(--rbc-navy-deep);
}
/* Warstwa zdjęcia — powolny Ken Burns (żywość); kadr na pasie z zawodnikami */
.rbc-hero__bg {
  position: absolute; left: 0; right: 0; top: -20%; height: 140%; z-index: 0;
  background-image: var(--hero-img, linear-gradient(120deg, var(--rbc-navy-deep), var(--rbc-blue)));
  background-size: cover; background-position: var(--hero-pos, 50% 42%);
  will-change: transform, opacity;
  animation: rbc-hero-enter 1.1s cubic-bezier(.16,.84,.44,1) both,
             rbc-hero-ken 26s ease-in-out 1.1s infinite alternate;
}
@keyframes rbc-hero-ken {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.16) translate(-1.6%, -1.1%); }
}
/* Wejście „na load": zdjęcie pojawia się i lekko OSIADA w dół, potem płynnie
   przejmuje je Ken Burns (efekt jak na get.basketball — mało, a robi dużo) */
@keyframes rbc-hero-enter {
  from { opacity: 0; transform: scale(1.16) translateY(-3.5%); }
  to   { opacity: 1; transform: scale(1.04) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-hero__bg { animation: none; transform: scale(1.03); }
}
/* Scrim nad zdjęciem — czytelność tekstu (nieruchomy, bez płynącego liquid) */
.rbc-hero--home::before { display: none; }
.rbc-hero--home::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(255,90,0,.12), rgba(255,90,0,0) 45%),
    linear-gradient(180deg, rgba(2,18,44,.80) 0%, rgba(2,18,44,.26) 42%, rgba(2,18,44,.10) 100%);
}
.rbc-hero--home .rbc-hero__inner { padding: 44px 0 0; }

/* Warstwa shadera (canvas wstrzykiwany przez shader.js — używana w bloku 2027) */
.rbc-shader { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rbc-shader canvas { display: block; width: 100%; height: 100%; }

/* Hero podstron — kompaktowy, na zdjęciu, ze scrimem (spójny z landingiem) */
.rbc-hero--sub { min-height: max(72vh, 560px); display: flex; align-items: flex-end; background: var(--rbc-navy-deep); --hero-pos: 50% 45%; }
.rbc-hero--sub::before { display: none; }
.rbc-hero--sub::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(2,18,44,.55) 0%, rgba(2,18,44,.30) 45%, rgba(2,18,44,.80) 100%);
}
.rbc-hero--sub .rbc-hero__inner { position: relative; z-index: 2; padding: 40px 0; max-width: 820px; }
.rbc-hero--sub h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

/* --- Hero podstron v2: płynący LIQUID (shader Warp) marki + klaster ostrych zdjęć --- */
/* tło = gradient marki (fallback), na wierzchu montuje się WebGL liquid z .rbc-shader */
.rbc-hero--gfx {
  min-height: max(62vh, 500px); display: flex; align-items: center;
  background: linear-gradient(120deg, #022a5c 0%, #034EA2 34%, #006EDF 56%, #FF7A2E 130%);
  background-size: 240% 240%; animation: rbc-flow 22s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .rbc-hero--gfx { animation: none; } }
.rbc-hero--gfx::before { display: none; }
/* scrim dla czytelności tekstu nad płynącym liquidem */
.rbc-hero--gfx::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,18,44,.60) 0%, rgba(2,18,44,.22) 46%, rgba(2,18,44,0) 72%),
    linear-gradient(180deg, rgba(2,18,44,.10), rgba(2,18,44,.36));
}
.rbc-hero--gfx .rbc-shader { z-index: 0; }
.rbc-hero--gfx .rbc-hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 52px 0 70px; max-width: 1180px;
}
.rbc-hero--gfx h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); }
.rbc-hero__shots { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.rbc-hero__shots figure {
  margin: 0; border: 4px solid #fff; border-radius: var(--rbc-radius); overflow: hidden;
  box-shadow: 0 22px 46px rgba(2,18,44,.42);
}
.rbc-hero__shots img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rbc-hero__shots .s1 { grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.rbc-hero__shots .s2 { aspect-ratio: 4 / 3; }
.rbc-hero__shots .s3 { aspect-ratio: 4 / 3; }
/* Wejście „na load" hero podstron (gfx): zdjęcia OSIADAJĄ w dół, tekst fade-up */
.rbc-hero__shots figure { animation: rbc-shot-in .9s cubic-bezier(.16,.84,.44,1) both; }
.rbc-hero__shots .s1 { animation-delay: .06s; }
.rbc-hero__shots .s2 { animation-delay: .18s; }
.rbc-hero__shots .s3 { animation-delay: .30s; }
@keyframes rbc-shot-in { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: translateY(0); } }
.rbc-hero--gfx .rbc-hero__inner > div > * { animation: rbc-hero-text-in .8s cubic-bezier(.16,.84,.44,1) both; }
.rbc-hero--gfx .rbc-hero__inner > div > *:nth-child(1) { animation-delay: .10s; }
.rbc-hero--gfx .rbc-hero__inner > div > *:nth-child(2) { animation-delay: .22s; }
.rbc-hero--gfx .rbc-hero__inner > div > *:nth-child(3) { animation-delay: .34s; }
.rbc-hero--gfx .rbc-hero__inner > div > *:nth-child(4) { animation-delay: .46s; }
@keyframes rbc-hero-text-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .rbc-hero__shots figure, .rbc-hero--gfx .rbc-hero__inner > div > * { animation: none; }
}
@media (max-width: 860px) {
  .rbc-hero--gfx .rbc-hero__inner { grid-template-columns: 1fr; gap: 26px; padding-left: 20px; padding-right: 20px; }
  .rbc-hero__shots { max-width: min(460px, 100%); min-width: 0; margin-inline: auto; }
}

.rbc-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rbc-orange); color: #fff; font-family: var(--rbc-font-display);
  text-transform: uppercase; letter-spacing: 1.5px; padding: 7px 16px;
  border-radius: 4px; font-size: .82rem; margin-bottom: 20px;
}
.rbc-hero h1 { font-size: clamp(2.8rem, 9vw, 6.5rem); margin-bottom: 14px; letter-spacing: -1.5px; }
.rbc-hero__sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #dbe7f7; margin-bottom: 6px; max-width: 60ch; }
.rbc-hero__meta {
  font-family: var(--rbc-font-display); text-transform: uppercase; letter-spacing: 1px;
  font-size: 1.15rem; color: #fff; margin: 18px 0 26px;
}
.rbc-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.rbc-hero__art { display: none; } /* w kinowym hero tło niesie obraz */

/* Licznik odliczający do turnieju (hero) */
.rbc-countdown { display: flex; gap: 10px; margin: 6px 0 26px; flex-wrap: wrap; }
.rbc-cd__unit {
  min-width: 74px; padding: 12px 12px 10px; text-align: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 2px; backdrop-filter: blur(2px);
}
.rbc-cd__unit:first-child { border-bottom: 3px solid var(--rbc-orange); }
.rbc-cd__unit b {
  display: block; font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 2.2rem; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.rbc-cd__unit span {
  display: block; margin-top: 7px; font-family: var(--rbc-font-ui); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: .66rem; color: #cfe0f5;
}
@media (max-width: 780px) {
  .rbc-cd__unit { min-width: 0; flex: 1; padding: 10px 6px 8px; }
  .rbc-cd__unit b { font-size: 1.7rem; }
}

/* ---- Stat bar (osobne karty, kierunek Stitcha) -------------------------- */
.rbc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rbc-stat {
  text-align: center; padding: 24px 14px; background: #fff;
  border: 1px solid var(--rbc-line); border-top: 3px solid var(--rbc-orange);
  border-radius: 6px; box-shadow: var(--rbc-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rbc-stat:hover { transform: translateY(-4px); box-shadow: var(--rbc-shadow); }
.rbc-stat b {
  display: block; font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 2.4rem; color: var(--rbc-navy); line-height: 1;
}
.rbc-stat span { display: block; margin-top: 8px; font-size: .82rem; color: var(--rbc-ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.rbc-stat em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }

/* ---- Numerowana lista (sygnaturowy element referencji) ------------------ */
.rbc-numlist { display: grid; gap: 56px; }
.rbc-numitem { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rbc-numitem:nth-child(even) .rbc-numitem__media { order: -1; }
.rbc-numitem__num {
  font-family: var(--rbc-font-display); font-weight: 700; line-height: .8;
  font-size: clamp(3rem, 8vw, 6rem); color: var(--rbc-orange);
  -webkit-text-stroke: 0; display: block; margin-bottom: 8px;
}
.rbc-numitem h3 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
.rbc-numitem__media { border-radius: var(--rbc-radius); overflow: hidden; box-shadow: var(--rbc-shadow); }
.rbc-numitem__media .rbc-ph--img { min-height: 300px; border-radius: 0; }

/* ---- Karty (magazynowe) -------------------------------------------------- */
.rbc-card {
  background: #fff; border: 1px solid var(--rbc-line);
  border-radius: var(--rbc-radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.rbc-card:hover, .rbc-card:hover { transform: translateY(-4px); box-shadow: var(--rbc-shadow); }
.rbc-card .rbc-ph--img { min-height: 190px; border-radius: 0; }
.rbc-card__body { padding: 18px; }
.rbc-card__body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.rbc-card__meta {
  font-family: var(--rbc-font-display); font-size: .78rem; color: var(--rbc-orange-text);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.rbc-card__foot { margin-top: auto; padding: 0 18px 18px; }
.rbc-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--rbc-bg-2); }
.rbc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.rbc-card:hover .rbc-card__media img { transform: scale(1.05); }
/* Pojedyncze zdjęcie w ramce (np. sekcja 2027) */
.rbc-media-frame {
  border-radius: 0; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--rbc-shadow); border: 6px solid rgba(255,255,255,.18);
}
.rbc-media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kolaż „stack": kolorowa podkładka + zdjęcia z przesunięciem, wychodzące poza bok */
.rbc-stack { position: relative; width: 100%; max-width: 540px; margin: 20px auto 40px; }
.rbc-stack__plate {
  position: absolute; left: 0; top: 10%; width: 68%; height: 72%;
  background: var(--rbc-navy); border-radius: 0; z-index: 0;
}
.rbc-stack__plate--orange { background: var(--rbc-orange); }
.rbc-stack__main {
  position: relative; z-index: 1; margin: 0 0 0 16%;
  width: 76%; aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden;
  box-shadow: var(--rbc-shadow);
}
.rbc-stack__mini {
  position: absolute; z-index: 2; right: -7%; bottom: -6%; margin: 0;
  width: 46%; aspect-ratio: 1 / 1; border-radius: 0; overflow: hidden;
  border: 3px solid #fff; box-shadow: var(--rbc-shadow);
}
.rbc-stack img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.rbc-stack:hover .rbc-stack__main img { transform: scale(1.05); }
.rbc-stack:hover .rbc-stack__mini img { transform: scale(1.08); }
.rbc-stack__tag {
  position: absolute; z-index: 3; left: 6%; bottom: 4%;
  background: var(--rbc-orange); color: #fff; font-family: var(--rbc-font-ui);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem;
  padding: 8px 15px; border-radius: 4px;
}
/* Wariant odbity (dla prawej kolumny — spill do środka, nie poza stronę) */
.rbc-stack--flip .rbc-stack__plate { left: auto; right: 0; }
.rbc-stack--flip .rbc-stack__main { margin: 0 16% 0 8%; }
.rbc-stack--flip .rbc-stack__mini { right: auto; left: -7%; }
.rbc-stack--flip .rbc-stack__tag { left: auto; right: 6%; }

/* ---- Wachlarz zdjęć „rozrzucony" (kierunek Stitcha, blok 2027) ---------- */
.rbc-fan { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 6px auto; }
.rbc-fan figure {
  position: absolute; margin: 0; width: 40%; aspect-ratio: 3 / 4;
  border: 5px solid #fff; border-radius: 2px; overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,.38);
  transform: rotate(var(--r, 0deg));
  transition: transform .35s ease, box-shadow .35s ease;
}
.rbc-fan img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbc-fan figure:hover { transform: rotate(var(--r, 0deg)) scale(1.07); box-shadow: 0 22px 46px rgba(0,0,0,.5); z-index: 30; }
.rbc-fan__tag {
  position: absolute; z-index: 25; left: 0; bottom: -6%;
  background: var(--rbc-orange); color: #fff; font-family: var(--rbc-font-ui);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem;
  padding: 8px 15px; border-radius: 4px; box-shadow: var(--rbc-shadow-sm);
}
@media (max-width: 780px) {
  .rbc-fan { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; }
  .rbc-fan figure { position: static; width: 100%; aspect-ratio: 4 / 3; transform: none !important; border-width: 3px; }
  .rbc-fan__tag { position: static; display: inline-block; margin-top: 6px; }
}

@media (max-width: 780px) {
  .rbc-stack { max-width: none; margin: 0; display: grid; gap: 14px; }
  .rbc-stack__plate { display: none; }
  .rbc-stack__main, .rbc-stack__mini {
    position: static; width: 100%; margin: 0; border: 0; aspect-ratio: 16 / 10;
    box-shadow: var(--rbc-shadow-sm);
  }
  .rbc-stack__tag { position: static; display: inline-block; }
}

/* Kafle */
.rbc-tile { background: #fff; border: 1px solid var(--rbc-line); border-radius: var(--rbc-radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.rbc-tile:hover { transform: translateY(-3px); box-shadow: var(--rbc-shadow-sm); }
.rbc-tile__ico {
  width: 48px; height: 48px; border-radius: 2px; background: var(--rbc-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rbc-font-display); font-size: 1.35rem; margin-bottom: 14px;
}
.rbc-tile h3 { font-size: 1.2rem; }

/* Karta edycji */
.rbc-edcard { position: relative; }
.rbc-edcard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--rbc-font-display); text-transform: uppercase; letter-spacing: 1px;
  font-size: .72rem; padding: 5px 12px; border-radius: 4px; color: #fff;
}
.rbc-edcard__badge--done { background: var(--rbc-navy); }
.rbc-edcard__badge--next { background: var(--rbc-orange); }
.rbc-edcard__year { font-family: var(--rbc-font-display); font-size: 2.4rem; color: var(--rbc-navy); line-height: 1; }

/* Kafel edycji ze zdjęciem (zdjęcie + trójkąt w rogu + kolorowa ramka + checklista) */
.rbc-edtile {
  position: relative; z-index: 0; isolation: isolate;
  display: flex; flex-direction: column; background: #fff;
  border-radius: 2px; box-shadow: var(--rbc-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rbc-edtile:hover { transform: translateY(-4px); box-shadow: var(--rbc-shadow); }
/* płynąca gruba ramka gradientowa (zamiast solidnej/białej) */
.rbc-edtile::before {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit;
  padding: 8px; pointer-events: none;
  background: conic-gradient(from var(--rbc-angle),
    var(--rbc-navy), var(--rbc-blue), var(--rbc-orange), var(--rbc-blue), var(--rbc-navy));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: padding .25s ease;
}
/* ramka statyczna w spoczynku, kręci się + poszerza dopiero na hover */
.rbc-edtile:hover::before { animation: rbc-spin 6s linear infinite; padding: 12px; }
.rbc-edtile--next::before {
  background: conic-gradient(from var(--rbc-angle),
    var(--rbc-orange), var(--rbc-blue), var(--rbc-navy), var(--rbc-blue), var(--rbc-orange));
}

/* Płynąca gradientowa ramka na WSZYSTKICH kaflach (tile / card / stat / logo) */
.rbc-tile, .rbc-card, .rbc-stat, .rbc-ph--logo { position: relative; z-index: 0; isolation: isolate; border-color: transparent; }
.rbc-tile::before, .rbc-card::before, .rbc-stat::before, .rbc-ph--logo::before {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit;
  padding: 5px; pointer-events: none;
  background: conic-gradient(from var(--rbc-angle),
    var(--rbc-navy), var(--rbc-blue), var(--rbc-orange), var(--rbc-blue), var(--rbc-navy));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: padding .25s ease;
}
/* ramka statyczna w spoczynku, kręci się + poszerza dopiero na hover */
.rbc-tile:hover::before, .rbc-card:hover::before, .rbc-stat:hover::before, .rbc-ph--logo:hover::before {
  animation: rbc-spin 6s linear infinite; padding: 8px;
}
/* poszanowanie reduced-motion: bez wirowania i bez płynnego poszerzania */
@media (prefers-reduced-motion: reduce) {
  .rbc-tile:hover::before, .rbc-card:hover::before, .rbc-stat:hover::before,
  .rbc-ph--logo:hover::before, .rbc-edtile:hover::before { animation: none; }
  .rbc-tile::before, .rbc-card::before, .rbc-stat::before,
  .rbc-ph--logo::before, .rbc-edtile::before { transition: none; }
}
.rbc-edtile__media { position: relative; margin: 12px 12px 0; overflow: hidden; aspect-ratio: 16 / 9; }
.rbc-edtile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rbc-edtile:hover .rbc-edtile__media img { transform: scale(1.05); }
.rbc-edtile__media::before {
  content: ""; position: absolute; left: 0; top: 0; z-index: 2;
  border-top: 34px solid var(--rbc-navy); border-right: 34px solid transparent;
}
.rbc-edtile--next .rbc-edtile__media::before { border-top-color: var(--rbc-orange); }
.rbc-edtile__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rbc-edtile__eyebrow {
  font-family: var(--rbc-font-ui); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: .78rem; color: var(--rbc-ink-soft); margin-bottom: 10px;
}
.rbc-edtile h3 {
  font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; color: var(--rbc-navy);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.02; margin-bottom: 12px;
}
.rbc-edtile p { color: var(--rbc-ink-soft); margin: 0 0 6px; }
.rbc-checks { list-style: none; padding: 0; margin: 6px 0 0; }
.rbc-checks li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--rbc-ink); }
.rbc-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rbc-orange); font-weight: 800; }
.rbc-edtile__foot { margin-top: auto; padding-top: 18px; }

/* ---- Pełna klasyfikacja (ranking, medalowy top 3) --------------------- */
.rbc-standings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rbc-standings__cat h3 {
  font-size: 1.05rem; margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--rbc-orange); display: flex; justify-content: space-between; align-items: baseline;
}
.rbc-standings__cat h3 small { font-family: var(--rbc-font-ui); font-weight: 600; font-size: .72rem; color: var(--rbc-ink-soft); text-transform: none; letter-spacing: 0; }
.rbc-standings ol { list-style: none; padding: 0; margin: 0; counter-reset: pos; }
.rbc-standings li {
  display: flex; align-items: center; gap: 9px; padding: 6px 6px; font-size: .9rem;
  counter-increment: pos;
}
.rbc-standings li + li { border-top: 1px solid rgba(2,18,44,.07); }
.rbc-standings li::before {
  content: counter(pos); flex: 0 0 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rbc-font-display); font-weight: 800; font-size: .78rem; border-radius: 5px;
  background: var(--rbc-bg-2); color: var(--rbc-ink-soft);
}
.rbc-standings li:nth-child(1) { font-weight: 700; }
.rbc-standings li:nth-child(1)::before { background: #FFCE45; color: #5a4300; }
.rbc-standings li:nth-child(2)::before { background: #CBD2DB; color: #33414f; }
.rbc-standings li:nth-child(3)::before { background: #E39A5B; color: #4a2600; }
.rbc-standings li .rbc-natflag { flex: 0 0 auto; width: 24px; height: 16px; object-fit: cover;
  border-radius: 3px; border: 1px solid rgba(2,18,44,.12); box-shadow: 0 1px 2px rgba(2,18,44,.12); }
@media (max-width: 960px) { .rbc-standings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rbc-standings { grid-template-columns: 1fr; } }

/* ---- Lata / chipy -------------------------------------------------------- */
.rbc-years { display: flex; gap: 8px; flex-wrap: wrap; }
.rbc-years a, .rbc-years span {
  font-family: var(--rbc-font-display); text-transform: uppercase;
  border: 1px solid var(--rbc-line); border-radius: 2px; padding: 8px 18px;
  text-decoration: none; color: var(--rbc-navy); background: #fff; font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
}
.rbc-years a:hover { border-color: var(--rbc-orange); color: var(--rbc-orange); }
.rbc-years .is-current { background: var(--rbc-orange); color: #fff; border-color: var(--rbc-orange); }
.rbc-years .is-disabled { opacity: .5; }

/* ---- Galeria / lightbox -------------------------------------------------- */
.rbc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.rbc-gallery .rbc-ph--img { min-height: 150px; cursor: pointer; transition: transform .2s, filter .2s; }
.rbc-gallery .rbc-ph--img:hover { transform: scale(1.02); }

/* ---- Artykuł / relacja (magazynowy układ edycji) ------------------------ */
.rbc-article { max-width: 720px; margin: 0 auto; }
.rbc-article p { font-size: 1.12rem; }
.rbc-article > p:first-of-type::first-letter {
  font-family: var(--rbc-font-display); font-size: 3.4rem; float: left;
  line-height: .8; padding: 4px 10px 0 0; color: var(--rbc-orange);
}
.rbc-quote {
  font-family: var(--rbc-font-display); text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.1; color: var(--rbc-navy);
  border-left: 5px solid var(--rbc-orange); padding: 6px 0 6px 24px; margin: 36px 0;
}
.rbc-figure { margin: 32px 0; }
.rbc-figure figcaption {
  font-size: .85rem; color: var(--rbc-ink-soft); margin-top: 8px;
  padding-left: 14px; border-left: 3px solid var(--rbc-orange);
}

/* ---- Partnerzy ----------------------------------------------------------- */
.rbc-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: center; }

/* ---- Formularze ---------------------------------------------------------- */
.rbc-form { display: grid; gap: 18px; max-width: 760px; }
.rbc-field { display: flex; flex-direction: column; gap: 6px; }
.rbc-field label { font-family: var(--rbc-font-display); text-transform: uppercase; letter-spacing: .5px; font-size: .85rem; }
.rbc-field input, .rbc-field select, .rbc-field textarea {
  padding: 12px 14px; border: 1px solid var(--rbc-line); border-radius: 2px; font: inherit; background: #fff;
}
.rbc-field input:focus, .rbc-field select:focus, .rbc-field textarea:focus {
  outline: 3px solid rgba(0,110,223,.35); outline-offset: 1px; border-color: var(--rbc-blue);
}
.rbc-field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---- Kontakt ------------------------------------------------------------- */
.rbc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rbc-contact__item { margin-bottom: 16px; }
.rbc-contact__item b { font-family: var(--rbc-font-display); text-transform: uppercase; letter-spacing: 1px; display: block; color: var(--rbc-navy); }

/* ---- Breadcrumb ---------------------------------------------------------- */
.rbc-crumbs { font-size: .85rem; color: var(--rbc-ink-soft); padding: 16px 0; }
.rbc-crumbs a { text-decoration: none; }

/* ---- Nawigacja edycji ---------------------------------------------------- */
.rbc-ednav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- Footer -------------------------------------------------------------- */
.rbc-footer { background: #041d3c; color: #cdd9e8; padding: 56px 0 24px; }
.rbc-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.rbc-footer a { color: #cdd9e8; text-decoration: none; }
.rbc-footer a:hover { color: var(--rbc-orange); }
.rbc-logo__img { height: 42px; width: auto; display: block; }
.rbc-footer .rbc-logo__img { height: 52px; }
.rbc-footer__social { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.rbc-footer__social a { font-family: var(--rbc-font-ui); font-weight: 700; font-size: .9rem; }
.rbc-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.rbc-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.rbc-footer__cols li { margin-bottom: 8px; }
.rbc-footer__bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem;
}
/* poświata u góry stopki (jak w referencji) */
.rbc-footer { position: relative; overflow: hidden; }
.rbc-footer__glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34%; height: 2px; border-radius: 999px; filter: blur(1px); opacity: .75;
  background: linear-gradient(90deg, transparent, var(--rbc-orange), transparent);
}
/* animacja wejścia „blur-in" (odtworzenie motion/react z referencji) */
.rbc-freveal {
  opacity: 0; filter: blur(4px); transform: translateY(-8px);
  transition: opacity .8s ease, filter .8s ease, transform .8s ease;
}
.rbc-freveal.is-in { opacity: 1; filter: blur(0); transform: none; }
/* ikony social (kwadraciki z hover na pomarańcz) */
.rbc-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rbc-social a {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #cdd9e8;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.rbc-social a:hover { background: var(--rbc-orange); border-color: var(--rbc-orange); color: #fff; transform: translateY(-3px); }
.rbc-social svg { width: 19px; height: 19px; }
/* wariant na JASNYM tle (np. Kontakt) */
.rbc-social--light a { background: var(--rbc-bg-1); border-color: var(--rbc-line); color: var(--rbc-navy); }
.rbc-social--light a:hover { background: var(--rbc-orange); border-color: var(--rbc-orange); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .rbc-freveal { opacity: 1 !important; filter: none !important; transform: none !important; transition: none; }
}

/* ---- Stały kafel 15. edycji w stopce (ZAWSZE widoczny) ----------------- */
.rbc-footer__ed15 {
  display: flex; align-items: center; gap: 18px;
  width: 100%; max-width: var(--rbc-maxw); margin: 0 auto 40px; box-sizing: border-box;
  padding: 14px 18px;
  background: linear-gradient(120deg, rgba(3,78,162,.55), rgba(255,90,0,.30));
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  color: #fff !important; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rbc-footer__ed15:hover { transform: translateY(-3px); border-color: var(--rbc-orange); box-shadow: var(--rbc-shadow); color: #fff !important; }
.rbc-footer__ed15-media { flex: 0 0 auto; width: 96px; height: 64px; border-radius: 6px; overflow: hidden; }
.rbc-footer__ed15-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbc-footer__ed15-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rbc-footer__ed15-eyebrow { font-family: var(--rbc-font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .7rem; color: #ffd9c2; }
.rbc-footer__ed15-title { font-family: var(--rbc-font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; color: #fff; }
.rbc-footer__ed15-sub { font-size: .86rem; color: #e7eef7; }
.rbc-footer__ed15-go { margin-left: auto; flex: 0 0 auto; font-size: 1.5rem; color: #fff; transition: transform .2s ease; }
.rbc-footer__ed15:hover .rbc-footer__ed15-go { transform: translateX(4px); color: #ffceb3; }

/* ---- Karta „Dalej" pod stopką (prowadzenie odbiorcy scrollem) ---------- */
.rbc-upnext {
  position: relative; padding: 42px 0 50px; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--rbc-navy-deep), var(--rbc-blue-elec) 55%, var(--rbc-orange));
}
.rbc-upnext__card {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 26px;
  width: 100%; max-width: var(--rbc-maxw); margin: 0 auto; box-sizing: border-box; padding: 0 24px;
  text-decoration: none; color: #fff;
}
.rbc-upnext__media {
  flex: 0 0 auto; width: 200px; height: 132px; border-radius: 8px; overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--rbc-shadow);
}
.rbc-upnext__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rbc-upnext__card:hover .rbc-upnext__media img { transform: scale(1.05); }
.rbc-upnext__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rbc-upnext__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rbc-font-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: #ffd9c2;
}
.rbc-upnext__arrow { display: inline-block; animation: rbc-bob 1.4s ease-in-out infinite; }
.rbc-upnext__title {
  font-family: var(--rbc-font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.0; color: #fff;
}
.rbc-upnext__sub { font-size: 1rem; color: #eaf1fb; max-width: 52ch; }
.rbc-upnext__go {
  margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rbc-font-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: .9rem;
  padding: 11px 20px; border: 2px solid #fff; border-radius: var(--rbc-radius); color: #fff;
  transition: background .2s ease, color .2s ease;
}
.rbc-upnext__card:hover .rbc-upnext__go { background: #fff; color: var(--rbc-navy); }
.rbc-upnext__go .rbc-btn__arrow { transition: transform .2s ease; }
.rbc-upnext__card:hover .rbc-upnext__go .rbc-btn__arrow { transform: translateX(4px); }
/* pasek postępu over-scrolla — fixed na dole ekranu, widoczny tylko podczas „doscrollowania" */
.rbc-upnext__progress { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 4px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.rbc-upnext__progress.is-active { opacity: 1; }
.rbc-upnext__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; transform: scaleX(0); transform-origin: left center; background: var(--rbc-orange); }
.rbc-upnext__hint { position: absolute; right: 14px; bottom: 12px; font-family: var(--rbc-font-ui); font-weight: 700; font-size: .78rem; color: var(--rbc-navy); background: #fff; padding: 4px 12px; border-radius: 999px; box-shadow: var(--rbc-shadow-sm); }
@keyframes rbc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 780px) {
  .rbc-footer__ed15 { flex-wrap: wrap; gap: 12px; }
  .rbc-footer__ed15-go { font-size: 1.3rem; }
  .rbc-upnext__card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .rbc-upnext__media { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .rbc-upnext__sub { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-upnext__arrow { animation: none; }
  .rbc-upnext__progress { display: none; }
}

/* ---- Galeria z realnych zdjęć (grupy meczów + kafle) -------------------- */
/* Pasek skoku między meczami (sticky pod nagłówkiem) */
.rbc-galnav {
  position: sticky; top: var(--rbc-header-h); z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin-bottom: 28px;
  background: var(--rbc-bg, #fff); scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--rbc-bg-2);
}
.rbc-galnav__chip {
  flex: 0 0 auto; font-family: var(--rbc-font-ui); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .5px; padding: 7px 14px; border-radius: 2px;
  background: var(--rbc-bg-2); color: var(--rbc-ink-soft); text-decoration: none;
  white-space: nowrap; border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.rbc-galnav__chip:hover, .rbc-galnav__chip.is-active { background: var(--rbc-navy); color: #fff; }

.rbc-galgroup { margin-bottom: 48px; scroll-margin-top: calc(var(--rbc-header-h) + 60px); }
.rbc-galgroup__title {
  font-size: clamp(1.25rem, 2.5vw, 1.9rem); margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 2px solid var(--rbc-bg-2);
}
.rbc-galgroup__count {
  font-family: var(--rbc-font-ui); font-weight: 600; text-transform: none;
  letter-spacing: .5px; font-size: .82rem; color: var(--rbc-ink-soft);
}
.rbc-galitem {
  display: block; position: relative; overflow: hidden; border-radius: 2px;
  grid-column: span 1; grid-row: span 1; background: var(--rbc-bg-2); cursor: pointer;
}
.rbc-galitem--big  { grid-column: span 2; grid-row: span 2; }
.rbc-galitem--wide { grid-column: span 2; }
.rbc-galitem--tall { grid-row: span 2; }
.rbc-galitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.rbc-galitem:hover img { transform: scale(1.06); }
.rbc-galitem::after {
  content: ""; position: absolute; inset: 0; background: rgba(3,78,162,0);
  transition: background .25s ease;
}
.rbc-galitem:hover::after { background: rgba(3,78,162,.18); }

/* ---- Lightbox ------------------------------------------------------------ */
.rbc-lightbox {
  position: fixed; inset: 0; background: rgba(2,15,35,.94); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.rbc-lightbox.is-open { display: flex; }
.rbc-lb__fig { margin: 0; max-width: 92vw; text-align: center; }
.rbc-lb__imgwrap { display: flex; align-items: center; justify-content: center; }
.rbc-lb__img { max-width: 90vw; max-height: 80vh; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .22s ease; }
.rbc-lb__img.is-loading { opacity: 0; }
.rbc-lb__cap {
  color: #dbe7f7; margin-top: 14px; font-family: var(--rbc-font-ui);
  text-transform: uppercase; letter-spacing: 1px; font-size: .82rem;
}
.rbc-lb__count {
  position: fixed; top: 20px; left: 24px; color: #9fb6d4;
  font-family: var(--rbc-font-display); font-size: 1rem; letter-spacing: 1px;
}
.rbc-lb__close {
  position: fixed; top: 14px; right: 20px; z-index: 2;
  background: transparent; border: 0; color: #fff; font-size: 2.2rem; line-height: 1;
  cursor: pointer; width: 48px; height: 48px;
}
.rbc-lb__nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%;
  cursor: pointer; transition: background .2s ease;
}
.rbc-lb__nav:hover { background: var(--rbc-orange); }
.rbc-lb__prev { left: 18px; }
.rbc-lb__next { right: 18px; }
.rbc-lb__close:focus-visible, .rbc-lb__nav:focus-visible { outline: 3px solid var(--rbc-orange); outline-offset: 2px; }
@media (max-width: 780px) {
  .rbc-lb__nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .rbc-lb__img { max-height: 70vh; }
}

/* ---- Reveal / warstwa animacji (odtworzenie Divi waypoints) ------------- */
/* bazowo: slideTop (fade + od dołu). Warianty jak w get.basketball. */
.rbc-reveal {
  opacity: 0; transform: translateY(28px); filter: blur(4px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1), filter .8s cubic-bezier(.22,.61,.36,1);
}
.rbc-reveal--left  { transform: translateX(-48px); }   /* slideRight (wjazd z lewej) */
.rbc-reveal--right { transform: translateX(48px); }    /* slideLeft (wjazd z prawej) */
.rbc-reveal--zoom  { transform: scale(.9); }           /* zoomLeft */
.rbc-reveal--fade  { transform: none; }                /* czysty fade */
.rbc-reveal.is-in  { opacity: 1; transform: none; filter: blur(0); }   /* blur-in: rozmycie → ostrość */

/* Sticky header — cień/zmiana przy scrollu (jak Divi sticky) */
.rbc-header { transition: box-shadow .3s ease, background .3s ease; }
.rbc-header.is-scrolled {
  background: linear-gradient(100deg, var(--rbc-navy-deep) 0%, var(--rbc-navy) 42%, var(--rbc-blue-elec) 100%);
  box-shadow: 0 10px 30px rgba(2,20,48,.34);
  animation: rbc-header-drop .42s cubic-bezier(.22,1,.36,1);
}
@keyframes rbc-header-drop { from { transform: translateY(-100%); opacity: .25; } to { transform: translateY(0); opacity: 1; } }

/* ---- Pływający przycisk „na górę" ------------------------------------- */
.rbc-totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer; color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(135deg, rgba(255,90,0,.55) 0%, rgba(255,138,61,.32) 45%, rgba(10,99,230,.58) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
          backdrop-filter: blur(12px) saturate(1.35);
  box-shadow: 0 8px 26px rgba(2,20,48,.34), inset 0 1px 1px rgba(255,255,255,.55), inset 0 -8px 16px rgba(2,20,48,.18);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, box-shadow .2s ease, background .25s ease;
}
.rbc-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.rbc-totop:hover {
  background: linear-gradient(135deg, rgba(255,90,0,.78) 0%, rgba(255,138,61,.5) 45%, rgba(10,99,230,.8) 100%);
  box-shadow: 0 14px 34px rgba(255,90,0,.4), inset 0 1px 1px rgba(255,255,255,.65);
  transform: translateY(-3px) scale(1.06);
}

/* ---- Pasek postępu scrollowania -------------------------------------- */
.rbc-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 60;
  transform-origin: 0 0; transform: scaleX(0); pointer-events: none;
  background: linear-gradient(90deg, var(--rbc-blue-elec) 0%, #ff8a3d 60%, var(--rbc-orange) 100%);
  box-shadow: 0 1px 6px rgba(2,20,48,.25);
}

/* ---- Zoom-parallax (rozjeżdżające się zdjęcia przy scrollu) ----------- */
.rbc-zoom { position: relative; height: 300vh; background: var(--rbc-navy-deep); }
.rbc-zoom__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--rbc-navy-deep); }
.rbc-zoom__label { position: absolute; top: 12vh; left: 0; right: 0; z-index: 20; text-align: center; color: #fff; pointer-events: none; padding: 0 20px; will-change: opacity; }
.rbc-zoom__label h2 { color: #fff; margin-top: 6px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.rbc-zoom__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: scale(1); will-change: transform; }
.rbc-zoom__img { position: relative; height: 25vh; width: 25vw; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 50px rgba(2,20,48,.45); }
.rbc-zoom__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rbc-zoom__item:nth-child(2) .rbc-zoom__img { top: -30vh; left: 5vw;    height: 30vh; width: 35vw; }
.rbc-zoom__item:nth-child(3) .rbc-zoom__img { top: -10vh; left: -25vw;  height: 45vh; width: 20vw; }
.rbc-zoom__item:nth-child(4) .rbc-zoom__img { left: 27.5vw;             height: 25vh; width: 25vw; }
.rbc-zoom__item:nth-child(5) .rbc-zoom__img { top: 27.5vh; left: 5vw;   height: 25vh; width: 20vw; }
.rbc-zoom__item:nth-child(6) .rbc-zoom__img { top: 27.5vh; left: -22.5vw; height: 25vh; width: 30vw; }
.rbc-zoom__item:nth-child(7) .rbc-zoom__img { top: 22.5vh; left: 25vw;  height: 15vh; width: 15vw; }
@media (prefers-reduced-motion: reduce) {
  .rbc-zoom { height: auto; }
  .rbc-zoom__sticky { position: relative; height: auto; padding: 48px 0; }
  .rbc-zoom__label { position: static; margin-bottom: 20px; }
  .rbc-zoom__item { position: relative; inset: auto; transform: none !important; }
  .rbc-zoom__item:not(:first-child) { display: none; }
  .rbc-zoom__img { height: auto; width: min(92vw, 900px); aspect-ratio: 16 / 9; margin: 0 auto; }
}
.rbc-totop svg { width: 22px; height: 22px; }
.rbc-totop:focus-visible { outline: 3px solid var(--rbc-orange); outline-offset: 3px; }
@media (max-width: 640px) { .rbc-totop { width: 46px; height: 46px; right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .rbc-header.is-scrolled { animation: none; }
  .rbc-totop, .rbc-totop.is-visible { transform: none; transition: opacity .2s ease, visibility .2s; }
}

/* Przycisk — strzałka doak­centowana przy hover (jak Divi :after) */
.rbc-btn__arrow { display: inline-block; transition: transform .25s ease; }
.rbc-btn:hover .rbc-btn__arrow { transform: translateX(4px); }

/* ---- Utilities ----------------------------------------------------------- */
.rbc-lead { font-size: 1.2rem; color: var(--rbc-ink-soft); max-width: 62ch; }
.rbc-section--navy .rbc-lead, .rbc-section--blue .rbc-lead { color: #dbe7f7; }
.rbc-mt { margin-top: 28px; }
.rbc-center { text-align: center; }
[hidden] { display: none !important; }

/* ---- Dostępność (a11y) --------------------------------------------------- */
/* Skip-link: ukryty do momentu focusa klawiaturą */
.rbc-skip {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--rbc-navy); color: #fff; padding: 10px 18px; border-radius: 4px;
  font-family: var(--rbc-font-ui); font-weight: 700; text-decoration: none;
  transition: top .2s ease;
}
.rbc-skip:focus { top: 12px; outline: 3px solid var(--rbc-orange); outline-offset: 2px; }

/* Spójny pierścień focusa na WSZYSTKICH interaktywnych (nie tylko .rbc-btn) */
.rbc-body a:focus-visible,
.rbc-nav a:focus-visible,
.rbc-galitem:focus-visible,
.rbc-years a:focus-visible,
.rbc-feature__link:focus-visible,
.rbc-card a:focus-visible,
.rbc-footer a:focus-visible,
.rbc-logo:focus-visible,
.rbc-lang button:focus-visible,
.rbc-burger:focus-visible {
  outline: 3px solid var(--rbc-orange); outline-offset: 3px; border-radius: 2px;
}

/* ---- Podział krojów: Anton = wielkie nagłówki, Inter = drobny UI --------- */
/* (na końcu, by nadpisać wcześniejsze font-family: var(--rbc-font-display)) */
.rbc-nav a, .rbc-btn, .rbc-lang button, .rbc-section__kicker,
.rbc-hero__badge, .rbc-hero__meta, .rbc-card__meta, .rbc-field label,
.rbc-years a, .rbc-years span, .rbc-stat span, .rbc-contact__item b,
.rbc-edcard__badge, .rbc-logo__text span {
  font-family: var(--rbc-font-ui);
  font-weight: 600;
}

/* ---- Elementy w stylu get.basketball (na kolorach marki) ---------------- */

/* Skośny/falisty przerywnik między sekcjami */
.rbc-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4; line-height: 0; pointer-events: none; }
.rbc-wave svg { display: block; width: 100%; height: 96px; }
@media (max-width: 780px) { .rbc-wave svg { height: 56px; } }
.rbc-section, .rbc-hero { position: relative; }

/* Sekcja na gradiencie marki (odpowiednik gradientu z referencji) */
.rbc-section--brand {
  background: linear-gradient(125deg, var(--rbc-navy) 0%, var(--rbc-blue) 50%, var(--rbc-orange) 125%);
  background-size: 200% 200%;
  animation: rbc-flow 24s ease-in-out infinite alternate;
  color: #fff;
}
.rbc-section--brand h1, .rbc-section--brand h2, .rbc-section--brand h3 { color: #fff; }
.rbc-section--brand .rbc-lead { color: #eaf1fb; }
.rbc-section--brand .rbc-section__kicker { color: #ffe0cc; }
/* treść bloku nad warstwą shadera (canvas z data-shader) */
.rbc-section--brand > .rbc-container { position: relative; z-index: 1; }

/* Nakładający się kolaż zdjęć */
.rbc-collage { position: relative; min-height: 420px; }
.rbc-collage figure { position: absolute; margin: 0; border-radius: 0; overflow: hidden; box-shadow: var(--rbc-shadow); }
.rbc-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbc-collage__a { width: 72%; top: 0; left: 0; aspect-ratio: 4/3; }
.rbc-collage__b { width: 50%; right: 0; bottom: 0; aspect-ratio: 4/3; border: 6px solid #fff; }
.rbc-collage__tag {
  position: absolute; left: 0; bottom: 18px; z-index: 4;
  background: var(--rbc-orange); color: #fff; font-family: var(--rbc-font-ui);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem;
  padding: 8px 16px; border-radius: 4px;
}

/* Trójka „ikona + tytuł + opis" (jak Outside the Box) */
.rbc-feature { text-align: left; }
.rbc-feature__ico {
  width: 66px; height: 66px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: rgba(3,78,162,.08); color: var(--rbc-navy);
  border-bottom: 3px solid var(--rbc-orange);
}
.rbc-feature__ico svg { width: 34px; height: 34px; }
.rbc-feature h3 { font-size: 1.4rem; }
.rbc-feature__link {
  display: inline-block; margin-top: 8px; font-family: var(--rbc-font-ui); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; text-decoration: none;
}

@media (max-width: 780px) {
  .rbc-collage { min-height: 0; display: grid; gap: 14px; }
  .rbc-collage figure { position: static; width: 100% !important; border: 0; box-shadow: var(--rbc-shadow-sm); }
  .rbc-collage__tag { position: static; display: inline-block; margin-top: 10px; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rbc-reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
  .rbc-btn:hover, .rbc-card:hover, .rbc-tile:hover, .rbc-gallery .rbc-ph--img:hover { transform: none; }
  .rbc-hero--home::before, .rbc-section--brand { animation: none; }
  .rbc-btn::before, .rbc-btn--outline, .rbc-btn--ghost,
  .rbc-edtile::before, .rbc-tile::before, .rbc-card::before, .rbc-stat::before, .rbc-ph--logo::before { animation: none; }
  .rbc-scard__fx { animation: none; }
}

/* =========================================================================
   KOMPONENTY DYNAMICZNE (etap 4) — inspiracja get.basketball na kolorach marki:
   wystające/nakładające się zdjęcia, podium, karty drużyn, timeline, pasek krajów,
   karty cenowe. Wszystko reduced-motion aware, przyciski zostają nasze.
   ========================================================================= */

/* ---- Pasek szybkich faktów pod hero (kolorowe kafle liczb) --------------- */
.rbc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -54px; position: relative; z-index: 6; }
.rbc-fact {
  background: #fff; border-radius: 4px; padding: 22px 16px; text-align: center;
  box-shadow: var(--rbc-shadow); border-bottom: 4px solid var(--rbc-orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rbc-fact:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(3,78,162,.22); }
.rbc-fact b {
  display: block; font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 1.9rem; color: var(--rbc-navy); line-height: 1; letter-spacing: -1px;
}
.rbc-fact span { display: block; margin-top: 8px; font-family: var(--rbc-font-ui); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; color: var(--rbc-ink-soft); }
@media (max-width: 780px) { .rbc-facts { grid-template-columns: repeat(2, 1fr); margin-top: -34px; } }

/* ---- Split feature: tekst + wystające, nakładające się zdjęcia ----------- */
/* (odpowiednik "BELONG"/"BE FOUND" z get.basketball: foto wychodzi poza kolumnę) */
.rbc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rbc-split--flip .rbc-split__media { order: -1; }
.rbc-split__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
/* zestaw 3 nakładających się zdjęć wychodzących poza obszar
   aspect-ratio skaluje wysokość z szerokością, by figury (absolutne) mieściły się
   w kontenerze i NIE nachodziły na kolejną sekcję (np. rząd kafli poniżej) */
.rbc-photostack { position: relative; min-height: 420px; aspect-ratio: 10 / 9; }
.rbc-photostack figure {
  position: absolute; margin: 0; overflow: hidden; border-radius: 2px;
  border: 6px solid #fff; box-shadow: 0 20px 45px rgba(2,20,48,.30);
  transition: transform .4s ease, box-shadow .4s ease;
}
.rbc-photostack img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbc-photostack__a { width: 66%; top: 0; left: -6%; aspect-ratio: 4/3; z-index: 1; }
.rbc-photostack__b { width: 50%; right: -8%; top: 22%; aspect-ratio: 3/4; z-index: 3; }
.rbc-photostack__c { width: 42%; left: 14%; bottom: -6%; aspect-ratio: 1/1; z-index: 2; }
.rbc-photostack figure:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 28px 60px rgba(2,20,48,.42); z-index: 5; }
.rbc-photostack__tag {
  position: absolute; z-index: 6; left: 0; bottom: 4%;
  background: var(--rbc-orange); color: #fff; font-family: var(--rbc-font-ui);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem;
  padding: 8px 16px; border-radius: 4px; box-shadow: var(--rbc-shadow-sm);
}

/* ---- Timeline posiłków / harmonogramu (poziomy, numerowany) -------------- */
.rbc-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.rbc-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 3px;
  background: rgba(255,255,255,.35); z-index: 0; }
.rbc-track__step { position: relative; z-index: 1; text-align: center; }
.rbc-track__dot {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--rbc-navy); font-family: var(--rbc-font-display);
  font-weight: 800; font-style: italic; font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.25); border: 3px solid var(--rbc-orange);
}
.rbc-track__step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.rbc-track__step p { color: #eaf1fb; margin: 0; font-size: .95rem; }
@media (max-width: 780px) {
  .rbc-track { grid-template-columns: 1fr 1fr; gap: 22px; }
  .rbc-track::before { display: none; }
}

/* ---- PODIUM (wizualizacja miejsc 1-2-3) --------------------------------- */
.rbc-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; max-width: 860px; margin: 0 auto; }
.rbc-pod { position: relative; border-radius: 6px 6px 0 0; padding: 22px 16px 26px; text-align: center;
  color: #fff; box-shadow: 0 -6px 30px rgba(0,0,0,.18) inset, var(--rbc-shadow); }
.rbc-pod__rank { font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 2.6rem; line-height: 1; display: block; }
.rbc-pod__medal { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.rbc-pod h3 { color: #fff; font-size: 1.05rem; margin: 8px 0 6px; }
.rbc-pod p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.92); }
.rbc-pod--1 { background: linear-gradient(180deg, #FFD65A, #E7A400); color: #4a3600; min-height: 250px; }
.rbc-pod--1 .rbc-pod__rank, .rbc-pod--1 h3 { color: #4a3600; }
.rbc-pod--1 p { color: rgba(74,54,0,.85); }
.rbc-pod--2 { background: linear-gradient(180deg, #CFD6DF, #9AA7B6); color: #2b3a49; min-height: 200px; }
.rbc-pod--2 .rbc-pod__rank, .rbc-pod--2 h3 { color: #2b3a49; }
.rbc-pod--2 p { color: rgba(43,58,73,.85); }
.rbc-pod--3 { background: linear-gradient(180deg, #E7A76A, #C06A2E); color: #4a2600; min-height: 172px; }
.rbc-pod--3 .rbc-pod__rank, .rbc-pod--3 h3 { color: #4a2600; }
.rbc-pod--3 p { color: rgba(74,38,0,.85); }
.rbc-pod__crown { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 1.9rem; }
/* wyróżnienia pod podium */
.rbc-awards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.rbc-award {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--rbc-navy);
  border-radius: 999px; padding: 10px 20px; font-family: var(--rbc-font-ui); font-weight: 700;
  box-shadow: var(--rbc-shadow-sm); font-size: .92rem;
}
.rbc-award b { font-family: var(--rbc-font-display); font-style: italic; color: var(--rbc-orange-text); }
@media (max-width: 620px) { .rbc-podium { grid-template-columns: 1fr; } .rbc-pod { min-height: 0 !important; } }

/* ---- Karty cenowe (pakiety) --------------------------------------------- */
.rbc-price { position: relative; z-index: 0; isolation: isolate; background: #fff; border-radius: 4px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--rbc-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease; }
.rbc-price:hover { transform: translateY(-6px); box-shadow: var(--rbc-shadow); }
.rbc-price__head { padding: 20px 22px; color: #fff; background: linear-gradient(160deg, var(--rbc-navy), var(--rbc-blue)); }
.rbc-price--feat .rbc-price__head { background: linear-gradient(160deg, #ff6b1a, var(--rbc-orange-deep)); }
.rbc-price__head .rbc-card__meta { color: rgba(255,255,255,.85); margin-bottom: 6px; }
.rbc-price__price { font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 2rem; line-height: 1; color: #fff; }
.rbc-price__price small { font-size: .5em; font-style: normal; font-weight: 600; opacity: .9; }
.rbc-price__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rbc-price__ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); z-index: 3;
  background: var(--rbc-navy); color: #fff; font-family: var(--rbc-font-ui); font-weight: 700;
  font-size: .72rem; letter-spacing: 1px; padding: 6px 40px; box-shadow: var(--rbc-shadow-sm); }
/* pasek wpisowego */
.rbc-feebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 26px;
  background: linear-gradient(120deg, var(--rbc-navy), var(--rbc-blue)); color: #fff;
  border-radius: 4px; padding: 20px 26px; }
.rbc-feebar b { font-family: var(--rbc-font-display); font-style: italic; text-transform: uppercase; }
.rbc-feebar__price { font-family: var(--rbc-font-display); font-weight: 800; font-style: italic; font-size: 1.5rem; }
.rbc-feebar__note { margin-left: auto; font-size: .85rem; color: #dbe7f7; }

/* ---- Karty DRUŻYN (realne zdjęcia, wyskakują) --------------------------- */
.rbc-teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rbc-team { position: relative; display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--rbc-shadow-sm); transform: translateZ(0);
  transition: transform .28s ease, box-shadow .28s ease; }
.rbc-team img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; }
.rbc-team::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,18,44,0) 30%, rgba(2,18,44,.35) 55%, rgba(2,18,44,.92) 100%); }
.rbc-team:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 26px 55px rgba(2,20,48,.42); z-index: 2; }
.rbc-team:hover img { transform: scale(1.10); }
.rbc-team__flag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.rbc-team__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; }
.rbc-team__name { display: block; font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; color: #fff; font-size: 1.05rem; line-height: 1.05; letter-spacing: -.3px; }
.rbc-team__ctry { display: block; margin-top: 4px; font-family: var(--rbc-font-ui); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .68rem; color: #ffd9c2; }
/* akcent pomarańczowej krechy na hover */
.rbc-team__cap::before { content: ""; display: block; width: 54px; height: 3px; background: var(--rbc-orange);
  margin-bottom: 8px; transform: scaleX(.48); transform-origin: left; transition: transform .3s ease; }
.rbc-team:hover .rbc-team__cap::before { transform: scaleX(1); }
.rbc-teams__more { display: contents; }
.rbc-teams--collapsed .rbc-team[data-extra] { display: none; }
@media (max-width: 960px) { .rbc-teams { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rbc-teams { grid-template-columns: repeat(2, 1fr); } }

/* przycisk rozwijania (bazuje na rbc-btn, ale osobne wyśrodkowanie) */
.rbc-morewrap { text-align: center; margin-top: 30px; }

/* ---- Pasek KRAJÓW (na gradiencie marki) --------------------------------- */
.rbc-flags { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.rbc-flag { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 12px 22px;
  backdrop-filter: blur(3px); transition: transform .2s ease, background .2s ease; }
.rbc-flag:hover { transform: translateY(-3px); background: rgba(255,255,255,.20); }
.rbc-flag__em { width: 30px; height: 20px; object-fit: cover; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.rbc-flag__txt { font-family: var(--rbc-font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; font-size: 1rem; }
/* ikony inline (Phosphor) zamiast emoji funkcyjnych */
.rbc-ico { width: 1.05em; height: 1.05em; flex: none; display: inline-block;
  vertical-align: -0.16em; margin-right: .42em; color: var(--rbc-orange-text); }

/* ---- Kafle "shader" (animowany dwukolorowy liquid, CSS zamiast WebGL) ----
   Efekt jak na referencji: miękkie, płynące plamy koloru pod tekstem.
   Dwa kolory marki per kafel (niebiesko-pomarańcz / pomarańczowo-niebieski),
   BEZ pełnego 4-kolorowego gradientu. Lekki, przenośny, reduced-motion aware. */
.rbc-scard {
  --c1: var(--rbc-blue-elec); --c2: var(--rbc-orange); --base: #06203c;
  position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  border-radius: 12px; padding: 30px 28px; min-height: 240px;
  display: flex; flex-direction: column; color: #fff;
  box-shadow: var(--rbc-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.rbc-scard:hover { transform: translateY(-6px); box-shadow: 0 26px 58px rgba(2,20,48,.40); }
/* warstwa płynących plam */
.rbc-scard__fx {
  content: ""; position: absolute; inset: -35%; z-index: -2; filter: blur(26px) saturate(1.15);
  background:
    radial-gradient(38% 46% at 24% 28%, var(--c1) 0%, transparent 60%),
    radial-gradient(44% 50% at 80% 66%, var(--c2) 0%, transparent 62%),
    radial-gradient(52% 58% at 62% 18%, var(--c1) 0%, transparent 70%),
    radial-gradient(46% 52% at 18% 82%, var(--c2) 0%, transparent 66%),
    var(--base);
  animation: rbc-liquid 20s ease-in-out infinite alternate;
}
@keyframes rbc-liquid {
  0%   { transform: translate3d(-4%,-3%,0) rotate(0deg)  scale(1.05); }
  50%  { transform: translate3d(4%,3%,0)   rotate(9deg)  scale(1.20); }
  100% { transform: translate3d(-2%,4%,0)  rotate(-7deg) scale(1.10); }
}
/* scrim pod tekstem — czytelność */
.rbc-scard::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,18,42,.12) 0%, rgba(3,18,42,.30) 45%, rgba(3,18,42,.62) 100%); }
/* pary kolorów (klimat marki) */
.rbc-scard--bo { --c1: var(--rbc-blue-elec); --c2: var(--rbc-orange);      --base: #05203e; } /* niebiesko-pomarańcz */
.rbc-scard--ob { --c1: var(--rbc-orange);     --c2: var(--rbc-blue-elec);  --base: #2a1405; } /* pomarańczowo-niebieski */
.rbc-scard--nb { --c1: var(--rbc-navy);       --c2: #FF8A3D;               --base: #041634; } /* granat + jasny pomarańcz */
.rbc-scard--on { --c1: #FF8A3D;               --c2: var(--rbc-navy);       --base: #241206; } /* pomarańcz + granat */
/* ikona jako duży ZNAK WODNY na środku, za tekstem (zamiast małego badge'a w rogu) */
.rbc-scard__ico {
  position: absolute; z-index: 0; left: 50%; top: 55%; transform: translate(-50%,-50%);
  width: 154px; height: 154px; margin: 0; opacity: .14; pointer-events: none;
  display: block; background: none; border: none; backdrop-filter: none; font-size: 0;
}
.rbc-scard__ico svg { width: 100%; height: 100%; fill: #fff; }
.rbc-scard h3, .rbc-scard p, .rbc-scard__link { position: relative; z-index: 1; }
.rbc-scard h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0,8,26,.35); }
.rbc-scard p { color: rgba(255,255,255,.92); margin: 0 0 16px; text-shadow: 0 1px 3px rgba(0,8,26,.3); }
.rbc-scard__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--rbc-font-ui); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-size: .82rem; color: #fff; text-decoration: none;
}
.rbc-scard__link .rbc-btn__arrow { display: inline-block; transition: transform .25s ease; }
.rbc-scard:hover .rbc-scard__link .rbc-btn__arrow { transform: translateX(5px); }

/* ---- FIX: białe kafle mają ZAWSZE ciemny tekst -------------------------
   (bez tego .rbc-tile w .rbc-section--brand dziedziczy biały → biały na białym) */
.rbc-section--brand .rbc-tile,
.rbc-section--navy  .rbc-tile,
.rbc-section--blue  .rbc-tile { color: var(--rbc-ink); }
.rbc-section--brand .rbc-tile h3,
.rbc-section--navy  .rbc-tile h3,
.rbc-section--blue  .rbc-tile h3 { color: var(--rbc-navy); }
.rbc-section--brand .rbc-tile em,
.rbc-section--navy  .rbc-tile em,
.rbc-section--blue  .rbc-tile em { color: var(--rbc-orange-text); }

/* ---- BAND: gradientowy prostokąt + zdjęcie wychodzące poza (jak quote w get.basketball) ----
   Zdjęcie jest WYŻSZE niż band i nachodzi górą/dołem; wariant --flip zamienia strony. */
.rbc-band {
  position: relative; display: grid; grid-template-columns: 1fr .82fr; gap: 44px; align-items: center;
  margin: 76px 0; padding: 52px 56px; border-radius: 2px; color: #fff;
  background: linear-gradient(120deg, var(--rbc-navy) 0%, var(--rbc-blue) 55%, var(--rbc-orange) 135%);
  background-size: 180% 180%; animation: rbc-flow 22s ease-in-out infinite alternate;
}
.rbc-band__media { order: 2; }
.rbc-band--flip .rbc-band__media { order: -1; }
.rbc-band__body { position: relative; z-index: 2; }
.rbc-band__body h2 { color: #fff; }
.rbc-band__body .rbc-section__kicker { color: #ffe0cc; }
.rbc-band__body p { color: #eaf1fb; margin: 0; }
.rbc-band__quote {
  font-family: var(--rbc-font-display); font-weight: 800; font-style: italic; text-transform: none;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.12; margin: 0 0 14px;
}
.rbc-band__cite {
  display: block; margin-top: 12px; font-family: var(--rbc-font-ui); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: #ffd9c2;
}
.rbc-band__media { position: relative; z-index: 3; align-self: stretch; }
.rbc-band__media img {
  display: block; width: 100%; height: calc(100% + 100px); margin: -50px 0;
  object-fit: cover; border: 7px solid #fff; box-shadow: 0 30px 66px rgba(2,20,48,.5);
}
@media (max-width: 780px) {
  .rbc-band { grid-template-columns: 1fr; gap: 22px; padding: 32px 24px; margin: 44px 0; }
  .rbc-band__media, .rbc-band--flip .rbc-band__media { order: 0; }
  .rbc-band__media img { height: auto; margin: 0; aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) { .rbc-band { animation: none; } }

/* ---- Karty zawodników (All-Star Five) ---------------------------------- */
.rbc-players-group { margin-bottom: 36px; }
.rbc-players-group:last-child { margin-bottom: 0; }
/* Kategorie herbów jako osobne białe panele na tle tint (przełamanie monotonii) */
.rbc-players-group:has(.rbc-clubs) {
  background: #fff; border-radius: 14px; padding: 26px 24px 24px;
  box-shadow: var(--rbc-shadow-sm); margin-bottom: 20px;
}
.rbc-players-group:has(.rbc-clubs) .rbc-players__head { color: var(--rbc-navy); }
.rbc-players__head {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  color: var(--rbc-navy); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .5px;
}
.rbc-section--brand .rbc-players__head { color: #fff; }   /* na kolorowym tle (All-Star) — biały */
.rbc-players__head::before {
  content: ""; width: 0; height: 0; border-left: 11px solid var(--rbc-orange);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.rbc-players { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rbc-players--4 { grid-template-columns: repeat(4, 1fr); }
/* chip kategorii + klub na karcie (używane w sekcji MVP/Sońta) */
.rbc-player__cat {
  display: inline-block; margin-top: 9px; background: var(--rbc-orange); color: #fff;
  border-radius: 999px; padding: 3px 13px; font-family: var(--rbc-font-ui); font-weight: 700;
  font-size: .7rem; letter-spacing: 1px;
}
.rbc-player__cat + .rbc-player__club { margin-top: 8px; }
.rbc-player {
  background: #fff; border-radius: 12px; padding: 22px 12px 18px; text-align: center;
  box-shadow: var(--rbc-shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
}
.rbc-player:hover { transform: translateY(-6px); box-shadow: var(--rbc-shadow); }
.rbc-player__ava {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 1.55rem; color: #fff; letter-spacing: -1px;
  background: linear-gradient(150deg, var(--rbc-navy), var(--rbc-blue));
  box-shadow: 0 8px 20px rgba(3,78,162,.30); border: 3px solid #fff;
}
.rbc-player:nth-child(5n-2) .rbc-player__ava { background: linear-gradient(150deg, #ff6b1a, var(--rbc-orange-deep)); box-shadow: 0 8px 20px rgba(255,90,0,.30); }
.rbc-player__ava::after {  /* piłka-akcent w rogu awatara */
  content: "🏀"; position: absolute; right: -4px; bottom: -4px; font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.rbc-player__name {
  display: block; font-family: var(--rbc-font-display); font-weight: 700;
  color: var(--rbc-navy); font-size: 1rem; line-height: 1.12;
}
.rbc-player__club {
  display: block; margin-top: 6px; font-family: var(--rbc-font-ui);
  font-size: .78rem; color: var(--rbc-ink-soft);
}
/* MVP — karty wyróżnione (złoty akcent, plakietka) */
.rbc-players--mvp .rbc-player { position: relative; border: 1.5px solid #EAC15A;
  box-shadow: 0 12px 30px rgba(196,148,32,.16); }
.rbc-players--mvp .rbc-player::before {
  content: "MVP"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #F4CE63, #E0A934); color: #4a3400;
  font-family: var(--rbc-font-display); font-weight: 800; font-style: italic; font-size: .62rem;
  letter-spacing: 1.5px; padding: 3px 12px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(196,148,32,.35); white-space: nowrap; }
.rbc-players--mvp .rbc-player__ava { border-color: #EAC15A;
  box-shadow: 0 8px 20px rgba(196,148,32,.38); }
.rbc-players--mvp .rbc-player:hover { box-shadow: 0 16px 36px rgba(196,148,32,.24); }
@media (max-width: 900px) { .rbc-players, .rbc-players--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .rbc-players, .rbc-players--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Karta zawodnika ze statystykami (zawsze widoczne, bez animacji) --- */
.rbc-player__more { display: none; }
.rbc-player__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px;
}
.rbc-player__stat { background: #eef2f5; border-radius: 8px; padding: 9px 4px 7px; }
.rbc-player__stat b {
  display: block; font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  font-size: 1.2rem; color: var(--rbc-navy); line-height: 1;
}
.rbc-player__stat span {
  display: block; margin-top: 3px; font-family: var(--rbc-font-ui);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .5px; color: var(--rbc-ink-soft);
}
/* herb drużyny zamiast inicjałów w awatarze */
.rbc-player__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 50%; padding: 9px; }

/* ---- Siatka herbów klubów (Uczestnicy — wg kategorii) ------------------ */
.rbc-clubs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.rbc-club {
  background: #fff; border-radius: 10px; padding: 16px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--rbc-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.rbc-club:hover { transform: translateY(-5px); box-shadow: var(--rbc-shadow); }
.rbc-club img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .rbc-clubs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .rbc-clubs { grid-template-columns: repeat(3, 1fr); } }

/* ---- Wideo (YouTube embed, responsywne 16:9) --------------------------- */
.rbc-video {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: 4px; overflow: hidden; background: #000;
  box-shadow: var(--rbc-shadow); border: 6px solid #fff;
}
.rbc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---- Carousel „talia kart" (stackowy, przeciągany) --------------------- */
.rbc-carousel { position: relative; width: 100%; user-select: none; }
.rbc-carousel__stage {
  position: relative; height: 440px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: pan-y;
}
.rbc-cslide {
  position: absolute; top: 50%; left: 50%; width: 300px; height: 400px;
  border-radius: 16px; overflow: hidden; background: #04122c; box-shadow: 0 20px 50px rgba(2,20,48,.4);
  /* transform (z translate -50%,-50%) ustawia JS */
}
.rbc-cslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rbc-cslide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,18,44,.9) 0%, rgba(2,18,44,.2) 45%, transparent 75%);
}
.rbc-cslide__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--rbc-navy);
  font-family: var(--rbc-font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  font-size: .66rem; padding: 5px 11px; border-radius: 999px;
}
.rbc-cslide__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff;
  opacity: 0; transition: opacity .35s ease; }
.rbc-cslide.is-active .rbc-cslide__cap { opacity: 1; }
.rbc-cslide__title { display: block; font-family: var(--rbc-font-display); font-weight: 700;
  font-size: 1.02rem; line-height: 1.16; }
.rbc-cslide__more { display: inline-block; margin-top: 8px; font-family: var(--rbc-font-ui);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .74rem; color: #ffd9c2; }
.rbc-carousel__drag { position: absolute; inset: 0; z-index: 60; cursor: grab; }
.rbc-carousel__drag:active { cursor: grabbing; }
.rbc-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.rbc-carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rbc-navy); background: #fff;
  color: var(--rbc-navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.rbc-carousel__btn:hover { background: var(--rbc-orange); border-color: var(--rbc-orange); color: #fff; transform: translateY(-2px); }
.rbc-carousel__hint { font-family: var(--rbc-font-ui); font-weight: 600; font-size: .82rem; color: var(--rbc-ink-soft); }
.rbc-carousel:focus-visible { outline: 3px solid var(--rbc-orange); outline-offset: 6px; border-radius: 8px; }
@media (max-width: 1024px) { .rbc-carousel__stage { height: 380px; } .rbc-cslide { width: 250px; height: 340px; } }
@media (max-width: 640px)  { .rbc-carousel__stage { height: 320px; } .rbc-cslide { width: 200px; height: 270px; } .rbc-carousel__hint { display: none; } }

/* ---- Rolki (pionowe embedy FB/IG) -------------------------------------- */
.rbc-reels { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.rbc-reel {
  width: 320px; max-width: 100%; border-radius: 10px; overflow: hidden;
  background: #000; box-shadow: var(--rbc-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rbc-reel:hover { transform: translateY(-4px); box-shadow: var(--rbc-shadow); }
.rbc-reel iframe { display: block; width: 100%; height: 570px; border: 0; }

/* ---- Carousel: karty tekstowo-gradientowe (bez zdjęcia, np. lata galerii) */
.rbc-cslide--text { display: flex; align-items: center; justify-content: center; background: var(--rbc-navy); cursor: pointer; }
.rbc-cslide--text::after { background: linear-gradient(to top, rgba(2,18,44,.55) 0%, rgba(2,18,44,.12) 45%, transparent 70%); }
.rbc-cslide__big { position: relative; z-index: 2; font-family: var(--rbc-font-display); font-weight: 800;
  font-size: 3.7rem; line-height: 1; color: #fff; letter-spacing: 1px; text-shadow: 0 6px 24px rgba(0,0,0,.4); }
.rbc-cslide--g1 { background: linear-gradient(150deg, var(--rbc-navy) 0%, var(--rbc-blue-elec) 100%); }
.rbc-cslide--g2 { background: linear-gradient(150deg, var(--rbc-blue-elec) 0%, var(--rbc-orange) 105%); }
.rbc-cslide--g3 { background: linear-gradient(150deg, var(--rbc-orange) -5%, var(--rbc-navy) 95%); }
.rbc-cslide--g4 { background: linear-gradient(150deg, var(--rbc-navy-deep) 0%, var(--rbc-orange) 110%); }
@media (max-width: 640px) { .rbc-cslide__big { font-size: 2.7rem; } }

/* ---- Carousel: tryb ROLEK (embedy grają na środku) --------------------- */
.rbc-carousel--reels .rbc-carousel__stage { height: 610px; touch-action: auto; }
.rbc-carousel--reels .rbc-cslide { width: 320px; height: 570px; background: #000; border-radius: 12px; }
.rbc-carousel--reels .rbc-cslide::after { display: none; }
.rbc-carousel--reels .rbc-cslide iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.rbc-cslide__catch { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
.rbc-carousel--reels .rbc-cslide.is-active .rbc-cslide__catch { pointer-events: none; cursor: default; }
@media (max-width: 1024px) { .rbc-carousel--reels .rbc-carousel__stage { height: 520px; } .rbc-carousel--reels .rbc-cslide { width: 262px; height: 466px; } }
@media (max-width: 640px)  { .rbc-carousel--reels .rbc-carousel__stage { height: 440px; } .rbc-carousel--reels .rbc-cslide { width: 210px; height: 374px; } }

/* ---- Marquee logotypów (partnerzy — wszystkie widoczne, jadą w pętli) --- */
.rbc-marquee { overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.rbc-marquee__track { display: flex; width: max-content; animation: rbc-marquee 42s linear infinite; }
.rbc-marquee:hover .rbc-marquee__track { animation-play-state: paused; }
.rbc-marquee__item { flex: 0 0 auto; width: 188px; height: 128px; margin-right: 22px;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: #fff; border-radius: 16px; box-shadow: var(--rbc-shadow-sm); }
.rbc-marquee__item img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes rbc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .rbc-marquee__item { width: 140px; height: 100px; margin-right: 16px; padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .rbc-marquee { -webkit-mask-image: none; mask-image: none; }
  .rbc-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .rbc-marquee__item[aria-hidden="true"] { display: none; } }

/* ---- Maskotka (smok) ----------------------------------------------------- */
.rbc-mascot { position: absolute; pointer-events: none; z-index: 5;
  width: clamp(240px, 25vw, 360px); /* wspólny rozmiar wszystkich smoków */
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.32)); }
.rbc-mascot--hero { right: 2%; bottom: 0; }
.rbc-mascot--cta  { left: 50%; transform: translateX(-50%); bottom: -20px; z-index: 0; } /* wyśrodkowany za tekstem CTA */
.rbc-mascot--foot { right: 2%; left: auto; transform: none; bottom: 64px; z-index: 0; opacity: .9;
  width: clamp(180px, 19vw, 250px); } /* leżący smok — mniejszy, oparty na linii NAD dolnym paskiem (nie zasłania tekstu) */
.rbc-mascot--about { left: 0; bottom: 0; z-index: 1; } /* za tekstem hero (inner z-index:2) */
/* treść nad wyśrodkowaną maskotką + cień, by tekst był czytelny na smoku */
.rbc-section--navy .rbc-container { position: relative; z-index: 1; text-shadow: 0 1px 7px rgba(2,18,44,.7), 0 0 2px rgba(2,18,44,.6); }
.rbc-footer .rbc-container, .rbc-footer__bottom { position: relative; z-index: 1; text-shadow: 0 1px 7px rgba(0,0,0,.65); }

/* Blok „Drużyny 16. edycji już wkrótce" (empty-state z maskotką) */
.rbc-soon { display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--rbc-bg-1); border: 2px dashed var(--rbc-line);
  border-radius: var(--rbc-radius); padding: 24px 32px; margin-bottom: 40px; }
.rbc-soon__img { width: clamp(150px, 20vw, 210px); flex: 0 0 auto;
  filter: drop-shadow(0 12px 20px rgba(2,20,48,.18)); }
.rbc-soon__txt { flex: 1; min-width: 260px; }
.rbc-soon__txt h3 { font-family: var(--rbc-font-display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--rbc-navy);
  margin: 0 0 8px; }
.rbc-soon__txt p { color: var(--rbc-ink-soft); margin: 0; }
@media (max-width: 700px) {
  .rbc-mascot { width: 160px; }
  .rbc-mascot--hero { right: -6px; opacity: .92; }
  .rbc-mascot--cta  { display: none !important; }
  .rbc-mascot--foot { position: static; display: block; margin: 20px auto 0;
    right: auto; bottom: auto; left: auto; transform: none; }
  .rbc-mascot--about { display: none !important; }
  .rbc-soon { flex-direction: column; text-align: center; }
  .rbc-soon__txt { min-width: 0; }
}

/* ---- Lookbook koszulki --------------------------------------------------- */
.rbc-lookbook__logo { display: block; width: min(220px, 62vw); height: auto; margin: 0 auto 22px;
  border-radius: 14px; box-shadow: 0 16px 38px rgba(2,20,48,.42); }
.rbc-lookbook__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.rbc-lookbook__item { margin: 0; overflow: hidden; border-radius: var(--rbc-radius);
  border: 4px solid #fff; background: #fff; box-shadow: 0 18px 40px rgba(2,20,48,.28); }
.rbc-lookbook__item img { display: block; width: 100%; height: auto;
  transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.rbc-lookbook__item:hover img { transform: scale(1.06); }
@media (max-width: 960px) { .rbc-lookbook__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 520px) { .rbc-lookbook__grid { grid-template-columns: 1fr; } }

/* ---- Responsywność ------------------------------------------------------- */
@media (max-width: 960px) {
  .rbc-split { grid-template-columns: 1fr; gap: 28px; }
  .rbc-split--flip .rbc-split__media { order: 0; }
  .rbc-photostack { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .rbc-photostack figure { position: static; width: 100% !important; border-width: 3px; aspect-ratio: 4/3 !important; }
  .rbc-photostack__b { grid-column: span 2; }
  .rbc-facts { }
}
@media (max-width: 960px) {
  :root { --rbc-space-sec: 64px; }
  .rbc-footer__grid { grid-template-columns: 1fr 1fr; }
  .rbc-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .rbc-gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 140px; }
  .rbc-logos { grid-template-columns: repeat(3, 1fr); }
  .rbc-numitem { grid-template-columns: 1fr; gap: 20px; }
  .rbc-numitem:nth-child(even) .rbc-numitem__media { order: 0; }
}
@media (max-width: 780px) {
  .rbc-burger { display: block; }
  .rbc-header__actions .rbc-btn--primary { display: none; }   /* CTA z paska → do menu (żeby ≡ się zmieścił) */
  .rbc-nav__cta { display: block; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
  .rbc-nav__cta .rbc-btn { display: flex; width: 100%; justify-content: center; }
  .rbc-btn { white-space: normal; max-width: 100%; text-align: center; justify-content: center; }   /* długie etykiety zawijają zamiast wystawać */
  .rbc-nav {
    position: absolute; top: var(--rbc-header-h); left: 0; right: 0;
    background: var(--rbc-navy); border-bottom: 3px solid var(--rbc-orange);
    display: none; padding: 10px 20px;
  }
  .rbc-nav.is-open { display: block; }
  .rbc-nav ul { flex-direction: column; gap: 2px; }
  .rbc-grid--2, .rbc-grid--3, .rbc-grid--4 { grid-template-columns: 1fr; }
  .rbc-stats { grid-template-columns: repeat(2, 1fr); }
  .rbc-stat:nth-child(2) { border-right: 0; }
  .rbc-contact { grid-template-columns: 1fr; }
  .rbc-field--row { grid-template-columns: 1fr; }
  .rbc-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .rbc-logos { grid-template-columns: repeat(2, 1fr); }
  .rbc-footer__grid { grid-template-columns: 1fr; }
  .rbc-hero--home { min-height: 70vh; }
}
