html {
    scroll-behavior: smooth;
    /* Proximity sprawia, że przyciąganie działa tylko wtedy, gdy jesteś blisko sekcji */
    scroll-snap-type: y proximity; 
}

.modern-section,
.koniec-section,
.footer-container {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* BLOKADA ZAZNACZANIA DLA CAŁEJ STRONY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-user-select: none;  
    -moz-user-select: none;     
    -ms-user-select: none;      
    user-select: none;          
    -webkit-touch-callout: none; 
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background: #fff;
    line-height: 1.6;
}
/* BLOKADA PRZECIĄGANIA OBRAZKÓW */
img {
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Pozwolenie na klikanie w przyciski i linki (mimo blokady zaznaczania tekstu) */
a, button, .promo-btn, .btn-kontakt, .hero-btn {
    -webkit-user-select: auto;
    user-select: auto;
    pointer-events: auto;
}


/* ========================== NAVBAR ========================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin-left: 35px;
    font-size: 18px;
}
.navbar nav a:hover { color: #2f69ff; }

/* ========================== HERO ========================== */

.hero {
    min-height: 100vh;
    /* Dodajemy background-attachment: fixed dla efektu przejścia/paralaksy */
    background: url("index-first-img.png") center / cover no-repeat fixed; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    /* Zabezpieczenie dla przeglądarek mobilnych, które czasem słabo radzą sobie z 'fixed' */
    overflow: hidden; 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65); /* Lekko ciemniejszy dla lepszego kontrastu */
}

.hero-content {
    font-family: Arial, sans-serif;
    position: relative;
    color: white;
    max-width: 900px;
    z-index: 2; /* Upewniamy się, że treść jest nad nakładką */
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
}

.hero-content p {
    margin: 30px 0;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 300;
}

/* Kontener na przyciski - klucz do ułożenia obok siebie */
.hero-btns {
    display: flex;
    justify-content: center; /* Środkowanie w poziomie */
    gap: 20px;               /* Odstęp między przyciskami */
    margin-top: 30px;
}

/* Wspólna baza dla obu przycisków */
.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;     /* Zaokrąglone brzegi (styl modern) */
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease; /* Płynna animacja hovera */
    letter-spacing: 1px;
}

/* Przycisk Główny (Niebieski) */
.btn-primary {
    background-color: #2f69ff;
    color: white;
    border: 2px solid #2f69ff;
}

.btn-primary:hover {
    border: 2px solid #ffffff;
    background-color: white;
    color: #000000;
    transform: translateY(-3px); /* Delikatne uniesienie */
}

/* Przycisk Drugorzędny (Obramowanie) */
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: black;
    transform: translateY(-3px);
}

/* Poprawka dla telefonów - na małym ekranie przyciski jeden pod drugim */
@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-btn {
        width: 80%; /* Przyciski zajmują większość szerokości na mobile */
        text-align: center;
    }
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .hero {
        /* Wyłączamy 'fixed' dla płynności na mobile */
        background-attachment: scroll;
        padding: 60px 20px; /* Mniejszy padding, żeby treść była wyżej */
        min-height: 100vh;   /* Skracamy sekcję na telefonach, żeby nie zajmowała całego ekranu jeśli nie trzeba */
    }

    .hero-content h1 {
        font-size: 36px;    /* Jeszcze mniejsza czcionka dla lepszej czytelności */
        line-height: 1.2;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 16px;    /* Dopasowanie akapitu do mniejszego ekranu */
        margin: 20px 0;
        padding: 0 10px;
    }

    .hero-btn {
        padding: 12px 30px; /* Nieco mniejszy przycisk */
        font-size: 14px;
    }
}

/* ========================== FEATURES SECTION (FULL CODE) ========================== */

.features-section {
    padding: 60px 20px; /* Powrót do mniejszego odstępu */
    background: linear-gradient(180deg, #f2f2f2 0%, #ffffff 100%);
    text-align: center;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.feature {
    flex: 1;
    min-width: 30px;
    max-width: 400px;
    background: #ffffff;
    padding: 30px 20px; /* Mniejszy padding wewnątrz karty */
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(47, 91, 231, 0.1);
}


/* Ikona w kształcie nowoczesnego zaokrąglonego kwadratu (squircle) */
.icon {
    width: 70px;
    height: 70px;
    background: #2f5be7;
    border-radius: 15px; 
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(47, 91, 231, 0.2);
    
    /* Zmiana tutaj: 0.8s sprawi, że rotacja będzie dostojna i wyraźna */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

/* Animacja pozostaje bez zmian, ale dzięki transition powyżej będzie trwać dłużej */
.feature:hover .icon {
    transform: scale(1.1) rotate(8deg);
    background: #1e46c7;
}

.feature h2 {
    font-size: 19px; /* Mniejsza czcionka */
    margin-bottom: 10px;
}


/* Dekoracyjna linia pod tytułem, która wydłuża się przy hoverze */
.feature h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #2f5be7;
    margin: 10px auto 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.feature:hover h2::after {
    width: 65px;
}

.feature p {
    font-size: 14px; /* Mniejsza czcionka */
    line-height: 1.6;
    color: #555;
}

/* --- RESPONSYWNOŚĆ (MOBILE) --- */

@media (max-width: 768px) {
    .features-section {
        padding: 60px 20px;
    }
    
    /* KLUCZ: Kafelki jeden pod drugim zamiast obok siebie */
    .features-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    /* Każdy kafelek rozciąga się na szerokość kontenera */
    .feature, .feature-item {
        width: 100% !important;
        max-width: 100% !important;
        padding: 35px 20px !important;
        box-sizing: border-box !important;
    }

    .feature:hover {
        transform: translateY(-5px);
    }

    /* Tytuł sekcji */
    .features-section h2 {
        font-size: 24px !important;
        margin-bottom: 30px !important;
    }

    /* Tytuły w kafelkach - teraz mają dużo miejsca, więc mogą być wyraźne */
    .feature-item h2, 
    .feature-item h3 {
        font-size: 20px !important; 
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        word-wrap: normal !important; /* Wyłączamy wymuszone łamanie słów */
    }

    /* Ikony */
    .feature-item i {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }

    /* Opisy */
    .feature-item p {
        font-size: 14px !important;
        width: 100%;
        text-align: center;
    }
}

/* ========================== OFERTA KAFLE (LEKKO POWIĘKSZONA) ========================== */

.offer-header {
    padding-top: 20px;
    text-align: center;
    background-color: #f2f2f2;
}

.offer-bar {
    width: 50px;
    height: 5px;
    background: #2f5be7;
    margin: 0 auto 15px;
}

.offer-title {
    font-size: 36px; /* Powiększone z 30px */
    letter-spacing: 3px;
    font-weight: 300;
}

.offer-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 40px 80px;
    background: #f2f2f2;
    max-width: 1300px;
    margin: 0 auto;
}

.offer-card {
    width: 32%;
    max-width: 380px;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-card img {
    width: 100%;
    height: 190px; /* Powiększone ze 160px */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.offer-card h3 {
    margin: 20px 0 10px;
    font-size: 20px;
    font-weight: bold;
}

.offer-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Responsywność */
@media (max-width: 992px) {
    .offer-cards {
        flex-wrap: wrap;
        gap: 40px;
    }
    .offer-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .offer-card {
        width: 100%;
    }
}

/* ====================== SEKCJA PROMOCJI ====================== */

.promo-section {
    background: #000; /* Czarny jak poprzednia sekcja modern-section */
    padding: 60px 20px;
    text-align: center;
}

.promo-header-main {
    text-align: center;
    margin-bottom: 40px;
}

.promo-bar {
    width: 60px;
    height: 5px;
    background: #2f5be7;
    margin: 0 auto 20px;
}

.promo-title {
    font-size: 42px;
    letter-spacing: 4px;
    font-weight: 300;
    color: #ffffff;
    text-transform: uppercase;
}

.promo-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Karta Lewa - Pakiet */
.promo-box-main {
    flex: 1.2;
    background: #111;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    min-width: 320px;
    border-left: 5px solid #2f5be7;
    display: flex;
    flex-direction: column;
}

.promo-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.promo-badge {
    background: #2f5be7;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.promo-box-main h3 { font-size: 24px; color: #fff; margin: 10px 0 5px; }
.promo-prices { margin: 15px 0; }
.p-old { text-decoration: line-through; color: #666; font-size: 16px; margin-right: 12px; }
.p-new { font-size: 32px; font-weight: bold; color: #2f5be7; }

/* Licznik */
.promo-timer {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-label { font-size: 10px; color: #888; font-weight: bold; }
#countdown { display: flex; gap: 12px; }
.t-unit { text-align: center; color: #fff; line-height: 1; }
.t-unit b { font-size: 18px; display: block; }
.t-unit small { font-size: 9px; color: #2f5be7; text-transform: uppercase; }

.promo-btn {
    background: #2f5be7;
    color: #fff;
    text-decoration: none;
    padding: 14px;
    text-align: center;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}
.promo-btn:hover { background: #fff; color: #000; }

/* Karta Prawa - Lista */
.promo-box-list {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    min-width: 320px;
}

.promo-box-list h4 { font-size: 16px; margin-bottom: 20px; color: #000; border-bottom: 2px solid #2f5be7; display: inline-block; padding-bottom: 5px; }
.p-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #ddd; font-size: 15px; font-weight: bold; }
.p-tag { color: #2f5be7; }
.p-info { font-size: 11px; color: #999; margin-top: 20px; font-style: italic; }

@media (max-width: 768px) {
    .promo-title { font-size: 28px; }
    .promo-container { flex-direction: column; }
}

/* ====================== POPRAWIONE STRZAŁKI SLIDERA ====================== */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    /* Styl Premium: niebieskie tło z rozmyciem (glassmorphism) */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    color: #2f69ff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Idealne koło */
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 4;
    transition: 0.3s all ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.arrow.left { left: 30px; }
.arrow.right { right: 30px; }

.arrow:hover {
    background: #ffffff; 
    color: #2f69ff;
    box-shadow: 0 0 20px rgba(47, 105, 255, 0.4);
}

/* ========================== FAQ SECTION - FINALNA WERSJA ========================== */

.faq-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Zapobiega rozciąganiu sekcji przez zdjęcie */
}

.faq-text {
    flex: 1.5;
}

.faq-header {
    margin-bottom: 20px;
}

.faq-bar {
    width: 50px;
    height: 4px;
    background: #2f5be7;
    margin-bottom: 10px;
    border-radius: 10px;
}

.faq-title {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

/* KONTENER PRZEWIJANIA - OGRANICZONA WYSOKOŚĆ */
.faq-scroll {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 340px; /* Tutaj kontrolujesz wysokość całej sekcji pytań */
    overflow-y: auto;
    padding-right: 15px;
    scroll-behavior: smooth;
}

/* STYLIZACJA SUWAKA */
.faq-scroll::-webkit-scrollbar {
    width: 6px;
}
.faq-scroll::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}
.faq-scroll::-webkit-scrollbar-thumb {
    background: #2f5be7;
    border-radius: 10px;
}

/* KAFELKI PYTAŃ - SZEROKIE */
.faq-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.faq-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #1a1a1a;
}

.faq-item h3::before {
    content: '?';
    position: absolute;
    left: 0;
    color: #2f5be7;
    font-weight: bold;
}

.faq-item p {
    font-size: 14.5px;
    color: #666;
    line-height: 1.5;
}

/* ZDJĘCIE */
.faq-image {
    flex: 1;
    max-width: 450px;
}

.faq-image img {
    width: 100%;
    height: 420px; /* Wysokość dopasowana do nagłówka + okna pytań */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* PRZYCISK - CAŁKOWICIE UKRYTY NA KOMPUTERZE */
.faq-show-more {
    display: none !important;
}

/* ========================== RESPONSYWNOŚĆ FAQ ========================== */

@media (max-width: 768px) {
    .faq-container {
        flex-direction: column;
    }

    .faq-image {
        max-width: 100%;
        height: 250px;
        order: -1;
    }

    .faq-scroll {
        max-height: none; /* Wyłączamy suwak na mobile */
        padding-right: 0;
        overflow-y: visible;
    }

    /* Ukrywamy pytania od 4 wzwyż na mobile */
    .faq-item:nth-child(n+4) {
        display: none;
    }

    /* POKAZUJEMY PRZYCISK TYLKO NA MOBILE */
    .faq-show-more {
        display: block !important;
        width: 100%;
        margin-top: 20px;
        background: #2f5be7;
        color: white;
        border: none;
        padding: 12px;
        border-radius: 50px;
        font-weight: bold;
        cursor: pointer;
        text-align: center;
    }

    /* Gdy JS doda klasę expanded */
    .faq-scroll.expanded .faq-item:nth-child(n+4) {
        display: block;
        animation: fadeIn 0.4s ease;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================= SEKCJA KONIEC  ================================================== */

.koniec-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 484px;
    position: relative;
    width: 100%;
    background-image: url('koniec.jfif'); /* WPISZ TUTAJ NAZWĘ PLIKU */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efekt lekkiego paralaksy */
}

/* Ciemna nakładka na zdjęcie, żeby napis był czytelny */
.koniec-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Czarny z 50% przezroczystości */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.koniec-content {
    padding: 0 20px;
}

.koniec-content h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* PRZYCISK KONTAKT */
.btn-kontakt {
    display: inline-block;
    padding: 15px 40px;
    background: #2f69ff;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-kontakt:hover { 
    background: #ffffff; transform: translateY(-3px); 
    color: #000;
}

/* Responsywność */
@media (max-width: 768px) {
    .koniec-content h2 {
        font-size: 24px;
    }
    .koniec-section {
        height: 350px;
    }
}

/* ========================================================== Stopka ========================================================== */

.footer {
    background-color: #000;
    color: #fff;
    padding: 30px 0 20px 0; /* Zmień 60px na np. 30px, aby zmniejszyć odstęp */
    width: 100%;
}

.footer-container {
    /* Ustawiamy szerokość taką samą jak w slider-wrapper (1300px) */
    max-width: 1300px; 
    /* Margines auto wyśrodkuje ten kontener, więc jego krawędzie 
       pokryją się z krawędziami sliderów/cennika */
    margin: 0 auto;
    /* Padding boczny 70px - taki sam jak w .slider-wrapper, 
       żeby ikony nie dotykały krawędzi ekranu na mniejszych oknach */
    padding: 0 70px 20px 70px;
    
    display: flex;
    justify-content: space-between; /* Rozsuwa kontakt na lewo, a social na prawo */
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-left: 350px;
}
.footer-bottom a {
    color: #888;        /* ustawia kolor tekstu na biały */
    text-decoration: none; /* usuwa podkreślenie */
}
.footer-bottom {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #888;
    scroll-snap-align: none;
}

/* Reszta stylów bez zmian */
.footer-contact { display: flex; flex-wrap: wrap; gap: 30px; }
.footer-contact i{ padding-right: 3px; }
.contact-item a { color: #fff; text-decoration: none; transition: 0.3s; }
.contact-item a:hover, .footer-social a:hover { color: #2f69ff; }
.footer-social { display: flex; gap: 20px; font-size: 24px; }
.footer-social a { color: #fff; transition: 0.3s; }
.footer-social a:hover {
    color: #1a51e6; /* Ciemniejszy przy najechaniu */
    transform: translateY(-3px); /* Delikatne uniesienie */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.footer-bottom strong { color: #fff; }

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    /* Naprawa stopki */
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-left: 0;        /* KLUCZOWE: usuwamy ten boczny margines */
        padding: 0 20px;       /* Dajemy bezpieczny odstęp od krawędzi */
        width: 100%;           /* Pozwalamy jej zająć całą szerokość */
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 15px;
        align-items: center;    /* Centrujemy ikony i tekst */
    }

    .footer-social {
        justify-content: center; /* Centrujemy ikony IG/TikTok */
        width: 100%;
    }

    /* Opcjonalnie: poprawa nawigacji, jeśli też się rozjeżdża */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .navbar nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar nav a {
        margin: 0 10px;
        font-size: 14px;
    }
}
/*WOW*/