
/* === Nawigacja podstron === */
.subpages-nav .nav-item:nth-child(1) a { color: #FF0000; }
.subpages-nav .nav-item:nth-child(3) a { color: #FFD200; }

/* === Sekcja licznika z nagłówkiem i tłem === */
.sekcja-licznika {
  background: linear-gradient(135deg, #f7f9fc, #e3ecf7);
  padding: 80px 40px 60px 40px;
  border-radius: 24px;
  text-align: center;
  margin: 60px auto 40px auto;
  max-width: 900px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.07);
  font-family: 'Lato', 'Arial', sans-serif;
  color: #3a3a3a;
}

.countdown-heading {
  font-size: 32px;
  font-weight: 700;.faq-item {
  margin-bottom: 25px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(250 249 252 / 0.8);
  border: 1px solid rgba(216 209 233 / 0.4);
  box-shadow: 0 2px 12px rgba(78, 62, 122, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
 
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 700;
  color: #493f74;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.faq-question:hover,
.faq-question.active {
  color: #2c1a5f;
  background-color: rgba(226, 218, 246, 0.4);
}

.faq-icon {
  font-size: 28px;
  color: #6b56b3;
  transition: transform 0.35s ease, color 0.3s ease;
  user-select: none;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
  color: #3f2a7a;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  background-color: rgba(249 248 252 / 0.9);
  font-size: 16px;
  line-height: 1.65;
  color: #4a4860;
  transition: max-height 0.4s ease, padding 0.35s ease;
  border-left: 1px solid rgba(216 209 233 / 0.3);
  border-right: 1px solid rgba(216 209 233 / 0.3);
  border-bottom: 1px solid rgba(216 209 233 / 0.3);
  user-select: text;
}

.faq-answer.active {
  max-height: 1200px;
  padding: 18px 26px 22px;
}
.faq-item {
  margin-bottom: 25px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(250 249 252 / 0.8);
  border: 1px solid rgba(216 209 233 / 0.4);
  box-shadow: 0 2px 12px rgba(78, 62, 122, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
  background-color: rgba(243, 237, 252, 0.95); /* jasny fiolet */
  box-shadow: 0 4px 16px rgba(90, 45, 130, 0.2);
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 700;
  color: #493f74;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.faq-question:hover,
.faq-question.active {
  color: #2c1a5f;
  background-color: rgba(226, 218, 246, 0.4);
}

.faq-icon {
  font-size: 28px;
  color: #6b56b3;
  transition: transform 0.35s ease, color 0.3s ease;
  user-select: none;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
  color: #3f2a7a;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  background-color: rgba(249 248 252 / 0.9);
  font-size: 16px;
  line-height: 1.65;
  color: #4a4860;
  transition: max-height 0.4s ease, padding 0.35s ease;
  border-left: 1px solid rgba(216 209 233 / 0.3);
  border-right: 1px solid rgba(216 209 233 / 0.3);
  border-bottom: 1px solid rgba(216 209 233 / 0.3);
  user-select: text;
}

.faq-answer.active {
  max-height: 1200px;
  padding: 18px 26px 22px;
}

  color: #5a2d82;
  margin-bottom: 50px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: 'Lato', 'Arial', sans-serif;
}

/* === Sekcja licznika w formie kart === */
.counter-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 auto;
  max-width: 800px;
}

.flip-karta {
  perspective: 1000px;
}

.flip-inner {
  width: 160px;
  height: 160px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-karta.obrót .flip-inner {
  animation: flipAnim 0.85s ease-in-out;
}

@keyframes flipAnim {
  0%   { transform: rotateX(0); }
  35%  { transform: rotateX(14deg); }
  55%  { transform: rotateX(-9deg); }
  75%  { transform: rotateX(5deg); }
  100% { transform: rotateX(0); }
}

.licznik-karta {
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(90, 45, 130, 0.15);
  padding: 35px 20px;
  width: 160px;
  height: 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
}

.licznik-wartosc {
  font-size: 48px;
  font-weight: 700;
  color: #B52525;
  margin: 0;
  letter-spacing: 0.02em;
}

.licznik-etykieta {
  font-size: 20px;
  font-weight: 600;
  color: #555555;
  margin-top: 14px;
  text-transform: uppercase;
}

/* === Przycisk przewijania nad rejestracją === */
.przycisk-rejestracji-sticky {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  position: fixed;
  bottom: 30px;
  right: 120px;
  z-index: 1000;
  background-color: #ffd93e; /* żółty */
  color: #000; /* czarny tekst */
  padding: 21px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.przycisk-rejestracji-sticky.pokaz-przycisk {
  opacity: 1;
  visibility: visible;
}

.przycisk-rejestracji-sticky:hover {
  background-color: #973ec7; /* fiolet */
  color: #fff !important;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(151, 62, 199, 0.7);
}

@media (max-width: 768px) {
  .przycisk-rejestracji-sticky {
    display: none;
  }
}


/* === Harmonogram / Nawigacja === */
.harmonogram-kontener {
  width: 100%;
  display: block;
}

.program-nawigacja {
  width: 100%;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
  text-align: center;
}

.przycisk-dnia-js {
  background-color: #6A1B9A;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  margin: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.przycisk-dnia-js:hover {
  background-color: #6A1B9A;
  transform: translateY(-2px);
}

.przycisk-dnia-js.aktywny {
  background-color: #6A1B9A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.program-wydarzen {
  width: 100%;
}

.dzien-programu-js {
  border: 1px solid #ddd;
  padding: 25px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* === NOWA REGULKA DLA GODZIN === */
/* Zapobiega zawijaniu tekstu (np. "10:00 - 11:45" zostanie w jednej linii) */
.time-cell {
  white-space: nowrap;
  /* Dodatkowe style dla lepszej prezentacji, ale kluczowe jest powyższe: */
  text-align: center;
  font-weight: bold;
}

/* === Obrazki nad innymi elementami === */
img {
  z-index: 10 !important;
  position: relative !important;
}

/* === FAQ Container (ostatnia wersja) === */
.faq-container {
  max-width: 900px;
  margin: 50px auto 60px auto;
  padding: 30px 40px;
  background: rgba(255 255 255 / 0.85);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  font-family: 'Lato', Arial, sans-serif;
  color: #222;
}

.faq-section {
  margin-bottom: 50px;
}

.faq-section h3.size-24 {
  font-size: 24px;
  font-weight: 700;
  color: #4e3e7a;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(142, 129, 216, 0.3);
  padding-bottom: 14px;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.faq-item {
  margin-bottom: 25px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(78, 62, 122, 0.1);
  background: rgba(250 249 252 / 0.8);
  border: 1px solid rgba(216 209 233 / 0.4);
}

/* Pytanie jako button */
.faq-item {
  margin-bottom: 25px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(250 249 252 / 0.8);
  border: 1px solid rgba(216 209 233 / 0.4);
  box-shadow: 0 2px 12px rgba(78, 62, 122, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
  background-color: rgba(243, 237, 252, 0.95); /* jasny fiolet */
  box-shadow: 0 4px 16px rgba(90, 45, 130, 0.2);
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 700;
  color: #2F3045;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}

.faq-question:hover,
.faq-question.active {
  color: #2c1a5f;
  background-color: rgba(226, 218, 246, 0.4);
}

.faq-icon {
  font-size: 28px;
  color: #6b56b3;
  transition: transform 0.35s ease, color 0.3s ease;
  user-select: none;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
  color: #3f2a7a;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  background-color: rgba(249 248 252 / 0.9);
  font-size: 16px;
  line-height: 1.65;
  color: #4a4860;
  transition: max-height 0.4s ease, padding 0.35s ease;
  border-left: 1px solid rgba(216 209 233 / 0.3);
  border-right: 1px solid rgba(216 209 233 / 0.3);
  border-bottom: 1px solid rgba(216 209 233 / 0.3);
  user-select: text;
}

.faq-answer.active {
  max-height: 1200px;
  padding: 18px 26px 22px;
}

/* =====================================================
   GŁÓWNY KONTENER I TYPOGRAFIA
   ===================================================== */
.program {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 40px 20px;
    color: #03142e;
}

.program-container {
    max-width: 1400px;
    margin: 0 auto;
}

.program-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #5b825f;
}

.program-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   NAWIGACJA (PRZYCISKI DNI)
   ===================================================== */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    background-color: #ffffff;
    color: #0d0b4d;
    border: 2px solid #0d0b4d;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #0d0b4d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(3, 20, 46, 0.2);
}

.tab-button:hover:not(.active) {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* =====================================================
   STRUKTURA SIATKI (GRID) - WERSJA DESKTOP
   ===================================================== */
.day-schedule {
    display: none; /* Ukryte domyślnie, JS pokazuje aktywny dzień */
    animation: fadeIn 0.5s ease;
}

.day-schedule.active {
    display: block;
}

.schedule-grid {
    display: grid;
    /* 1 kolumna na czas (90px) + 6 równych kolumn na sale */
    grid-template-columns: 90px repeat(6, 1fr);
    background-color: #dee2e6; /* Kolor linii siatki */
    gap: 1px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* NAGŁÓWKI SAL */
.grid-header {
    background-color: #0d0b4d;
    color: #ffffff;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

/* KOLUMNA CZASU */
.time-cell {
    background-color: #5b825f;
    color: #ffffff;
    padding: 15px 10px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* KOMÓRKI SESJI */
.session-cell {
    background-color: #ffffff;
    padding: 15px;
    font-size: 0.85rem;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
}

.session-cell:hover {
    background-color: #fcfcfc;
}

.session-cell strong {
    color: #4682B4;
    margin-bottom: 4px;
    display: block;
}

.empty-cell {
    background-color: #f9f9f9;
}

/* ELEMENTY SPECJALNE (PRZERWY, LUNCH) */
.break-cell {
    grid-column: 2 / -1; /* Rozciągnięcie na wszystkie 6 sal */
    background-color: #f1f3f5;
    color: #495057;
    text-align: center;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-row-special {
    grid-column: 2 / -1;
    padding: 15px;
    font-weight: bold;
    border-left: 4px solid #5b825f;
}

/* =====================================================
   RESPONSYWNOŚĆ (TABLETY I SMARTFONY)
   ===================================================== */
@media (max-width: 1100px) {
    .schedule-grid {
        /* Przejście na listę pionową */
        display: block;
        background: transparent;
        border: none;
    }

    .grid-header {
        display: none; /* Ukrywamy nagłówki sal w widoku listy */
    }

    .time-cell {
        width: 100%;
        background-color: #5b825f;
        margin-top: 25px;
        border-radius: 8px 8px 0 0;
        padding: 10px;
        font-size: 1.1rem;
    }

    .session-cell {
        border: 1px solid #dee2e6;
        border-top: none;
        margin-bottom: 0;
    }

    /* Wyświetlanie nazwy sali nad sesją w widoku mobilnym */
    .session-cell::before {
        content: attr(data-room);
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: #666;
        margin-bottom: 8px;
        background: #eee;
        padding: 2px 8px;
        border-radius: 4px;
        width: fit-content;
    }

    .empty-cell {
        display: none; /* Ukrywamy puste sale na telefonie */
    }

    .break-cell {
        width: 100%;
        margin-top: 10px;
        border-radius: 8px;
    }
}

/* ANIMACJA POJAWIANIA SIĘ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   SEKCJA Z IKONAMI
   =============================== */
.features-section {
    padding: 20px 20px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Siatka kart --- */
.features-grid {
    display: grid;
    /* Domyślnie 3 kolumny, można zmienić na 2 lub 4 zmieniając cyfrę */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Styl pojedynczej karty --- */
.feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Ikona --- */
.feature-card-icon {
    font-size: 3rem; /* Wielkość ikony */
    margin-bottom: 25px;
    color: #6f42c1; /* Domyślny kolor ikony (niebieski) */
    transition: color 0.3s ease;
}

/* --- Tytuł --- */
.feature-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #2F3045; /* Domyślny kolor tekstu (granatowy) */
    transition: color 0.3s ease;
}

/* ================================== */
/* --- EFEKTY PO NAJECHANIU MYSZKĄ --- */
/* ================================== */

.feature-card:hover {
    transform: translateY(-8px) scale(1.03); /* Uniesienie + powiększenie */
    background-color: #ad1457; /* Żółte tło po najechaniu */
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25); /* Większy, mocniejszy cień */
}


/* Zmiana koloru ikony i tytułu na biały po najechaniu na kartę */
.feature-card:hover .feature-card-icon,
.feature-card:hover .feature-card-title {
    color: #ffffff;
}

/* ===================================== */
/* --- RESPONSIVE (DLA MOBILE) --- */
/* ===================================== */

/* Tablety (do 992px) */
@media (max-width: 992px) {
    .features-grid {
        /* Zmiana na 2 kolumny */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telefony (do 768px) */
@media (max-width: 768px) {
    .features-grid {
        /* Zmiana na 1 kolumnę */
        grid-template-columns: 1fr;
    }
    .features-section {
        padding: 60px 15px;
    }
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto; /* wyśrodkowanie w poziomie */
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Styl pojedynczego wydarzenia */
.event {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: left;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Podczas najechania myszą */
.event:hover {
    transform: translateY(-3px);
}

/* Nagłówki wydarzeń */
.event h2 {
    color: rgb(11, 128, 223);
    margin-bottom: 10px;
    font-size: 1.3rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Opis wydarzeń */
.event p,
.event ul,
.event li {
    font-size: 1rem;
    color: #555;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Przyciski nawigacyjne */
.przycisk-dnia-js {
    background-color: rgb(11, 128, 223);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.przycisk-dnia-js:hover {
    background-color: rgb(8, 105, 190);
}

/* Aktywny przycisk dnia */
.przycisk-dnia-js.active {
    font-weight: bold;
    border: 2px solid white;
    background-color: rgb(8, 105, 190);
}

/* Styl dla tła i czcionki całego dokumentu */
body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Responsywność: mniejsze paddingi na telefonach */
@media (max-width: 600px) {
    .container {
        padding: 20px 10px;
    }

    .event {
        padding: 15px;
    }

    .przycisk-dnia-js {
        width: 100%;
        margin: 5px 0;
        font-size: 0.95rem;
    }
}

/* Styl dla czasu trwania sesji/prezentacji */
.schedule-list .schedule-item .schedule-time {
    display: inline-block;
    min-width: 90px;
    margin-right: 15px;
    font-weight: 600;
}

/* Styl dla zagnieżdżonego kontenera wykładów */
.sub-schedule {
    margin-top: 10px;
}

/* Styl dla pojedynczego wykładu w sesji (zastępuje <li>) */
.sub-schedule-item {
    position: relative;
    padding-left: 105px;
    margin-bottom: 5px;
}

/* Styl dla czasu trwania pojedynczego wykładu */
.sub-schedule-time {
    position: absolute;
    left: 0;
    font-weight: normal;
    color: #555;
}

/* Styl dla treści wykładu (zastępuje treść w <li>) */
.sub-schedule-item p {
    margin: 0;
    padding: 0;
}

/* Styl dla mobilnych urządzeń (np. smartfony) */
@media (max-width: 768px) {
    .sub-schedule-item {
        padding-left: 0;
    }

    .sub-schedule-time {
        position: static;
        display: inline-block;
        margin-right: 5px;
        text-indent: 0;
    }
}

/* Kontener paska odliczania */
#scroll-countdown-bar {
    position: fixed; /* Przyklejony do góry/dołu ekranu */
    bottom: 0; /* Przyklejony na dole strony */
    left: 0;
    width: 100%;
    /* Wygląd */
    background-color: #333; /* Ciemne tło */
    color: #fff; /* Biały tekst */
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    /* Flexbox do wyrównania elementów */
    display: flex;
    justify-content: center; /* Wyrównanie na środku (główna oś) */
    align-items: center; /* Wyrównanie w pionie (oś poprzeczna) */
    gap: 15px; /* Odstęp między elementami */
    /* Warstwa i animacja */
    z-index: 1000; /* Upewnij się, że jest na wierzchu */
    transition: transform 0.3s ease-in-out; /* Animacja wysuwania/chowania */
}

/* Stan paska - ukryty */
#scroll-countdown-bar.hidden {
    transform: translateY(100%); /* Przesuń poza ekran w dół */
}

/* Tekst i czas odliczania */
#countdown-text {
    font-size: 16px;
}

#countdown-timer {
    font-size: 20px;
    color: #ffcc00; /* Akcentujący kolor dla czasu */
}

/* Przycisk rejestracji (zawarty w <a> i <button>) */
.btn-link {
    text-decoration: none; /* Usuń podkreślenie z linku */
}

.btn-register {
    /* Wygląd przycisku */
    background-color: #e74c3c; /* Intensywny kolor */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background-color: #c0392b; /* Ciemniejszy kolor przy najechaniu */
}

/* Przycisk zamknięcia (X) */
.close-bar {
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-bar:hover {
    opacity: 1;
}

/* Ustawienia dla mniejszych ekranów (opcjonalnie) */
@media (max-width: 768px) {
    #scroll-countdown-bar {
        flex-direction: column; /* Ułóż elementy w kolumnie */
        gap: 8px;
        padding: 10px;
        text-align: center;
    }
    #countdown-text, #countdown-timer, .btn-register {
        font-size: 14px;
    }
    .close-bar {
        top: 5px;
        right: 5px;
        transform: none;
    }
/* 1. Domyślnie ukryj wszystkie harmonogramy */
.day-schedule {
    display: active; 
    /* Upewnij się, że nie jest nadpisywane przez inne style */
}

/* 2. Wyświetlaj tylko aktywny harmonogram */
/* Klasa 'active' jest dodawana przez JavaScript */
.day-schedule.active {
    /* Użyj tego samego typu wyświetlania, co w JS (block lub grid) */
    display: block !important; 
}

/* 3. Styl dla aktywnego przycisku (wizualna informacja dla użytkownika) */
.tab-button.active {
    background-color: #03142E; 
    color: #ffffff;
    font-weight: bold;
    /* Dodaj tutaj inne style, które chcesz, aby miał aktywny przycisk */
}


}

/* =====================================================
   POPRAWIONA STRUKTURA SIATKI I CZASU
   ===================================================== */
.schedule-grid {
    display: grid;
    /* Zwiększono szerokość pierwszej kolumny ze 100px na 140px, aby czas się zmieścił w linii */
    grid-template-columns: 140px repeat(6, 1fr);
    background-color: #4682b4;
    gap: 1px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.time-cell {
    background-color: #4682B4;
    color: #ffffff;
    padding: 15px 5px; /* Mniejszy padding boczny */
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    
    /* DODANE: zapobieganie łamaniu linii */
    white-space: nowrap; 
}

/* Dostosowanie nagłówka pustego nad czasem */
.grid-header:first-child {
    min-width: 140px;
}

/* Jeśli używasz <br> w HTML wewnątrz .time-cell, usuń je lub CSS je zignoruje przez white-space: nowrap */


/* --- NOWA SEKCJA: BANER BIEGU (NAD TABELĄ) --- */
.special-event-banner {
    background: #02335e; /* Kolor fuksji */
    color: white;
    padding: 15px 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.special-event-banner .time-tag {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===============================
    SEKCJA GALERII ZDJĘĆ - Z WIDOCZNYM SUWAKIEM
    =============================== */
.gallery-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.photo-gallery {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 0 40px 20px 40px;
    overflow-x: auto; /* UMOŻLIWIA PRZEWIJANIE */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: auto; /* Włącz suwak dla Firefox */
    margin: 0 auto;
    justify-content: flex-start;
}

/* Włączamy domyślny pasek przewijania dla WebKit (Chrome/Safari) */
.photo-gallery::-webkit-scrollbar {
    display: block;
    height: 10px;
}
.photo-gallery::-webkit-scrollbar-thumb {
    background: #f52525;
    border-radius: 5px;
}
.photo-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Styl pojedynczego elementu galerii */
.gallery-item {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    overflow: hidden; /* ZMIANA: Zmienione na hidden by zaokrąglić rogi */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    flex-shrink: 0;
    height: 400px;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 18px 40px rgba(90,45,130,0.3);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

/* ===============================
    LIGHTBOX (MODAL) - OSTATECZNA WERSJA Z NAPRAWIONYM POZYCJONOWANIEM
    =============================== */
.lightbox {
    /* Wymuszenie pozycji i widoczności Lightboxa */
    display: none !important;
    position: fixed !important;
    z-index: 2147483647 !important; /* Maksymalna wartość */
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;

    /* Wymuszenie tła i centrowania */
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px) !important;

    /* Centrowanie */
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;

    /* Animacje */
    animation: fadeIn 0.3s forwards !important;
}

.lightbox.show {
    /* KLUCZOWE: Włącza widok i centrowanie */
    display: flex !important;
}

/* Styl dla samego obrazu w Lightboxie (.lightbox-content to tag <img>) */
.lightbox-content {
    display: block !important;

    /* Wymiary obrazu */
    max-width: 85% !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;

    /* Wygląd */
    border-radius: 12px !important;
    background: #fff !important;
    padding: 5px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9) !important;

    /* Z-Index i pozycja */
    position: relative !important;
    z-index: 1 !important;
    margin: auto !important;

    animation: zoomIn 0.4s forwards !important;
}

/* Styl dla przycisku zamknięcia 'X' */
.lightbox-close {
    position: absolute !important;
    top: 25px !important;
    right: 40px !important;
    color: #fff !important;
    font-size: 55px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    z-index: 2147483647 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ffd93e !important;
    text-decoration: none !important;
}


/* Animacje Lightbox */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsywność galerii i lightboxa */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.2rem;
    }
    .photo-gallery {
        padding: 0 15px 15px 15px;
    }
    .gallery-item {
        width: 200px;
        height: 267px;
    }
    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 45px;
    }
    .lightbox-content {
        max-width: 95% !important;
        max-height: 95vh !important;
    }
}

/* ===============================
    BADGE
    =============================== */
.badge-aktualna-cena {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd500;
    color: #414141;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px #00000030;
    z-index: 10;
}

/* ===============================
    KARTY OPCJI / OPŁATY
    =============================== */
.oplata-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
}

.left-card { order: -1; }
.highlight { order: 0; transform: scale(1.03); }

@media (max-width: 992px) {
    .left-card, .highlight { order: unset; transform: none; }
}
