/* ==========================================================================
   RÓŻA KUTNO - OFICJALNY ARKUSZ STYLÓW (MOBILE-FIRST)
   Barwy: Bordowy (#7A0026), Złoty (#D4AF37), Biel (#FFFFFF), Grafit (#11161B)
   Styl: Sportowy Prestiż & Złota Typografia (DUMA MIASTA)
   ========================================================================== */

/* --- 1. ZMIENNE PROJEKTOWE --- */
/* Montserrat (zmienna waga 100–900) hostowany lokalnie: ta sama czcionka na każdym telefonie, bez zewnętrznych serwerów */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --club-burgundy: #7A0026;
  --club-burgundy-dark: #4D0017;
  --club-burgundy-deep: #26000C;
  --club-burgundy-light: #9E1238;
  --club-burgundy-glow: rgba(122, 0, 38, 0.35);

  --club-gold: #D4AF37;
  --club-gold-light: #FFF0B3;
  --club-gold-hover: #E5C158;
  --club-gold-dark: #A67C1E;
  --club-gold-glow: rgba(212, 175, 55, 0.45);

  --club-dark: #0F1318;
  --club-dark-card: #181E25;
  --club-dark-border: #262E38;

  --club-gray-50: #F8FAFC;
  --club-gray-100: #F1F5F9;
  --club-gray-200: #E2E8F0;
  --club-gray-400: #94A3B8;
  --club-gray-600: #64748B;
  --club-white: #FFFFFF;

  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-heading: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.2);
  --shadow-burgundy: 0 8px 24px rgba(122, 0, 38, 0.4);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Kolor stopki pod treścią: bez białego pasa przy przewinięciu na sam dół / odbiciu (iOS) */
  background-color: var(--club-dark);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

/* --- 2B. NIESTANDARDOWY PASEK PRZEWIJANIA (SCROLLBAR) --- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--club-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--club-burgundy), var(--club-burgundy-dark));
  border-radius: 6px;
  border: 2px solid var(--club-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--club-gold);
}

body {
  font-family: var(--font-main);
  background-color: var(--club-gray-50);
  color: var(--club-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.fade-out {
  animation: fadeOutPage 0.25s ease-in forwards;
}

@keyframes fadeOutPage {
  from { opacity: 1; }
  to { opacity: 0; }
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --- 3. KONTENERY I UKŁAD --- */
.container {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }
}

.section {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* --- 4. TOP BAR --- */
.topbar {
  background-color: var(--club-burgundy-dark);
  color: var(--club-white);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--club-gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--club-gray-200);
}

.topbar-link:hover {
  color: var(--club-gold);
}

/* --- 5. GŁÓWNY NAGŁÓWEK (STICKY NAVBAR) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--club-gray-200);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  transition: transform var(--transition-fast);
  background: var(--club-white);
  padding: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand:hover .brand-logo {
  transform: scale(1.08) rotate(5deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--club-burgundy);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--club-gold-dark);
}

/* Menu Desktop */
.nav-menu {
  display: none;
}

@media (min-width: 1200px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.6vw, 1.75rem);
  }

  .nav-menu .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--club-dark);
    padding: 0.5rem 0;
    position: relative;
  }

  .nav-menu .nav-link:hover {
    color: var(--club-burgundy);
  }

  .nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--club-burgundy);
    border-radius: 2px;
    transition: width var(--transition-fast);
  }

  .nav-menu .nav-link:hover::after,
  .nav-menu .nav-link.active::after {
    width: 100%;
  }

  .nav-menu .nav-link.active {
    color: var(--club-burgundy);
  }
}

/* Hamburger */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: var(--club-gray-100);
  border: 1px solid var(--club-gray-200);
  padding: 10px;
  gap: 5px;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--club-burgundy);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1200px) {
  .mobile-toggle {
    display: none;
  }
}

/* Panel Menu Mobilnego */
.mobile-nav {
  position: fixed;
  top: 4.75rem;
  left: 0;
  right: 0;
  /* backdrop-filter na nagłówku sprawia, że bottom:0 liczy się od nagłówka – wysokość podajemy wprost */
  height: calc(100vh - 4.75rem);
  height: calc(100dvh - 4.75rem);
  overflow-y: auto;
  background: rgba(15, 19, 24, 0.98);
  backdrop-filter: blur(16px);
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 0;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 999;
}

@media (min-width: 1200px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav > * {
  flex-shrink: 0; /* bez tego flex ściska pozycje zamiast przewijać panel i je ucina */
}

.mobile-nav .nav-link {
  color: var(--club-white);
  font-size: clamp(1rem, 4.4vw, 1.2rem);
  font-weight: 700;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav .nav-link:hover {
  color: var(--club-gold);
}

.mobile-nav .nav-link.active {
  color: var(--club-gold);
}

/* Małe telefony: węższy nagłówek, żeby logo i hamburger się mieściły */
@media (max-width: 400px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
  }

  .mobile-toggle {
    flex-shrink: 0;
  }
}

/* --- 6. PRZYCISKI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 50px;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--club-burgundy);
  color: var(--club-white);
  box-shadow: var(--shadow-burgundy);
}

.btn-primary:hover {
  background: var(--club-burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 0, 38, 0.45);
}

.btn-gold {
  /* Ciemne bordo, biały tekst i cienka złota ramka – wyraźne na ciemnym i jasnym tle */
  background: linear-gradient(135deg, var(--club-burgundy) 0%, var(--club-burgundy-dark) 100%);
  color: var(--club-white);
  font-weight: 900;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--club-burgundy-light) 0%, var(--club-burgundy) 100%);
  border-color: var(--club-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 18px var(--club-gold-glow);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--club-white);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--club-gold);
  color: var(--club-gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 38px;
}

/* ==========================================================================
   7. ZŁOTE BOLD TYPOGRAPHY HERO („DUMA MIASTA”)
   ========================================================================== */
.hero-bold {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 85% 25%, rgba(212, 175, 55, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 75%, rgba(122, 0, 38, 0.5) 0%, transparent 55%),
    linear-gradient(135deg, #26000C 0%, #13171F 65%, var(--club-dark) 100%);
  color: var(--club-white);
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-bold {
    min-height: 90vh;
    padding: 5rem 0 4rem;
  }
}

/* Wodny kontur oficjalnego herbu w tle */
.hero-watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 550px);
  opacity: 0.06;
  filter: grayscale(100%) brightness(200%);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Gigantyczny, statyczny znak wodny logo w tle białej części portalu (od banera aż do stopki) */
main {
  position: relative;
}

.white-content-flow {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.white-area-watermark {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* Tło dekoracyjne: nie blokuje renderowania treści; mniejszy plik na telefonach */
  background-image: url('../images/logo/logo-watermark-m.webp');
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: right -10vw center;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
}

@media (min-width: 769px) {
  .white-area-watermark {
    background-image: url('../images/logo/logo-watermark.webp');
  }
}

@media (max-width: 1024px) {
  .white-area-watermark {
    background-position: right -25vw center;
    opacity: 0.10;
  }
}

@media (max-width: 768px) {
  .white-area-watermark {
    background-position: right -40vw center;
    opacity: 0.08;
  }
}

.hero-bold-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  max-width: 960px;
}

/* Tag Akademii */
.hero-academy-tag {
  /* Spokojny nadtytuł: złota kreska + tekst, bez „pigułki" i emoji */
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--club-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.hero-academy-tag::before {
  content: '';
  flex-shrink: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--club-gold);
}

/* GIGANTYCZNY TYTUŁ: DUMA MIASTA W ZŁOTYCH KOLORACH */
.hero-mega-title {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 11.5vw + 1rem, 8.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

/* Słowo 1: DUMA (Lśniący gradient złota) */
.mega-gold-solid {
  background: linear-gradient(135deg, #FFF6D6 0%, #FFE27D 30%, #D4AF37 60%, #B8891D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.4));
  display: inline-block;
}

/* Słowo 2: MIASTA (Złoty kontur – GLOW aktywuje się dopiero po najechaniu myszką!) */
.mega-gold-outline {
  /* Wypełnienie w kolorze tła + paint-order ukrywa nakładające się kontury liter (artefakty na telefonach) */
  color: #1f0510;
  -webkit-text-stroke: 1.5px #E5C158;
  text-stroke: 1.5px #E5C158;
  paint-order: stroke fill;
  stroke-linejoin: round;
  letter-spacing: -1px;
  display: inline-block;
  text-shadow: none;
  /* Domyślnie brak poświaty */
  filter: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .mega-gold-outline {
    -webkit-text-stroke: 2.5px #E5C158;
    text-stroke: 2.5px #E5C158;
  }
}

/* Najechanie na „DUMA" (albo na „MIASTA") rozświetla „MIASTA" na złoto.
   Wypełnienie jest pełne (zasłania nakładające się kontury liter), a poświata idzie przez drop-shadow. */
.mega-gold-solid,
.mega-gold-outline {
  align-self: flex-start; /* obszar najechania = sam napis, a nie cała szerokość nagłówka */
}

.hero-mega-title:has(.mega-gold-solid:hover) .mega-gold-outline,
.mega-gold-outline:hover,
.mega-gold-outline.active-glow {
  color: #E8C45A;
  -webkit-text-stroke-color: #FFF0B3;
  text-stroke-color: #FFF0B3;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.65)) drop-shadow(0 0 32px rgba(212, 175, 55, 0.35));
}

/* Slogan */
.hero-bold-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--club-gold-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-bold-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--club-gray-200);
  max-width: 660px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-bold-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .hero-bold-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Pasek liczb (Quick Stats Ticker z animowanym licznikiem i maszyną do pisania UEFA) */
.hero-stats-ticker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .hero-stats-ticker {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.ticker-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticker-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--club-white);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}

.ticker-value .counter-number {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--club-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ticker-value .counter-suffix {
  color: var(--club-gold);
  margin-left: 2px;
}

/* Efekt pisania tekstu UEFA */
.typewriter-text {
  color: var(--club-gold);
  letter-spacing: 1px;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--club-gold);
  animation: cursorBlink 0.75s infinite;
  margin-left: 2px;
  font-weight: 300;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.ticker-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--club-gray-400);
  text-transform: uppercase;
}

/* Dynamiczny kątowy podział (sportowe, płynne przejście między Hero a sekcją poniżej) */
.hero-angle-divider {
  position: absolute;
  bottom: -1px; /* 1px zapasu, żeby nie było cienkiej kreski na styku z sekcją */
  left: 0;
  width: 100%;
  height: clamp(36px, 7vw, 84px);
  line-height: 0;
  z-index: 6;
  pointer-events: none;
}

/* Ostre cięcie pod kątem (clip-path zamiast SVG z cieniem, który rozmywał krawędź) */
.hero-angle-divider::before,
.hero-angle-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Cienka złota krawędź wzdłuż skosu */
.hero-angle-divider::before {
  background: linear-gradient(90deg, var(--club-burgundy), var(--club-gold));
}

/* Właściwa jasna płaszczyzna, przesunięta o kilka px w dół – odsłania złotą krawędź */
.hero-angle-divider::after {
  background: var(--club-gray-50);
  transform: translateY(4px);
}

.hero-angle-divider svg {
  display: none;
}

/* --- 9. SEKCJA AKTUALNOŚCI (PORTAL SPORTOWY: 1 GŁÓWNY + 3 POBOCZNE) --- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--club-gray-200);
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  border: none;
  padding-bottom: 0;
  gap: 0.5rem;
}

.section-label {
  color: var(--club-burgundy);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--club-dark);
  line-height: 1.2;
}

/* Siatka portalu: 1 duży post z lewej + 3 posty poboczne z prawej */
.news-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .news-portal-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

/* Duży Post Główny */
.news-featured-card {
  background: var(--club-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--club-gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  height: 100%;
}

.news-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(122, 0, 38, 0.35);
}

.news-featured-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--club-burgundy-dark), var(--club-dark));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--club-gold);
}

.news-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--club-burgundy);
  color: var(--club-white);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.news-featured-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-featured-meta {
  font-size: 0.825rem;
  color: var(--club-gray-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--club-dark);
  margin-bottom: 0.85rem;
}

.news-featured-excerpt {
  color: var(--club-gray-600);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Lista 3 Postów Pobocznych */
.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  height: 100%;
}

.news-side-card {
  background: var(--club-white);
  border: 1px solid var(--club-gray-200);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 1.15rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.news-side-card:hover {
  transform: translateX(4px);
  border-color: var(--club-burgundy);
  box-shadow: var(--shadow-md);
}

.news-side-thumb {
  width: 85px;
  height: 85px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--club-burgundy-dark), var(--club-dark));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--club-gold);
  flex-shrink: 0;
}

.news-side-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.news-side-meta {
  font-size: 0.75rem;
  color: var(--club-gray-600);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.news-side-meta .side-cat {
  color: var(--club-burgundy);
}

.news-side-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--club-dark);
  transition: color var(--transition-fast);
}

.news-side-card:hover .news-side-title {
  color: var(--club-burgundy);
}

.news-side-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--club-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

/* Wspólne linki i przyciski */
.news-link {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--club-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.news-link:hover {
  color: var(--club-gold-dark);
  gap: 0.7rem;
}

/* Baner przejścia do archiwum wszystkich postów */
.news-archive-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--club-white);
  border: 1px solid var(--club-gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .news-archive-cta {
    flex-direction: row;
  }
}

.news-archive-text {
  font-weight: 700;
  color: var(--club-dark);
  font-size: 0.95rem;
}

/* --- 9B. PODSTRONA ARCHIWUM (AKTUALNOŚCI) --- */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--club-white);
  border: 1px solid var(--club-gray-200);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--club-gray-600);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--club-burgundy);
  color: var(--club-burgundy);
}

.filter-btn.active {
  background: var(--club-burgundy);
  border-color: var(--club-burgundy);
  color: var(--club-white);
  box-shadow: 0 4px 12px rgba(122, 0, 38, 0.25);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  background: var(--club-white);
  border: 1px solid var(--club-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--club-gold);
}

.news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--club-burgundy-dark), var(--club-dark));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--club-gold);
}

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--club-burgundy);
  color: var(--club-white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--club-gray-600);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--club-dark);
  margin-bottom: 0.75rem;
}

.news-excerpt {
  color: var(--club-gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* --- 10. GRUPY TRENINGOWE (AKADEMIA) --- */
.academy-groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .academy-groups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .academy-groups-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.group-card {
  background: var(--club-white);
  border: 1px solid var(--club-gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all var(--transition-fast);
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  border-color: var(--club-burgundy);
}

/* Style dla akordeonu mobilnego (details / summary) */
.group-card-details summary {
  list-style: none;
  cursor: pointer;
  position: relative;
}
.group-card-details summary::-webkit-details-marker {
  display: none;
}
.accordion-icon {
  color: var(--club-gray-600);
  transition: transform var(--transition-normal);
  font-size: 0.85rem;
}
.group-card-details[open] summary .accordion-icon {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .accordion-icon {
    display: none;
  }
  .group-card-details summary {
    cursor: default;
  }
}

.group-header {
  background: transparent;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--club-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-header-info {
  display: flex;
  flex-direction: column;
}

.group-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  color: var(--club-burgundy);
}

.group-years {
  font-size: 0.75rem;
  color: var(--club-gray-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.group-body {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--club-gray-600);
}

.info-row .icon {
  font-size: 0.95rem;
  opacity: 0.6;
}

.info-row strong {
  color: var(--club-dark);
}

.info-row a {
  color: var(--club-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.info-row a:hover {
  color: var(--club-burgundy);
}

/* --- 11. SPONSORZY --- */
.partners-section {
  background: var(--club-white);
  border-top: 1px solid var(--club-gray-200);
  border-bottom: 1px solid var(--club-gray-200);
}

.partners-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollPartners var(--dur, 30s) linear infinite;
}

.partners-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem; /* odstęp na końcu grupy = odstęp między logotypami, dzięki temu pętla jest płynna */
  flex-shrink: 0;
}

.partners-track > .partner-logo {
  margin-right: 3.5rem;
}

/* Pauza po najechaniu tylko na urządzeniach z myszką – na telefonie :hover „zostaje" po dotyku i zatrzymywał karuzelę na stałe */
@media (hover: hover) and (pointer: fine) {
  .partners-track:hover {
    animation-play-state: paused;
  }
}

@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--shift, 0px))); }
}

/* Ogólna reguła „ogranicz ruch" wyłączała karuzelę (animacja kończyła się od razu i logotypy stawały).
   To powolny, dekoracyjny pasek, więc zostaje w ruchu – dla osób z ograniczeniem ruchu dwa razy wolniej. */
@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation-name: scrollPartners !important;
    animation-duration: calc(var(--dur, 30s) * 2) !important;
    animation-iteration-count: infinite !important;
  }
}

.partners-track {
  will-change: transform;
  backface-visibility: hidden;
}

@media (max-width: 640px) {
  .partners-group {
    gap: 2rem;
    padding-right: 2rem;
  }

  .partners-track > .partner-logo {
    margin-right: 2rem;
  }
}

.partner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  filter: grayscale(100%) opacity(70%);
  transition: all 0.35s ease;
  height: 80px;
  width: 160px;
  color: var(--club-gray-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 640px) {
  .partner-logo {
    width: 120px;
    height: 64px;
    font-size: 0.78rem;
  }
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(100%);
}

.partner-logo:hover img {
  transform: scale(1.15);
}

/* --- 12. STOPKA --- */
.site-footer {
  position: relative;
  z-index: 2;
  background-color: var(--club-dark);
  color: var(--club-gray-400);
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 3px solid var(--club-burgundy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--club-white);
  padding: 1px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--club-white);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--club-gray-400);
}

.footer-title {
  color: var(--club-white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--club-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--club-gray-400);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: var(--club-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.footer-contact-icon {
  color: var(--club-gold);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  color: var(--club-gray-400);
}

/* Stopka na telefonach: 2 kolumny linków, pełna szerokość marki i kontaktu, większe pola dotyku */
@media (max-width: 639px) {
  .site-footer {
    padding-top: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-links {
    gap: 0.15rem;
  }

  .footer-link {
    padding: 0.5rem 0;
    min-height: 40px;
  }

  .footer-link:hover {
    transform: none;
  }

  .footer-bottom {
    gap: 0.75rem;
  }

  .footer-legal {
    justify-content: center;
    gap: 0.5rem 1.25rem !important;
  }
}

.footer-salos {
  color: var(--club-gold);
  font-weight: 700;
}

.footer-partner {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--club-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.footer-partner small {
  display: block;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--club-gold);
}

.footer-partner:hover {
  border-color: var(--club-gold);
}

.footer-partner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ==========================================================================
   Wsparcie dla przycisków Social Media (Kontakt)
   ========================================================================== */
.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: var(--club-white);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.social-icon-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  color: var(--club-white);
}

.social-icon-btn.fb {
  background: #1877F2;
}

.social-icon-btn.ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon-btn.yt {
  background: #FF0000;
}
/* ==========================================================================
   SEKCJA GALERII I LIGHTBOX (CINEMATIC ALBUM VIEWER)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: #11141A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.gallery-card:focus-visible,
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 0 25px rgba(212, 175, 55, 0.2);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
  background: linear-gradient(135deg, var(--club-dark), var(--club-burgundy-dark));
}

.gallery-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--club-gold);
  background: linear-gradient(135deg, #1A1F29, #2C0E1B);
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.gallery-card-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(15, 19, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--club-gold-light);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
}

.gallery-card:hover .gallery-card-cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 18, 0.95) 0%, rgba(10, 13, 18, 0.45) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
  transition: background 0.35s ease;
  z-index: 2;
}

.gallery-card:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(10, 13, 18, 0.98) 0%, rgba(10, 13, 18, 0.55) 50%, rgba(0,0,0,0.2) 100%);
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(122, 0, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  z-index: 4;
}

.gallery-count-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 19, 24, 0.9);
  backdrop-filter: blur(8px);
  color: var(--club-gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.gallery-card-date {
  font-size: 0.8rem;
  color: var(--club-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Modal Lightbox Albumu (Powiększanie i przeglądanie zdjęć) */
.lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 12, 0.97);
  backdrop-filter: blur(14px);
  z-index: 3000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.lightbox-modal.open {
  display: flex;
  animation: lightboxModalFade 0.25s ease-out;
}

@keyframes lightboxModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Przycisk Zamknięcia - Zawsze w prawym górnym rogu ekranu */
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(20, 24, 32, 0.85);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3050;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  background: var(--club-burgundy);
  border-color: var(--club-gold);
  color: var(--club-gold);
  transform: scale(1.12);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1250px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
}

.lightbox-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 3.5rem 0.5rem 0.5rem;
  flex-shrink: 0;
  color: white;
}

.lightbox-album-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--club-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--club-gold);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  touch-action: pan-y;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  object-fit: contain;
  user-select: none;
  animation: lightboxPhotoFade 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lightboxPhotoFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-placeholder {
  max-width: 90%;
  max-height: 90%;
  width: 420px;
  height: 320px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--club-dark), var(--club-burgundy-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--club-gold);
}

.lightbox-btn-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 19, 24, 0.85);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3020;
  backdrop-filter: blur(8px);
  user-select: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.lightbox-btn-nav:hover {
  background: var(--club-burgundy);
  border-color: var(--club-gold);
  color: var(--club-gold);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.lightbox-btn-nav.prev {
  left: 1.5rem;
}

.lightbox-btn-nav.next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .lightbox-btn-nav {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .lightbox-btn-nav.prev {
    left: 0.5rem;
  }
  .lightbox-btn-nav.next {
    right: 0.5rem;
  }
  .lightbox-header {
    padding-right: 3rem;
  }
  .lightbox-album-title {
    font-size: 1rem;
  }
}

.lightbox-thumbnails {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.4rem 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
  flex-shrink: 0;
}

.lightbox-thumb-item {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.45;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #111;
}

.lightbox-thumb-item:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.lightbox-thumb-item.active {
  opacity: 1;
  border-color: var(--club-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  transform: scale(1.08);
}

.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   BANER ZGODY NA PLIKI COOKIES (RODO / GDPR)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  top: 1.5rem;
  bottom: auto;
  left: 1rem;
  right: 1rem;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(15, 19, 24, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.5rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  color: #FFFFFF;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #CBD5E1;
}

.cookie-text strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.cookie-actions {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    top: 1rem;
    bottom: auto;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }
}



/* ==========================================================================
   Okno z komunikatem po wysłaniu formularza
   ========================================================================== */
.form-notice {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 19, 24, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.form-notice.show {
  opacity: 1;
}

.form-notice-box {
  width: 100%;
  max-width: 420px;
  background: var(--club-white);
  border-radius: 20px;
  border-top: 5px solid var(--club-gold);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-notice.show .form-notice-box {
  transform: none;
}

.form-notice-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--club-white);
  background: linear-gradient(135deg, var(--club-burgundy-light), var(--club-burgundy-dark));
  box-shadow: 0 8px 20px var(--club-burgundy-glow);
}

.form-notice-success .form-notice-icon {
  background: linear-gradient(135deg, #22C55E, #15803D);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.form-notice-warn .form-notice-icon {
  background: linear-gradient(135deg, var(--club-gold-hover), var(--club-gold-dark));
  box-shadow: 0 8px 20px var(--club-gold-glow);
}

.form-notice-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--club-burgundy);
  margin-bottom: 0.5rem;
}

.form-notice-text {
  color: var(--club-gray-600);
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.form-notice-btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .form-notice,
  .form-notice-box {
    transition: none;
  }
}

/* Tekst tylko dla czytników ekranu i robotów (np. rozszerzenie nagłówka H1 o frazy kluczowe) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pole-pułapka na boty (formularz zgłoszeniowy) – niewidoczne dla ludzi */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Błędy walidacji pól formularza */
.form-input.is-invalid {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #DC2626;
}

/* ==========================================================================
   Dostępność: widoczny fokus z klawiatury, link „pomiń nawigację", ruch
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--club-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.mobile-nav :focus-visible,
.site-footer :focus-visible,
.hero-bold :focus-visible {
  outline-color: var(--club-gold-light);
}

.form-input:focus-visible {
  outline: 3px solid var(--club-gold);
  outline-offset: 1px;
  border-color: var(--club-burgundy);
}

.group-card-details summary:focus-visible {
  outline: 3px solid var(--club-gold);
  outline-offset: -3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 4000;
  background: var(--club-burgundy);
  color: var(--club-white);
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--club-gold);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

main:focus {
  outline: none; /* cel linku „Przejdź do treści" – bez ramki wokół całej strony */
}

/* Pusty stan list (brak aktualności / albumów) */
.empty-state {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--club-gray-600);
  font-weight: 600;
}

/* ==========================================================================
   Galeria zdjęć w poście + lightbox (pages/artykul.html)
   ========================================================================== */
.post-gallery {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--club-gray-200);
}

.post-gallery[hidden] {
  display: none;
}

.post-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--club-burgundy);
  margin-bottom: 1.1rem;
}

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .post-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

.post-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--club-gray-100);
  padding: 0;
  cursor: zoom-in;
}

.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-gallery-item:hover img {
  transform: scale(1.05);
}

.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.94);
  padding: 1rem;
}

.pg-lightbox[hidden] {
  display: none;
}

.pg-figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.pg-figure img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
  border-radius: 6px;
}

.pg-figure figcaption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 700;
}

.pg-close,
.pg-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--club-white);
  font-size: 2rem;
  line-height: 1;
  transition: background var(--transition-fast);
}

.pg-close:hover,
.pg-nav:hover {
  background: rgba(212, 175, 55, 0.4);
}

.pg-close {
  top: 0.9rem;
  right: 0.9rem;
}

.pg-prev {
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.pg-next {
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.pg-nav[hidden] {
  display: none;
}

/* Stopka na tabletach: marka obok linków, kontakt na całą szerokość */
@media (min-width: 640px) and (max-width: 1023px) {
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

.news-filters[hidden] {
  display: none;
}
