/* === Nawigacja podstron === */
.subpages-nav .nav-item:nth-child(1) a { color: #001f5b; }
.subpages-nav .nav-item:nth-child(2) a { color: #FF0000; }
/* ===============================
    PODSTAWOWE STYLE STRONY
    =============================== */
body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    position: relative !important;
    z-index: 10 !important;
}



/* ===============================
    PASEK ODLICZANIA
    =============================== */
#scroll-countdown-bar,
.countdown-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.3s ease, opacity 0.3s ease, bottom 0.3s ease;
    z-index: 2147483647;
    width: 90%;
    max-width: 1000px;
    background-color: #ffd500;
    color: #414141;
}

#scroll-countdown-bar {
    background: rgba(41,50,102,0.95);
    color: #ffd500;
    justify-content: center;
}

#scroll-countdown-bar.hidden,
.countdown-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    bottom: -100px;
}

#scroll-countdown-bar #countdown-text {
    margin-right: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

#scroll-countdown-bar #countdown-timer,
#countdown-timer {
    font-weight: 700;
    margin: 0 10px 0 0;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-family: monospace;
}

.btn-register {
    background-color: #414141;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-register:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

#scroll-countdown-bar .btn-register {
    background-color: #ffd500;
    color: #2f3045;
    margin-right: 20px;
}

#scroll-countdown-bar .btn-register:hover {
    background-color: #ffea66;
}

.close-bar {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #414141;
    transition: color 0.3s ease;
}

#scroll-countdown-bar .close-bar {
    top: 6px;
    right: 12px;
    font-size: 22px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.close-bar:hover,
#scroll-countdown-bar .close-bar:hover {
    color: #ffd500;
}
/* ===============================
   UKRYWANIE PASKA ODLICZANIA
   =============================== */
#scroll-countdown-bar {
    display: none !important; 
}

/* PULSOWANIE */
.pulse {
    animation: pulseAnim 2.2s infinite ease-in-out;
}

@keyframes pulseAnim {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px #0000002e; }
    50% { transform: scale(1.04); box-shadow: 0 14px 45px #00000045; }
}

/* PODŚWIETLENIE (GLOW) */
.glow {
    box-shadow: 0 0 20px rgba(255,213,0,0.6),
                0 0 40px rgba(255,213,0,0.35),
                0 0 60px rgba(255,213,0,0.2);
    position: relative;
    z-index: 5;
}

/* ===============================
    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; }
}

/* ===============================
    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: #5a2d82;
    margin: 0;
    letter-spacing: 0.02em;
}

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

/* ===============================
    PRZYCISK REJESTRACJI STICKY
    =============================== */
.przycisk-rejestracji-sticky {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 30px;
    right: 120px;
    z-index: 1000;
    background-color: #ffd93e;
    color: #000;
    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);
    transition: opacity 0.5s ease, transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

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

.przycisk-rejestracji-sticky:hover {
    background-color: #973ec7;
    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; }
}

/* ===============================
    FAQ
    =============================== */
.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;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.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); 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;
}

.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; }

/* ===============================
    PROGRAM / HARMONOGRAM
    =============================== */
.program {
    font-family: sans-serif;
    background-color: #f4f4f9;
    padding: 20px;
    color: #37474F;
}

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

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

.program-header h2 {
    font-size: 2.5rem;
    color: #6a1B9A;
    margin-bottom: 10px;
}

.program-info { font-style: italic; font-size: 0.9rem; color: #666; }

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.tab-button {
    background-color: #eceff1;
    color: #37474F;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button.active { background-color: #6a1B9A; color: #ffffff; }
.tab-button:hover:not(.active) { background-color: #cfd8dc; }

.day-schedule { display: none; background-color: #ffffff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 30px; margin-bottom: 30px; }
.day-schedule.active { display: block; }

.day-title {
    font-size: 1.8rem;
    color: #37474F;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.schedule-list { list-style: none; padding: 0; margin: 0; }

.schedule-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }

.schedule-time {
    background-color: #6a1B9A;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 20px;
}

.schedule-content { flex-grow: 1; }

.schedule-title { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: bold; color: #37474F; }

.sub-schedule { list-style-type: none; padding-left: 0; margin-top: 10px; font-size: 0.95rem; color: #555; }

.sub-schedule li { margin-bottom: 5px; position: relative; padding-left: 20px; }
.sub-schedule li::before { content: '•'; color: #6a1B9A; font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }

.schedule-item.break { background-color: #e8eaf6; }
.schedule-item.sponsored { background-color: #eceff1; border-left: 5px solid #37474F; }
.schedule-item.sponsored .schedule-time { background-color: #37474F; }

/* MOBILNE URZĄDZENIA */
@media (max-width: 600px) {
    .program-header h2 { font-size: 2rem; }
    .schedule-item { flex-direction: column; align-items: flex-start; }
    .schedule-time { margin-bottom: 10px; margin-right: 0; width: auto; }
    .sub-schedule { margin-left: 0; padding-left: 20px; }
}

/* ===============================
    SEKCJA IKON / FEATURES
    =============================== */
.features-section { padding: 20px; }

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card-icon { font-size: 3rem; margin-bottom: 25px; color: #6f42c1; transition: color 0.3s ease; }
.feature-card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: #2F3045; transition: color 0.3s ease; }

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    background-color: #ad1457;
    box-shadow: 0 25px 55px rgba(0,0,0,0.15);
}

/* ===============================
    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: #6a1B9A;
    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;
    }
}