/* 1. GLOBALNE RESETOWANIE - Zapobiega rozjeżdżaniu się strony */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Kluczowe: padding nie dodaje się do szerokości */
}


html, body {
    width: 100%;
    background-color: #f9f9f7; /* Jasny kolor pod spodem, żeby było widać łuki Hero */
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. NAWIGACJA - PERFEKCYJNE WYŚRODKOWANIE
   ========================================= */
header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100px; 
    z-index: 1000;
    display: flex;
    justify-content: center; 
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* --- STAN: CHOWANIE (SCROLL W DÓŁ) --- */
.header-hidden {
    transform: translateY(-100%); 
}

/* --- STAN: STICKY (SCROLL W GÓRĘ) --- */
.header-sticky {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    height: 105px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- ZMIANA KOLORU LINKÓW W STICKY NAV --- */
.header-sticky nav ul li a {
    color: #1a1a1a; 
    text-shadow: none; 
}

.header-sticky .logo img {
    height: 100px; 
    filter: brightness(0.2); 
}

.header-sticky nav ul li a:hover {
    color: #436d58;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 60px; /* Równe odstępy gwarantują symetrię */
    padding: 0;
    margin: 0;
}



/* LINKI - POGRUBIENIE BEZ PRZESUWANIA */
nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: 0.9; 
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul li a:hover {
    opacity: 1;
    text-shadow: 0.5px 0 0 #fff, -0.2px 0 0 #fff; 
}

/* LOGO - KLIKALNE I WYŚRODKOWANE */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px; /* Ta sama szerokość co wcześniej */
    height: 100%;
    position: relative;
}

/* Styl dla linku wewnątrz LI.logo */
.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    opacity: 1 !important; /* Blokuje przezroczystość linków */
    text-shadow: none !important; /* Blokuje cień tekstu */
}

/* LOGO - STABILIZACJA ROZMIARU */
.logo img {
    height: 90px; /* Wysokość bez zmian */
    width: auto;
    display: block;
    position: absolute; 
    z-index: 101;
    /* Parametry przejścia bez zmian */
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
    transform: translateY(5px) scale(1); 
    will-change: height, transform; 
    
    /* --- ZMIANA TUTAJ: Filtry robiące logo białym --- */
    filter: brightness(0) invert(1); 
}

/* LOGO W STANIE STICKY */
.header-sticky .logo img {
    height: 100px; 
    transform: translateY(0) scale(1); 
    
    /* --- ZMIANA TUTAJ: W sticky też ma być białe --- */
    filter: brightness(0) invert(1); 
    filter: brightness(0.2);
} 

/* Logo nie może stać się przezroczyste na hoverze - bez zmian */
.logo a:hover {
    opacity: 1 !important;
}

/* 3. SEKCJA HERO */
#home {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 10; /* DODANE: Wymusza Hero na wierzch, nad sekcję poniżej */
    
    /* ŁĄCZYMY TRZY WARSTWY: Cień góra + Cień lewo + Zdjęcie */
    background: 
        /* 1. Miękki cień od góry (rozmyty na 30% ekranu) */
        linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 30%),
        /* 2. Twój sprawdzony gradient od lewej */
        linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 30%, transparent 60%), 
        /* 3. Zdjęcie */
        url('/static/img/index/hero-img.png') no-repeat center center;
        
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    overflow: hidden;
    padding-left: 10%;
}

/* Twoja typografia i cienie - nienaruszone */
h1 {
    font-size: 69px;
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        2px 2px 10px rgba(0, 0, 0, 0.6),
        0px 10px 40px rgba(0, 0, 0, 0.7);
}

#home p {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 50px;
    max-width: 500px;
    font-weight: 400;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2; /* Wynosi tekst nad pseudo-element tła */
    max-width: 700px;
}

/* 4. PRZYCISKI */
.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #436d58; 
    color: #fff;
    border: 1px solid #436d58;
}

.btn-primary:hover {
    background-color: #355746;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #fff;
    color: #1a1a1a;
    border: 1px solid #fff;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

/* WSPÓLNE PEŁNE TŁO */
#strefa-biofeedback {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('/static/img/index/ll3.png') no-repeat center center;
    background-size: cover;
    
    /* ZMIANA: Zwiększyłem ostatnią wartość (padding na dole) aż do 250px. 
       To "pompuje" ciemne zdjęcie w dół, dając nam mnóstwo miejsca. */
    padding: 180px 0 250px 0; 
    margin-top: -80px;
    z-index: 1;
    
    color: #1a1a1a;
}

/* KONTENER ŚRODKOWY */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* TYPOGRAFIA */
#strefa-biofeedback h2 {
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

/* KARTY - STYL SAGE GREEN Z PROJEKTU */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 120px;
}

.cards-container article {
    /* Przezroczysta zieleń/szarość, żeby tło było widać pod spodem */
    background-color: rgba(230, 234, 228, 0.85); 
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
    /* Efekt rozmycia tła (glassmorphism) */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cards-container article:hover {
    transform: translateY(-10px);
}

/* ZAMIEŃ TYLKO TEN FRAGMENT */
/* 1. BAZA IKONY - Ustawiamy rozmiar i przygotowujemy na animację */
.cards-container article img {
    height: 160px;
    width: auto;
    margin-bottom: 15px; /* Minimalny margines, by karta nie rosła */
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Kluczowe: bardzo płynne przejście z krzywą cubic-bezier (naturalny, miękki ruch) */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

/* 2. MAGIA HOVERA - Kiedy myszka jest na karcie, ikona reaguje */
.cards-container article:hover img {
    /* Ikona powiększa się o 10% i lekko "lewituje" do góry */
    transform: scale(1.1) translateY(-8px);
    /* Dodajemy pod nią miękki, zielonkawy cień, który tworzy efekt 3D */
    filter: drop-shadow(0 15px 12px rgba(67, 109, 88, 0.3));
}
/* SEKCJA METODA - SPÓJNY KOLOR I PREMIUM HOVER */
.method-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Używamy koloru z głównego przycisku CTA! */
    background-color: #436d58; 
    padding: 70px 80px;
    border-radius: 30px;
    /* Cień dopasowany do koloru tła, żeby element nie był "płaski" */
    box-shadow: 0 20px 40px rgba(67, 109, 88, 0.3); 
}

#strefa-biofeedback .method-block h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 38px;
    font-weight: 500;
}

.method-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* LINK "CZYTAJ WIĘCEJ" */
.method-block .btn-more {
    position: relative; /* Wymagane dla animowanej linii pod spodem */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding-bottom: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Tworzymy linię schowaną do zera (jak w Twojej nawigacji) */
.method-block .btn-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

/* EFEKT HOVER */
.method-block .btn-more:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); /* Subtelny blask */
}

.method-block .btn-more:hover::after {
    width: 100%; /* Linia płynnie wyjeżdża od lewej strony */
}

/* SEKCJA LOKALIZACJA - Jasna, elegancka alternatywa dla drewna */
/* =========================================
   CZYSTE, WSPÓLNE TŁO DLA LOKALIZACJI I REZERWACJI
   ========================================= */
#jasna-strefa-dolna {
    position: relative;
    width: 100%;
    background-color: #f9f9f7; 
    border-top-left-radius: 80px;  
    border-top-right-radius: 80px;
    
    /* ZMIANA: To musi być ujemne! -80px sprawia, że łuki nasuwają się na ciemne zdjęcie. Białe rogi znikają. */
    margin-top: -80px; 
    
    z-index: 5; 
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.15); 
    padding-bottom: 100px; 
}

/* Obie sekcje wewnątrz muszą być przezroczyste, aby pokazać wspólne tło */
#lokalizacja, #rezerwacja {
    position: relative;
    background: transparent; /* Zabezpieczenie przed dziwnymi odcięciami */
    z-index: 2;
}

/* =========================================
   TWOJA SEKCJA LOKALIZACJA 
   ========================================= */
#lokalizacja {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 150px 10% 80px 10%; 
}

/* KONTENER ZDJĘCIA */
.location-image {
    flex: 1;
    max-width: 550px;
    position: relative;
}

/* STYL ZDJĘCIA LOKALIZACJI */
.location-image img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    display: block;
    transition: transform 0.5s ease;
}

.location-image img:hover {
    transform: scale(1.02);
}

/* KONTENER TEKSTU */
.location-text {
    flex: 1;
    max-width: 500px;
}

.location-text h2 {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: #1a1a1a;
}

.location-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #444; 
    margin-bottom: 40px;
}

/* LINK / PRZYCISK (Z luksusowym hoverem) */
.location-text a {
    display: block; /* Zmiana z inline-block, aby link zajął własną linię */
    width: fit-content; /* Dopasowuje szerokość bloku idealnie do długości tekstu */
    margin: 20px auto; /* Automatyczne marginesy po bokach wyśrodkują tekst, a 20px da mu "oddech" z góry i z dołu */
    
    /* Reszta Twoich pięknych stylów (bez zmian): */
    color: #436d58; 
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding-bottom: 5px;
    transition: transform 0.3s ease;
}

.location-text a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #436d58;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.location-text a:hover {
    transform: translateX(8px); 
}

.location-text a:hover::after {
    transform-origin: left;
    transform: scaleX(0); 
}

/* =========================================
   SEKCJA LOKALIZACJI - STYLIZACJA MAPY
   ========================================= */
.map-wrapper {
    margin: 30px 0; /* Ładny odstęp między tekstem a linkiem poniżej */
    width: 100%;
    height: 260px; /* Idealna wysokość, by nie przytłoczyć tekstu */
    border-radius: 24px; /* Mocne zaokrąglenie rogów, dopasowane do kart cennika */
    overflow: hidden; /* Kluczowe: "odcina" ostre rogi samej mapy Google */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06); /* Luksusowy, bardzo miękki cień */
    border: 1px solid rgba(67, 109, 88, 0.15); /* Delikatna ramka w kolorze Twojej zieleni */
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Delikatne uniesienie mapy po najechaniu myszką */
.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none; /* Usuwa domyślną, brzydką ramkę iframa */
    display: block;
}

/* =========================================
   TWOJA SEKCJA REZERWACJI - SPÓJNA KARTA PREMIUM
   ========================================= */
#rezerwacja {
    text-align: center;
    /* Tworzymy piękną, pływającą kartę zamiast zwykłego tekstu */
    max-width: 1000px;
    margin: 90px auto 150px auto; /* Centruje kartę i daje duży odstęp na dole */
    padding: 80px 8%;
    
    background-color: #436d58; /* IDEALNA SPÓJNOŚĆ: Ten sam zielony co reszta akcentów na stronie */
    border-radius: 40px; /* Nawiązanie do zaokrąglenia zdjęcia gabinetu */
    box-shadow: 0 30px 60px rgba(67, 109, 88, 0.25); /* Miękki, dopasowany kolorystycznie cień */
    
}

#rezerwacja h2 {
    font-size: 42px;
    font-weight: 500;
    color: #ffffff; /* Czysta biel na zielonym tle */
    margin-bottom: 25px;
    letter-spacing: -1px;
}

#rezerwacja p {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9); /* Lekko zgaszona biel, by nie razić w oczy */
    max-width: 650px;
    margin: 0 auto 50px auto; 
}

/* =========================================
   LUKSUSOWY PRZYCISK (GLASS SWEEP & EXPAND)
   ========================================= */
/* =========================================
   LUKSUSOWY PRZYCISK - WERSJA ULTRA PŁYNNA
   ========================================= */
.btn-cta-premium {
    position: relative;
    overflow: hidden; 
    background-color: #ffffff;
    color: #436d58; 
    border: none;
    padding: 22px 55px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    z-index: 1;
    
    /* ZMIANA: Wydłużony czas (0.6s) i łagodniejsza krzywa (ease-in-out) dla absolutnej płynności */
    transition: all 0.6s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Fala światła */
.btn-cta-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(67, 109, 88, 0) 0%, 
        rgba(67, 109, 88, 0.08) 50%, 
        rgba(67, 109, 88, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: -1;
    /* ZMIANA: Światło też przelatuje odrobinę bardziej miękko */
    transition: left 0.8s ease-in-out;
}

/* HOVER - TYLKO ŚWIATŁO I SUBTELNY ODDECH */
.btn-cta-premium:hover {
    /* USUNIĘTO: transform: translateY(-5px); - przycisk już nie skacze! */
    
    /* ZMIANA: Tylko delikatne muśnięcie spacji między literami (z 1px na 1.5px) */
    letter-spacing: 1.5px; 
    
    /* Miękki, rozproszony blask bez podnoszenia pudełka */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-cta-premium:hover::before {
    left: 150%; 
}

/* =========================================
   9. CIEMNA, ELEGANCKA STOPKA (FOOTER)
   ========================================= */
footer {
    background-color: #17211a; 
    color: rgba(255, 255, 255, 0.7); 
    
    /* ZMIENIONE: 60px -> 20px na dole */
    padding: 100px 10% 20px 10%; 
    
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    margin-top: -60px; 
    position: relative;
    z-index: 6; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 40px;
}

/* --- TYPOGRAFIA W STOPCE --- */
.footer-contact p {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* --- LINKI TEKSTOWE (Telefon, Email) --- */
.footer-contact a {
    color: #ffffff; 
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #436d58; 
    text-shadow: 0 0 10px rgba(67, 109, 88, 0.4);
}

/* --- UKŁAD IKON SOCIAL MEDIA (Okrągłe Przyciski) --- */
.footer-socials {
    display: flex;
    gap: 15px; /* Odstęp między kółeczkami */
    align-items: center;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03); /* Delikatne szklane tło */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtelna ramka */
    border-radius: 50%; /* Koło */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover dla ikon social media */
.footer-socials a:hover {
    background-color: #436d58; 
    border-color: #436d58;
    color: #ffffff;
    transform: translateY(-5px); /* Uniesienie kółka */
    box-shadow: 0 10px 20px rgba(67, 109, 88, 0.4); /* Zielona poświata */
}

/* --- LOGO W STOPCE --- */
.footer-logo {
    display: flex;
    justify-content: flex-end; 
    position: relative; 
    width: 150px;       
    height: 70px;      
}

.footer-logo img {
    position: absolute;
    bottom: -30px; 
    right: -110px;
    height: 150px; 
    width: auto;
    opacity: 0.4; 
    filter: grayscale(100%); 
    transition: all 0.4s ease;
    z-index: 10;   
}

.footer-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- DOLNY PASEK COPYRIGHT --- */
.footer-bottom {
    width: 100%; 
    text-align: center;
    margin-top: 20px; /* Zmniejszony odstęp nad linią (było 40px) */
    padding-top: 20px; /* Zmniejszony odstęp pod linią (było 25px) */
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5); 
    letter-spacing: 0.5px;
    margin: 0; /* Upewniamy się, że paragraf nie dodaje własnych, ukrytych marginesów */
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #436d58; 
}

/* --- TELEFONY (poniżej 768px) --- */
@media (max-width: 768px) {
    header {
            /* Usunięto stare tło i dodano płynny gradient zanikający do całkowitej przezroczystości */
            background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            
            height: auto !important;
            padding: 20px 0 15px 0;
            flex-direction: column;
            border: none !important; /* Upewniamy się, że nie ma żadnej ramki na dole */
        }

        /* --- NAPRAWA STICKY MENU NA TELEFONIE --- */
    .header-sticky {
        background: rgba(255, 255, 255, 0.98) !important; /* Wymusza solidne, białe tło przy scrollowaniu */
        padding: 12px 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important; /* Dodaje delikatny cień pod menu, żeby odciąć je od reszty strony */
    }

    .header-sticky nav ul li a {
        color: #1a1a1a !important; /* Ciemne napisy na białym tle */
        text-shadow: none !important; /* Usuwamy cień z napisów, żeby były ostre */
    }
    
    .header-sticky .logo img {
        filter: brightness(0.2) !important; /* Ciemne logo do kompletu */
    }

    .logo {
        margin-bottom: 12px;
        width: auto;
    }

    .logo img {
        height: 45px !important;
        position: relative;
        transform: none !important;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 12px;
        padding: 0 10px;
        overflow-x: auto;
    }


    nav ul li a {
        font-size: 10px;
        letter-spacing: 1px;
        white-space: nowrap;
        font-weight: 700;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    /* --- HERO DLA TELEFONU --- */
    #home {
        padding-left: 5%;
        padding-right: 5%;
        padding-top: 100px;
        justify-content: center;
        text-align: center;
    }

    h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    #home p {
        font-size: 15px;
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 15px;
        font-size: 13px;
    }

    /* --- NAPRAWA NAKŁADANIA SIĘ TEKSTU --- */
    #strefa-biofeedback {
        /* Globalnie jest margin-top: -80px, więc musimy dać odpowiednio duży padding-top (np. 140px), żeby odepchnąć napisy w dół! */
        padding: 140px 0 100px 0 !important; 
    }

    /* Formatowanie nagłówka "Z czym się zmagasz?" na telefony */
    .content-block h2 {
        margin: 0 auto 30px auto !important;
        padding: 0 15px !important;
        font-size: 26px !important;
        line-height: 1.2 !important;
        color: #1a1a1a !important;
        position: relative;
        z-index: 2;
    }

    /* Kafelki - zostają kompaktowe */
    .cards-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100%;
        padding: 0 10px !important;
        margin-bottom: 60px !important; /* Dystans przed zieloną kartą Metody */
    }

    .cards-container article {
        background: #ffffff !important;
        padding: 20px 15px !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(67, 109, 88, 0.08) !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 180px;
    }

    .cards-container article img {
        height: 40px !important;
        width: auto;
        margin-bottom: 12px !important;
        filter: drop-shadow(0 2px 4px rgba(67, 109, 88, 0.1));
    }

    .cards-container article h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 700;
        color: #436d58;
        margin-bottom: 8px !important;
    }

    .cards-container article p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        color: #666;
        margin: 0 !important;
    }

    /* --- KARTA METODA NA TELEFON --- */
    .method-block {
        max-width: 90%;
        margin: 80px auto;
        padding: 50px 8% 40px 8% !important; 
        background: 
            linear-gradient(rgba(67, 109, 88, 0.98), rgba(67, 109, 88, 0.98)),
            url('/static/img/nature-texture.jpg') no-repeat center center;
        background-size: cover;
        border-radius: 40px !important; 
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    #strefa-biofeedback .method-block h2 {
        color: #ffffff !important;
        font-size: 26px !important; 
        line-height: 1.2 !important; 
        max-width: 400px; 
        margin: 0 auto 20px auto !important;
        font-weight: 500;
        letter-spacing: -0.5px;
    }

    .method-block p {
        color: rgba(255, 255, 255, 0.85) !important; 
        font-size: 15px !important; 
        line-height: 1.6 !important;
        margin-bottom: 30px !important; 
        font-weight: 400;
        letter-spacing: 0.2px;
    }

    .method-block .btn-more {
        position: relative;
        color: #436d58 !important; 
        text-decoration: none;
        padding: 12px 25px !important;
        background-color: #ffffff !important;
        border-radius: 30px !important; 
        font-weight: 600;
        font-size: 15px !important;
        letter-spacing: 0px;
        transition: all 0.3s ease;
        display: inline-block; 
    }

    .method-block .btn-more::after {
        display: none !important;
    }

    .method-block .btn-more:hover {
        background-color: rgba(255,255,255,0.9) !important;
        transform: translateY(-3px); 
    }
    
    /* --- POZOSTAŁE SEKCJE NA TELEFON --- */
    #lokalizacja {
        flex-direction: column;
        padding: 120px 5% 50px 5%;
        gap: 30px;
        text-align: center;
    }
    
    .location-text h2 {
        font-size: 32px;
    }
    
    #rezerwacja {
        margin: 60px auto 70px auto;
        padding: 50px 5%;
        border-radius: 30px;
        max-width: 90%;
    }
    
    #rezerwacja h2 {
        font-size: 28px;
    }
    
    .btn-cta-premium {
        padding: 18px 30px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }

    /* --- STOPKA (FOOTER) NA TELEFON - WERSJA KOMPAKTOWA --- */
    footer {
        padding: 40px 5% 30px 5% !important; /* Znacznie ucięte marginesy górny i dolny */
        border-top-left-radius: 30px !important; /* Jeszcze delikatniejsze zaokrąglenie */
        border-top-right-radius: 30px !important;
        margin-top: -20px !important; 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 15px !important; /* O połowę mniejszy odstęp między sekcjami w stopce */
    }

    .footer-contact {
        width: 100%;
    }

    .footer-contact p {
        font-size: 14px !important; /* Odrobinę mniejszy, zgrabniejszy tekst */
        margin-bottom: 5px !important;
        line-height: 1.6 !important;
    }

    .footer-socials {
        width: 100%;
        justify-content: center !important; 
        margin: 5px 0 !important; /* Mniej pustego miejsca wokół ikon */
    }

    /* Trochę mniejsze ikony social media */
    .footer-socials a {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    .footer-logo {
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
        margin-top: 5px !important;
    }

    .footer-logo img {
        position: static !important; 
        height: 60px !important; /* Zmniejszone logo (wcześniej było 90px) */
        opacity: 0.4 !important; 
        transform: none !important;
        filter: grayscale(100%) !important;
    }

    /* --- DOLNY PASEK COPYRIGHT (WERSJA MOBILNA) --- */
    .footer-bottom {
        margin-top: 20px !important;
        padding-top: 15px !important;
        padding-bottom: 5px !important;
        width: 100% !important;
    }

    .footer-bottom p {
        font-size: 11px !important; /* Zmniejszamy czcionkę na telefonie */
        line-height: 1.8 !important; /* Większy odstęp między linijkami, gdy tekst się złamie */
        padding: 0 15px !important; /* Zabezpiecza tekst przed dotykaniem bocznych krawędzi ekranu */
        color: rgba(255, 255, 255, 0.4) !important; /* Odrobinę bardziej przygaszony kolor */
    }
    
    .footer-bottom a {
        font-size: 11px !important;
    }
}

/* --- EKSTREMALNIE MAŁE EKRANY (poniżej 400px) --- */
@media (max-width: 400px) {
    nav ul {
        grid-template-columns: 1fr 1fr;
    }
    
    .logo {
        grid-column: 1 / span 2;
        margin-bottom: 5px;
    }
    
    nav ul li a {
        font-size: 9px;
    }
    
    .cards-container {
        grid-template-columns: 1fr !important; /* Kafelki w jednej kolumnie na bardzo małych ekranach */
    }
}

