/* =========================================
   ZMIENNE KOLORYSTYCZNE (Na bazie makiety)
   ========================================= */
:root {
    --dark-green: #0b3d31;      /* Ciemna zieleń (las) */
    --light-green: #8cb08e;     /* Jasna zieleń (tła sekcji) */
    --bg-cream: #f4f3e6;        /* Kremowe tło strony (pozostawione jako zapas) */
    --text-dark: #2c3e35;       /* Ciemny tekst */
    --gold: #d4af37;            /* Złote akcenty */
}

/* =========================================
   RESET I BAZOWA TYPOGRAFIA
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--dark-green);
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--dark-green); }
::-webkit-scrollbar-thumb {
    background-color: var(--gold); 
    border-radius: 10px; 
    border: 3px solid var(--dark-green); 
}
::-webkit-scrollbar-thumb:hover { background-color: #ffdb73; }

/* --- GŁÓWNE TŁO CAŁEJ STRONY (Uspokojenie wizualne) --- */
body { 
    font-family: 'Inter', sans-serif; 
    color: white; /* Tekst na ciemnym tle musi być jasny */
    line-height: 1.6;
    
    background-color: var(--dark-green); 
    background-image: url('images/tekstura_harcerska_ok.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

h1, h2, h3, .logo, .hero-quote, .year-card, .event-grid-card h3 { 
    font-family: 'Lora', serif; 
}

h2 {
    font-size: 2.2rem;
    color: var(--gold); /* Złote nagłówki dla lepszego kontrastu na zieleni */
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6); /* Odkleja tekst od tekstury */
}

.text-center { text-align: center; }
img { max-width: 100%; height: auto; display: block; }

.container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 60px 20px; 
}

/* =========================================
   PRZYCISKI (GLOBALNE)
   ========================================= */
.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--dark-green);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--gold);
    transition: background 0.3s;
}
.btn-primary:hover { background-color: var(--gold); color: var(--dark-green); }

.btn-gold {
    background-color: var(--gold) !important;
    color: var(--dark-green) !important;
    font-weight: bold;
}
.btn-gold:hover {
    background-color: white !important;
    color: var(--dark-green) !important;
}

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--gold);
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--gold);
    transition: all 0.3s;
    font-weight: bold;
}
.btn-secondary:hover { background-color: var(--gold); color: var(--dark-green); }

.btn-back {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 15px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    transition: all 0.3s;
}
.btn-back:hover { background-color: var(--gold); color: var(--dark-green); }

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap; 
}

.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background-color: var(--gold);
    color: var(--dark-green);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px; font-weight: bold;
    text-decoration: none;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background-color: var(--dark-green);
    color: var(--gold);
    transform: translateY(-5px);
    border: 2px solid var(--gold);
}

/* =========================================
   NAWIGACJA (Menu i Hamburger)
   ========================================= */
.navbar {
    background-color: var(--dark-green);
    padding: 15px 0;
    position: sticky; 
    top: 0;
    transition: all 0.3s ease; 
    z-index: 1000;
}
.navbar.scrolled {
    padding: 5px 0; 
    background-color: rgba(11, 61, 49, 0.95); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); 
}
.navbar .container { padding: 0 20px; } 

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo strong { color: var(--gold); font-size: 26px; }

.nav-menu { display: flex; gap: 25px; }
.nav-menu a {
    color: white; text-decoration: none;
    font-size: 15px; font-weight: 400;
    transition: color 0.3s;
}
.nav-menu a:hover { color: var(--gold); }

.hamburger {
    display: none; flex-direction: column; justify-content: space-around;
    width: 30px; height: 24px; background: transparent;
    border: none; cursor: pointer; z-index: 1001;
}
.hamburger-line {
    width: 100%; height: 3px; background-color: white;
    border-radius: 2px; transition: all 0.3s linear;
}

/* =========================================
   SEKCJA HERO
   ========================================= */
.hero {
    background-color: var(--dark-green);
    background-image: 
        linear-gradient(rgba(11, 61, 49, 0.85), rgba(11, 61, 49, 0.95)), 
        url('images/o_nas_3.webp'); 
    background-size: cover; background-position: center; background-attachment: fixed; 
    color: white; border-bottom: 10px solid var(--gold);
    position: relative; min-height: 80vh; display: flex; align-items: center; padding: 40px 20px; 
}
.hero-container {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between; gap: 50px; 
}
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.5rem; color: var(--gold); line-height: 1.2; margin-bottom: 30px; }
.hero-quote { font-size: 1.5rem; font-style: italic; border-left: 4px solid var(--light-green); padding-left: 20px; }
.hero-quote span { font-size: 1.2rem; color: var(--light-green); display: block; margin-top: 10px; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { max-width: 100%; height: auto; border-radius: 10px; }

/* =========================================
   O NAS (Szachownica z Glassmorphism)
   ========================================= */
.section-about { background-color: transparent; padding: 0px; }
.about-header { margin-bottom: 60px; }
.about-subtitle { color: white; font-size: 1.2rem; font-style: italic; font-family: 'Playfair Display', serif; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.about-rows { display: flex; flex-direction: column; gap: 60px; }
.about-row {
    display: flex; align-items: stretch; 
    /* Uspokojone, półprzezroczyste tło pudełek zamiast krzykliwej bieli */
    background-color: rgba(11, 61, 49, 0.6); 
    backdrop-filter: blur(5px);
    border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    overflow: hidden; border-left: 6px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-row:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.about-row-img { flex: 0 0 40%; position: relative; min-height: 350px; overflow: hidden; }
.about-row-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.about-row:hover .about-row-img img { transform: scale(1.05); }

.about-row-text { flex: 1; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.about-row-text h3 { color: var(--gold) !important; margin-bottom: 20px; font-size: 1.8rem; text-shadow: none !important; }
.about-row-text p { font-size: 1.05rem; text-align: justify; line-height: 1.8; color: rgba(255, 255, 255, 0.9); }

.about-row:nth-child(even) { flex-direction: row-reverse; border-left: none; border-right: 6px solid var(--gold); }

/* =========================================
   WSPARCIE 1,5%
   ========================================= */
.section-tax {
    background-color: transparent; /* Wtapia się w tło */
    padding: 40px 0;
}
.tax-content {
    background-color: var(--dark-green); color: white; padding: 50px;
    border-radius: 15px; text-align: center; max-width: 900px; margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(212, 175, 55, 0.2); /* Delikatna ramka na odcięcie */
}
.tax-content h2 { color: var(--gold); margin-bottom: 10px; font-size: 2.5rem; text-shadow: none; }
.tax-greeting { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 300; font-size: 1.5rem; margin-bottom: 30px; color: var(--bg-cream); }
.tax-text { text-align: justify; font-size: 1.05rem; line-height: 1.7; margin-bottom: 30px; }
.tax-text p { margin-bottom: 15px; }
.krs-box {
    margin-top: 10px; display: inline-block; padding: 15px 40px;
    border: 2px dashed var(--gold); border-radius: 10px;
    font-size: 1.8rem; font-weight: bold; color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1); letter-spacing: 2px;
}

/* =========================================
   GALERIA KARTY (Lata)
   ========================================= */
.gallery-years-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.year-card {
    position: relative; background-color: var(--dark-green);
    background-image: url('images/night-campfire-night.jpg'); 
    background-size: cover; background-position: center; background-blend-mode: multiply; 
    color: var(--gold); padding: 60px 20px; text-align: center; text-decoration: none;
    font-size: 3rem; font-weight: bold; font-family: 'Playfair Display', serif;
    border-radius: 15px; transition: all 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    overflow: hidden; border: 2px solid transparent;
}
.year-card:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: rgba(178, 190, 4, 0.349); 
    background-blend-mode: overlay; color: white; border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(233, 192, 59, 0.3); 
}
.year-card::after { content: ''; display: block; width: 40px; height: 3px; background-color: currentColor; margin: 15px auto 0; transition: width 0.3s ease; }
.year-card:hover::after { width: 100px; }

/* =========================================
   ODESZLI NA WIECZNĄ WARTĘ (Karuzela)
   ========================================= */
.section-memorial { background-color: transparent; padding: 30px 0; }
.memorial-carousel { padding-bottom: 50px !important; }
.memorial-carousel .swiper-pagination { bottom: 0 !important; }
.memorial-carousel .swiper-wrapper { align-items: stretch; }
.memorial-carousel .swiper-slide { height: auto; display: flex; }

.memorial-card {
    width: 100%; flex: 1; 
    background-color: rgba(11, 61, 49, 0.6); backdrop-filter: blur(5px);
    padding: 40px 30px; border-radius: 15px; text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3); display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
}
.memorial-photo img {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 20px; border: 4px solid var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); 
}
.memorial-card h3 { color: var(--gold) !important; text-shadow: none !important; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.memorial-card p:not(.memorial-honor) {
    margin-bottom: 20px; line-height: 1.6; flex-grow: 1; color: rgba(255, 255, 255, 0.9); 
    max-height: 220px; overflow-y: auto; padding-right: 15px; text-align: left; 
}
.memorial-card p:not(.memorial-honor)::-webkit-scrollbar { width: 6px; }
.memorial-card p:not(.memorial-honor)::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.memorial-card p:not(.memorial-honor)::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }
.memorial-honor {
    font-family: 'Playfair Display', serif; color: var(--gold); 
    font-style: italic; font-weight: bold; font-size: 1.2rem;
    margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(212, 175, 55, 0.2); 
}
.swiper-pagination-bullet { background: white; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--gold); opacity: 1; }

/* =========================================
   DOKUMENTY, SENIOR I ZARZĄD
   ========================================= */
.docs-board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.docs-links { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.doc-item {
    background-color: rgba(11, 61, 49, 0.7); padding: 15px 20px; border-radius: 8px;
    text-decoration: none; color: white; font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); border-left: 5px solid var(--gold); transition: background 0.3s;
}
.doc-item:hover { background-color: rgba(0,0,0,0.3); color: var(--gold); }

.docs-subtitle { color: var(--gold); font-size: 1.3rem; border-bottom: 2px solid var(--gold); padding-bottom: 5px; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.6); }
.docs-accordion { display: flex; flex-direction: column; gap: 15px; }

.doc-year-group {
    background-color: rgba(11, 61, 49, 0.7); border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-left: 5px solid var(--gold); overflow: hidden; transition: all 0.3s ease;
}
.doc-year-title {
    padding: 15px 20px; font-weight: bold; color: white !important; cursor: pointer; text-shadow: none !important;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    transition: background 0.3s; user-select: none;
}
.doc-year-title::-webkit-details-marker { display: none; }
.doc-year-title:hover { background-color: rgba(0, 0, 0, 0.2); }
.doc-year-title::after { content: '▼'; font-size: 0.8rem; color: var(--gold); transition: transform 0.3s ease; }
details[open].doc-year-group .doc-year-title::after { transform: rotate(180deg); }

.doc-year-content {
    padding: 0 20px 20px 20px; display: flex; flex-direction: column; gap: 10px;
    border-top: 1px dashed rgba(255,255,255,0.1); margin-top: 5px; padding-top: 15px;
}
.doc-subitem { border-left: 3px solid var(--light-green); box-shadow: none; background-color: rgba(0, 0, 0, 0.15); padding: 10px 15px; font-size: 0.95rem; color: white; }
.doc-subitem:hover { background-color: rgba(0, 0, 0, 0.3); border-left-color: var(--gold); color: var(--gold); }

.board-lists { margin-top: 20px; }
.board-group { margin-bottom: 25px; }
.board-group h3 { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 5px; margin-bottom: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.6); }
.board-group ul { list-style: none; color: white; font-weight: 500; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.board-group li { padding: 5px 0; }

/* =========================================
   FORMULARZ KONTAKTOWY
   ========================================= */
.section-contact { background-color: transparent; padding: 0 0 40px; }
.contact-wrapper {
    display: flex; background-color: rgba(11, 61, 49, 0.8); border-radius: 15px;
    overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.contact-info { flex: 1; padding: 60px 50px; color: white; display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { color: var(--gold); font-size: 2.5rem; margin-bottom: 20px; text-shadow: none; }
.contact-info p { font-size: 1.1rem; line-height: 1.8; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.contact-form-box { flex: 1; padding: 60px 50px; background-color: rgba(255,255,255,0.05); backdrop-filter: blur(5px); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--gold); font-size: 0.95rem; }
.form-control {
    width: 100%; padding: 15px; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: white;
    font-family: 'Roboto', sans-serif; font-size: 1rem; transition: all 0.3s ease; background-color: rgba(0,0,0,0.2);
}
.form-control:focus { outline: none; border-color: var(--gold); background-color: rgba(0,0,0,0.4); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2); }
/* Naprawa koloru wpisywanego tekstu w Chrome dla ciemnych pól */
.form-control::placeholder { color: rgba(255,255,255,0.5); }

.alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; font-weight: bold; text-align: center; }
.alert-success { background-color: rgba(46, 125, 50, 0.2); color: #81c784; border: 1px solid #4caf50; }
.alert-danger { background-color: rgba(198, 40, 40, 0.2); color: #e57373; border: 1px solid #f44336; }

/* =========================================
   STOPKA
   ========================================= */
.site-footer { background-color: rgba(11, 61, 49, 0.95); color: white; padding: 60px 0 20px; border-top: 5px solid var(--gold); }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
.footer-column h3 { color: var(--gold); margin-bottom: 25px; font-size: 1.5rem; font-family: 'Roboto', sans-serif; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.footer-icon { color: var(--gold); flex-shrink: 0; width: 20px; display: flex; justify-content: center; align-items: center; }
.footer-icon svg { width: 100%; max-height: 20px; fill: currentColor; }
.footer-copyright { margin-top: 50px; font-size: 0.9rem; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }

/* =========================================
   PODSTRONY (Wydarzenia, Zdjęcia, Błędy)
   ========================================= */
.section-gallery-page { background-color: transparent; min-height: 60vh; }
.section-gallery-page h1 { color: var(--gold); margin-bottom: 40px; font-size: 2.5rem; border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.6); }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 300px; gap: 20px; }
.event-grid-card {
    display: block; position: relative; border-radius: 12px; overflow: hidden; text-decoration: none;
    color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.event-grid-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.7); }
.event-grid-card .card-image { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.event-grid-card:hover .card-image { transform: scale(1.08); }
.event-grid-card .card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; pointer-events: none; 
}
.event-grid-card h3 { font-size: 1.3rem; margin: 0; line-height: 1.3; font-family: 'Playfair Display', serif; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.event-grid-card .event-count { font-size: 0.9rem; color: var(--gold); margin-top: 8px; font-weight: bold; }

.section-photo-gallery { background-color: transparent; min-height: 60vh; padding-bottom: 60px; }
.gallery-header { text-align: center; margin-bottom: 40px; }
.gallery-header h1 { color: var(--gold); font-size: 2.5rem; margin-top: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.6); }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 250px; gap: 20px; }
.photo-item { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.4); background-color: rgba(11, 61, 49, 0.5); border: 1px solid rgba(212, 175, 55, 0.2); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-item:hover img { transform: scale(1.05); }

.gallery-page-error { background-color: transparent; min-height: 80vh; }
.photo-gallery-error { max-width: 900px; margin: 0 auto; padding-top: 30px; }
.photo-gallery-error .error-content {
    background-color: rgba(11, 61, 49, 0.8); backdrop-filter: blur(5px);
    color: white; padding: 60px; border-radius: 15px; text-align: center; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); border-left: 6px solid var(--gold);
}
.photo-gallery-error .error-icon { font-size: 4rem; color: var(--gold); margin-bottom: 30px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.photo-gallery-error h2 { color: var(--gold); font-size: 2.5rem; font-family: 'Playfair Display', serif; margin-bottom: 20px; text-shadow: none; }
.photo-gallery-error p { font-size: 1.1rem; line-height: 1.8; color: white; text-align: justify; max-width: 700px; margin: 0 auto 30px auto; }

/* =========================================
   LIGHTBOX 
   ========================================= */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); display: flex; justify-content: center;
    align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 5px; box-shadow: 0 0 20px rgba(0,0,0,0.8); border: 2px solid var(--gold); }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%); color: white;
    font-size: 60px; font-weight: bold; cursor: pointer; padding: 20px;
    transition: color 0.3s, transform 0.3s; user-select: none; z-index: 2001;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--gold); transform: translateY(-50%) scale(1.1); }

/* =========================================
   PASEK COOKIES
   ========================================= */
.cookie-banner {
    position: fixed; bottom: -100px; left: 0; width: 100%;
    background-color: rgba(11, 61, 49, 0.95); color: white; padding: 15px 0;
    z-index: 2000; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); transition: bottom 0.5s ease-in-out;
    border-top: 2px solid var(--gold);
}
.cookie-banner.active { bottom: 0; }
.cookie-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 20px !important; }
.cookie-container p { font-size: 0.9rem; line-height: 1.4; margin: 0; }
.btn-cookie {
    background-color: var(--gold); color: var(--dark-green); border: none;
    padding: 8px 20px; border-radius: 5px; font-weight: bold; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap; 
}
.btn-cookie:hover { background-color: white; transform: scale(1.05); }


/* ========================================================================= */
/* WIDOK MOBILNY                                */
/* ========================================================================= */

@media (max-width: 992px) {
    /* O Nas */
    .about-row, .about-row:nth-child(even) {
        flex-direction: column; border-left: none; border-right: none;
        border-top: 6px solid var(--gold);
    }
    .about-row:hover, .about-row:nth-child(even):hover { border-top-color: var(--gold); }
    .about-row-img { width: 100%; height: 250px; min-height: 250px; }
    .about-row-text { padding: 30px 20px; }
    
    /* Kontakt */
    .contact-wrapper { flex-direction: column; }
    .contact-info, .contact-form-box { padding: 40px 25px; }
}

@media (max-width: 768px) {
    /* Kontenery główne */
    .container { padding: 20px 20px; }
    .tax-content { padding: 20px; }
    .board-area { margin-top: 40px; }
    
    /* Nawigacja i Menu */
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--dark-green); flex-direction: column;
        align-items: center; gap: 0; max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease-in-out; border-bottom: 2px solid var(--gold);
    }
    .nav-menu.active { max-height: 400px; }
    .nav-menu a { padding: 15px 0; width: 100%; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    /* Hero */
    .hero {
        background-image: linear-gradient(rgba(11, 61, 49, 0.85), rgba(11, 61, 49, 0.95)), url('images/o_nas_3_mobile.webp'); 
        min-height: auto; padding: 100px 20px 80px; 
    }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-quote { border-left: none; border-top: 4px solid var(--light-green); padding-left: 0; padding-top: 20px; margin-top: 20px; }
    .hero-image { justify-content: center; margin-top: 30px; }
    .hero-buttons { justify-content: center; }

    /* Układy Grid */
    .docs-board-grid { display: block !important; margin-top: 20px !important; }
    .footer-columns { grid-template-columns: 1fr; gap: 30px; }

    /* Dokumenty (Pancerna naprawa akordeonu) */
    .doc-year-content { display: block !important; padding: 10px 10px 20px 10px !important; }
    .doc-item.doc-subitem {
        display: block !important; width: 100% !important; box-sizing: border-box !important;
        height: auto !important; min-height: 45px; margin-bottom: 12px !important; 
        white-space: normal !important; word-wrap: break-word !important;
        line-height: 1.5 !important; position: relative !important; float: none !important;
    }

    /* Lightbox */
    .lightbox-prev, .lightbox-next { font-size: 40px; padding: 10px; }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }

    /* Pasek Cookies i powrót do góry */
    .back-to-top { z-index: 2005 !important; bottom: 30px; right: 20px; }
    .cookie-banner { bottom: -300px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); }
    .cookie-banner.active { bottom: 0; }
    .cookie-container { flex-direction: column; text-align: center; gap: 15px; }
    .cookie-container p { font-size: 0.85rem; margin-bottom: 5px; }
    .btn-cookie { width: 100%; padding: 12px 20px; }
}

@media (max-width: 480px) {
    /* Małe poprawki na najmniejsze telefony */
    .back-to-top { bottom: 15px; right: 15px; width: 40px; height: 40px; font-size: 20px; }
}

/* =========================================
   POPRAWKA: ZŁOTE RAMKI W GALERIACH
   ========================================= */
.year-card, 
.event-grid-card, 
.photo-item {
    border: 2px solid var(--gold) !important; /* Wyraźna, złota ramka */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6) !important; /* Wzmocniony cień dla lepszej głębi */
}

/* Wzmocnienie efektu po najechaniu myszką */
.year-card:hover, 
.event-grid-card:hover, 
.photo-item:hover {
    border-color: #ffdb73 !important; /* Złoto lekko jaśnieje przy najechaniu */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8) !important;
}