:root {
    --primary-gold: #D4AF37;
    --hover-gold: #B8860B;
    --bg-hover-gold: rgba(212, 175, 55, 0.15);
    --secondary-red: #8B0000;
    --hover-red: #BC0000;

    /* SIDEBAR MODULE REGULES */
    --sidebar-width-full: 200px;
    --sidebar-width-collapsed: 80px;
    --sidebar-transition-speed: 0.4s;
}

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

html {
   font-size: 16px;
   scroll-behavior: smooth;
}

body {
   font-family: 'Lora', serif;
   line-height: 1.6;
   color: #333;
   background-color: #fff;
}


h1, h2, h3, h4 { 
    font-weight: 700;
    color: #222; 
}
h1 { font-size: 2.5rem; 
    line-height: 1.2; 
    text-wrap: balance; 
}
h2 { 
    font-size: 2rem; 
    line-height: 1.3; 
    margin-bottom: 1.5rem; 
}
h3 { 
    margin-bottom: 1rem;
    font-size: 1.35rem; 
    line-height: 1.4;
}
h4 { 
    font-size: 1rem; 
    line-height: 1.4; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

p { margin-bottom: 1rem; }
time { 
    font-size: 0.85rem; 
    color: #666; 
    font-family: monospace; 
}
a {text-decoration: none;
color: inherit;}

/* Ikony Google Material */
.material-symbols-outlined {
    font-variant: normal;
    display: inline-block;
    vertical-align: middle;
    color: var(--primary-gold);
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

ul, ol {
   list-style: none;
   margin: 0;
   padding: 0;
}

li a {
   text-decoration: none;
   color: inherit;
   display: block;
   padding: 10px 0;
}

/* PRZYCISKI */
button,
a.btn {
    font-family: inherit;
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    /* font-size: 0.85rem; */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: #fff !important;
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: var(--hover-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid var(--primary-gold);
}
.btn-outline .material-symbols-outlined {
    color: inherit !important;
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.stage-info .btn-outline:hover .material-symbols-outlined {
    color: #fff;
}

.btn:active {
    transform: translateY(0);
}
/* PRZYCISKI end */


/* GLOBALNE STYLE DLA IKON SVG */
.icon {
    /* 1. Rozmiar: używamy em, aby ikona skalowała się razem z tekstem */
    width: 1.2em;
    height: 1.2em;
    width: 24px;
    height: 24px;

    fill: currentColor;

    /* 3. Pozycjonowanie: idealne wyrównanie w linii z tekstem */
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px; /* Subtelna korekta optyczna, by ikona nie "siedziała" za nisko */

    /* 4. Wydajność: informujemy przeglądarkę o braku interakcji myszą z samym SVG */
    pointer-events: none;
    
    /* 5. Płynność: jeśli zmieniamy kolor tekstu na hover */
    transition: fill 0.2s ease, transform 0.2s ease;
}

/* Większa ikona (np. do nagłówków) */
.icon-lg {
    width: 1.8em;
    height: 1.8em;
}

/* Ikona z marginesem po prawej (gdy stoi przed tekstem) */
.icon-left {
    margin-right: 0.5rem;
}

/* Ikona z marginesem po lewej (gdy stoi po tekście) */
.icon-right {
    margin-left: 0.5rem;
}

/* Efekt obrotu (np. dla rozwijanego "Czytaj więcej") */
.is-expanded .icon-rotate {
    transform: rotate(180deg);
}



/* =============================
   UKŁAD STRONY (LAYOUT)
   ============================= */
.site-container {
   display: flex;
   flex-direction: row;
   max-width: 1600px;
   margin: 0 auto;
   background: #fff;
   min-height: 100vh;
   align-items: flex-start;
   border: 1px solid #eee;
}

.page-content {
   flex: 1;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
   min-width: 0;
}






/* ==============================
   HEADER (TOP BAR)
   ============================== */
.top-bar {
   position: sticky;
   position: -webkit-sticky;
   top: 0;
   width: 100%;
   height: auto;
   padding: 5px 15px;
   background-color: rgba(255, 255, 255, 0.9);
   backdrop-filter: blur(8px);
   border-bottom: 1px solid #eee;
   z-index: 50;
}

.top-bar-inner {
    position: relative;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-only {
    height: 100%;
    display: block;
    max-height: 60px;
    align-items: center;
}

/* Meta i Social */
.top-meta { 
    margin-left: auto;
    width: auto;
    display: flex; 
    align-items: center; 
    gap: 15px; 
    line-height: 1; 
}
.top-meta .btn.btn-outline,
.top-meta .btn.btn-primary {
    padding: 8px 20px;
}
.top-meta .btn.btn-primary .material-symbols-outlined {
    color: white;
}

.top-meta .btn.btn-outline:hover {
    background-color: #fff;
    /* color: var(--primary-gold) !important; */
    color: inherit !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: #c5a028;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-icons { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    line-height: 1; 
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: translateY(-1px);
}


.share-trigger { 
    background: none; 
    border: none; cursor: 
    pointer; padding: 0; 
    transition: 0.2s; 
}
.share-trigger:hover { 
    transform: translateY(-1px);
}

/* Styl dla powiadomienia o skopiowaniu */
.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    .top-bar {
        padding: 5px 15px;
    }
    .top-bar-inner {
        position: relative;
        justify-content: space-between;
    }
    .cta-text, .phone-number {
        display: none;
    }
}
@media (max-width: 600px) {
    header.top-bar {
        padding: 5px 10px;
    }
    .top-bar-inner {
        gap: 10px;
    }
    .top-meta {
        gap: 10px;
    }
}



/* ===========================
   HERO - STRUKTURA WARSTW
   =========================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* TŁO (Background) - Rozciągnięte na całość */
.hero-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 1;
    border: none;
}

/* SMACZEK (Mały obrazek splash) - Twoje oryginalne ustawienia */
.hero-img {
    position: absolute;
    top: 35%;
    right: 5%;
    width: 250px;
    height: 219px;
    background-image: url('../img/splash.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: 5;
    pointer-events: none;
}

/* WARSTWA PRZYCIEMNIAJĄCA */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(255,255,255,0.1) 100%);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 10;
    padding: 20px 50px;
}
.hero-title {
    margin: 0;
    margin-bottom: 0.6rem;
    max-width: 1200px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 2px;
    color: #fff;
}

.hero-subtitle {
    display: inline;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    background-color: #880000;
    color: #fff;
    padding: 5px 15px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 2;
}
@media (max-width: 600px) {
    .hero-inner {
        padding: 30px 20px;
    }
}






/* ===========================
 BREADCRUMBS 
 ============================= */
/* Pasek okruszków */
.breadcrumb-bar {
    background: #fdfdfd;
    border-bottom: 1px solid #eee;
    padding: 10px 15px;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: #888;
}

.breadcrumbs a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #d4af37;
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumbs .current {
    font-weight: 500;
    color: #333;
}

.action-bar {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: #fff;
    border-bottom: 2px solid #d4af37;
    padding: 12px 0;
}




/* ===========================
 WYSZUKIWARKA (SEARCH BAR) 
 ============================= */
.action-bar {
    position: sticky;
    top: 70px;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #eee;
    z-index: 100;
}
.search-under-hero {
    width: 100%;
    max-width: 600px;
}
.main-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0 15px;
    width: 100%;
    height: 50px;
    transition: all 0.3s ease;
}

.main-search-form:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.main-search-form input {
    /* width: 100%; */
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.main-search-form:hover {
    border-color: var(--primary-gold);
}
.clear-btn {
    cursor: pointer;
    color: #999;
    padding: 5px;
    font-size: 20px;
    transition: color 0.2s;
    user-select: none;
}

.clear-btn:hover {
    color: #d4af37;
}
/* zaznaczanie szukanych fraz */
mark.hl-gold {
    background-color: rgba(212, 175, 55, 0.25);
    border-radius: 2px;
}

/* Na mobile wyszukiwarka zajmie całą szerokość */
@media (max-width: 768px) {
    .action-bar {
        padding: 10px 15px;
    }
    .search-under-hero {
        max-width: 100%;
    }
    .main-search-form {
        flex-wrap: wrap;
    }
    .search-btn {
        width: 100%;
        margin-top: 10px;
    }
}





/* ===========================
    MODUŁ ARTYKUŁU (NEWS-ITEM)
   =========================== */
.content-limit {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.news-item {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px; 
    background: #fff;
    border: 1px solid #d3d3d3;
    margin-bottom: 30px;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* --- UKŁAD PROSTY (SIDE-BY-SIDE) --- */
.news-item.layout-simple {
    /* min-height: 260px; */
    /* padding: 10px; */
    /* min-height: 450px; */
}
/* Obrazki mają wypełniać wysokość, nie tracąc proporcji */
/* Obrazki, Wideo, Mapy - Wypełnianie */
.news-item img, 
.news-item video, 
.news-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.news-content-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
}

.news-item.is-expanded .news-content-extra {
    max-height: 3000px;
    opacity: 1;
}

.news-item:target {
    animation: focus-highlight 2s ease-out;
}

/* Ukrywamy licznik zdjęć w układzie prostym */
.layout-simple .media-badge {
    display: none !important;
}

.news-item:hover { 
    border: 1px solid #666;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

/* Kontener mediów */
.news-media-wrapper, 
.side-media {
    height: 300px;
    overflow: hidden;
    background: #fff;
    /* border-radius: 8px; */
}
/* --- MULTIMEDIA (Wspólne zasady) --- */
.news-media-wrapper {
    height: 220px;
    overflow: hidden;
    background: #fff;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f1f1f1;
}

.gallery-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.gallery-track::-webkit-scrollbar {
    height: 6px;
}

.gallery-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.gallery-track::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.image-wrapper, 
.video-wrapper, 
.audio-wrapper, 
.pdf-wrapper {
    position: relative;
    height: 100%;
    width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

/* Obrazy i Wideo - wypełnienie */
.image-wrapper img, 
.video-wrapper video {
    height: 100%;
    max-width: 255px;
    display: block;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* Karta PDF - specyfika */
.pdf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 200px;
    min-width: 160px;
    height: 100%;
    background: #333;
    display: flex;
    transition: filter 0.3s ease;
}

.pdf-link {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    text-align: center;
}

.pdf-name { font-size: 0.85rem;  }

/* Kontener dla małych galerii */
.layout-simple .simple-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    height: 100%;
    gap: 0;
}

/* LEWA KOLUMNA W UKŁADZIE PROSTYM */
.layout-simple .side-media {
    width: 254px;
    height: 100%;
    border-radius: 0;
    position: relative;
}

.layout-simple .map-wrapper {
    height: 100%;
}

/* PRAWA KOLUMNA W UKŁADZIE PROSTYM */
.layout-simple .side-content {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}
/* --- NADPISYWANIE GALERII DLA UKŁADU PROSTEGO --- */
.layout-simple .gallery-track {
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.layout-simple .image-track {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
}

.layout-simple .image-wrapper, 
.layout-simple .map-container, 
.layout-simple .video-wrapper {
    width: 100% !important;
    max-height: 100% !important;
    min-width: 100% !important;
    position: absolute;
    top: 0; left: 0;
    cursor: default;
}

/* Ukrywamy wszystko poza pierwszym elementem (zajawką) */
.layout-simple .image-wrapper:not(:first-child),
.layout-simple .map-container:not(:first-child),
.layout-simple .video-wrapper:not(:first-child) {
    display: none !important;
}

/* --- TREŚĆ I TEKST --- */
.news-content-wrapper {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Limitowanie tekstu w zajawce */
.layout-simple .news-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-text.rows p {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer { 
    margin-top: auto; 
    display: flex; 
    gap: 15px;
}

.news-footer .btn-outline.expand-btn .material-symbols-outlined {
    color: #000;
}

.news-footer .btn .icon {
    width: 18px;
    height: 18px;
    margin-left: 5px;
    transition: transform 0.2s ease-in-out;
}

/* Efekt "pchnięcia" strzałki przy najechaniu na przycisk */
.news-footer .btn:hover .icon {
    transform: translateX(3px);
}

/* Responsywność */
@media (max-width: 850px) {
    .news-item.layout-simple {
        height: auto;
        min-height: auto;
    }
    .layout-simple .simple-grid {
        grid-template-columns: 1fr;
    }
    .layout-simple .side-media {
        width: 100%;
        height: 250px;
    }
}

/* Kontener mapy w tracku galerii */
.map-container {
    flex: 0 0 auto;
    width: 600px;
    height: 100%;
    /* border-radius: 12px; */
    background: #111;
}

@media (max-width: 768px) {
    .layout-simple .side-content {
        padding: 25px;
    }
    .news-item {
        scroll-margin-top: 70px;
    }
    .map-container {
        width: 320px;
    }
}
@media (max-width: 600px) {
    .layout-simple .side-content {
        padding: 15px;
    }
    .news-content-wrapper {
        padding: 0;
    }
}


/* ===========================
    INTERFEJS (STRZAŁKI / BADGE)
   =========================== */
.gallery-nav {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: none;
}

.nav-btn {
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    pointer-events: auto;
    z-index: 20;
}

.nav-btn:last-child { background: linear-gradient(to left, rgba(0,0,0,0.5), transparent); }

.nav-btn .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-btn:hover .material-symbols-outlined { transform: scale(1.1); opacity: 1; }

.media-badge {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.6);
    color: var(--primary-gold);
    padding: 6px 12px;
    /* border-radius: 4px; */
    font-size: 0.8rem;
    display: flex; gap: 8px; align-items: center;
    z-index: 25;
}

.video-wrapper, .audio-wrapper, .image-wrapper {
    position: relative;
    cursor: pointer;
}

.gallery-hover-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 10;
    fill: white;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-wrapper:hover .gallery-hover-icon,
.video-wrapper:hover .gallery-hover-icon,
.audio-wrapper:hover .gallery-hover-icon {
    opacity: 0.8;
}


@media (hover: hover) {
    .gallery-container.can-scroll:hover .gallery-nav { 
        display: flex !important; 
        opacity: 1; 
    }

    .gallery-track {
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: #ccc #f1f1f1; /* Firefox */
    }
    .image-wrapper:hover::after,
    .video-wrapper:hover::after,
    .audio-wrapper:hover::after,
    .pdf-wrapper:hover::after { 
        opacity: 0.8; 
    }
    
    .image-wrapper:hover img, 
    .video-wrapper:hover video,
    .audio-wrapper:hover,
    .pdf-wrapper:hover { 
        filter: brightness(0.6); 
    }
}

@media (hover: none) {
    .gallery-track::-webkit-scrollbar { height: 6px; }
    .gallery-track::-webkit-scrollbar-thumb { background: #888; }
}

/* Treść w artykule */
.news-content-wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-head time svg {
    width: 1.2rem;
    height: auto;
    fill: #888;
}

.news-text.rows p {
    display: -webkit-box;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer { 
    padding-top: 10px; 
    display: flex; 
    gap: 15px; 
}

/* Extra Content (JS Toggle) */
.extra-content {
    display: none;
    margin-top: 20px; 
    border-top: 1px solid #eee; 
    padding-top: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.js-collapsible.is-expanded .extra-content {
    display: block;
    opacity: 1;
}

/* Dokumenty/Skany */
.document-list {
    background: #fdfdfd;
    border-left: 3px solid var(--primary-gold);
    padding: 20px;
    margin: 20px 0;
}

.document-list li { margin-bottom: 12px; }

.document-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}
.document-list a:hover { color: #D4AF37; }




/* okno lightboxa */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

/* Kontener na multimedia i opis */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.lightbox-content img, 
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

/* Klasa paska opisu - upewniamy się, że reaguje na myszkę i jest widoczna */
.media-caption-bar {
    position: fixed;
    z-index: 6; 
    color: #ffffff; /* Lub Twój kolor var(--primary-gold) */
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    width: 100%;
    pointer-events: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    top: 20px;
    right: 20px;
    color: var(--primary-gold);
    background-color: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.lightbox-close:hover { color: var(--hover-gold); }

.lb-touch-zone {
    position: fixed;
    top: 0;
    height: 100%;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.lb-prev.lb-touch-zone { 
    left: 0;
    justify-content: flex-start; 
}
.lb-next.lb-touch-zone { 
    right: 0; 
    justify-content: flex-end; 
}

.lb-prev.lb-touch-zone:hover { 
    background: linear-gradient(to right, rgba(255,255,255,0.05), transparent); 
}
.lb-next.lb-touch-zone:hover { 
    background: linear-gradient(to left, rgba(255,255,255,0.05), transparent); 
}


/* Strzałki wewnątrz Lightboxa */
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 3;
    /* z-index: 10100; */
}

.lb-nav .icon {
    position: relative;
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
    z-index: 3;
}

.lb-nav:hover .icon {
    opacity: 1;
    color: var(--primary-gold);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }




/* ===========================
   STOPKA (FOOTER)
   =========================== */
.site-footer {
    background-color: #f8f8f8;
    padding: 40px 30px 10px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    gap: 30px;
}
.footer-col { flex: 1; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col p, 
.footer-col li,
.footer-col a {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.footer-col a {
    text-decoration: none;
    line-height: 1.5;
}

.footer-col .acc-box.footer-acc {
    max-width: fit-content;
    padding: 10px 20px;
    text-align: left;
    background-color: #333;
    color: #fff !important;
}

.footer-col .account-number {
    font-family: monospace;
    background: #333;
    color: var(--primary-gold);
    border-radius: 4px;
    display: block;
}

.footer-col .account-number span {
    color: #fff;
}

.footer-col p.account-number {
    margin: 0;
}
.footer-col.contact svg {
    color: #666;
}
.footer-bottom {
    border-top: 1px solid #ddd;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* ==========================
   POJEDYNCZE WYDARZENIE
   ========================== */
/* Kontener galerii na podstronie wydarzenia */
.event-details .gallery-container {
    width: 100%;
    height: 600px;
    margin: 30px 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-input);
}

/* Stylizacja samych zdjęć wewnątrz tracka */
.event-details .gallery-track img, 
.event-details .gallery-track .video-wrapper video {
    height: 600px;
    width: 450px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.news-head time {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Subtelna ikonka kalendarza */
.icon-soft-gray {
    color: #888; /* Szary kolor zamiast akcentu */
    font-variation-settings: 'wght' 400, 'opsz' 24; /* Cieńsza kreska */
    font-size: 20px; /* Dopasowanie rozmiaru do fontu daty */
}


@media (max-width: 768px) {
    .event-details .gallery-container {
        height: 400px;
    }
    .event-details .gallery-track img, 
    .event-details .gallery-track .video-wrapper video {
        height: 400px;
        width: 300px;
    }
}





/* =================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ================================= */
@media (max-width: 1024px) {
    .site-container { display: block; }
    .top-bar { 
        position: sticky; 
        top: 0;
        bottom: auto;
        background: #fff;
    }
    .quick-nav { display: none; }
    .search-wrapper { flex: 1; }

    /* Dolne menu mobilne (z Sidebaru) */
    .toggle-sidebar {
        display: none !important;
    }
    
    .page-content { padding-bottom: 72px; }
    .footer-inner { flex-direction: column; text-align: center;}

    .acc-box.footer-acc {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .content-limit { padding: 20px 10px; }
    .news-media-wrapper { height: 250px; }
    .news-footer { flex-direction: column; }
    .btn { width: 100%; }

    .gallery-nav {
        display: none !important;
    }
    
    .gallery-track {
        padding: 0 10px;
    }
    .news-content-wrapper {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .news-content-wrapper {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .top-meta a.btn.btn-primary,
    .top-meta a.btn.btn-outline {
        padding: 8px;
    }
}



/* ===========================
   SIDEBAR (NAWIGACJA)
   =========================== */

/* 1. KONTENER GŁÓWNY */
.side-nav {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width-full);
    height: 100vh;
    position: sticky;
    top: 0;
    background: #fff;
    border-right: 1px solid #eee;
    transition: width var(--sidebar-transition-speed) ease;
    z-index: 100;
}

/* 2. PRZYCISK TOGGLE & IKONY */
.toggle-sidebar {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 24px 20px;
    background: none;
    border: none;
    cursor: pointer;
    
}

#toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #aaa;
}

/* Logika przełączania ikon SVG */
#toggle-icon .icon-open { display: block; }
#toggle-icon .icon-closed { display: none; }

/* Stan po dodaniu klasy .collapsed przez JS */
.side-nav.collapsed #toggle-icon .icon-open { 
    display: none !important; 
}
.side-nav.collapsed #toggle-icon .icon-closed { 
    display: block !important; 
}


/* 4. MENU I LINKI */
.side-menu {
    flex-grow: 1;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 25px;
    gap: 15px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    z-index: 1000;
}

.side-menu li a:hover,
.side-menu li a.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.side-menu li a.active {
    font-weight: 600;
    border-right: 4px solid var(--primary-gold);
}


/* 6. GLOBALNE ZACHOWANIE DLA STANU ZWINIĘTEGO (Desktop) */
.side-nav.collapsed {
    width: var(--sidebar-width-collapsed);
    overflow: visible;
}

/* Ukrywanie napisów w menu i stopce */
.side-nav.collapsed .side-menu a span,
.side-nav.collapsed .admin-access-link span {
    display: none;
}

/* Centrowanie ikon w zwiniętym pasku */
.side-nav.collapsed .side-menu li a {
    justify-content: center;
    padding: 14px 0;
    border-right: none;
}

/* 7. CHMURKI / TOOLTIPY (Tylko Desktop przy zwiniętym menu) */
@media (min-width: 1025px) {
    @media (hover: hover) {
        .side-nav.collapsed .side-menu li a {
            position: relative;
        }

        .side-nav.collapsed .side-menu li a.active {
        border-right: 3px solid var(--primary-gold) !important;
        z-index: 102;
}

        .side-nav.collapsed .side-menu li a::after {
            content: attr(data-tooltip);
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(0) translateX(10px);
            background: #333;
            color: #fff;
            padding: 7px 18px;
            border-radius: 12px 2px 12px 2px;
            font-size: 0.85rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
            z-index: 101;
            box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
        }

        .side-nav.collapsed .side-menu li a:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateY(-100%) translateX(0);
        }
    }
}

/* 8. WIDOK MOBILNY (Pasek dolny) */
@media (max-width: 1024px) {
    .side-nav, 
    .side-nav.collapsed {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: 70px !important;
        flex-direction: row !important;
        border-right: none;
        border-top: 1px solid #eee;
        background: #fff;
        padding: 0 !important;
        z-index: 1000;
    }

    /* Ukrywamy elementy zbędne na mobile barze */
    .toggle-sidebar, 
    .side-logo, 
    .sidebar-footer {
        display: none !important;
    }

    .side-menu {
        width: 100%;
        overflow-x: auto !important;
        display: flex;
    }

    .side-menu ul {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        height: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .side-menu li {
        flex: 1 0 auto;
        min-width: 80px;
    }

    .side-menu li a {
        flex-direction: column !important;
        padding: 10px 5px !important;
        font-size: 0.7rem;
        gap: 4px !important;
        justify-content: center;
        background: none !important; /* Usuwamy tło hovera na mobile */
    }

    .side-nav.collapsed .side-menu li a span,
    .side-nav .side-menu li a span {
        display: block !important;
    }

    .side-menu li a.active {
        border-right: none;
        border-top: 3px solid var(--primary-gold);
        background-color: rgba(212, 175, 55, 0.1) !important;
    }
}






/* 5. STOPKA I PANEL ADMINA */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 0 50px;
    display: flex;
    justify-content: center;
}

.admin-access-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.admin-access-link:hover {
    color: var(--primary-gold);
    opacity: 1;
}





/* ==========================
   PAGE-COMPETITION 
   ============================ */
/* KONTENER GŁÓWNY */
.competition-experience {
    width: 100%;
    overflow: hidden;
}

/* NAWIGATOR (STACJA) */
.timeline-nav {
    width: 100%;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
}

.timeline-nav::-webkit-scrollbar {
    height: 4px;
}
.timeline-nav::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.timeline-track {
    position: relative;
    width: 100%;
    min-width: max-content;
    padding: 30px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    direction: rtl;
}

/* Linia łącząca kropki */
.nav-line {
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    height: 1px;
    background: #888;
    z-index: 1;
}

/* Ukrywamy inputy radio */
.timeline-track input[type="radio"] { display: none; }

.step-node {
    width: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.step-date { 
    font-size: 0.85rem; 
    color: #999; 
}

.step-dot {
    margin: 20px 0;
    width: 14px;
    height: 14px;
    border: 1px solid #666;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.step-label {
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 150px;
    text-align: center;
    white-space: normal;
    color: #666;
}

/* EFEKT ACTIVE (po kliknięciu) */
input[type="radio"]:checked + .step-node .step-dot {
    border-color: var(--primary-gold);
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transform: scale(1.3);
}

input[type="radio"]:checked + .step-node .step-label { 
    color: #000; 
    font-weight: 700; 
}

/* SCENA (KARTY TREŚCI) */
.stage-container { 
    position: relative; 
    min-height: 400px; 
}

.stage-card {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    background: #fff;
    padding: 30px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    display: none; 
    animation: fadeIn 0.5s ease forwards;
}

.stage-info {
    max-width: 100%; /* Trzyma się swoich 40% */
}

.stage-info h3 {
    margin-bottom: 1rem;
}

.stage-card.active { 
    position: relative;
    max-width: 100%;
    display: block; }

.stage-grid {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 30px;
    align-items: start;
}

.stage-header { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}
.stage-number { 
    font-size: 3rem; 
    font-weight: 800; 
    color: rgba(212, 175, 55, 0.2); 
    line-height: 1; 
    font-family: serif;
}

.stage-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* Status W REALIZACJI */
.status-current {
    background-color: #bbb;
    color: #fff;
}

/* Status: ZAKOŃCZONE */
.status-completed {
    background: #888;
    color: #eee;
}

/* Status: PLANOWANE */
.status-upcoming {
    background: transparent;
    color: #999;
    border: 2px solid #ccc;
}

.stage-downloads h4 {
    margin: 2rem 0 1rem;
}

.stage-media {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.lead-text { 
    font-size: 1.2rem; 
    line-height: 1.6; 
    color: #444; 
    margin-bottom: 25px; 
}

/* Mała specyfikacja */
.info-specs { 
    margin-bottom: 30px; 
    border-top: 1px solid #eee; 
    padding-top: 20px; 
}

.spec-item { 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    color: #666; 
}
.spec-item strong { color: #000; }

/* Ramka na media */
.media-container {
    position: relative;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

.media-main-frame {
    position: relative;
    max-width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}
.media-main-frame img {
    height: 92%;
}
.media-caption-bar {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: left;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #333;
    backdrop-filter: blur(5px);
    z-index: 100;
}

@keyframes galleryFade {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

/* Nałożenie animacji na nowe elementy w ramce */
.fade-in {
    animation: galleryFade 0.4s ease-out forwards;
}
.media-main-frame img, 
.media-main-frame video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.overlay-play-btn {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    color: #fff; 
    font-size: 4rem; 
    z-index: 2; 
    opacity: 0.8;
    pointer-events: none; /* Żeby ikona nie blokowała kliknięcia w wideo */
}

/* Miniaturki pod głównym obrazem */
.media-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    
}
.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 2px;
    background-color: #eee;
    transition: 0.2s;
}
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 2px;
}
.thumb.active,
.thumb:hover {
    border-color: #d4af37;
}
.video-thumb {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.map-thumb { background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #888; }

/* Przycisk akcji */
.btn-main {
    background: #000; color: #fff; padding: 12px 25px; border: none;
    border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-main:hover { background: var(--primary-gold); }

.doc-link-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #555;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.doc-link-mini:hover { border-color: var(--primary-gold); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .stage-grid { grid-template-columns: 1fr;
    padding: 20px; }
    .stage-card {padding: 0;}
    .media-main-frame {
        height: 400px;
    }
}





/* ================================
   STRONA KOMITET
   ================================ */

.komitet-page {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.komitet-section {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .komitet-section {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .komitet-section {
        padding: 10px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f8f8;
}

.section-header .material-symbols-outlined {
    color: var(--primary-gold);
    font-size: 28px;
}

.section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SIATKA (GRID) --- */
.komitet-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .komitet-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Kontener siatki dla grup władz */
.authorities-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dwie równe kolumny */
    gap: 40px; /* Odstęp między grupami */
    margin-top: 10px;
}

/* Stylizacja poszczególnych grup */
.auth-group {
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.auth-group.honor-bg {
    background: #fdfaf2;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.auth-group h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #222;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-group h4 .material-symbols-outlined {
    color: var(--primary-gold);
    font-size: 22px;
}

.auth-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-group li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.auth-group li:last-child {
    border-bottom: none;
}

.auth-group ul li strong {
    color: #111;
}

.auth-group li small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* --- DANE KONTAKTOWE I REJESTROWE --- */
.contact-details-box {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item h5 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.detail-item p {
    margin: 0;
    font-weight: 500;
    color: #222;
}

.contact-links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.c-link:hover {
    color: var(--primary-gold);
}

.registration-data {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reg-pill {
    background: #f4f4f4;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #555;
    border: 1px solid #e8e8e8;
}


/* --- DOKUMENTY DO POBRANIA --- */
.docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}
.docs-list.protokol {
    display: flex;
}

.doc-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.doc-btn:hover {
    border-color: var(--primary-gold);
    background: #fffdf5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.doc-btn .material-symbols-outlined {
    color: #d32f2f; /* Kolor PDF */
    font-size: 24px;
}

/* RWD: Na telefonach jedna kolumna */

@media (max-width: 768px) {
    .authorities-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .auth-group {padding: 0;}
    .bank-accounts-container {
        grid-template-columns: 1fr;
    }
}





/* ================================
   STRONA POMNIK
   ================================ */

/* Stylizacja idei */
.monument-intro-card {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1200px) {
    .monument-intro-card {
        padding: 20px;
    }
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
    align-items: center;
}

.intro-quote blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-gold);
    border-left: 4px solid var(--primary-gold);
    padding-left: 20px;
    margin: 0;
}

/* Sekcja finansowa - Ciemna i elegancka */
.monument-fund-highlight {
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 50px;
    margin: 60px 0;
}
.monument-fund-highlight .material-symbols-outlined {
    font-size: 28px;
}
.fund-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.fund-header h3 {
    color: var(--primary-gold);
    margin: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.finance-grid {
    display: grid;
    gap: 30px;
    align-items: center;
}

.fund-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-pomnik {
    /* padding: 30px 0; */
    grid-template-columns:1fr 1fr;
    align-items: start;
    background-color: #1a1a1a;
}

small.label-muted {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Responsywność dla 1024px */
@media (max-width: 1024px) {
    .intro-grid, .fund-grid {
        grid-template-columns: 1fr;
    }
}


/* --- FINANSE I KOPIOWANIE --- */
.bank-accounts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.bank-item {
    padding: 30px 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #1a1a1a;
}

.bank-item.dark-theme {
    background: #1a1a1a;
}

.bank-item.special-gold {
    background: #fffdf2;
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.acc-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.acc-label-wrapper .material-symbols-outlined {
    color: #aaa;
}

/* Wariant dla komitet.php (Konto + Konto) */
.grid-komitet {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.acc-box {
    max-width: fit-content;
    position: relative;
    padding: 20px 50px;
    border-radius: 8px;
    cursor: pointer;
    /* text-align: center; */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #888;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.acc-box .number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6rem;
    font-weight: bold;
    display: block;
    color: #333;
}

.finance-grid span.bank-name {
    display: block;
    margin-top: 1rem;
    color: #bbb;
}


.acc-box.dark-theme {
    max-width: fit-content;
    padding: 25px 40px;
    background: #1a1a1a;
    border-color: var(--primary-gold);
}

.acc-box.dark-theme .number {
    color: var(--primary-gold);
}

.acc-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.acc-box span.number {
    color: #ddd;
}

/* 1. Stan spoczynkowy - napis jest tam, ale go nie widać */
.copy-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-gold); /* Lub kolor, który u Ciebie oznacza sukces */
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    
    opacity: 0;            /* <--- TO GO UKRYWA */
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;           /* Upewnij się, że jest nad numerem konta */
}

/* 2. Stan po kliknięciu - JS dodaje klasę 'copied' do rodzica (acc-box) */
.acc-box.copied .copy-status {
    opacity: 1;            /* <--- TO GO POKAZUJE */
}

/* RWD */

@media (max-width: 900px) {
    .grid-pomnik,
    .grid-komitet { 
        grid-template-columns: 1fr; 
    }
}







/* ========================
 strona ARCHIWUM
=========================== */

/* --- Pole wyszukiwania i filtry --- */
.archive-filters-container {
    margin-bottom: 30px;
}



/* --- ARCHIVE GRID --- */
.archive-body {
    padding-bottom: 50px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Karta Wydarzenia */
.archive-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d3d3d3;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.archive-item:hover {
    border-color: #888; /* Złoty hover */
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transform: translateY(-5px);
}

/* HERO Z EFEKTEM PRZEZROCZYSTOŚCI */
.card-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    height: 120px;
    background: #f1f5f9;
    background-image: linear-gradient(45deg, #f1f5f9 25%, #f8fafc 25%, #f8fafc 50%, #f1f5f9 50%, #f1f5f9 75%, #f8fafc 75%, #f8fafc 100%);
    background-size: 15px 15px;
}

.hero-img-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #e2e8f0;
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-img-box:nth-child(2) {
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
}

/* TREŚĆ KARTY */
.archive-info { 
    padding: 18px;
    display: flex; 
    flex-direction: column; 
    flex-grow: 1;
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.archive-date { 
    font-size: 0.75rem; 
    color: #94a3b8; 
}

.media-count {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 2px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #f1f5f9;
}

.archive-title {
    margin: 10px 0; 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #1e293b; 
    line-height: 1.35; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-excerpt {
    font-size: 0.82rem; 
    color: #64748b; 
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

/* ZŁOTY LINK */
.archive-more-link {
    margin-top: auto; 
    color: #bfa100; 
    font-weight: 500; 
    font-size: 0.7rem;
    text-transform: uppercase;
    display: flex; 
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

/* Tagi w archiwum */
.archive-tags {
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-top: auto;
    padding-top: 15px;
}

.tag-label {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s;
    color: #1e293b !important;
}

/* HOVER EFFECTS */
.archive-item:hover .hero-img-box img {
    opacity: 1;
}

.archive-item:hover .archive-more-link { 
    gap: 12px; 
}

/* Dedykowane kolory dla tagów */
.tag-budowa     { background: #fef3c7; } /* Bursztynowy */
.tag-dokumenty  { background: #f1f5f9; } /* Stalowy/Neutralny */
.tag-komitet    { background: #e0e7ff; } /* Indygo */
.tag-konkurs    { background: #fae8ff; } /* Fuksja */
.tag-media      { background: #ede9fe; } /* Lawendowy */
.tag-obchody    { background: #fce7f3; } /* Różany */
.tag-pomnik     { background: #e0f2fe; } /* Błękitny */
.tag-projekt    { background: #dcfce7; } /* Szmaragdowy */
.tag-wydarzenie { background: #ffedd5; } /* Brzoskwiniowy */
.tag-zbiorka    { background: #bbf7d0; color: #065f46 !important; } /* Zielony */

/* Efekt najechania dla lepszej interakcji */
.tag-label:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* Responsywność */
@media (min-width: 1200px) {
    .archive-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 640px) {
    .archive-grid { grid-template-columns: 1fr; }
    .card-hero-layout { height: 180px; }
    .archive-search-box { max-width: 100%; }
}





/* =============================
   POLECANE
   ============================= */
/* Sekcje polecanych */
.rec-section { margin-bottom: 40px; }
.rec-header { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 25px; 
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 10px;
}
.rec-header h3 { margin: 0; text-transform: uppercase; color: #333; }

/* Portale - Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
/* Kontener karty */
.portal-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.portal-card:hover {
    transform: translateY(-3px);
    /* border-color: var(--primary-gold); */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Kontener na logo */
.portal-icon {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    border: 1px solid #f0f0f0;
}

/* Sam obrazek logo */
.portal-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Tekst obok logo */
.portal-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #222;
}

.portal-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}


/* Biblioteka (Książki) */
.book-shelf {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.book-item {
    flex: 0 0 180px;       /* Nie pozwalamy książce się gnieść, szerokość stała 200px */
    height: 260px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.book-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.book-overlay {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff; 
    padding: 15px; 
    transform: translateY(100%);
    transition: 0.3s;
}

.book-item h5 {
    line-height: 1.45;
    margin-bottom: 2px;
}

.book-item small {
    padding: 0;
    margin: 0;
    line-height: 0.5;
}

.book-item:hover .book-overlay { 
    transform: translateY(0); 
}

/* Akordeon (Filmy) */
.acc-item { 
    color: #333; 
    border-bottom: 1px solid #eee; 
}
.acc-trigger {
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 0; 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 1.1rem; 
    text-align: left;
}
.acc-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: 0.3s; 
    color: #666; 
}

.acc-item.active .acc-content { 
    max-height: 300px; 
    padding-bottom: 20px; 
}
.acc-item.active .acc-trigger span:last-child { 
    transform: rotate(180deg); 
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.article-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-row .material-symbols-outlined {
    color: #aaa
}

.rec-section .art-meta {
    display: flex;
    width: fit-content;
    justify-content: space-between;
}

.article-row a {color: var(--primary-gold);}
.article-row a:hover {color: var(--hover-gold);}


/* =============================
   COOKIES
   ============================= */
   .cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 650px;
    background: #1a1a1a; /* Kolor tła Twojej stopy */
    color: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    border: 1px solid #d4af37; /* Twój kolor złoty */
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    z-index: 10000;
    display: none; /* Sterowane przez JS */
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.cookie-content p {margin-bottom: 0;}
.gold-icon { color: #d4af37; font-size: 28px; }
a.cookie-link {color: var(--primary-gold);}

.btn-cookie {
    background: #d4af37;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.btn-cookie:hover {
    background: #fff;
    transform: translateY(-2px);
}





/* WSPÓLNY LIMIT DLA PIERWSZEGO AKAPITU OPISU */
.news-text > p:first-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5; /* Ważne dla precyzyjnego liczenia wysokości */
}

/* 1. LIMIT DLA LAYOUT-SIMPLE (Sztywna karta) */
.layout-simple .news-text > p:first-child {
    -webkit-line-clamp: 3;
    max-height: 5em;
}

/* 2. LIMIT DLA LAYOUT-STANDARD (Z możliwością rozwijania) */
/* Tniemy tylko gdy news NIE JEST rozwinięty */
.layout-standard:not(.is-expanded) .news-text > p:first-child {
    -webkit-line-clamp: 2;
    max-height: 4em; 
}

/* 3. CO SIĘ DZIEJE PO KLIKNIĘCIU "CZYTAJ WIĘCEJ" */
.news-item.is-expanded .news-text > p:first-child {
    -webkit-line-clamp: initial;
    max-height: none;
    display: block; /* Przywracamy normalny model pudełkowy */
}

/* Animacja obrotu ikony w przycisku newsa */
.news-item.is-expanded .toggle-news-btn svg {
    transform: rotate(180deg);
}
.toggle-news-btn svg {
    transition: transform 0.3s ease;
}