@font-face {
    font-family: "townpress";
    src: url("library/fonts/townpress.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

.tp-home:before { content: "\e600"; }
.tp-map2:before { content: "\e72a"; }
.tp-road-sign:before { content: "\e72c"; }
.tp-tree:before { content: "\e788"; }
.tp-leaf:before { content: "\e785"; }
.tp-group-work:before { content: "\e6e7"; }
.tp-bullhorn:before { content: "\e7d0"; }
.tp-papers:before { content: "\e6a8"; }
.tp-calendar-full:before { content: "\e730"; }
.tp-flag:before { content: "\e66d"; }
.tp-star:before { content: "\e66a"; }
.tp-briefcase:before { content: "\e790"; }
.tp-graduation-hat:before { content: "\e6ae"; }
.tp-camera-play:before { content: "\e6ce"; }

.project-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 0; background: transparent; color: var(--red); }
.project-icon-glyph { font-family: "townpress"; font-style: normal; font-weight: normal; font-size: 32px; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.project-icon-image { width: auto; height: auto; max-width: 58px; max-height: 58px; padding: 0; object-fit: contain; border-radius: 0; background: transparent; }
.project-card-link { display: block; margin-top: 18px; color: var(--red); font-size: 13px; font-weight: 700; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 64px; max-width: 64px; height: 64px; object-fit: contain; }
.brand span { display: block; }
.section-head h2 { letter-spacing: -.055em; /* text-shadow: 4px 5px 8px #bbbbbb; */ }
.story h3 { letter-spacing: 0; }

.video-section { background: var(--ink); color: #fff; }
.video-section .section-head p { color: #d8d5cc; }
.video-section .label { color: #f3d47b; }
.video-slider { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.video-slides { min-width: 0; }
.video-slide { display: none; }
.video-slide.is-active { display: block; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #111; border: 1px solid #4d4b45; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-slider-arrow { width: 44px; height: 44px; border: 1px solid #77736a; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.video-slider-arrow:hover { background: var(--red); border-color: var(--red); }
.video-slider-controls { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.video-slider-dots { display: flex; flex-wrap: wrap; gap: 7px; }
.video-slider-dot { width: 9px; height: 9px; padding: 0; border: 1px solid #aaa69b; border-radius: 50%; background: transparent; cursor: pointer; }
.video-slider-dot.is-active, .video-slider-dot:hover { background: #f3d47b; border-color: #f3d47b; }
.video-slider-count { font: 12px "DM Mono", monospace; color: #d8d5cc; white-space: nowrap; }

.stories.news-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.stories.news-carousel::-webkit-scrollbar { display: none; }
.stories.news-carousel .story { flex: 0 0 calc((100% - 54px) / 3); scroll-snap-align: start; }
.news-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.news-carousel-dots { display: flex; flex-wrap: wrap; gap: 7px; }
.news-carousel-dot { width: 9px; height: 9px; padding: 0; border: 1px solid var(--red); border-radius: 50%; background: transparent; cursor: pointer; }
.news-carousel-dot.is-active, .news-carousel-dot:hover { background: var(--red); }
.news-carousel-nav { display: flex; align-items: center; gap: 12px; }
.news-carousel-arrow { width: 34px; height: 34px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.news-carousel-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.news-carousel-count { font: 12px "DM Mono", monospace; white-space: nowrap; }

.org-logo { display: block; width: auto; height: auto; border-radius: 0; overflow: visible; background: transparent; border: 0; }
.org-logo img { display: block; width: auto; height: auto; max-width: none; max-height: none; object-fit: initial; }
.side-note { position: relative; isolation: isolate; overflow: hidden; }
.side-note.has-photo { color: #fff; background: var(--ink); }
.side-note-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(1px); transform: scale(1.04); }
.side-note.has-photo:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(32,32,30,.82), rgba(32,32,30,.42)); }
.side-note-content { position: relative; z-index: 1; }
.side-note.has-photo .label { color: #f3d47b; }
.side-note.has-photo h2 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.side-note.has-photo p { color: rgba(255,255,255,.88); }
.side-note.has-photo .org-logo { position: relative; z-index: 1; }
.land:before, .land:after, .land > i { display: none; }
.land-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.home-partners-section { padding: 78px 0 70px; background: rgba(255,255,255,.32); }
.home-partners-section .section-head { margin-bottom: 30px; }
.home-partners-section .section-head h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.home-partners-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-partner-item { min-height: 150px; padding: 24px 14px; display: flex; align-items: center; justify-content: center; text-align: center; }
.home-partner-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 12px; }
.home-partner-image { display: block; width: min(100%, 230px); height: 100px; object-fit: contain; margin: 0 auto; }
.home-partner-caption { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.home-partner-link:hover .home-partner-caption { color: var(--red); }

.wz-announcement-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(32, 32, 30, .64); visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.wz-announcement-modal.is-open { visibility: visible; opacity: 1; }
.wz-announcement-dialog { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 38px 42px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(0, 0, 0, .25); }
.wz-announcement-dialog h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 14px 0 20px; letter-spacing: normal; }
.wz-announcement-body { font-size: 15px; line-height: 1.75; color: var(--muted); }
.wz-announcement-image { margin: 0 0 20px; text-align: center; }
.wz-announcement-image img { display: block; width: 100%; max-height: 220px; object-fit: contain; margin: 0 auto; }
.wz-announcement-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.wz-debug-panel { position: relative; z-index: 20; width: min(1240px, calc(100% - 24px)); margin: 12px auto; padding: 12px 16px; background: #fff3cd; border: 1px solid #d39e00; color: #20201e; font: 13px monospace; }

@media (max-width: 760px) {
    .video-slider { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 7px; }
    .video-slider-arrow { width: 34px; height: 34px; font-size: 22px; }
    .video-slider-controls { grid-column: 2; }
    .video-slider-dots { gap: 5px; }
    .stories.news-carousel .story { flex-basis: 100%; }
    .news-carousel-controls { align-items: flex-start; }
    .news-carousel-dots { max-width: calc(100% - 130px); gap: 5px; }
    .wz-announcement-dialog { padding: 34px 24px 28px; }
    .home-partners-section { padding: 58px 0 50px; }
    .home-partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .home-partner-item { min-height: 130px; padding: 18px 8px; }
    .home-partner-image { height: 82px; }
}

main { background: #fff; }

/* Logo i nazwa organizacji zawsze tworzą jeden układ poziomy. */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { display: block; width: 80px; max-width: 80px; height: 80px; object-fit: contain; flex: 0 0 80px; }
.brand span { display: block; min-width: 0; }
@media (max-width: 760px) {
    .brand { gap: 8px; }
    .brand-logo { width: 58px; max-width: 58px; height: 58px; flex-basis: 58px; }
}

/* Opcjonalne, stałe zdjęcie w tle pierwszego modułu Home. */
.hero-main { position: relative; isolation: isolate; overflow: hidden; }
.hero-background { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-background img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(3px); transform: scale(1.05); opacity: .78; }
.hero-main.has-photo:after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, rgb(171 171 160 / 76%), rgba(32, 32, 30, .48) 55%, rgb(177 177 167 / 62%)); }
.hero-main.has-photo h1 { color: #fff; }
.hero-main.has-photo p { color: rgba(255,255,255,.86); }
.hero-main.has-photo .label { color: #f3d47b; }
.hero-main.has-photo .textlink { color: #fff; border-color: #f3d47b; }
.hero-main h1,
.hero-main p,
.hero-main .textlink { margin-left: 30px; }
.land { display: none; }
.hero-grid { box-shadow: 7px 20px 19px #c7c7c7; }

#aktualnosci .section-head h2,
.support .section-head h2,
.home-partners-section .section-head h2,
.contact h2 { text-shadow: 4px 5px 8px #bbbbbb; }

/* Ciemne tło modułu pozostaje także wtedy, gdy nie ma zdjęcia. */
.side-note {
    color: #fff;
    background:
        radial-gradient(circle at 52% 78%, rgba(255,255,255,.86), transparent 42%),
        linear-gradient(66deg, #bdbd8f, #3b493d 58%, #3b3b12);
}
.side-note h2 { color: #fff; }
.side-note p { color: rgba(255, 255, 255, .84); }
.side-note > .label,
.side-note .label { color: #f3d47b; }
/* Poprawki i rozszerzenia wyłącznie dla aktywnej strony Home.
   Plik jest ładowany po home-static.css, dlatego reguły poniżej mogą
   świadomie nadpisywać bazowy wygląd. */
