/* --- Globalne Ustawienia i Reset --- */
:root {
    --primary-color: #007bff; /* Główny kolor (niebieski) */
    --primary-hover: #0056b3; /* Kolor przycisku po najechaniu */
    --highlight-color: #e6f7ff; /* Kolor tła dla wyróżnionej oferty */
    --text-color: #333; /* Główny kolor tekstu */
    --border-color: #e0e0e0; /* Kolor ramek */
    --header-bg: #f8f9fa; /* Kolor tła nagłówka */
    --white-color: #fff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fdfdfd;
    line-height: 1.6;
}

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

/* --- Sekcja Hero (Nagłówek) --- */

/* .hero-section {
    background-color: var(--header-bg);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
} */

/* .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
} */

/* .hero-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
} */

/* --- Sekcja Hero (Nagłówek) - NOWA WERSJA --- */
.hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.container.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 400;
    opacity: 0.9;
}

.profile-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px 30px;
    text-decoration: none;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    transition: background-color 0.3s, transform 0.3s;
    backdrop-filter: blur(5px);
}

.profile-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.profile-card i {
    font-size: 2.5rem;
}

.profile-card span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Poprawki dla responsywności */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .profile-selector {
        flex-direction: column;
        align-items: center;
    }
    .profile-card {
        width: 80%;
        max-width: 300px;
    }
}

/* --- Przesuwany pasek z logotypami --- */
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.logo-slider {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logo-track {
    display: inline-block;
    animation: 25s slide infinite linear;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    display: inline-block;
    height: 40px;
    width: auto;
    margin: 0 40px;
}

.logo-item img {
    height: 100%;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-item img:hover {
    opacity: 1;
}


/* --- Sekcja z Rankingiem --- */
.ranking-section {
    padding: 40px 0;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.ranking-table th, .ranking-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.ranking-table thead {
    background-color: #f1f3f5;
}

.ranking-table th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #555;
}

.ranking-table th i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.ranking-table tbody tr {
    background-color: var(--white-color);
    transition: background-color 0.3s;
}

.ranking-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ranking-table .highlighted {
    background-color: var(--highlight-color);
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white-color);
}

.badge-price { background-color: #28a745; }
.badge-quality { background-color: #ffc107; color: var(--text-color); }
.badge-oc { background-color: #17a2b8; }
.badge-baggage { background-color: #6f42c1; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.pln-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #777;
    margin-top: 4px;
}

.price-daily {
    font-size: 1.4rem;
    color: var(--text-color);
}

.price-daily strong {
    font-weight: 700;
}

.price-total {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.details-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.details-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}

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

.detail-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.detail-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.detail-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-list {
    list-style-type: none;
    padding-left: 0;
}

.detail-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.detail-list li:last-child {
    margin-bottom: 0;
}

.detail-list strong {
    color: var(--text-color);
}

/* NOWE STYLE: Sekcja "Dlaczego Warto?" */
.why-worth-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}
.why-worth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.why-worth-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.why-worth-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.why-worth-item p {
    font-size: 0.95rem;
    color: #666;
}

.secondary-cta-section {
    text-align: center;
    margin-top: 50px;
}

.cta-button-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
}

.collective-benefits {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--header-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-top: 0px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin: 10px;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 25px;
}

footer {
    background-color: #343a40;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* Lepsze style dla linków w stopce - wersja niebieska */
footer a {
    color: #74a6f7; /* Rozjaśniony, mniej nasycony niebieski */
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #007bff; /* Powrót do głównego koloru marki po najechaniu */
    text-decoration: underline;
}


/* --- RESPONSIVE DESIGN (dla urządzeń mobilnych) --- */
@media (max-width: 992px) {
    .ranking-table thead {
        display: none;
    }

    .ranking-table, .ranking-table tbody, .ranking-table tr, .ranking-table td {
        display: block;
        width: 100%;
    }

    .ranking-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    
    .ranking-table .highlighted {
        border: 2px solid var(--primary-color);
    }

    .ranking-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid var(--border-color);
    }

    .ranking-table td:last-child {
        border-bottom: none;
    }

    .ranking-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        width: calc(50% - 40px);
        text-align: left;
        font-weight: 600;
        color: #555;
    }
    
    .price-daily {
        font-size: 1.2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .logo-item {
        height: 30px;
        margin: 0 30px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }

    .why-worth-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Zwiększony odstęp w widoku mobilnym */
    }
    
    .cta-button-large {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .collective-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
}

/* NOWE STYLE: Sekcja FAQ */
.faq-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.faq-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    list-style: none; /* Ukrywa domyślną strzałkę */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none; /* Ukrywa domyślną strzałkę dla Chrome/Safari */
}

/* Dodajemy własną ikonę plus/minus */
.faq-question::after {
    content: '\F4FE'; /* Kod ikony "plus-circle" z Bootstrap Icons */
    font-family: "bootstrap-icons";
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] > .faq-question::after {
    content: '\F470'; /* Kod ikony "dash-circle" z Bootstrap Icons */
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* --- Style dla drugiego rankingu (Dla Par) --- */
.ranking-para .ranking-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Nowe kolory dla etykiet (badges) */
.badge-solid {
    background-color: #6c757d; /* Szary, stonowany kolor */
}

.badge-premium {
    background-color: #4a148c; /* Głęboki fiolet */
}

.badge-comprehensive {
    background-color: #004d40; /* Ciemny, szlachetny zielony */
}

/* Dostosowanie responsywności dla tytułu drugiego rankingu */
@media (max-width: 768px) {
    .ranking-para .ranking-title {
        font-size: 1.5rem;
    }
}

/* --- Style dla trzeciego rankingu (Dla Aktywnych) --- */
.ranking-aktywni .ranking-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ranking-aktywni .ranking-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Nowe kolory dla etykiet (badges) */
.badge-value {
    background-color: #ff8f00; /* Pomarańczowy, dynamiczny kolor */
}

.badge-pro {
    background-color: #d32f2f; /* Głęboka czerwień */
}

/* Używamy istniejącego .badge-premium */

/* Dostosowanie responsywności dla tytułu */
@media (max-width: 768px) {
    .ranking-aktywni .ranking-title {
        font-size: 1.5rem;
    }
    .ranking-aktywni .ranking-subtitle {
        font-size: 1rem;
    }
}

/* --- Style dla przyklejonego paska CTA --- */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212529; /* Ciemne, eleganckie tło */
    color: var(--white-color);
    display: flex;
    align-items: center;
    padding: 15px 25px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    
    /* Ukrycie i animacja */
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    visibility: hidden;
}

/* Klasa dodawana przez JavaScript, aby pokazać pasek */
.sticky-cta-bar.visible {
    transform: translateY(0);
    visibility: visible;
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    flex-grow: 1; /* <-- KLUCZOWA ZMIANA: Pozwalamy kontenerowi rosnąć */
    justify-content: center; /* <-- KLUCZOWA ZMIANA: Wyśrodkowujemy jego zawartość */
}

.sticky-cta-content i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.sticky-cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button-sticky {
    background-color: var(--primary-color); /* Używamy głównego koloru strony */
    padding: 10px 25px;
    font-size: 0.95rem;
}

.cta-button-sticky:hover {
    background-color: var(--primary-hover);
}

.sticky-cta-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s;
}

.sticky-cta-close:hover {
    color: var(--white-color);
}

/* Responsywność dla mniejszych ekranów - BEZ ZMIAN, POZOSTAJE JAK BYŁO */
@media (max-width: 768px) {
    .sticky-cta-bar {
        padding: 12px 15px;
        /* Zmieniamy układ na kolumnowy, aby tekst był nad przyciskami */
        flex-direction: column; 
        align-items: stretch; /* Rozciągamy elementy na całą szerokość */
        gap: 8px; /* Mały odstęp między tekstem a przyciskami */
    }
    
    .sticky-cta-content {
        justify-content: center; /* Wycentruj tekst */
        font-size: 0.9rem; /* Lekko zmniejszamy tekst, aby lepiej pasował */
    }

    .sticky-cta-content i {
        display: none; /* Ikona wciąż jest zbędna na małym ekranie */
    }

    .sticky-cta-actions {
        /* Resetujemy odstęp i pozwalamy przyciskom się rozciągnąć */
        gap: 0;
        width: 100%;
    }

    .cta-button-sticky {
        width: 100%; /* Przycisk na całą szerokość */
        text-align: center;
    }

    .sticky-cta-close {
        /* Ustawiamy przycisk "X" absolutnie, aby nie psuł układu */
        position: absolute;
        top: 2px;
        right: 5px;
    }
}

/* --- Style dla Exit-Intent Pop-up --- */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0; /* Zmieniamy z display:none na opacity */
    transition: opacity 0.3s ease;
    pointer-events: none; /* <-- KLUCZOWA POPRAWKA NR 1: Ignoruj kliknięcia, gdy ukryty */
}

.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    width: 90%;
    max-width: 800px;
    display: flex;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* <-- KLUCZOWA POPRAWKA NR 2: Ignoruj kliknięcia, gdy ukryty */
}

/* Klasy dodawane przez JS do pokazania pop-upu */
.exit-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto; /* <-- KLUCZOWA POPRAWKA NR 3: Reaguj na kliknięcia, gdy widoczny */
}
.exit-popup.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto; /* <-- KLUCZOWA POPRAWKA NR 4: Reaguj na kliknięcia, gdy widoczny */
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.exit-popup-close:hover {
    color: #333;
}

.exit-popup-content {
    padding: 40px;
    flex-basis: 60%;
}
.exit-popup-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}
.exit-popup-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}
.exit-popup-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.exit-popup-content ul li {
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.exit-popup-content ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.exit-popup-cta {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
}

.exit-popup-decline {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
}
.exit-popup-decline:hover {
    text-decoration: underline;
}

.exit-popup-image {
    flex-basis: 40%;
    background-size: cover;
    background-position: center;
}
.exit-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsywność dla mobile */
@media (max-width: 768px) {
    .exit-popup-image {
        display: none;
    }
    .exit-popup-content {
        flex-basis: 100%;
        padding: 30px 25px;
    }
    .exit-popup-content h2 {
        font-size: 1.5rem;
    }
}
