/* === PODSTAWOWE STYLE I RESET === */
:root {
    --primary-color: #2c3e50; /* Ciemny, elegancki granat */
    --secondary-color: #27ae60; /* Żywa, energetyczna zieleń */
    --background-color: #f4f4f4; /* Jasne tło dla sekcji */
    --text-color: #333;
    --white-color: #ffffff;
}

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

html {
    scroll-behavior: smooth; /* To jest magia, która robi płynne przewijanie! */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* === NAGŁÓWEK I NAWIGACJA === */
.main-header {
    background-color: var(--white-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-nav {
    display: flex;
    align-items: center; /* Tylko wyrównanie w pionie */
    max-width: 1280px;
    margin: 0 auto;
}

.nav-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
}

/* Główne linki nawigacyjne */
.nav-links {
    list-style: none;
    display: flex;
    /* KLUCZ DO CENTROWANIA: automatyczne marginesy */
    margin: 0 auto;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Przycisk "Zadzwoń" */
.nav-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap; /* Zapobiega łamaniu tekstu */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-button:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

/* Ukrywamy elementy mobilne na desktopie */
.hamburger-menu, .close-menu-btn, .nav-button-mobile {
    display: none;
}

/* === SEKCJE === */
/* Ten styl będzie dotyczył wszystkich sekcji OPRÓCZ hero */
section {
    padding: 80px 20px; /* Zwiększamy trochę pionowy padding */
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Jasne tło dla sekcji "O nas" i "Lokalizacja" */
#o-nas, #lokalizacja {
    background-color: var(--background-color);
}

/* === SEKCJA HERO === */
.hero-section {
    /* --- KLUCZOWE ZMIANY --- */
    max-width: none; /* Usuwamy ograniczenie szerokości z ogólnego stylu 'section' */
    width: 100%;      /* Nakazujemy sekcji zajmować 100% szerokości */
    padding: 0;       /* Usuwamy padding, aby tło dochodziło do krawędzi ekranu */
    
    /* --- Reszta stylów pozostaje podobna --- */
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    
    background-image: url('images/hero-jazwiny.webp'); /* Pamiętaj o podmianie zdjęcia */
    background-size: cover;
    background-position: center center;
    background-attachment: local;
}

/* Nakładka przyciemniająca tło (bez zmian) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Kontener na treść - teraz on trzyma naszą szerokość 1280px */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px; /* Ustawiamy taką samą szerokość jak dla innych sekcji */
    margin: 0 auto;    /* Centrujemy kontener z treścią */
    padding: 0 20px;   /* Dodajemy padding, aby tekst nie dotykał krawędzi na mobile */
}

.hero-section h1 {
    font-size: 3.2rem; /* Możemy lekko powiększyć */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #2ecc71;
    transform: translateY(-3px);
}

/* Poprawki dla mniejszych ekranów */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
}

/* === STOPKA === */
footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem; /* Możemy lekko zmniejszyć czcionkę */
}

/* --- NOWE, KLUCZOWE REGUŁY DLA LINKÓW W STOPCE --- */

/* Styl dla wszystkich linków (<a>) wewnątrz stopki (<footer>) */
footer a {
    color: inherit; /* Dziedziczy kolor tekstu od rodzica (w tym przypadku biały z 'footer') */
    text-decoration: underline; /* Dodajemy podkreślenie dla jasności, że to link */
    transition: color 0.3s ease; /* Płynne przejście koloru po najechaniu */
}

/* Styl dla linków po najechaniu myszką */
footer a:hover {
    color: var(--secondary-color); /* Zmienia kolor na naszą firmową zieleń */
}

/* === RESPONSIVE DESIGN (MOBILE-FIRST) === */
/* === NAKŁADKA (OVERLAY) === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* === MENU MOBILNE I RESPONSIVE DESIGN === */
@media (max-width: 960px) {
    .main-nav {
        justify-content: space-between; /* Na mobile przywracamy rozkład do krawędzi */
    }

    /* Ukrywamy menu desktopowe i pokazujemy elementy mobilne */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0; /* Resetujemy margines centrujący */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        padding-top: 60px; /* Robimy miejsce na przycisk 'X' */
    }

    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links li a { /* Zmieniamy selektor, aby nie dotyczył przycisku */
        color: var(--white-color);
        font-size: 1.3rem;
    }
    
    /* Ukrywamy przycisk desktopowy */
    .nav-button-desktop {
        display: none;
    }

    /* Pokazujemy hamburger, przycisk zamykania i mobilny przycisk Zadzwoń */
    .hamburger-menu, .close-menu-btn, .nav-button-mobile {
        display: block; /* lub flex dla hamburgera */
    }
    .hamburger-menu { display: flex; } /* Przywracamy flex dla hamburgera */

    /* Style dla przycisku zamykania 'X' */
    .close-menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: var(--white-color);
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
    }

    /* Style dla mobilnego przycisku "Zadzwoń" */
    .nav-button-mobile {
        margin-top: 40px; /* Duży odstęp od reszty linków */
        border: 2px solid var(--secondary-color);
        background-color: transparent; /* Przycisk "duch" */
    }
     .nav-button-mobile:hover {
        background-color: var(--secondary-color); /* Efekt po najechaniu */
        transform: none;
     }

    /* Hamburger */
    .hamburger-menu {
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-menu span {
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    /* AKTYWNE STANY PO KLIKNIĘCIU (bez zmian) */
    body.nav-open .nav-links { transform: translateX(0); }
    body.nav-open .overlay { opacity: 1; visibility: visible; }
    body.nav-open .hamburger-menu span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    body.nav-open .hamburger-menu span:nth-child(2) { opacity: 0; }
    body.nav-open .hamburger-menu span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}
/* === SEKCJA O NAS - UKŁAD I AKORDEON === */

/* Krok 1: Sprawiamy, że zewnętrzna sekcja jest pełnej szerokości */
#o-nas {
    max-width: none; /* Nadpisujemy ogólną regułę dla 'section' */
    width: 100%;
    padding: 80px 0; /* Usuwamy poziomy padding, zostawiamy pionowy */
    background-color: var(--background-color);
}

/* Krok 2: Ograniczamy i centrujemy wewnętrzny kontener z treścią */
#o-nas .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* Ten styl jest teraz bezpiecznie zamknięty w sekcji "O nas" */
    align-items: center;
    gap: 40px;
    text-align: left;
}

.column-left, .column-right {
    flex: 1;
}

.column-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-intro {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

/* --- Style Akordeonu (bez zmian) --- */
.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover, .accordion-header.active {
    color: var(--secondary-color);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.accordion-content p {
    padding-bottom: 20px;
    color: #444;
}

/* Responsywność dla sekcji O nas */
@media (max-width: 900px) {
    #o-nas .section-container {
        flex-direction: column; /* Zmiana układu na pionowy */
    }

    /* --- NOWE, KLUCZOWE REGUŁY --- */
    /* Nakazujemy obu kolumnom zajęcie pełnej szerokości */
    .column-left, .column-right {
        flex: none; /* Resetujemy właściwość flex */
        width: 100%;
    }

    /* Dodajemy odstęp pod sliderem, aby nie stykał się z nagłówkiem */
    .column-left {
        margin-bottom: 40px;
    }
    /* ------------------------------ */

    #o-nas h2, #o-nas .section-intro {
        text-align: center; /* Centrujemy tekst na mobile */
    }
}

/* === STYLE DLA SLIDERA ZDJĘĆ === */

.slider {
    position: relative;
    width: 100%;
    /* Ustaw proporcje obrazka, np. 4:3. Wysokość to 75% szerokości */
    padding-top: 75%; 
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gwarantuje, że obraz wypełni kontener bez zniekształceń */
}

/* Przyciski nawigacyjne */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 10px;
    border-radius: 5px 0 0 5px;
}

.slider-btn.next {
    right: 10px;
    border-radius: 0 5px 5px 0;
}

/* Kropki */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* === SEKCJA ZALET (FEATURES) === */

#features {
    max-width: none;
    width: 100%;
    padding: 0 0 80px 0; /* Usuwamy górny padding, zostawiamy dolny */
    background-color: var(--background-color);
}

#features .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    /* --- KLUCZOWA POPRAWKA --- */
    /* Resetujemy styl flex z poprzedniej sekcji do domyślnego bloku */
    display: block; 
}

#features h2 {
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    /* Nagłówki w kafelkach wyrównujemy do lewej dla lepszej czytelności */
    text-align: left;
}

/* Styl pojedynczego kafelka */
.feature-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.icon-container {
    width: 80px;
    height: 80px;
    margin-bottom: 20px; /* Usunęliśmy centrowanie auto, bo tekst jest do lewej */
    background-color: #e0f2f1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-container i {
    font-size: 36px;
    color: var(--secondary-color);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* --- RESPONSIVE DESIGN DLA KAFELKÓW --- */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* === SEKCJA OFERTA === */

#oferta {
    padding: 0; /* Usuwamy padding z głównej sekcji, będzie w podsekcjach */
}

.oferta-subsection {
    padding: 80px 0;
    width: 100%;
}

.oferta-subsection.dark-bg {
    background-color: var(--primary-color);
    margin: 0 20px; /* Dodajemy margines, aby zaokrąglenie było widoczne */
    border-radius: 20px; /* Zaokrąglamy rogi */
    width: auto; /* Pozwalamy, aby szerokość dopasowała się do marginesów */
}
.oferta-subsection.dark-bg h2, .oferta-subsection.dark-bg .section-intro {
    color: var(--white-color);
}

#oferta .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    /* Upewniamy się, że nie jest to flexbox */
    display: block; 
}

#oferta .section-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.map-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-top: 40px; /* Dodatkowy odstęp od tekstu powyżej */
}


/* --- Style dla Karuzeli Swiper.js --- */
.swiper-container {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 50px;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 550px; /* Zwiększamy szerokość slajdów bocznych */
    height: 380px; /* Zwiększamy wysokość */
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0.5;
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* Potrzebne do pozycjonowania ikony */
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Magia dzieje się tutaj - aktywny slajd */
.swiper-slide-active {
    transform: scale(1.3); /* Jeszcze bardziej powiększamy środkowy slajd */
    opacity: 1;
    z-index: 1;
}

/* Style dla przycisków nawigacji */
.swiper-button-next, .swiper-button-prev {
    color: var(--white-color);
    transform: translateY(-50%);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 30px;
    font-weight: bold;
}

/* Responsywność dla karuzeli */
@media (max-width: 768px) {
    .swiper-slide {
        width: 300px;
        height: 200px;
    }
    .swiper-slide-active {
        transform: scale(1.15);
    }
}


/* --- Style dla sekcji z rzutem domu --- */
#oferta .floor-plan-container {
    display: flex;
    align-items: center;
    gap: 50px; /* Możemy lekko zwiększyć odstęp */
    text-align: left;
}

/* Krok 2: Upewniamy się, że style dla kolumn są stosowane poprawnie */
.floor-plan-container .column-left, 
.floor-plan-container .column-right {
    flex: 1; /* Przywracamy równy podział przestrzeni */
}

.floor-plan-container .column-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.room-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.room-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.room-list li span {
    font-weight: 500;
    color: var(--primary-color);
}

/* Responsywność dla rzutu (bez zmian) */
@media (max-width: 900px) {
    #oferta .floor-plan-container {
        flex-direction: column;
    }
    .floor-plan-container h2 {
        text-align: center;
    }
}
/* === STYLE DLA IKONY LUPY I LIGHTBOXA === */

/* Ikona lupy na slajdzie */
.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    opacity: 0; /* Domyślnie ukryta */
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 2; /* Musi być nad obrazkiem */
}

.zoom-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Pokazujemy ikonę tylko na aktywnym slajdzie */
.swiper-slide-active .zoom-icon {
    opacity: 1;
}

/* Kontener lightboxa */
.lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Obraz w lightboxie */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Przycisk zamykania lightboxa */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white-color);
    font-size: 3rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* === SEKCJA LOKALIZACJA === */

#lokalizacja {
    max-width: none;
    width: 100%;
    padding: 80px 0;
    background-color: var(--background-color); /* To samo jasne tło */
}

/* Ustawiamy flexbox tylko dla kontenera w tej sekcji */
#lokalizacja .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

#lokalizacja .column-left {
    flex: 1; /* Obie kolumny równe */
    text-align: left;
}

#lokalizacja .column-right {
    flex: 1;
}

#lokalizacja h2 {
    text-align: left;
}

/* Lista z lokalizacjami */
.location-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    border-top: 1px solid #ddd; /* Linia oddzielająca na górze */
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid #ddd;
}

.location-text {
    display: flex;
    align-items: center;
}

.location-text i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 20px;
    width: 30px; /* Stała szerokość dla ikony dla lepszego wyrównania */
    text-align: center;
}

.location-text span {
    font-size: 1.1rem;
    font-weight: 500;
}

.location-distance {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap; /* Zapobiega łamaniu */
    padding-left: 20px;
}

/* Mapa Google */
#lokalizacja iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE DESIGN DLA LOKALIZACJI --- */
@media (max-width: 960px) {
    #lokalizacja .section-container {
        flex-direction: column; /* Układ pionowy na mobile */
    }

    #lokalizacja h2, #lokalizacja .section-intro {
        text-align: center; /* Centrujemy tekst na mobile */
    }
}

/* === SEKCJA KONTAKT (WERSJA OSTATECZNA) === */

/* Krok 1: Sprawiamy, że główny kontener sekcji jest pełnej szerokości */
#kontakt {
    max-width: none; /* KLUCZOWA POPRAWKA: Nadpisujemy globalne ograniczenie szerokości */
    width: 100%;
    padding: 0; /* Usuwamy padding, aby dzieci mogły być pełnej szerokości */
}

/* Krok 2: Górny panel "Zadzwoń do nas" - ma już 100% szerokości */
.contact-callout {
    padding: 60px 0;
    background-image: linear-gradient(to bottom right, var(--primary-color), #1c2a38);
    color: var(--white-color);
    text-align: center;
}

/* Wewnętrzny kontener w callout, który centruje treść (bez zmian) */
.contact-callout .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-callout h2 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.callout-phone-number {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.callout-phone-number:hover {
    transform: scale(1.05);
}

.callout-phone-number i {
    margin-right: 10px;
}

/* Krok 3: Kontener na formularz - teraz ma tło i padding */
#kontakt > .section-container {
    padding: 80px 20px; /* KLUCZOWA POPRAWKA: Dodajemy padding, w tym dolny, który oddzieli formularz od stopki */
    background-color: var(--background-color); /* Tło dla formularza jest tutaj */
}


/* Formularz kontaktowy - jego style pozostają bez zmian */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Reszta stylów formularza (bez zmian) */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.form-group i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
}
.form-group textarea + i {
    top: 25px;
    transform: none;
}

.contact-form .cta-button {
    width: 100%;
    font-size: 1.2rem;
    padding: 18px 30px;
}
/* === DODATKOWE STYLE DLA FORMULARZA KONTAKTOWEGO === */

/* Czerwona gwiazdka dla pól wymaganych (POPRAWIONA) */
/* Dodajemy :not(.checkbox-group), aby wykluczyć ten element z tej reguły */
.form-group.required:not(.checkbox-group)::after {
    content: '*';
    position: absolute;
    top: 8px;
    right: 8px;
    color: #e74c3c; /* Czerwony kolor */
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
}
/* Poprawka dla pola textarea */
.form-group.required textarea + i + ::after {
    top: 15px;
}

/* Styl dla grupy z checkboxem (POPRAWIONY) */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Wyrównuje górę checkboxa z górą tekstu */
    text-align: left;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    /* KLUCZOWE ZMIANY */
    flex-shrink: 0; /* Zapobiega kurczeniu się checkboxa */
    margin: 3px 10px 0 0; /* Mały margines górny dla idealnego wyrównania + odstęp z prawej */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4; /* Poprawia czytelność wieloliniowego tekstu */
}

/* Link wewnątrz labelki */
.checkbox-group label a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}
.checkbox-group label a:hover {
    color: var(--secondary-color);
}

/* Gwiazdka dla checkboxa - pozostaje bez zmian */
.checkbox-group.required label::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}

/* Komunikaty o statusie wysyłki */
.form-message {
    display: none; /* Domyślnie ukryte */
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.error {
    background-color: #fbeae5;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.form-message.success {
    background-color: #eaf7eb;
    color: #27ae60;
    border: 1px solid #27ae60;
}

/* === SEKCJA GALERIA === */

#galeria {
    padding: 80px 0;
}

#galeria .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

#galeria h2 {
    margin-bottom: 1rem;
}

#galeria .section-intro {
    margin-bottom: 50px;
}

/* Siatka galerii */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* To jest kluczowe dla efektu zoom */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 300px; /* Stała wysokość dla spójnego wyglądu */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gwarantuje wypełnienie bez zniekształceania */
    transition: transform 0.4s ease-in-out;
}

/* Efekt powiększenia po najechaniu */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Pokazujemy ikonę lupy po najechaniu */
.gallery-item:hover .zoom-icon {
    opacity: 1;
}

/* Pozycjonowanie ikony lupy (dziedziczy styl z lightboxa) */
.gallery-item .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* Większa, bardziej widoczna ikona */
    height: 60px;
    font-size: 1.5rem;
}

/* --- RESPONSIVE DESIGN DLA GALERII --- */

/* Dla tabletów - 2 kolumny */
@media (max-width: 960px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dla telefonów - 1 kolumna */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 250px; /* Nieco mniejsza wysokość na mobile */
    }
}

/* === BANER ZGODY NA PLIKI COOKIES (WERSJA DYMEK) === */

.cookie-consent-banner {
    position: fixed;
    bottom: 20px; /* Odstęp od dołu */
    left: 20px;   /* Odstęp z lewej */
    max-width: 450px; /* Ograniczamy szerokość, aby nie rozciągał się na całą stronę */
    
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(5px);
    color: var(--white-color);
    
    padding: 25px;
    border-radius: 15px; /* Zaokrąglone rogi dla efektu dymka */
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    
    z-index: 9998;
    
    /* Domyślnie ukryty i przesunięty w dół */
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

/* Klasa .active pokazuje baner z płynną animacją */
.cookie-consent-banner.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.cookie-consent-banner p {
    margin: 0 0 20px 0; /* Odstęp pod tekstem */
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-banner a {
    color: var(--white-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 15px; /* Odstęp między przyciskami */
}

.cookie-consent-banner .cta-button {
    padding: 10px 25px;
    font-size: 0.9rem;
    flex-grow: 1; /* Przyciski dzielą się przestrzenią */
}

/* Styl dla przycisku "Odrzuć" */
.cookie-consent-banner .cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}
.cookie-consent-banner .cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* Responsywność dla dymka */
@media (max-width: 500px) {
    .cookie-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none; /* Dymek zajmuje prawie całą szerokość na mobile */
    }
}

/* === STYLE DLA PODSTRON TEKSTOWYCH === */
.text-page {
    padding: 100px 20px;
    text-align: left;
}
.text-page h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
}
.text-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* === PŁYWAJĄCY PRZYCISK KONTAKTOWY === */

/* Pływający przycisk */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
    text-decoration: none; /* Usuwamy podkreślenie z linku */
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    animation-play-state: paused; /* Zatrzymujemy pulsowanie po najechaniu */
}

/* Animacja pulsowania (bez zmian) */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(39, 174, 96, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}