/* 1. TOTALNY RESET LIST I KROPEK ORAZ BAZA RESPONSYWNA */
* { box-sizing: border-box !important; }
html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; overflow-x: hidden !important; font-family: sans-serif; color: #000000 !important; }
ul, li { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; border: none !important; }
li::before, li::after { content: none !important; }

/* Ukrywanie standardowych elementów Grav */
#header, .navbar, .navbar-section, .header-navigation, .desktop-nav { display: none !important; }

/* Elastyczne zdjęcia */
img { max-width: 100% !important; height: auto !important; display: block; margin: 10px auto; }

/* 2. GŁÓWNY KONTENER TREŚCI I TYPOGRAFIA BAZOWA (BEZ DEFINICJI KOLORÓW) */
main { width: 100% !important; max-width: 1200px !important; margin: 0 auto !important; padding: 20px !important; }
p { margin: 15px 0 !important; }
main h1, main h2, main h3, main h4 { color: #0025cc !important; margin: 15px 0 !important; }

/* 3. NAGŁÓWEK */
.top-contact-bar { background: #0025cc; padding: 6px 0; text-align: center; color: #fff; width: 100%; }
.top-contact-bar a, .top-contact-bar a:link, .top-contact-bar a:visited, .top-contact-bar a[href^="tel:"], .top-contact-bar a[href^="mailto:"] { color: #ffffff !important; font-weight: bold; margin: 0 10px; text-decoration: none !important; font-size: 0.85rem; display: inline-block; }
.header-white-area { background: #fff; padding: 10px 0; text-align: center; border-bottom: 1px solid #ccc; width: 100%; }
.top-contact-bar a span.phone-icon-red { color: #cc0000 !important; text-shadow: 0 0 10px rgba(204, 0, 0, 0.7) !important; }

/* 4. HAMBURGER I BELKA MENU */
.menu-bar-area { background: #eeeeee; padding: 10px 0; display: flex; justify-content: center; border-bottom: 1px dashed #ccc; width: 100%; }
.mobile-menu-box { background: #fff; border: 1.5px solid #000; padding: 8px 15px; cursor: pointer; border-radius: 4px; display: block !important; line-height: 0; }
.button_container { width: 28px; height: 18px; position: relative; display: block; }
.button_container span { background: #0025cc !important; height: 3.5px; width: 100%; position: absolute; left: 0; border-radius: 2px; }
.button_container span:nth-of-type(1) { top: 0; }
.button_container span:nth-of-type(2) { top: 7px; }
.button_container span:nth-of-type(3) { top: 14px; }

/* 5. NAKŁADKA (OVERLAY) */
.overlay { position: fixed !important; background: #fff !important; top: 0; left: 0; width: 100vw !important; height: 100vh !important; display: none; z-index: 999999; overflow-x: hidden; margin: 0 !important; }
.overlay.open { display: block !important; overflow-y: auto; }
.close-btn { display: block; margin: 20px auto 10px; width: 55px; height: 50px; font-size: 30px; color: #ff0000; cursor: pointer; border: 2px solid #ff0000; text-align: center; line-height: 46px; font-weight: bold; }

.overlay-menu { width: 100%; text-align: center; padding-bottom: 40px; }
.overlay-menu ul li a { color: #0025cc !important; text-decoration: none !important; display: block !important; padding: 15px 0; font-size: 1.1rem; font-weight: 600; width: 100%; border-bottom: 1px solid #f2f2f2; }
.overlay-menu ul li ul { display: block !important; background: #ffffff !important; padding-left: 35px !important; }
.overlay-menu ul li ul li a { color: #0025cc !important; font-size: 1rem !important; padding: 12px 0 !important; text-align: left !important; font-weight: 400 !important; border-bottom: 1px dashed #eee !important; }

/* 6. KOMPUTER - ROZWIJANIE PO NAJECHANIU */
@media (min-width: 961px) {
    .menu-bar-area { display: none !important; }
    .desktop-nav { display: block !important; background: #eeeeee; padding: 0; border-bottom: 1px dashed #ccc; width: 100%; text-align: center; }
    .desktop-nav > ul { display: flex !important; justify-content: center; align-items: center; min-height: 45px; }
    .desktop-nav > ul > li { position: relative; }
    .desktop-nav > ul > li > a { color: #0025cc !important; font-weight: 700; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; padding: 12px 18px; display: block; }
    .desktop-nav ul li ul { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #ccc; min-width: 220px; display: none !important; z-index: 1000; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .desktop-nav ul li:hover > ul { display: block !important; }
    .desktop-nav ul li ul li a { text-align: left; padding: 10px 15px; color: #333333 !important; text-transform: none; font-weight: 400; font-size: 0.8rem; border-bottom: 1px solid #eee !important; }
}

/* 7. STOPKA I LOGO */
.footer-fundacja { background: #0025cc !important; color: #ffffff !important; padding: 40px 20px; width: 100%; }
.footer-fundacja h3 { color: #ff0000 !important; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; border: none !important; }
.footer-fundacja a, .footer-fundacja a:link, .footer-fundacja a:visited, .footer-fundacja a[href^="tel:"], .footer-fundacja a[href^="mailto:"], .footer-fundacja p { color: #ffffff !important; text-decoration: none !important; }

.logo-area { display: block !important; margin: 0 auto !important; padding: 10px 0 !important; text-align: center !important; }
.logo-area img, .logo-area svg { width: 100% !important; max-width: 300px !important; height: auto !important; display: inline-block !important; margin: 0 !important; }

@media (max-width: 960px) {
    .logo-area img, .logo-area svg { max-width: 180px !important; padding: 5px 0 !important; }
}

.footer-container { display: flex !important; flex-wrap: wrap !important; gap: 30px !important; max-width: 1200px !important; margin: 0 auto !important; }
.footer-col { flex: 1 !important; }
.footer-col-info { min-width: 250px !important; }
.footer-col-links { min-width: 150px !important; }
.footer-col-legal, .footer-col-donate { min-width: 200px !important; }

/* 8. CZERWONY PRZYCISK Z POŚWIATĄ */
.btn.btn-primary { display: block !important; width: max-content !important; background: linear-gradient(90deg, #ff1a1a 0%, #cc0000 100%) !important; color: #ffffff !important; padding: 8px 25px !important; border-radius: 30px !important; font-weight: 500 !important; text-decoration: none !important; border: none !important; box-shadow: 0 0 15px 4px rgba(255, 0, 0, 0.6) !important; text-align: center !important; margin: 15px auto !important; }

/* 9. WTYCZKA COOKIE CONSENT */
#cc-main .c-bn { border-radius: 30px !important; }
#cc-main .c-bn--primary { background-color: #cc0000 !important; color: #ffffff !important; }
#cc-main .c-bn--secondary { background-color: #ffffff !important; color: #0025cc !important; border: 1px solid #0025cc !important; }
#cc-main .pm__section-title { color: #0025cc !important; }

/* 10. WYMUSZENIE CZERWIENI TYLKO DLA GŁÓWNEGO BLOKU TREŚCI */
main a, main a:link, main a:visited, main a[href^="mailto:"], main a[href^="tel:"] { color: #cc0000 !important; text-decoration: underline !important; }

/* 11. DOSTĘPNOŚĆ I WCAG */
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: 3px solid #0025cc !important; outline-offset: 2px !important; }

/* 12. FORMULARZE KONTAKTOWE */
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100% !important; max-width: 100% !important; padding: 12px !important; margin-bottom: 15px !important; border: 1px solid #0025cc !important; border-radius: 4px !important; color: #000000 !important; background-color: #ffffff !important; }
form button, form input[type="submit"] { background: #cc0000 !important; color: #ffffff !important; border: none !important; padding: 12px 25px !important; border-radius: 30px !important; cursor: pointer; font-weight: bold !important; width: auto !important; display: block !important; }

/* 13. ELEMENTY SEMANTYCZNE MARKDOWN */
blockquote { border-left: 5px solid #0025cc !important; padding-left: 15px !important; margin: 20px 0 !important; font-style: italic !important; color: #000000 !important; }

/* 14. NAWIGACJA POBOCZNA (BREADCRUMBS I PAGINACJA) */
.breadcrumbs { padding: 10px 0 !important; font-size: 0.9rem !important; width: 100% !important; }
.breadcrumbs a { color: #cc0000 !important; text-decoration: none !important; }
.pagination { display: flex !important; justify-content: center !important; gap: 10px !important; margin: 20px 0 !important; width: 100% !important; }
.pagination a, .pagination .active { padding: 8px 16px !important; border: 1px solid #0025cc !important; text-decoration: none !important; border-radius: 4px !important; }
.pagination a { color: #0025cc !important; }
.pagination .active { background-color: #0025cc !important; color: #ffffff !important; }

/* 15. KOMUNIKATY SYSTEMOWE */
.alert { padding: 15px !important; margin-bottom: 20px !important; border-radius: 4px !important; width: 100% !important; color: #000000 !important; }
.alert-success { background-color: #e6ffed !important; border: 1px solid #0025cc !important; }
.alert-error, .alert-danger { background-color: #ffeef0 !important; border: 1px solid #cc0000 !important; }
