:root {
    /* Nowa, głębsza zieleń w stylu Eneris */
    --primary-color: #007F4F; 
    --secondary-color: #005C3A;
    --dark-color: #333;
    --light-gray: #f4f4f4;
    --white: #fff;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-color);
}

/* --- Header & Nav --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Padding przeniesiony do elementów listy */
}

.logo img {
    height: 50px;
    vertical-align: middle;
    padding: 10px 0;
}

/* =========================================
   NAWIGACJA Z DROPDOWNAMI (Nowy kod)
   ========================================= */

/* Kontener menu */
.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Elementy listy głównej */
.main-menu > li {
    position: relative; /* Ważne dla pozycjonowania dropdownu */
    padding: 20px 0; /* Powiększone pole aktywne góra/dół */
}

/* Linki główne */
.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    padding: 0 15px;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px; /* Odstęp między tekstem a strzałką */
}

/* Strzałka w dół */
.arrow {
    font-size: 0.6rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

/* Efekt najechania na link główny */
.nav-link:hover, .main-menu > li:hover .nav-link, .nav-link.active {
    color: var(--primary-color);
}

/* Obracanie strzałki po najechaniu */
.main-menu > li:hover .arrow {
    transform: rotate(180deg);
}

/* --- MENU ROZWIJANE (DROPDOWN) --- */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Wyświetlaj pod elementem rodzica */
    left: 0;
    background-color: #fff;
    min-width: 220px; /* Szerokość menu */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Cień */
    border-top: 3px solid var(--primary-color); /* Zielony pasek na górze */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    
    /* Ukrywanie domyślne */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

/* Pokazywanie menu po najechaniu na LI */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Linki wewnątrz dropdownu */
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 25px; /* Lekkie przesunięcie w prawo */
}

/* --- HERO SECTION --- */
.hero {
    /* Pamiętaj o zdjęciu tła w folderze images */
    background: url('../images/hero.jpg') no-repeat center center/cover;
    height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 30, 20, 0.6);
    z-index: 1;
}

.hero .container {
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* =========================================
   SEKCJA KAFELKÓW (WOLNIEJSZA ANIMACJA)
   ========================================= */

.section-padding { 
    padding: 80px 0; 
}

/* Siatka kafelków */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Bazowy wygląd kafelka */
.tile {
    position: relative;
    height: 350px; 
    border-radius: 8px;
    overflow: hidden; 
    cursor: pointer;
    background-color: #333;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 1. Domyślny napis na dole (widoczny przed najechaniem) */
.tile-default-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
    
    /* Czas: 0.6s */
    transition: opacity 0.6s ease;
}

.tile-default-content h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 2. Warstwa "wjeżdżająca" (Zielona) */
.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 127, 79, 0.95); 
    color: var(--white);
    
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start;
    padding: 30px;
    box-sizing: border-box;
    
    transform: translateY(100%); 
    
    /* Czas: 0.8s */
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.tile-overlay h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    width: 100%;
}

.tile-overlay p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Przycisk wewnątrz overlay */
.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* --- INTERAKCJA (HOVER) --- */
.tile:hover .tile-overlay {
    transform: translateY(0);
}
.tile:hover .tile-default-content {
    opacity: 0;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .main-menu { display: none; } /* Tu przydałoby się menu mobilne (hamburger) */
    .hero h1 { font-size: 2rem; }
    .hero { height: 60vh; }
}

/* =========================================
   NOWA STOPKA (ZIELONA)
   ========================================= */

footer {
    background-color: var(--primary-color); 
    color: #fff;
    padding-top: 60px;
    padding-bottom: 20px;
    font-size: 0.95rem;
    text-align: left;
}

/* Układ kolumn w stopce */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2); 
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    padding: 0;
}

.footer-column ul li a:hover {
    color: #c8e6c9; 
}

/* Kolumna z Logo i Przyciskiem */
.footer-logo-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    justify-content: space-between;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1); 
}

/* --- PRZYCISK POWROTU Z ANIMACJĄ --- */
.back-home-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    group: hover;
}

.back-home-text {
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
    margin-right: 15px;
    white-space: nowrap;
}

.back-home-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

/* Efekt po najechaniu na cały kontener */
.back-home-wrapper:hover .back-home-text {
    opacity: 1;
    transform: translateX(0);
}

.back-home-wrapper:hover .back-home-icon {
    background-color: var(--white);
    color: var(--primary-color); 
    border-color: var(--white);
}

/* --- DOLNY PASEK (Copyright, Sociale - WERSJA GRID) --- */
.footer-bottom {
    display: grid;
    /* Układ: Lewa (1fr) - Środek (auto) - Prawa (1fr) */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    gap: 20px;
    font-size: 0.85rem;
    color: #eee;
}

/* Lewa kolumna (Linki) */
.footer-links {
    justify-self: start; 
}

.footer-links a {
    color: #eee;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Środkowa kolumna (Copyright) */
.footer-copy {
    justify-self: center; 
    text-align: center;
    white-space: nowrap; 
}

/* Prawa kolumna (Kontakt i Ikony) */
.footer-contact-info {
    justify-self: end; 
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact-info a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

/* Style dla ikonek Social Media */
.social-icons {
    margin-top: 5px;
}

.social-icons a {
    color: #fff;
    font-size: 1.1rem; 
    margin-left: 15px;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: #ddd;
    transform: translateY(-2px);
}

/* Responsywność Stopki (Mobilki) */
@media (max-width: 900px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links, .footer-copy, .footer-contact-info {
        justify-self: center;
        text-align: center;
        align-items: center;
    }

    .footer-contact-info {
        align-items: center; 
    }

    .social-icons a {
        margin: 0 10px; 
    }
}
/* =========================================
   AAWANSOWANY WIDGET COOKIES (Popover)
   ========================================= */

.cookie-modal {
    /* Zmieniamy z overlay na okienko w rogu */
    position: fixed;
    bottom: 80px; /* Unosi się nad przyciskiem zakładki */
    left: 20px;
    width: 380px; /* Stała szerokość widgetu */
    max-height: 70vh; /* Maksymalna wysokość */
    z-index: 10000;
    
    /* Ukrywanie i animacja */
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px); /* Przesunięcie w dół (start animacji) */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Klasa dodawana przez JS, gdy okno jest otwarte */
.cookie-modal.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    background-color: #fff;
    width: 100%; /* Wypełnia kontener rodzica */
    height: 100%;
    border-radius: 12px;
    /* Cień, który "odkleja" okno od tła strony */
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 20px;
    
    /* Przewijanie wewnątrz małego okienka */
    overflow-y: auto;
    max-height: 60vh; 
    box-sizing: border-box;
}

/* Styl paska przewijania (dla estetyki) */
.cookie-content::-webkit-scrollbar { width: 6px; }
.cookie-content::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 3px; }
.cookie-content::-webkit-scrollbar-track { background-color: #f1f1f1; }

/* Nagłówek */
.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.cookie-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.close-btn:hover { color: #333; }

/* Treść */
.cookie-intro {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Lista Kategorii */
.cookie-categories { margin-bottom: 15px; }

.cookie-item {
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
}
.cookie-item:last-child { border-bottom: none; }

.cookie-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-item-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--dark-color);
}

.cookie-status-active {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-right: 10px;
}

/* Akordeon */
.accordion-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
}

.cookie-item-desc {
    font-size: 0.8rem;
    color: #777;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 5px;
    padding-right: 10px;
}

/* --- SUWAKI (SWITCHES - Zmniejszone) --- */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    margin-right: 5px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(16px); }

/* --- PRZYCISKI (FOOTER - Układ kolumnowy dla widgetu) --- */
.cookie-footer {
    display: flex;
    flex-direction: column; /* Przyciski jeden pod drugim */
    gap: 8px;
    margin-bottom: 15px;
}

.c-btn {
    width: 100%; /* Pełna szerokość */
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

.c-btn-green { background-color: var(--primary-color); color: white; }
.c-btn-green:hover { background-color: var(--secondary-color); }

.c-btn-white { background-color: white; border: 1px solid #ddd; color: #555; }
.c-btn-white:hover { background-color: #f9f9f9; }

.c-btn-gray { background-color: #f8f8f8; color: #555; border: 1px solid #eee; font-size: 0.8rem; }
.c-btn-gray:hover { background-color: #e0e0e0; }

/* Linki na dole */
.cookie-links { text-align: center; font-size: 0.75rem; }
.cookie-links a { color: #999; text-decoration: none; margin: 0 5px; }
.cookie-links a:hover { color: var(--primary-color); }

/* Responsywność - Na telefonach na pełną szerokość na dole */
@media (max-width: 480px) {
    .cookie-modal {
        left: 10px;
        right: 10px;
        bottom: 70px;
        width: auto; /* Auto dopasowanie */
    }
}
/* =========================================
   ZAKŁADKA COOKIES (Floating Tab)
   ========================================= */

#open-cookie-settings {
    position: fixed;
    bottom: 0;
    left: 20px; /* Odstęp od lewej krawędzi */
    
    background-color: #fff;
    color: var(--primary-color); /* Ikona w kolorze firmowym */
    
    border: none;
    /* Zaokrąglenie tylko górnych rogów (efekt zakładki) */
    border-radius: 12px 12px 0 0; 
    
    padding: 10px 20px;
    font-size: 1.5rem; /* Wielkość ikony */
    cursor: pointer;
    
    /* Cień, żeby zakładka odróżniała się od tła strony */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
    z-index: 9990; /* Poniżej modala (10000), ale powyżej treści */
    
    transition: transform 0.3s ease, background-color 0.3s;
}

#open-cookie-settings:hover {
    transform: translateY(-5px); /* Lekkie wysunięcie do góry po najechaniu */
    background-color: #f9f9f9;
}

/* Ukryj przycisk, gdy modal jest otwarty (opcjonalnie, obsługiwane przez JS) */
.modal-open #open-cookie-settings {
    display: none;
}
/* =========================================
   STRONA SEGREGACJI (ZAKŁADKI I TABELA)
   ========================================= */

/* --- Sekcja z Zasadami (Obrazek dopasowany do wysokości tekstu) --- */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    /* Domyślna wartość 'stretch' sprawia, że oba kontenery (divy) mają tę samą wysokość.
       Wysokość wiersza zostanie wyznaczona przez element z dłuższą zawartością (tekst). */
    align-items: stretch;
}

/* Kolumna z tekstem - jej zawartość dyktuje wysokość */
.rules-text-col {
    /* Nie potrzebujemy tu już flexa do centrowania */
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    font-size: 1.05rem;
    color: #444;
}

.rules-list li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* STYLIZACJA ZDJĘCIA */
.rules-img {
    /* Kontener zdjęcia musi zająć 100% wysokości ustalonej przez tekst */
    height: 100%;
    /* 'display: flex' usuwa ewentualne puste przestrzenie pod obrazkiem */
    display: flex;
}

.rules-img img {
    width: 100%;
    /* Obrazek musi zająć 100% wysokości swojego kontenera */
    height: 100%; 
    /* KLUCZOWE: 'cover' sprawia, że zdjęcie wypełni obszar, 
       zachowując proporcje (ewentualnie przycinając górę/dół),
       ale nie rozciągnie się w brzydki sposób. */
    object-fit: cover; 
    border-radius: 8px;
}

/* Responsywność - WYMUSZENIE 2 KOLUMN NA TELEFONIE */
@media (max-width: 768px) {
    .rules-grid {
        /* Nadal dwie kolumny (1fr 1fr), a nie jedna */
        grid-template-columns: 1fr 1fr; 
        
        /* Zmniejszamy odstęp z 50px na 10px, żeby się zmieściło */
        gap: 10px; 
    }

    /* Zmniejszamy tekst listy na telefonach, żeby nie był za ciasny */
    .rules-list li {
        font-size: 0.8rem; /* Mniejsza czcionka */
        padding-left: 20px; /* Mniejszy odstęp na "ptaszka" */
        margin-bottom: 10px;
    }

    .rules-list li::before {
        font-size: 0.9rem; /* Mniejszy ptaszek */
    }

    /* Obrazek i tekst nadal mają tę samą wysokość */
    .rules-img {
        height: 100%; 
        margin-top: 0; /* Usuwamy odstęp górny */
    }
    
    .rules-img img {
        height: 100%;
        object-fit: cover;
    }
}
/* --- Sekcja Zakładek (TABS) --- */
.tabs-container {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    background-color: #f4f9f4; /* Jasnozielone tło paska */
    padding: 10px;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 10px 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: rgba(0, 127, 79, 0.1);
}

.tab-btn.active {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Zawartość zakładek (Ciemne tło) */
.tab-content {
    display: none; /* Domyślnie ukryte */
    background-color: #004e66; /* Ciemny morski (jak na obrazku) */
    color: #fff;
    padding: 40px;
    border-radius: 0 0 8px 8px;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block; /* Pokaż aktywne */
}

.tab-content h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
}

/* Siatka TAK / NIE */
.waste-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.waste-col h3 {
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.waste-list {
    list-style: none;
    padding: 0;
}

.waste-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4;
}

/* Ikony TAK (✔) i NIE (✖) */
.waste-list.yes li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #4CAF50; /* Jasna zieleń */
    font-weight: bold;
}

.waste-list.no li::before {
    content: '✖';
    position: absolute;
    left: 0;
    color: #ff5252; /* Czerwony */
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Tabela i Wyszukiwarka --- */
.search-box {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.waste-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.waste-table thead {
    background-color: #e8f5e9; /* Bardzo jasna zieleń */
    border-bottom: 2px solid var(--primary-color);
}

.waste-table th, .waste-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.waste-table th {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* --- PAGINACJA NUMERYCZNA --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--dark-color);
}

.page-btn:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}
/* =========================================
   MENU MOBILNE (HAMBURGER) I POPRAWKI
   ========================================= */

/* Domyślnie ukryj hamburgera (widoczny tylko na telefonach) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
    padding: 10px;
}

/* Stylizacja menu mobilnego */
@media (max-width: 900px) {
    /* Pokaż hamburgera */
    .hamburger {
        display: block;
        /* ZMIANA: margin-left: auto przesuwa hamburgera maksymalnie w prawo */
        margin-left: auto; 
    }

    /* Ukryj ikonkę ciasteczka na telefonach */
    #open-cookie-settings {
        display: none !important;
    }

    /* USUNIĘTO STYLIZACJĘ .search-icon, BO JEJ JUŻ NIE MA */

    /* Przebudowa głównego menu */
    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu > li {
        width: 100%;
        padding: 0;
        text-align: left;
        border-bottom: 1px solid #f9f9f9;
    }

    .nav-link {
        padding: 15px 20px;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    /* Obsługa dropdownów na mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        padding-left: 20px;
        visibility: visible;
        opacity: 1;
        transform: none;
        display: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown.open .arrow {
        transform: rotate(180deg);
    }
}
/* =========================================
   STRONA KONTAKT
   ========================================= */

/* =========================================
   STRONA KONTAKT (Nowy układ)
   ========================================= */

/* Układ główny: Dane (lewa) + Formularz (prawa) */
.contact-layout {
    display: grid;
    /* Lewa kolumna ma 350px (dane), prawa zajmuje resztę (formularz) */
    grid-template-columns: 350px 1fr; 
    gap: 50px;
    align-items: start;
}

/* --- LEWA KOLUMNA: DANE FIRMY --- */
.company-data-box {
    background-color: #f8fcf9; /* Bardzo jasna zieleń */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.company-data-box h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

/* Pojedynczy wiersz z danymi (ikona + tekst) */
.contact-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px; /* Wyrównanie ikony do pierwszej linii tekstu */
    width: 25px;
    text-align: center;
}

.contact-row strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.contact-row a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-row a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Jedna kolumna na mobilkach */
        gap: 40px;
    }
    
    /* Na telefonie dane firmy będą na górze */
    .company-data-box {
        order: 1; 
        margin-bottom: 20px;
    }
    
    .contact-content {
        order: 2;
    }
}

/* Aktywny element menu (Zielony pasek z lewej + tło) */
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: #fff;
    border-left-color: var(--secondary-color);
}

/* --- FORMULARZ KONTAKTOWY --- */
.contact-content h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #004e66; /* Morski kolor nagłówka */
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.form-label span.required {
    color: red;
}

/* Układ rzędów (np. Imię | Firma) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Pola tekstowe i select */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fcfcfc;
    box-sizing: border-box; /* Ważne, żeby padding nie rozpychał */
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
}

/* Textarea - rozciąganie tylko góra/dół */
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Radio buttons (Status klienta) */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

/* Checkbox RODO */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

.checkbox-group input {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

/* Przycisk Wyślij */
.btn-submit {
    background-color: #28a745; /* ZMIANA: Zielony kolor */
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    text-transform: uppercase; /* ZMIANA: Wielkie litery */
    width: auto; /* Lub 100% jeśli wolisz szeroki */
}

.btn-submit:hover {
    background-color: #218838; /* Ciemniejszy zielony po najechaniu */
}

/* Input pliku */
.file-input-wrapper {
    margin-top: 10px;
}
.file-input-wrapper input {
    font-size: 0.9rem;
}

/* Responsywność formularza */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Jedna kolumna na mobilkach */
    }
    
    .sidebar-menu {
        display: flex; /* Menu poziome na górze */
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;
        overflow-x: auto;
    }
    
    .sidebar-menu a {
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
    }
    
    .sidebar-menu a.active {
        border-bottom-color: var(--secondary-color);
    }

    .form-row {
        grid-template-columns: 1fr; /* Pola jeden pod drugim na telefonie */
    }
}
/* =========================================
   STRONA OBSZAR DZIAŁANIA (GMINY)
   ========================================= */

.locations-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

.locations-grid {
    display: grid;
    /* Automatyczne dopasowanie kolumn (responsywne) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: #fff;
    border: 1px solid #eee; /* Delikatna ramka */
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-5px); /* Lekkie uniesienie po najechaniu */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.location-card h3 {
    color: var(--primary-color); /* Zielony nagłówek */
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.location-card p {
    color: #444;
    font-size: 1rem;
    margin: 0;
}/* =========================================
   STRONA POSTĘPOWANIA OFERTOWE
   ========================================= */

/* Tabela z przetargami */
.tenders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.tenders-table th, .tenders-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.tenders-table th {
    background-color: #f4f9f4;
    color: var(--primary-color);
    font-weight: 700;
}

.tenders-table tr:hover {
    background-color: #fcfcfc;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.status-open { background-color: #28a745; }
.status-closed { background-color: #6c757d; }

/* --- WIZUALIZACJA DOKUMENTU (WZÓR UMOWY) --- */
.document-preview-container {
    background-color: #eee; /* Tło biurka/szare */
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
}

.paper-sheet {
    background: #fff;
    width: 100%;
    max-width: 700px; /* Szerokość A4 */
    min-height: 800px; /* Wysokość A4 */
    margin: 0 auto 30px auto;
    padding: 60px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    text-align: left;
    font-family: 'Times New Roman', Times, serif; /* Czcionka dokumentowa */
    color: #000;
    overflow: hidden;
}

/* Znak wodny (Logo w tle) */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    width: 60%;
    opacity: 0.08; /* Bardzo delikatne */
    pointer-events: none; /* Żeby nie przeszkadzało w zaznaczaniu */
    z-index: 0;
}

.doc-content {
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.doc-header {
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
}

.doc-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.doc-placeholder {
    background: #eee;
    height: 15px;
    margin-bottom: 10px;
    width: 100%;
}

/* Responsywność */
@media (max-width: 768px) {
    .paper-sheet {
        padding: 30px;
        min-height: auto;
    }
    .tenders-table {
        display: block;
        overflow-x: auto;
    }
}
/* =========================================
   STRONA POLITYKA PRYWATNOŚCI
   ========================================= */

.legal-content {
    max-width: 900px; /* Węższa kolumna dla lepszego czytania */
    margin: 0 auto;
    color: #444;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-content h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 20px;
    text-align: justify; /* Wyjustowanie tekstu wygląda profesjonalnie w dokumentach */
}