/* ==========================================================================
   1. ZMIENNE I USTAWIENIA GŁÓWNE
   ========================================================================== */
:root {
    --color-primary: #123524;         
    --color-primary-light: #E8EFE9;   
    --color-secondary: #1F4D36;       
    --color-accent: #D4AF37;          
    --color-accent-hover: #B5952F;    
    --color-text-main: #14211A;       
    --color-text-light: #445D4F;      
    --color-bg-body: #F4F7F5;         
    --color-white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #0a2114 0%, #15472b 100%);
    --gradient-gold: linear-gradient(135deg, #E6C27A 0%, #FDE093 50%, #D4AF37 100%);
    --font-main: "Google Sans", sans-serif;
    
    --radius-box: 12px;
    --shadow-soft: 0 8px 25px rgba(18, 53, 36, 0.08);
    --shadow-hover: 0 12px 30px rgba(18, 53, 36, 0.15);
    --transition-fast: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, h1, h2, h3, h4, h5, h6, input, textarea, button {
    font-family: var(--font-main); font-optical-sizing: auto; font-style: normal; color: var(--color-text-main);
}

body { background-color: var(--color-bg-body); line-height: 1.6; }
a { text-decoration: none; color: var(--color-secondary); transition: var(--transition-fast); }
a:hover { color: var(--color-accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   2. NAGŁÓWEK I NAWIGACJA
   ========================================================================== */
.main-header { 
    background: linear-gradient(to bottom, #112f1e 0%, #0a2015 100%); 
    position: fixed; /* Zmiana na fixed gwarantuje stabilność */
    width: 100%;
    left: 0;
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.35); 
    border-bottom: 2px solid var(--color-accent); 
    transition: background 0.3s ease, box-shadow 0.3s ease; 
}
.header-container { max-width: 1650px; margin: 0 auto; padding: 0 30px; display: flex; justify-content: center; align-items: center; min-height: 90px; }
.mobile-nav-logo { display: none; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 25px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--color-white); padding: 5px; white-space: nowrap; }
.main-nav a:hover { color: var(--color-accent); }

.btn-donate {
    background: var(--gradient-gold); color: var(--color-primary) !important; padding: 10px 22px;
    border-radius: 50px; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative; overflow: hidden;
}
.btn-donate::after, .btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: buttonShine 4s infinite; 
}
@keyframes buttonShine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 2rem; color: var(--color-accent); cursor: pointer; }

/* --- STYLE DLA ROZWIJANEGO MENU (DESKTOP) --- */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 6px; }
.has-dropdown > a i { font-size: 0.75rem; transition: transform 0.3s ease; }

/* Animacja strzałki przy najechaniu */
.has-dropdown:hover > a i { transform: rotate(180deg); color: var(--color-accent); }

/* Główny kontener rozwijanego menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-primary); /* Ciemna zieleń */
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-top: 3px solid var(--color-accent); /* Złota belka na górze */
    
    /* Ukrycie na starcie */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Pokazanie po najechaniu na element rodzica */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Linki wewnątrz rozwijanego menu */
.dropdown-menu li { display: block; margin: 0; }
.dropdown-menu a {
    display: block;
    padding: 12px 25px !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.dropdown-menu li:last-child a { border-bottom: none; }

/* Piękny efekt po najechaniu na podmenu */
.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.08); /* Delikatne złote tło */
    color: var(--color-accent) !important; /* Złoty tekst */
    padding-left: 32px !important; /* Lekkie wcięcie tekstu w prawo */
}

/* ==========================================================================
   3. SEKCJA HERO I PRZYCISKI
   ========================================================================== */
.hero { position: relative; color: var(--color-white); text-align: center; overflow: hidden; padding: 120px 0 160px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-attachment: fixed; opacity: 0; z-index: 1; animation: fadeSlides 15s infinite; }
.hero-bg.bg-1 { background-image: url('images/tlo.jpg'); animation-delay: 0s; }
.hero-bg.bg-2 { background-image: url('images/tlo2.jpg'); animation-delay: -10s; }
.hero-bg.bg-3 { background-image: url('images/tlo4.jpg'); animation-delay: -5s; }
@keyframes fadeSlides { 0% { opacity: 1; } 28% { opacity: 1; } 33% { opacity: 0; } 95% { opacity: 0; } 100% { opacity: 1; } }

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85)); z-index: 2; }
.hero-content { position: relative; z-index: 3; }

.logo-wrapper { background: transparent; border: 4px solid var(--color-accent); padding: 0; border-radius: 50%; width: 170px; height: 170px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,0,0,0.1); animation: floatLogo 6s ease-in-out infinite; overflow: hidden; }
@keyframes floatLogo { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
.logo-wrapper img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }

.foundation-title { font-size: 2rem; line-height: 1.3; margin-bottom: 20px; font-weight: 400; color: var(--color-white); letter-spacing: 1px; }
.foundation-title span { display: block; font-size: 3rem; font-weight: 700; color: var(--color-accent); margin-top: 5px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.25rem; opacity: 0.9; margin: 0 auto 30px; font-weight: 400; max-width: 700px; color: #E8EFE9; }

/* PRZYCISKI - Zaktualizowane, Lżejsze */
.hero-buttons { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: 50px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; letter-spacing: 0.5px; border: none; text-align: center; }

.btn-primary { 
    background: var(--gradient-gold); 
    color: var(--color-primary); /* Ciemnozielony tekst */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); 
    position: relative; 
    overflow: hidden; 
    border: none;
    font-weight: 600;
}
.btn-primary:hover { 
    background: var(--gradient-gold); /* Zatrzymujemy ten sam ładny gradient */
    color: var(--color-primary); /* WYMUSZAMY żeby tekst został ciemnozielony, żeby go było widać! */
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5); /* Wzmacniamy ładny złoty cień */
    filter: brightness(1.1); /* Lekko rozjaśniamy cały przycisk, dając efekt "kliknięcia/podświetlenia" */
}

.btn-large { font-size: 1.05rem; padding: 14px 32px; ; letter-spacing: 1px; }

.btn-outline-light { font-size: 1rem; padding: 13px 28px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--color-white); backdrop-filter: blur(10px); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.2); color: var(--color-white); border-color: var(--color-white); transform: translateY(-3px); }

.btn-outline { border: 2px solid var(--color-secondary); color: var(--color-secondary); border-radius: 50px; padding: 10px 25px; background: transparent;}
.btn-outline:hover { background-color: var(--color-secondary); color: var(--color-white); }


/* ==========================================================================
   4. GŁÓWNY UKŁAD STRONY
   ========================================================================== */
.main-content { padding: 80px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.section-title { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 30px; padding-bottom: 15px; position: relative; font-weight: 700; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 70px; height: 4px; background: var(--gradient-gold); border-radius: 2px; }

.content-box, .news-item { background-color: var(--color-white); padding: 40px; border-radius: var(--radius-box); box-shadow: var(--shadow-soft); margin-bottom: 30px; opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.content-box.visible, .news-item.visible { opacity: 1; transform: translateY(0); }
.text-content p { margin-bottom: 20px; color: var(--color-text-main); }
.feature-list { list-style: none; margin: 20px 0 30px 20px; }
.feature-list li { margin-bottom: 10px; font-size: 1.1rem; color: var(--color-text-main); }
.text-accent { color: var(--color-accent); margin-right: 10px; }

.info-alert { background-color: var(--color-primary-light); padding: 25px; border-left: 5px solid var(--color-secondary); border-radius: 0 var(--radius-box) var(--radius-box) 0; margin-top: 30px; }
.info-alert h4 { color: var(--color-primary); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.alert-divider { border: 0; border-top: 1px solid rgba(18, 53, 36, 0.15); margin: 15px 0; }

.donate-box { background: var(--gradient-primary); color: var(--color-white); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.donate-content h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--color-accent); }
.donate-content p { color: var(--color-primary-light); }
.krs-badge { display: inline-block; background: var(--gradient-gold); color: var(--color-primary); padding: 8px 18px; font-size: 1.2rem; font-weight: 700; border-radius: 50px; margin-top: 15px; letter-spacing: 1px; }
.donate-icon { font-size: 6rem; color: rgba(212, 175, 55, 0.15); }

.news-list { display: flex; flex-direction: column; gap: 25px; }
.news-item { padding: 0; overflow: hidden; transition: var(--transition-fast), opacity 0.8s ease, transform 0.8s ease; }
.news-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.news-item.visible:hover { transform: translateY(-5px); }
.news-image { position: relative; height: 200px; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-date { position: absolute; bottom: -15px; left: 20px; background: var(--gradient-gold); color: var(--color-primary); text-align: center; padding: 8px 15px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.news-date .day { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.news-date .month { display: block; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
.news-content { padding: 30px 20px 20px; }
.news-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-secondary); font-weight: 700; display: block; margin-bottom: 8px; }
.news-item h4 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.news-item p { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 15px; }
.read-more { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; color: var(--color-primary); }
.news-item:hover .read-more i { transform: translateX(5px); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   5. STOPKA (PREMIUM GRADIENT & GOLD LINE)
   ========================================================================== */
.main-footer { 
    /* Bardzo głęboki, luksusowy gradient leśny spójny z menu i billboardem */
    background: linear-gradient(to bottom, #0e291a 0%, #0a2015 100%); 
    color: var(--color-primary-light); 
    padding-top: 80px; /* Nieco więcej przestrzeni na oddech */
    border-top: 2px solid var(--color-accent); /* Złota linia na samej górze spaja dół z menu */
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 15px; color: var(--color-white); font-size: 1.5rem; margin-bottom: 20px; font-weight: 700; }
.footer-logo i { color: var(--color-accent); }
.footer-col h4 { color: var(--color-white); font-size: 1.2rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--color-accent); }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.contact-list i { color: var(--color-accent); margin-top: 5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .contact-list a { color: var(--color-primary-light); }
.footer-links a:hover, .contact-list a:hover { color: var(--color-accent); padding-left: 5px; }

/* Najciemniejszy pasek na samym dole strony */
.footer-bottom { 
    background-color: #020604; /* Prawie czarna zieleń dla domknięcia strony */
    padding: 20px 0; 
    font-size: 0.9rem; 
    text-align: center; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Bardzo delikatna linia oddzielająca */
}


/* ==========================================================================
   6. PŁYWAJĄCY BILLBOARD (Pełnoekranowy na dole) - ELEGANCKI MINIMALIZM
   ========================================================================== */
.bottom-billboard {
    position: fixed; 
    bottom: -500px; 
    left: 0; 
    transform: none; 
    width: 100%;
    /* Elegancki, ukośny, bardzo ciemny gradient obsidianowo-leśny */
    background: linear-gradient(135deg, #0e291a 0%, #0a2015 100%); 
    border-top: 2px solid var(--color-accent); /* Złota linia na samej górze paska */
    color: var(--color-white); 
    z-index: 9999; 
    padding: 12px 30px; 
    box-shadow: 0 -12px 45px rgba(0,0,0,0.5); 
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; 
    opacity: 0;
}
.bottom-billboard.show { bottom: 0; opacity: 1; }

.billboard-container { display: flex; justify-content: center; align-items: center; width: 100%; }
.billboard-viewport { width: 100%; display: grid; }
.billboard-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.5s ease; }
.billboard-slide.active { opacity: 1; visibility: visible; transform: translateY(0); }

/* Minimalistyczny układ cen */
.fuels-display { display: flex; align-items: center; justify-content: center; width: 100%; flex-wrap: wrap; gap: 25px; }
.fuel-brand { font-size: 1.1rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 8px; font-weight: 400; }
.fuel-brand i { color: var(--color-accent); font-size: 1.3rem; }

.fuel-items-wrapper { display: flex; align-items: center; }
.fuel-item { display: flex; align-items: baseline; gap: 8px; padding: 0 20px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.fuel-item:last-child { border-right: none; }

.fuel-type { font-weight: 400; color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.fuel-price { font-family: var(--font-main); font-weight: 600; font-size: 1.6rem; color: var(--color-accent); letter-spacing: 0.5px; }

/* Slide 2 */
.billboard-content-wrapper { display: flex; align-items: center; gap: 15px; justify-content: center; width: 100%; }
.billboard-icon { font-size: 1.8rem; color: var(--color-accent); } 
.billboard-text { font-size: 1.05rem; color: #e8efe9; font-weight: 300; } 
.billboard-text strong { color: var(--color-accent); font-weight: 600; }

/* Przycisk zamykania / otwierania */
.toggle-billboard { 
    position: absolute; top: -16px; right: 40px; 
    background: #0d261a; color: rgba(255,255,255,0.6); 
    border: 1px solid rgba(212, 175, 55, 0.3); 
    width: 32px; height: 32px; border-radius: 50%; 
    cursor: pointer; font-size: 1rem; 
    display: flex; align-items: center; justify-content: center; 
    transition: all 0.3s ease; z-index: 10000; 
}
.toggle-billboard:hover { color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px) rotate(90deg); }

.reopen-billboard-btn { position: fixed; bottom: 20px; right: 20px; background: rgba(13, 38, 26, 0.9); backdrop-filter: blur(5px); color: var(--color-accent); border: 1px solid rgba(212, 175, 55, 0.3); padding: 12px 20px; border-radius: 50px; font-size: 1rem; font-weight: 600; box-shadow: 0 5px 20px rgba(0,0,0,0.3); cursor: pointer; z-index: 9998; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; display: flex; align-items: center; gap: 10px; }
.reopen-billboard-btn:hover { background: var(--color-accent); color: #0d261a; transform: translateY(-3px); }
.reopen-billboard-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   7. MODALE (Ciemne Okienka)
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--color-primary); border-radius: var(--radius-box); width: 90%; max-width: 650px; position: relative; transform: translateY(50px) scale(0.95); transition: all 0.4s ease; box-shadow: 0 25px 60px rgba(0,0,0,0.7); overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.2); display: flex; flex-direction: column; max-height: 90vh;  }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: var(--color-white); opacity: 0.7; font-size: 1.8rem; cursor: pointer; transition: var(--transition-fast); z-index: 10; }
.modal-close:hover { color: var(--color-accent); opacity: 1; transform: rotate(90deg); }

.modal-header { text-align: center; padding: 35px 20px 20px; background: #0e2b1d; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.modal-header h2 { color: var(--color-accent); font-size: 1.8rem; margin-bottom: 5px; }
.modal-header p { color: var(--color-primary-light); opacity: 0.8; font-size: 1.05rem; }

.modal-body { padding: 30px 25px; overflow-y: auto; -webkit-overflow-scrolling: touch; /* Zapewnia płynne przewijanie palcem na iPhone (iOS) */}
.modal-fuels-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }
.modal-fuel-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 8px; padding: 12px 20px; display: flex; justify-content: space-between; align-items: baseline; }
.modal-fuel-item .m-type { color: #a5c2b0; font-weight: 700; font-size: 1.2rem; }
.modal-fuel-item .m-price { font-family: monospace, sans-serif; color: var(--color-accent); font-size: 2rem; font-weight: 700; text-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }

.modal-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 20px; text-align: center; }
.service-icon { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 10px; }
.service-box h4 { color: var(--color-white); margin-bottom: 8px; font-size: 1.1rem; }
.service-box p { color: #a5c2b0; font-size: 0.9rem; line-height: 1.4; }

.modal-footer { background: #091a11; padding: 18px; text-align: center; color: #a5c2b0; font-size: 1.1rem; border-top: 1px solid rgba(212, 175, 55, 0.1); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.modal-footer strong { color: var(--color-accent); font-weight: 400; letter-spacing: 1px; }

/* MODAL: W BUDOWIE (Dla przycisków pustych z href="#") */
.construction-content { text-align: center; padding: 50px 30px; max-width: 450px; }
.construction-icon { font-size: 4rem; color: var(--color-accent); margin-bottom: 20px; }
.construction-content h3 { color: var(--color-accent); font-size: 1.8rem; margin-bottom: 10px; }
.construction-content p { color: var(--color-primary-light); font-size: 1.1rem; }


/* ==========================================================================
   8. POPRAWKI RWD (TELEFONY I TABLETY)
   ========================================================================== */
@media (max-width: 1450px) { .main-nav ul { gap: 15px; } .main-nav a { font-size: 0.85rem; } }
@media (max-width: 1100px) { .content-grid { grid-template-columns: 1fr; } .foundation-title { font-size: 1.6rem; } .foundation-title span { font-size: 2.2rem; } }
@media (max-width: 850px) {
    @media (max-width: 850px) {
    /* --- TWÓJ STARY KOD (ZOSTAJE!) --- */
    .header-container { justify-content: flex-end; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #244231; box-shadow: 0 10px 15px rgba(0,0,0,0.2); padding: 20px; z-index: 999; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-donate { width: 100%; justify-content: center; }
    .mobile-menu-btn { display: block; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
    .donate-box { flex-direction: column; text-align: center; }
    .main-header.scrolled { background: #244231; backdrop-filter: blur(1px); box-shadow: 0 4px 15px rgba(0,0,0,20); }
    .main-header.scrolled.menu-open { background: #244231; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }

    /* --- NOWY KOD DLA ROZWIJANEGO MENU NA TELEFONIE --- */
    .main-nav .dropdown-menu {
        display: none !important; 
        position: static;
        background: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        border-top: none;
        border-radius: 8px;
        margin-top: 5px;
        padding: 5px 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: column;
    }
    
    .main-nav .has-dropdown.open .dropdown-menu {
        display: flex !important;
        animation: fadeInMobile 0.3s ease;
    }
    
    .main-nav .has-dropdown.open > a i {
        transform: rotate(180deg);
        color: var(--color-accent);
    }
    
    .main-nav .dropdown-menu a {
        padding: 10px 20px 10px 35px !important; 
        font-size: 0.9rem !important;
    }
    
    .main-nav .dropdown-menu a:hover {
        padding-left: 35px !important;
        background: transparent;
    }

    .has-dropdown > a { 
        justify-content: space-between;
        width: 100%; 
    }
}
}

@media (max-width: 950px) {
    .fuel-items-wrapper { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .fuel-item { border-right: none; padding: 5px 15px; background: rgba(255,255,255,0.03); border-radius: 8px; }
    .hero-buttons { flex-direction: column; }
    .btn-large, .btn-outline-light { width: 100%; max-width: 350px; }
    .bottom-billboard { padding: 15px; border-radius: 0; }
    .toggle-billboard { top: -15px; right: 10px; width: 32px; height: 32px; font-size: 1rem; }
   
}

@media (max-width: 600px) {
    .modal-fuels-grid, .modal-services { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 725px) {
    .header-container { justify-content: space-between; min-height: 70px; padding: 0 20px; }
    .mobile-nav-logo { display: block; width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--color-accent); overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    .mobile-nav-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
    .hero .logo-wrapper { display: none; }
    .hero { padding: 110px 0 240px !important; }
    .foundation-title { font-size: 1.15rem; margin-bottom: 15px; }
    .foundation-title span { font-size: 1.55rem; margin-top: 5px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 30px; }
}



/*--------------------------------------------------------------------------------------------------------------------------



/* ==========================================================================
   DEDYKOWANE STYLE DLA PODSTRON (np. Wydawnictwa)
   ========================================================================== */

/* Nagłówek podstrony */
.page-hero {
    background: var(--gradient-primary);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--color-white);
    border-bottom: 4px solid var(--color-accent);
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-primary-light);
    opacity: 0.9;
}

/* Nowy, elastyczny układ dla 4 kart */
.publications-grid {
    display: grid;
    /* Domyślnie rozkładamy karty na 4 kolumny obok siebie */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; /* Lekko zmniejszamy odstęp, by zmieścić 4 karty obok siebie */
    margin-top: 20px;
}

/* Na mniejszych ekranach komputerów i tabletach układamy je w symetryczne 2x2 (brak samotnej karty!) */
@media (max-width: 1200px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Na telefonach komórkowych tradycyjnie jedna pod drugą */
@media (max-width: 650px) {
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Pojedynczy kafelek */
/* Pojedynczy kafelek */
.pub-card {
    background: var(--color-white);
    border-radius: var(--radius-box);
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Zmiany dla paska gradientu */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Ukryty złoty gradientowy pasek na górze kafelka */
.pub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gradient-gold);
    transform: scaleX(0); /* domyślnie niewidoczny (ściśnięty do zera) */
    transition: transform 0.4s ease;
    transform-origin: center;
}


/* Ikona na środku kafelka */
.pub-icon {
    width: 85px;
    height: 85px;
    /* Domyślnie delikatny, półprzezroczysty złoty gradient w tle */
    background: linear-gradient(135deg, rgba(230, 194, 122, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);
    color: var(--color-accent);
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}


/* Treść w kafelku */
.pub-content {
    flex-grow: 1; /* Pcha przycisk na sam dół */
    margin-bottom: 30px;
}

.pub-content h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.pub-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Przycisk w kafelku */
.pub-action {
    width: 100%;
}

.pub-action .btn {
    width: 100%;
    font-size: 0.95rem;
}



/* ==========================================================================
   STYLE DLA PODSTRONY "DOKUMENTY"
   ========================================================================== */
.docs-layout { padding-bottom: 50px; }
.docs-section-title { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 25px; display: flex; align-items: center; gap: 12px; }
.docs-section-title i { color: var(--color-accent); }
.docs-subtitle { font-size: 1.05rem; color: var(--color-text-light); margin-bottom: 25px; margin-top: -15px;}
.mt-5 { margin-top: 60px; }

/* -- Dokumenty Główne (KRS, Statut) -- */
.important-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.important-doc-card {
    background: var(--color-white);
    border: 1px solid rgba(18, 53, 36, 0.1);
    border-left: 5px solid var(--color-accent);
    padding: 30px;
    border-radius: var(--radius-box);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.important-doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.idoc-icon {
    font-size: 2.5rem; color: var(--color-primary);
    background: var(--color-primary-light);
    width: 70px; height: 70px; min-width: 70px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.idoc-text { flex-grow: 1; }
.idoc-text h3 { color: var(--color-primary); font-size: 1.3rem; margin-bottom: 5px; }
.idoc-text p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; line-height: 1.4; }
.idoc-btn { white-space: nowrap; }

/* -- Akordeon (Rozwijane Lata Sprawozdawcze) -- */
.accordion-container { display: flex; flex-direction: column; gap: 15px; }
.accordion-item {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid rgba(18, 53, 36, 0.08);
}
.accordion-header {
    width: 100%; text-align: left; background: var(--color-white); border: none;
    padding: 22px 30px; font-size: 1.25rem; font-weight: 600; color: var(--color-primary);
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: all 0.3s ease;
}
.accordion-header i { color: var(--color-accent); transition: transform 0.4s ease; }
.accordion-header:hover { background: var(--color-primary-light); }

/* Mechanika otwierania */
.accordion-item.open .accordion-header { background: var(--color-primary); color: var(--color-white); }
.accordion-item.open .accordion-header i { transform: rotate(180deg); }
.accordion-content {
    max-height: 0; /* Ukryte na start */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fdfdfd;
}

/* -- Lista plików wewnątrz akordeonu -- */
.file-download-list { list-style: none; padding: 15px 30px 25px; margin: 0; }
.file-download-list li { margin-bottom: 10px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.file-download-list li:last-child { margin-bottom: 0; border-bottom: none; }
.file-download-list a {
    display: flex; align-items: center; padding: 12px 10px;
    color: var(--color-text-main); font-size: 0.95rem; font-weight: 500;
    transition: all 0.2s ease; border-radius: 6px;
}
.file-download-list a i.fa-file-pdf { color: #e74c3c; font-size: 1.3rem; margin-right: 15px; }
.file-download-list a .dl-icon { margin-left: auto; color: var(--color-accent); opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }

.file-download-list a:hover { background: rgba(212, 175, 55, 0.08); color: var(--color-primary); padding-left: 15px; }
.file-download-list a:hover .dl-icon { opacity: 1; transform: translateX(0); }

/* RWD dla dokumentów */
@media (max-width: 850px) {
    .important-doc-card { flex-direction: column; text-align: center; }
    .idoc-btn { width: 100%; margin-top: 15px; }
    .accordion-header { padding: 18px 20px; font-size: 1.1rem; }
    .file-download-list { padding: 10px 15px 20px; }
    .file-download-list a { font-size: 0.85rem; }
}



/* ==========================================================================
   STYLE DLA PODSTRONY "WŁADZE FUNDACJI" (Klasyczna wersja prostokątna)
   ========================================================================== */
.board-header { text-align: center; margin-bottom: 50px; }
.board-header .section-title { margin-bottom: 10px; }
.board-header .section-title::after { left: 50%; transform: translateX(-50%); }
.board-subtitle { font-size: 1.15rem; color: var(--color-text-light); }

/* Siatka wizytówek */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

/* Karta osoby */
.board-card {
    background: var(--color-white);
    border-radius: var(--radius-box);
    padding: 30px 25px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(18, 53, 36, 0.05);
    display: flex;
    flex-direction: column;
}

/* Ukryty złoty pasek u góry */
.board-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-box) var(--radius-box) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.board-card:hover::before { opacity: 1; }

/* Elegancka prostokątna ramka na zdjęcie */
.board-img-wrapper {
    width: 100%;
    height: 260px; /* Stała wysokość ramki, by wszystkie karty były równe */
    margin-bottom: 25px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s ease;
}


/* Zdjęcie w oryginalnych proporcjach (bez żadnego ucinania) */
.board-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Pokazuje CAŁE zdjęcie w oryginalnej rozdzielczości */
    background: #ffffff; /* Wtapia białe tła zdjęć w tło ramki */
    transition: transform 0.4s ease;
}


/* Typografia */
.board-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-weight: 700;
}

.board-role {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.board-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-bg-body);
    padding: 6px 15px;
    border-radius: 50px;
    margin-top: auto; /* Pcha dół wizytówki na sam dół karty, wyrównując je */
}

.board-desc i { color: var(--color-primary); opacity: 0.7; }



/* ==========================================================================
   STYLE DLA PODSTRONY "RODZINA ZIELIŃSKICH"
   ========================================================================== */
.tree-section { text-align: center; margin-bottom: 60px; }
.tree-section .section-title { margin-bottom: 10px; }
.tree-section .section-title::after { left: 50%; transform: translateX(-50%); }
.section-desc { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 35px; }

/* Wrapper na drzewo */
.tree-wrapper-card {
    background: var(--color-white);
    border-radius: var(--radius-box);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(18, 53, 36, 0.05);
    overflow-x: auto; /* Pozwala na przewijanie w bok na telefonach */
    position: relative;
}

/* Obrazek drzewa */
.family-tree-img {
    max-width: 100%; /* Na komputerze dopasuje się do ekranu */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efekt najechania wskazujący, że można kliknąć i pobrać/powiększyć */
.tree-click-link {
    display: block;
    cursor: zoom-in;
}
.tree-click-link:hover .family-tree-img {
    transform: scale(1.01);
    filter: brightness(0.98);
}

/* Mobilny pomocnik informujący o możliwości przewijania */
.tree-scroll-helper {
    display: none; /* Domyślnie ukryty na komputerze */
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* -- Boks pobierania biografii (Elegancki, ciemnozielony gradient) -- */
.bio-download-section { margin-top: 80px; }
.bio-box-card {
    background: var(--gradient-primary); /* Głęboka zieleń fundacji */
    border-radius: var(--radius-box);
    padding: 45px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

/* Delikatny efekt poświaty w tle boksu */
.bio-box-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.bio-icon {
    font-size: 3.5rem;
    color: var(--color-accent); /* Złota ikona książki */
    background: rgba(255, 255, 255, 0.05);
    width: 90px; height: 90px; min-width: 90px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.bio-content { flex-grow: 1; color: var(--color-white); }
.bio-content h2 { color: var(--color-accent); font-size: 1.8rem; margin-bottom: 12px; font-weight: 700; }
.bio-content p { color: var(--color-primary-light); font-size: 1rem; line-height: 1.6; max-width: 750px; }

.bio-action .btn-large {
    font-size: 1rem;
    padding: 16px 32px;
    white-space: nowrap;
}

/* RWD - Dostosowanie do mniejszych ekranów i telefonów */
@media (max-width: 950px) {
    .bio-box-card { flex-direction: column; text-align: center; padding: 40px 25px; }
    .bio-icon { margin-bottom: 10px; }
    .bio-action { width: 100%; }
    .bio-action .btn-large { width: 100%; display: flex; justify-content: center; }
}

@media (max-width: 850px) {
    .tree-scroll-helper { display: flex; } /* Pokazujemy informację o przewijaniu na telefonie */
    .tree-wrapper-card { padding: 15px; }
    /* Wymuszamy na obrazku minimalną szerokość na telefonach, 
       dzięki czemu nie kurczy się na siłę i napisy na drzewie pozostają czytelne */
    .family-tree-img { min-width: 800px; } 
}


/* ==========================================================================
   STYLE DLA PODSTRONY "POMOC CHARYTATYWNA"
   ========================================================================== */
.aid-grid {
    display: grid;
    grid-template-columns: 1fr 400px; /* Lewa szersza, prawa na dokumenty */
    gap: 40px;
    align-items: start;
    padding-bottom: 50px;
}

.aid-title { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 20px; font-weight: 700; line-height: 1.35; }
.aid-intro-text { font-size: 1.05rem; line-height: 1.6; color: var(--color-text-main); }
.aid-subtitle-section { font-size: 1.35rem; color: var(--color-primary); margin: 30px 0 20px; display: flex; align-items: center; gap: 10px; }

/* Lista warunków */
.aid-conditions-list { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.aid-conditions-list li { display: flex; gap: 20px; align-items: flex-start; background: #fafdfb; padding: 15px; border-radius: 8px; border: 1px solid rgba(18,53,36,0.05); }
.condition-icon { font-size: 1.8rem; color: var(--color-accent); background: var(--color-primary-light); width: 50px; height: 50px; min-width: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.condition-desc { font-size: 0.95rem; line-height: 1.5; color: var(--color-text-main); }
.condition-desc strong { color: var(--color-primary); }

/* Stylizowana karta imitująca papierowe oświadczenie */
.statement-paper {
    background: #fdfdfd;
    border: 1px solid rgba(0,0,0,0.08);
    border-top: 3px dashed var(--color-accent);
    padding: 30px;
    border-radius: 0 0 6px 6px;
    margin-top: 40px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02), 0 5px 15px rgba(0,0,0,0.02);
}
.statement-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-primary); font-weight: 700; text-align: center; margin-bottom: 20px; }
.statement-preview-text { 
    font-family: 'Georgia', serif; 
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: #555; 
    text-align: left; /* Zmiana z justify na left zapobiega rozciąganiu słów */
    text-indent: 30px; /* Dodaje eleganckie wcięcie akapitowe na początku pisma */
    margin: 0 auto;
    max-width: 95%; /* Trzyma tekst w bezpiecznych bezpiecznikach szerokości */
}
.statement-footer { display: flex; justify-content: space-between; margin-top: 30px; font-size: 0.95rem; color: #777; font-family: 'Georgia', serif; }
.statement-download-hint { margin-top: 25px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--color-text-light); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* -- Prawy panel boczny -- */
.sidebar-info-card, .sidebar-docs-card { background: var(--color-white); border-radius: var(--radius-box); padding: 30px; box-shadow: var(--shadow-soft); border: 1px solid rgba(18,53,36,0.05); margin-bottom: 30px; }
.sidebar-info-card h3, .sidebar-docs-card h3 { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--color-primary-light); padding-bottom: 10px; }
.sidebar-info-card h3 i, .sidebar-docs-card h3 i { color: var(--color-accent); }

/* Lista informacji */
.sidebar-info-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.sidebar-info-list li { display: flex; gap: 15px; align-items: flex-start; }
.sidebar-info-list li i { font-size: 1.3rem; color: var(--color-primary); margin-top: 3px; }

/* Lista dokumentów do pobrania (Kafle klikalne) */
.docs-notice { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 20px; }
.download-buttons-stack { display: flex; flex-direction: column; gap: 12px; }

.download-bar {
    display: flex; align-items: center; padding: 15px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); text-decoration: none; transition: all 0.3s ease;
}
.download-bar .icon-file { font-size: 1.5rem; width: 40px; display: flex; align-items: center; }
.download-bar .file-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text-main); flex-grow: 1; transition: color 0.3s ease; }
.download-bar .download-arrow { color: var(--color-accent); opacity: 0.7; transition: transform 0.3s ease; }

/* Style w zależności od typu pliku */
.download-bar.pdf-type { background: #fffaf9; border-left: 4px solid #e74c3c; }
.download-bar.pdf-type .icon-file { color: #e74c3c; }
.download-bar.word-type { background: #f6faff; border-left: 4px solid #2980b9; }
.download-bar.word-type .icon-file { color: #2980b9; }

/* Najazd myszki na pasek pobierania */
.download-bar:hover { transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.download-bar:hover .file-name { color: var(--color-primary); }
.download-bar:hover .download-arrow { transform: translateY(3px); opacity: 1; }

/* RWD */
@media (max-width: 1100px) {
    .aid-grid { grid-template-columns: 1fr; }
    .sidebar-info-card, .sidebar-docs-card { margin-bottom: 20px; }
}


/* ==========================================================================
   STYLE DLA PODSTRONY "DZIAŁALNOŚĆ GOSPODARCZA"
   ========================================================================== */

/* Boks informujący o misji biznesowej */
.gosp-mission-box {
    background: var(--gradient-primary); /* Głęboka zieleń */
    border-radius: var(--radius-box);
    padding: 35px 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--color-accent);
    color: var(--color-white);
}
.gosp-mission-content h2 {
    color: var(--color-accent);
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.gosp-mission-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-primary-light);
    margin: 0;
}
.gosp-mission-content strong {
    color: var(--color-white);
}

/* Siatka 3 głównych usług (na bazie plakatu) */
.gosp-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gosp-card {
    background: var(--color-white);
    border-radius: var(--radius-box);
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    border: 1px solid rgba(18,53,36,0.05);
    transition: all 0.4s ease;
}
.gosp-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Górna metka z wyróżnieniem */
.gosp-card-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}
.gosp-card:hover .gosp-card-badge {
    background: var(--gradient-gold);
    color: var(--color-primary);
}

/* Ikony usług */
.gosp-card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.1);
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 10px auto 25px;
    transition: all 0.4s ease;
}
.gosp-card:hover .gosp-card-icon {
    background: var(--gradient-gold);
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.gosp-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}
.gosp-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* -- Dolny układ podziału szczegółów i galerii -- */
.gosp-details-split {
    display: grid;
    grid-template-columns: 1fr 450px; /* Szczegóły po lewej, galeria po prawej */
    gap: 50px;
    align-items: start;
    margin-top: 50px;
    padding-bottom: 40px;
}

.gosp-details-text .section-title {
    margin-bottom: 25px;
}

/* Lista wypunktowana szczegółów */
.gosp-bullets-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 20px;
}
.gosp-bullets-list li {
    display: flex; gap: 15px; align-items: flex-start;
}
.gosp-bullets-list li i {
    font-size: 1.3rem; color: var(--color-accent); margin-top: 3px;
    background: var(--color-primary-light);
    width: 35px; height: 35px; min-width: 35px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.gosp-bullets-list li strong {
    color: var(--color-primary);
}
.gosp-bullets-list li div {
    font-size: 0.95rem; line-height: 1.6; color: var(--color-text-main);
}

/* Dwuzdjęciowa Galeria stacji */
.gosp-details-gallery {
    display: flex; flex-direction: column; gap: 25px;
}
.gosp-gallery-frame {
    background: var(--color-white);
    border-radius: var(--radius-box);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(18,53,36,0.05);
    transition: all 0.3s ease;
}
.gosp-gallery-frame:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}
.gosp-gallery-frame img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.gallery-caption {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 600;
    margin-top: 8px;
}

/* RWD */
@media (max-width: 1100px) {
    .gosp-details-split { grid-template-columns: 1fr; gap: 40px; }
    .gosp-gallery-frame img { height: 260px; }
}
@media (max-width: 600px) {
    .gosp-mission-box { padding: 25px 20px; }
}



/* ==========================================================================
   STYLE DLA PODSTRONY "HISTORIA POMNIKA KATYŃSKIEGO"
   ========================================================================== */
.history-split-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}
.history-text-col p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-main);
    margin-bottom: 20px;
}
.history-lead {
    font-size: 1.15rem !important;
    font-weight: 600;
    color: var(--color-primary) !important;
    line-height: 1.6;
}

/* Karta z mapą geograficzną */
.map-container-card {
    background: var(--color-white);
    padding: 15px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}
.map-container-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    filter: contrast(1.05);
}
.map-caption {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Stylizowany Blok Listu ks. Peszkowskiego --- */
.letter-section-container {
    margin: 80px 0;
    perspective: 1000px;
}
.letter-scroll-decoration {
    background: #fdfaf2; /* Kolor starego papieru/pergaminu */
    border: 1px solid #e1d2b8;
    border-left: 6px solid var(--color-accent);
    padding: 60px 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05), inset 0 0 40px rgba(225, 210, 184, 0.2);
    max-width: 900px;
    margin: 0 auto;
}
.letter-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
}
.letter-header .cross-icon {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 10px;
}
.letter-header h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-weight: 700;
}
.letter-header h3 {
    font-size: 1.15rem;
    color: var(--color-text-light);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 15px;
}
.letter-title {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #8c6a15;
}
.letter-body {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
.letter-body p {
    margin-bottom: 25px;
    text-align: justify;
}
.letter-quote {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--color-accent);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}
.letter-salutation {
    font-weight: 700;
    color: var(--color-primary);
}
.letter-closing {
    margin-top: 40px !important;
    text-align: right !important;
    font-style: italic;
    margin-bottom: 5px !important;
}
.letter-signature {
    text-align: right !important;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin: 0 !important;
}

/* --- Sekcja Apelu (Na samym dole) --- */
.appeal-action-container {
    margin-top: 80px;
}
.appeal-card {
    background: var(--gradient-primary); /* Ciemnozielony gradient */
    color: var(--color-white);
    border-radius: var(--radius-box);
    padding: 50px 40px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.appeal-badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--color-primary);
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 25px;
}
.appeal-card h2 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.35;
}
.appeal-card p {
    color: var(--color-primary-light);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 850px;
    margin: 0 auto;
}
.appeal-divider {
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 25px auto;
    max-width: 500px;
}
.appeal-request {
    font-weight: 600;
    color: var(--color-white) !important;
}
.appeal-button-wrapper {
    margin-top: 35px;
}

/* RWD - Urządzenia Mobilne */
@media (max-width: 1100px) {
    .history-split-layout { grid-template-columns: 1fr; }
    .history-image-col { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 750px) {
    .letter-scroll-decoration { padding: 40px 20px; }
    .letter-body p { text-align: left; font-size: 1rem; }
    .letter-header h2 { font-size: 1.5rem; }
    .appeal-card { padding: 40px 20px; }
    .appeal-card h2 { font-size: 1.4rem; }
}

/* ==========================================================================
   STYLE DLA GALERII HISTORYCZNEJ (Płynna integracja z Lightboxem)
   ========================================================================== */
.history-gallery-section {
    margin-top: 80px;
}

.history-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 zdjęć obok siebie na komputerze */
    gap: 15px;
}

/* Wykorzystujemy istniejące style nakładki i efektu hover z galerii głównej */
.history-gallery-grid .gallery-image-wrapper {
    height: 160px; /* Eleganckie, poziome kadry */
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.history-gallery-grid .gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* RWD - Dostosowanie do mniejszych ekranów */
@media (max-width: 950px) {
    .history-gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na tabletach */
    }
}
@media (max-width: 550px) {
    .history-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na telefonach */
    }
}

/* ==========================================================================
   9. POPRAWKI RWD (Ostateczna, stabilna blokada bocznego scrolla)
   ========================================================================== */
html, body {
    overflow-x: hidden !important; /* Blokuje boczny scroll na 100% urządzeń */
    width: 100%;
}

.important-docs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

p, a, span, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Zapobiegamy rozpychaniu tabeli przez długie nazwy plików na telefonie */
.file-download-list a {
    word-break: break-all; 
}

/* Gwarancja załamania długiego ciągu kropek w oświadczeniu (pomoc.html) */
.statement-preview-text {
    word-break: break-all;
    white-space: pre-wrap;
}

/* ==========================================================================
   10. MODAL DRZEWA GENEALOGICZNEGO (Rodzina Zielińskich)
   ========================================================================== */
.tree-thumbnail {
    position: relative; max-width: 600px; margin: 0 auto;
    border-radius: var(--radius-box); overflow: hidden;
    box-shadow: var(--shadow-soft); cursor: pointer;
    border: 2px solid var(--color-accent); transition: transform 0.3s ease;
}
.tree-thumbnail img { width: 100%; display: block; filter: brightness(0.9); transition: filter 0.3s ease; }
.tree-thumbnail:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.tree-thumbnail:hover img { filter: brightness(1.1); }
.tree-overlay-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(18, 53, 36, 0.9); color: var(--color-white);
    padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    border: 1px solid var(--color-accent); box-shadow: 0 10px 30px rgba(0,0,0,0.5); pointer-events: none;
}
.tree-fullscreen-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 999999; backdrop-filter: blur(10px);
}
.tree-modal-close {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem;
    cursor: pointer; z-index: 10; transition: color 0.3s ease;
}
.tree-modal-close:hover { color: var(--color-accent); }
.tree-scroll-area {
    width: 100%; height: 100%; overflow: auto; display: flex;
    align-items: center; justify-content: center;
}
.tree-scroll-area img { max-width: none; width: auto; height: 90vh; transition: transform 0.3s ease; }

.rotate-phone-prompt {
    display: none; position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-gold); color: var(--color-primary); padding: 10px 20px;
    border-radius: 50px; font-weight: 700; font-size: 0.9rem; z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); align-items: center; gap: 10px;
    animation: pulsePrompt 2s infinite;
}
@keyframes pulsePrompt { 0% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }
@media (orientation: portrait) and (max-width: 850px) {
    .rotate-phone-prompt { display: flex; }
    .tree-scroll-area { align-items: flex-start; justify-content: flex-start; padding: 100px 20px 20px; }
    .tree-scroll-area img { height: auto; width: 1200px; }
}

/* ==========================================================================
   11. LIGHTBOX - GALERIA ZDJĘĆ Z HISTORII
   ========================================================================== */
.gallery-image-wrapper .image-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 53, 36, 0.7); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; opacity: 0; transition: opacity 0.3s ease;
}
.gallery-image-wrapper:hover .image-overlay { opacity: 1; }

.lightbox-modal {
    display: none; position: fixed; z-index: 9999999; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto; display: block; max-width: 90%; max-height: 85vh;
    border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }
.lightbox-close {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1;
    font-size: 45px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.lightbox-close:hover { color: var(--color-accent); }

/* ==========================================================================
   12. EKRAN POWITALNY (SPLASH SCREEN)
   ========================================================================== */
.splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--color-primary); /* Ciemnozielone tło */
    z-index: 9999999; /* Nad wszystkim, nawet nad menu i modalem */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

/* Wygaszenie ekranu */
.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Kontener na pulsujące logo */
.splash-logo-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

/* Delikatne, eleganckie pulsowanie */
@keyframes splashPulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }
    50% { transform: scale(1.04); box-shadow: 0 10px 45px rgba(212, 175, 55, 0.45); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2); }
}