/* ============================================================
   Fundacja BOŚ — motyw bos2026
/* ============ Tokeny ============ */

:root {
  --white: #fff;
  --green: #95c11f;
  --dark-green: #018043;
  --darkest: #123a31;
  --teal: #285360;
  --blue: #b8dde2;
  --yellow: #f7da32;
  --card-border: #eeeeee;
  --overlay: rgba(18, 58, 49, 0.40);
  --font-main: "Nunito Sans", sans-serif;
  --font-alt: "Montserrat", sans-serif;
  --container: 1280px;
  --gutter: 64px;
  /* margines poziomy sekcji — nadpisywany w breakpointach */;
}

/* ============ Reset / baza ============ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; margin-top: 0 !important; }
#wpadminbar { opacity: .01; transition: opacity .2s ease; }
#wpadminbar:hover { opacity: 1; }
body { font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: #000; background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; }
.section-x { padding-left: var(--gutter); padding-right: var(--gutter); }
/* margines poziomy sekcji z tokenu */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============ Animacje wejścia (reveal na scroll) ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============ Przyciski (pigułki) ============ */

.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; border-radius: 30px; font-family: var(--font-alt); font-size: 1rem; line-height: 24px; color: #000; white-space: nowrap; transition: filter .2s ease; }
.btn:hover { filter: brightness(.9); }
.btn--lg { font-family: var(--font-main); font-size: 1.125rem; line-height: 25px; }
.btn--green { background: var(--green); }
.btn--blue { background: var(--blue); }
.btn--yellow { background: var(--yellow); }
.btn--darkgreen { background: var(--darkest); color: #fff; }

/* ============ Link ze strzałką ============ */

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-alt); font-size: 1rem; line-height: 24px; color: #000; }
.link-arrow--white { color: #fff; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow img { transition: transform .2s ease; }
.link-arrow:hover img { transform: translateX(4px); }

/* ============ Tagi / filtry (pigułki) ============ */

.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 15px; border-radius: 30px; background: var(--blue); font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: #000; white-space: nowrap; }
a.tag { text-decoration: none; transition: filter .2s ease; }
a.tag:hover { filter: brightness(.95); }
/* Rząd pigułek kategorii/tagów — na desktopie zawija się, na mobile przewija poziomo (patrz @media 767). */
.tag-row { display: flex; flex-wrap: wrap; }
.tag--filter { height: 30px; background: transparent; border: 1px solid #000; color: #000; text-decoration: none; transition: background .2s ease; }
.tag--filter:not(.is-active):hover { background: rgba(184, 221, 226, .3); }
.tag--filter.is-active { background: var(--blue); border-color: var(--blue); }

/* ============ Nagłówek dzielony ============ */

.section-title--split { display: flex; align-items: center; gap: 80px; }
.section-title--split > h2 { width: min(600px, 100%); flex: none; }
.section-title--split > p { width: min(600px, 100%); margin-left: auto; }

/* ============ Navbar ============ */

.navbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 80px; height: 75px; }
.navbar__logo { display: flex; align-items: center; justify-content: center; width: 150px; height: 100px; padding: 23px 33px 24px 36px; background: var(--green); border-radius: 0 0 30px 30px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.navbar__logo img { width: 77px; height: 55px; }
.navbar__links { display: flex; align-items: center; gap: 32px; height: 75px; }
.navbar__links a { position: relative; font-family: var(--font-alt); font-size: 1rem; line-height: 24px; color: #fff; }
.navbar__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22, .61, .36, 1); }
.navbar__links a:hover::after, .navbar__links .current-menu-item > a::after, .navbar__links .current-menu-parent > a::after, .navbar__links .current-menu-ancestor > a::after, .navbar__links .current_page_item > a::after, .navbar__links .current_page_parent > a::after { transform: scaleX(1); }
.navbar--sub .navbar__links a::after, .navbar.is-sticky .navbar__links a::after { background: #000; }
@media (prefers-reduced-motion: reduce) {
  .navbar__links a::after { transition: none; }
}
.navbar__burger { display: none; color: #000; width: 48px; height: 50px; align-items: center; justify-content: center; }

/* Navbar subpages — position: relative, linki czarne, logo niższe */
.navbar--sub { position: relative; background: var(--blue); padding: 0 var(--gutter); height: 55px; box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .1); }
.navbar--sub .navbar__logo { height: 80px; padding: 10px 37px 13px 38px; }
.navbar--sub .navbar__logo img { width: 77px; height: 55px; }
.navbar--sub .navbar__links { height: 55px; }
.navbar--sub .navbar__links a { color: #000; }

/* Sticky navbar */
.navbar.is-sticky { position: fixed; top: 0; left: 0; right: 0; background: var(--blue); height: 55px; box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .1); animation: navbar-slide-in .3s ease both; }
.navbar.is-sticky.is-sticky-out { animation: navbar-slide-out .3s ease both; }
.navbar.is-sticky .navbar__logo { height: 80px; padding: 10px 37px 13px 38px; }
.navbar.is-sticky .navbar__links { height: 55px; }
.navbar.is-sticky .navbar__links a { color: #000; }

/* ============ Menu mobilne ============ */

.mobile-menu { position: fixed; inset: 0; z-index: 100; background: #fff; overflow-y: auto; }
.mobile-menu__bar { display: flex; align-items: flex-start; justify-content: space-between; background: var(--blue); height: 50px; padding: 0 12px 0 20px; }
.mobile-menu__logo { display: flex; align-items: center; justify-content: center; width: 100px; height: 62px; background: var(--green); border-radius: 0 0 20px 20px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.mobile-menu__logo img { width: 50px; height: 36px; }
.mobile-menu__close { width: 48px; height: 50px; display: flex; align-items: center; justify-content: center; color: #000; }
.mobile-menu__links li a { display: block; padding: 12px 0; font-size: 2.25rem; line-height: 40px; font-weight: 900; color: #000; }

/* ============ Hero ============ */

.hero { position: relative; min-height: 920px; display: flex; align-items: flex-end; padding: 0 var(--gutter) 160px; background: linear-gradient(var(--overlay), var(--overlay)), url("../img/hero-bg.webp") center / cover no-repeat; background-color: var(--darkest); }
/* Wideo w tle hero */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
.hero--video-ready::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--overlay), var(--overlay)); pointer-events: none; }
.hero > .container { position: relative; z-index: 2; }
/* Przycisk pauzy/odtwarzania wideo hero */
.hero__video-toggle { position: absolute; right: var(--gutter); bottom: 40px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.hero__video-toggle:hover { opacity: 1; transform: scale(1.1); }
.hero__video-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.hero__video-toggle-icon { display: block; width: 18px; height: 20px; }
.hero__video-toggle-icon--play { display: none; }
.hero__video-toggle.is-paused .hero__video-toggle-icon--pause { display: none; }
.hero__video-toggle.is-paused .hero__video-toggle-icon--play { display: block; }

/* ============ Statystyki ============ */

.stat { border-left: 1px solid #000; }

/* ============ Dla kogo jesteśmy ============ */

.audience__container { border-top: 1px solid #000; }
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); }

/* ============ Projekty (szkolne + GK) ============ */

.projects__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gk-projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.project-card__logo--fit { width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.projects__grid > article, .gk-projects__grid > article { position: relative; cursor: pointer; transition: transform .2s ease; }
.projects__grid > article:hover, .gk-projects__grid > article:hover { transform: translateY(-4px); }
.projects__grid > article:hover .link-arrow img, .gk-projects__grid > article:hover .link-arrow img { transform: translateX(4px); }
.projects__grid > article .link-arrow::after, .gk-projects__grid > article .link-arrow::after { content: ''; position: absolute; inset: 0; }
.projects__grid > article .link-arrow:hover, .gk-projects__grid > article .link-arrow:hover { text-decoration: none; }

/* ============ Karty treści (baza wiedzy / aktualności) ============ */

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); transition: opacity .2s ease; }
.cards-grid.is-loading { opacity: .4; pointer-events: none; }
.card { border: 1px solid var(--card-border); transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0px 4px 20px 0px #00000040; cursor: pointer; }
.card__link::after { content: ''; position: absolute; inset: 0; }
.card__image { width: 100%; height: 266px; object-fit: cover; border-radius: 30px 30px 0 0; }
.card__watch { position: absolute; right: 20px; bottom: 20px; background: var(--green); color: #000; font-size: .875rem; line-height: 140%; border-radius: 30px; padding: 7px 12px; }
.section-divider { width: 100%; height: 0; margin: 0; border: 0; border-top: 1px solid #000; }

/* ============ Baza wiedzy ============ */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 40px; }
.filters--subcats { margin-bottom: 20px; }

/* ============ Testimonial ============ */

.testimonial__slide { grid-area: 1 / 1; opacity: 0; pointer-events: none; }
.testimonial__slide.is-active { opacity: 1; pointer-events: auto; }
.testimonial__slide.is-active.anim-next { animation: bos-slide-from-right 0.42s cubic-bezier(.25,.46,.45,.94) both; }
.testimonial__slide.is-active.anim-prev { animation: bos-slide-from-left 0.42s cubic-bezier(.25,.46,.45,.94) both; }
.testimonial__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial__arrow { position: absolute; top: 142px; z-index: 2; width: 64px; height: 48px; border: 1px solid #000; border-radius: 30px; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; }
.testimonial__arrow:hover { background: var(--green); border-color: var(--green); }
.testimonial__arrow--prev { left: 0; }
.testimonial__arrow--next { right: 0; }
.testimonial__dot { width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: .3; transition: opacity 0.25s, transform 0.25s; }
.testimonial__dot.is-active { opacity: 1; transform: scale(1.35); }

/* ============ Footer ============ */

.footer__col { flex: 1; }
.footer__col--logo { flex: 0 0 174px; }
.footer__logo { width: 98px; height: 70px; }
.footer__list li a { display: block; padding: 8px 0; font-size: 0.875rem; line-height: 20px; }
.footer__list li a:hover { text-decoration: underline; }
.footer__address { font-style: normal; }
.footer__address a { text-decoration: underline; }
.newsletter-form__input { flex: 1; min-width: 0; height: 56px; padding: 12px 20px; background: transparent; border: 1px solid #fff; border-radius: 10px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: #fff; }
.newsletter-form__input::placeholder { color: #fff; opacity: 1; }
.newsletter-form__consent { cursor: pointer; }
.newsletter-form__consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.newsletter-form__checkbox { flex: none; width: 18px; height: 18px; border: 1px solid #fff; border-radius: 5px; }
.newsletter-form__consent input:checked + .newsletter-form__checkbox { background: var(--green); border-color: var(--green); }
.newsletter-form__consent a { text-decoration: underline; }
.newsletter-form__status { margin-top: 8px; }
.newsletter-form__status.is-error { color: #ffb3a7; }
.footer__divider { border: none; border-top: 1px solid #fff; }
.footer__credits-row a:hover { text-decoration: underline; }

/* ============================================================
   O NAS (podstrona)
   ============================================================ */

/* Hero O nas */
.onas-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.onas-hero__img { width: 100%; height: 640px; min-height: 348px; object-fit: cover; border-radius: 30px; }

/* Historia */
.historia__track { display: flex; position: relative; transition: transform 0.5s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.historia__track::before { content: ''; position: absolute; top: 7.5px; left: 0; right: 0; height: 1px; background: #000; }
.historia__slide { flex: 0 0 calc(100% / 3); box-sizing: border-box; padding: 0 20px; text-align: center; color: #000; }
.historia__dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 8px #fff; position: relative; z-index: 1; }
.historia__arrow { width: 64px; height: 48px; border: 1px solid #000; border-radius: 30px; background: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, opacity .2s; }
.historia__arrow:hover { background: #000; }
.historia__arrow:hover img { filter: invert(1); }
.historia__arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* ===== Interaktywna mapa (Leaflet) ===== */
/* Filtr edycji (własny dropdown) */
.mapa__filter { position: relative; display: inline-block; }
.mapa__select { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-width: 360px; background-color: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; padding: 16px 24px; font: inherit; cursor: pointer; transition: border-color .15s ease; }
.mapa__select-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa__select:hover { border-color: var(--white); }
.mapa__select:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.mapa__chevron { flex: none; transition: transform .2s ease; }
.mapa__select[aria-expanded="true"] .mapa__chevron { transform: rotate(180deg); }
.mapa__menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; margin: 0; padding: 6px; list-style: none; background: var(--white); border-radius: 12px; box-shadow: 0 18px 40px rgba(18, 58, 49, .28); max-height: 320px; overflow-y: auto; }
.mapa__menu[hidden] { display: none; }
.mapa__menu li { margin: 0; }
.mapa__option { display: block; padding: 11px 16px; border-radius: 8px; color: var(--darkest); text-decoration: none; text-align: left; white-space: nowrap; transition: background-color .12s ease; }
.mapa__option:hover, .mapa__option:focus-visible { background: rgba(184, 221, 226, .4); }
.mapa__option.is-active { background: var(--blue); color: var(--darkest); font-weight: 400; }
.mapa__filter.is-loading .mapa__select { opacity: .6; pointer-events: none; }

/* Legenda projektów */
.mapa__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.mapa__legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; line-height: 1.2; }
.mapa__legend-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }

.mapa__leaflet { width: 100%; max-width: 1280px; height: 738px; border-radius: 30px; overflow: hidden; z-index: 0; } /* rozmiar 1:1 z .ts-map__area (bos2026-projekty) */
.mapa__leaflet .leaflet-container { font: inherit; height: 100%; }
/* Wygląd mapy pochodzi z gotowego basemapu CARTO Positron (dane OSM) —
   bez filtrów CSS na kafelkach. Patrz warstwa kafelków w assets/js/map.js. */

/* Etykiety województw (divIcon) — dorysowywane w JS na basemapie bez napisów */
.leaflet-div-icon.mapa-woj { background: none; border: none; }
.mapa-woj { font-family: var(--font-alt); font-size: 0.625rem; line-height: 1.1; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; white-space: normal; color: rgba(18, 58, 49, .58); text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .95); pointer-events: none; }

/* Etykiety miast (divIcon) — kropka + nazwa, dorysowywane w JS wg populacji/zoomu.
   Korzeń zostaje 0×0 w punkcie (Leaflet pozycjonuje go inline transformem); centrowanie
   robi wewnętrzny .mapa-city__inner, którego Leaflet nie rusza. */
.leaflet-div-icon.mapa-city { background: none; border: none; width: 0 !important; height: 0 !important; overflow: visible; pointer-events: none; }
.mapa-city__inner { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; white-space: nowrap; transform: translate(-2px, -50%); }
.mapa-city__dot { flex: none; width: 5px; height: 5px; border-radius: 50%; background: rgba(18, 58, 49, .55); }
.mapa-city__name { font-family: var(--font-alt); font-weight: 600; line-height: 1; color: rgba(18, 58, 49, .72); text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9); }
.mapa-city--lg .mapa-city__dot { width: 6px; height: 6px; background: var(--green); }
.mapa-city--lg .mapa-city__name { font-size: 0.8125rem; font-weight: 700; color: rgba(18, 58, 49, .82); }
.mapa-city--md .mapa-city__name { font-size: 0.6875rem; }
.mapa-city--sm .mapa-city__dot { width: 4px; height: 4px; background: rgba(18, 58, 49, .45); }
.mapa-city--sm .mapa-city__name { font-size: 0.625rem; color: rgba(18, 58, 49, .6); }

/* Pinezka (divIcon) z pulsem */
.leaflet-div-icon.mapa-pin { background: none; border: none; }
.mapa-pin__dot { position: relative; display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.mapa-pin__dot::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(149, 193, 31, .55); animation: mapa-pulse 2.4s ease-out infinite; }

/* Popup w stylu serwisu (markup budowany w JS — stąd style tutaj) */
.mapa__leaflet .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 18px 40px rgba(18, 58, 49, .28); }
.mapa__leaflet .leaflet-popup-content { margin: 16px 18px; }
.mapa-popup { display: flex; flex-direction: column; gap: 6px; color: var(--darkest); }
.mapa-popup__title { font-family: var(--font-alt); font-size: 1rem; line-height: 20px; font-weight: 700; }
.mapa-popup__desc { margin: 0; font-size: 0.875rem; line-height: 20px; color: #4a5a55; }

/* Zespół */
.zespol__row { display: grid; grid-template-columns: 1fr 1fr; }
.team-card__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Transparentność */
.transparentnosc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.doc-card__link:hover { text-decoration: underline; }
.doc-card__link img { transition: transform .2s ease; }
.doc-card__link:hover img { transform: translateX(4px); }

/* ============================================================
   PROJEKTY (podstrona)
   ============================================================ */

/* Hero */
.projekty-hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-card__image { width: 100%; height: 233px; object-fit: cover; }
.value-card__content { padding: 32px; }

/* Projekty szkolne */
.projekty-szkolne__grid { display: grid; grid-template-columns: 1fr 1fr; }
.szkolne-card--teal .szkolne-card__body { color: #fff; }
/* Przycisk karty projektu — wspólny dla sekcji szkolnej i GK (warianty koloru niżej / w sekcji GK). */
.szkolne-card__btn, .gk2-card__btn { transition: filter .2s ease; }
.szkolne-card__btn:hover, .gk2-card__btn:hover { filter: brightness(.9); }
.szkolne-card--green .szkolne-card__btn { background: var(--green); color: #000; }
.szkolne-card--yellow .szkolne-card__btn { background: var(--yellow); color: #000; }
.szkolne-card--blue .szkolne-card__btn { background: var(--blue); color: #000; }
.szkolne-card--teal .szkolne-card__btn { background: var(--teal); color: #fff; }

/* Projekty GK BOŚ */
.projekty-gk__heading { border-top: 1px solid var(--card-border); }
.projekty-gk__grid { display: grid; grid-template-columns: 1fr 1fr; }
.gk2-card--darkest .gk2-card__body { background: var(--darkest); }
.gk2-card--darkgreen .gk2-card__body { background: var(--dark-green); }
.gk2-card--darkest .gk2-card__btn { background: var(--darkest); color: #fff; }
.gk2-card--darkgreen .gk2-card__btn { background: var(--dark-green); color: #fff; }

/* ============================================================
   BAZA WIEDZY / AKTUALNOŚCI (category.php)
   ============================================================ */

.cat-archive__filters .filters { margin-bottom: 0; flex-wrap: wrap; }

/* ============================================================
   KONTAKT (podstrona)
   ============================================================ */

.kontakt__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #000; border-radius: 10px; padding: 12px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: #000; background: #fff; }
.field input { height: 48px; }
.field select { height: 48px; appearance: none; background-image: url('../svg/icon-chevron-down.svg'); background-repeat: no-repeat; background-position: right 12px center; }
.field textarea { height: 180px; resize: vertical; }
.field ::placeholder { color: #767676; opacity: 1; }
.contact-form__consent { cursor: pointer; }
.contact-form__consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.contact-form__consent .newsletter-form__checkbox { border-color: #000; }
.contact-form__consent input:checked + .newsletter-form__checkbox { background: var(--green); border-color: var(--green); }
.contact-form__consent a { text-decoration: underline; }
.field__error { color: #D51110; }
.field__error:empty { display: none; }
.field--error input, .field--error select, .field--error textarea { border-color: #D51110; padding-right: 44px; background-image: url('../svg/icon-warning.svg'); background-repeat: no-repeat; background-position: right 12px center; background-size: 24px 24px; }
.field--error select { background-image: url('../svg/icon-warning.svg'), url('../svg/icon-chevron-down.svg'); background-position: right 12px center, right 40px center; background-size: 24px 24px, 24px 24px; padding-right: 72px; }
.field--error textarea { background-position: right 12px top 12px; }
.contact-form__inne-msg { background: #f5f5f0; border-left: 3px solid var(--green); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.contact-form__server-error { color: #D51110; }
.contact-form__server-error a { color: inherit; text-decoration: underline; }
.contact-form__spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: cf-spin .7s linear infinite; }
.contact-form__spinner.is-active { display: inline-block; }
.cf-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.cf-modal[hidden] { display: none; }
.cf-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.cf-modal__box { position: relative; background: #fff; color: #000; border-radius: 24px; padding: 48px 40px 40px; max-width: 480px; width: calc(100% - 32px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.18); animation: cf-modal-in .3s cubic-bezier(.34,1.56,.64,1) both; }
.cf-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s; }
.cf-modal__close:hover { background: #f5f5f5; }
body.modal-open { overflow: hidden; }

/* ============================================================
   PAGE.PHP — Dokument z TOC (Statut, Polityka prywatności…)
   ============================================================ */

.statut__grid { display: flex; justify-content: space-between; gap: 192px; align-items: flex-start; }
.toc { width: 320px; flex-shrink: 0; position: sticky; top: 24px; }
.toc__title { padding-left: 15px; border-left: 3px solid var(--green); }
/* Linki TOC generowane w JS z nagłówków treści */
.toc__list a { display: block; padding: 12px 16px; font-size: 1.125rem; line-height: 25px; border-radius: 10px; }
.toc__list a:hover { background: #f5f5f5; }
.toc__list a.is-active { font-weight: 900; border: 1px solid #000; }
/* Typografia treści z edytora */
.statut__body h2 { font-size: 3rem; line-height: 53px; font-weight: 900; padding-bottom: 16px; }
.statut__body > * + h2 { padding-top: 80px; }
.statut__body h3 { font-size: 1.5rem; line-height: 31px; font-weight: 900; padding: 24px 0 20px; }
.statut__body p { font-size: 1rem; line-height: 22px; padding-bottom: 16px; }
.statut__body ul { font-size: 1rem; line-height: 32px; padding-left: 24px; list-style: disc; margin-bottom: 16px; }
.statut__body ol { font-size: 1rem; line-height: 32px; padding-left: 24px; list-style: decimal; margin-bottom: 16px; }
.statut__body li { padding-left: 4px; }
.statut__body a { color: var(--dark-green); text-decoration: underline; }

/* ============================================================
   SPRAWOZDANIA (archive-report.php)
   ============================================================ */

.spr-year { display: flex; gap: 80px; align-items: flex-start; }
.spr-year + .spr-year { margin-top: 120px; }
.spr-year__num { width: 500px; flex-shrink: 0; }
.spr-item { padding: 20px 0; border-top: 1px solid #000; }
.spr-item:hover { color: var(--dark-green); }
.spr-item svg { flex-shrink: 0; }

/* ============================================================
   PROJEKTY ARCHIWALNE (page-template)
   ============================================================ */

.arch-card--reverse { flex-direction: row-reverse; }
.arch-card__img { width: 640px; flex-shrink: 0; min-height: 628px; border-radius: 30px; background: #d9d9d9; }
.arch-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.arch-card__content { padding: 48px 60px; }

/* ============================================================
   SINGLE POST (single.php)
   ============================================================ */

/* Artykuł — elementy PHP-rendered */
.article__img { width: 100%; height: 400px; object-fit: cover; border-radius: 30px; }
.article__caption { display: flex; align-items: stretch; gap: 8px; margin-top: 10px; font-size: 0.875rem; line-height: 20px; }
.article__caption::before { content: ""; width: 2px; background: var(--green); flex-shrink: 0; }

/* Artykuł — typografia treści z edytora (the_content()) */
.article__body p { font-size: 1rem; line-height: 32px; padding-bottom: 16px; }
.article__body h2 { font-size: 1.5rem; line-height: 27px; font-weight: 900; margin-bottom: 16px; padding-top: 30px; }
.article__body ul { font-size: 1rem; line-height: 32px; padding-left: 24px; list-style: disc; margin-bottom: 16px; }
.article__body ul li { padding-left: 4px; }
.article__body blockquote { display: flex; gap: 20px; margin: 36px 0; font-size: 2.25rem !important; line-height: 110% !important; font-weight: 900 !important; }
.article__body blockquote::before { content: ""; width: 2px; background: var(--green); flex-shrink: 0; }
.article__body blockquote p { font-size: 2.25rem; line-height: 110%; font-weight: 900; padding-bottom: 0; }
.article__body a { color: var(--dark-green); text-decoration: underline; }
/* Tabela */
.article__body .wp-block-table { border: 1px solid #000; border-radius: 24px; overflow: hidden; margin-bottom: 32px; }
.article__body .wp-block-table figure { margin: 0; }
.article__body table { width: 100%; border-collapse: collapse; }
.article__body table caption { font-size: 1.5rem; line-height: 27px; font-weight: 900; text-align: left; padding: 24px; border-bottom: 1px solid #000; caption-side: top; }
.article__body table th { font-size: 1rem; line-height: 19px; font-weight: 700; text-align: left; padding: 16px 24px; border-bottom: 1px solid #000; }
.article__body table td { font-size: 1rem; line-height: 22px; font-weight: 400; padding: 28px 24px; border-bottom: 1px solid #000; }
.article__body table tr:last-child td { border-bottom: none; }
/* ===== Galeria (masonry, naturalne proporcje) ===== */
/* Nadpisujemy natywny layout flex bloku galerii (is-layout-flex) — stąd !important. */
.article__body .wp-block-gallery { display: block !important; column-count: 2; column-gap: 20px; margin: 36px 0; list-style: none; padding: 0; }
.article__body .wp-block-gallery .wp-block-image { position: relative; margin: 0 0 20px !important; width: auto !important; max-width: none !important; flex: initial !important; display: block; break-inside: avoid; -webkit-column-break-inside: avoid; overflow: hidden; border-radius: 24px; cursor: zoom-in; }
.article__body .wp-block-gallery .wp-block-image > a { display: block; width: 100%; }
/* Reveal na scroll — aktywny tylko gdy JS włączony (bez JS galeria jest widoczna). */
.js .article__body .wp-block-gallery .wp-block-image { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.js .article__body .wp-block-gallery .wp-block-image.is-visible { opacity: 1; transform: translateY(0); }
.article__body .wp-block-gallery .wp-block-image img { width: 100% !important; height: auto !important; object-fit: initial !important; display: block; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.article__body .wp-block-gallery .wp-block-image figcaption { display: none !important; }
.article__body .wp-block-gallery .wp-block-image::before { content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; background: rgba(18, 58, 49, .32); transition: opacity .4s ease; }
.article__body .wp-block-gallery .wp-block-image::after { content: ''; position: absolute; z-index: 2; top: 50%; left: 50%; width: 54px; height: 54px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(.7); opacity: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123a31' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 22px no-repeat; transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.article__body .wp-block-gallery .wp-block-image:hover img { transform: scale(1.07); }
.article__body .wp-block-gallery .wp-block-image:hover::before { opacity: 1; }
.article__body .wp-block-gallery .wp-block-image:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.article__body .wp-block-gallery .wp-block-image:has(figcaption)::before { inset: 0 !important; max-height: none !important; opacity: 0 !important; background: rgba(18, 58, 49, .32) !important; }
.article__body .wp-block-gallery .wp-block-image:has(figcaption):hover::before { opacity: 1 !important; }

/* ===== Lightbox galerii (markup budowany w JS — stąd style tutaj) ===== */
body.lightbox-open { overflow: hidden; }
.bos-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; padding: 20px 24px 24px; background: rgba(18, 58, 49, .72); opacity: 0; transition: opacity .3s ease; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bos-lightbox { background: rgba(18, 58, 49, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.bos-lightbox.is-open { opacity: 1; }
.bos-lightbox[hidden] { display: none; }
.bos-lightbox__bar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; color: #fff; }
.bos-lightbox__counter { font-family: var(--font-alt); font-size: 0.875rem; line-height: 20px; letter-spacing: .04em; }
.bos-lightbox__close { width: 44px; height: 44px; font-size: 1.875rem; line-height: 1; color: #fff; background: none; border: none; cursor: pointer; border-radius: 50%; transition: background .2s ease, transform .2s ease; }
.bos-lightbox__close:hover { background: rgba(255, 255, 255, .12); transform: rotate(90deg); }
.bos-lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 84px; }
.bos-lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.bos-lightbox__img { max-width: min(1100px, 100%); max-height: 72vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); will-change: transform, opacity; }
.bos-lightbox__caption { color: rgba(255, 255, 255, .85); font-family: var(--font-alt); font-size: 0.875rem; line-height: 20px; text-align: center; max-width: 640px; }
.bos-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; background: rgba(255, 255, 255, .1); border: none; border-radius: 50%; cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s ease; }
.bos-lightbox__nav--prev { left: 16px; }
.bos-lightbox__nav--next { right: 16px; }
.bos-lightbox__nav:hover { background: var(--green); color: var(--darkest); transform: translateY(-50%) scale(1.08); }
.bos-lightbox__nav:active { transform: translateY(-50%) scale(.96); }
.bos-lightbox__thumbs { flex-shrink: 0; display: flex; gap: 10px; justify-content: center; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.bos-lightbox__thumbs::-webkit-scrollbar { display: none; }
.bos-lightbox__thumb { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .25s ease, border-color .25s ease, transform .25s ease; }
.bos-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bos-lightbox__thumb:hover { opacity: .85; }
.bos-lightbox__thumb.is-active { opacity: 1; border-color: var(--green); transform: translateY(-2px); }

/* Gutenberg button block */
.article__body .wp-block-buttons { margin: 20px 0 32px; }
.article__body .wp-block-button__link { display: inline-block; background: var(--green); color: #000; font-size: 1rem; line-height: 24px; font-weight: 400; padding: 12px 30px; border-radius: 30px; text-decoration: none; transition: filter .2s ease; }
.article__body .wp-block-button__link:hover { filter: brightness(.9); color: #000; }
/* Blok pliku (Gutenberg) — wygląd jak lista Materiałów (.ts-doclist z bos2026-projekty):
   ikona typu pliku + nazwa (bold) + zielony przycisk „Pobierz", wiersze oddzielone linią. */
.article__body .wp-block-file { display: flex; align-items: center; gap: 24px; margin: 0 0 1rem; padding: 20px 0; border-top: 1px solid #e2e4e2; border-bottom: 1px solid #e2e4e2; }
.article__body .wp-block-file:last-of-type { border-bottom: 1px solid #e2e4e2; }
.article__body .wp-block-file::before { content: ""; flex: none; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8l-5-5z' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M14 3v5h5' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.article__body .wp-block-file > a:not(.wp-block-file__button) { flex: 1 1 0; min-width: 0; font-size: 1.125rem; line-height: 20px; font-weight: 900; color: #000; text-decoration: none; }
.article__body .wp-block-file .wp-block-file__button { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 8px 20px; background: var(--green); border-radius: 30px; font-family: var(--font-alt); font-size: 1rem; line-height: 24px; font-weight: 400; color: #000; text-decoration: none; transition: filter .2s ease; }
.article__body .wp-block-file .wp-block-file__button::before { content: ""; flex: none; width: 24px; height: 24px; background: url("../svg/arrow-line-down.svg") center / contain no-repeat; }
.article__body .wp-block-file .wp-block-file__button:hover { filter: brightness(.9); color: #000; }

/* Post share */
.post-share { border-top: 1px solid #000; }
.post-share__buttons a { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.post-share__buttons a:hover { background: var(--card-border); }
.js-copy-link::after { content: 'Skopiowano!'; position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 6px 10px; border-radius: 8px; background: var(--darkest); color: #fff; font-family: var(--font-alt); font-size: 0.75rem; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(4px);transition: opacity .2s ease, transform .2s ease; }
.js-copy-link.is-copied::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Post related */
.post-related__more { display: flex; width: fit-content; margin: 80px auto 0; }

.rada__grid { display: flex; gap: 168px; align-items: flex-start; }
.rada__title-col { width: 496px; flex-shrink: 0; position: sticky; top: 24px; }

/* ============================================================
   ZGODA NA PLIKI COOKIE (RODO)
   ============================================================ */
.cookie__banner { position: fixed; right: 32px; bottom: 32px; z-index: 1000; width: 640px; max-width: calc(100vw - 40px); padding: 32px 32px 32px 48px; background: #fff; border-radius: 30px; box-shadow: 0 4px 20px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1); }
.cookie__banner[hidden] { display: none; }
.cookie__banner.is-visible { opacity: 1; transform: none; }
.cookie__link-btn:hover { text-decoration: none; }
.cookie__close { position: absolute; top: 28px; right: 28px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; color: #000; cursor: pointer; border-radius: 50%; transition: background .2s ease; }
.cookie__close:hover { background: rgba(0, 0, 0, .06); }
.cookie__modal-overlay { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--overlay); opacity: 0; transition: opacity .3s ease; }
.cookie__modal-overlay[hidden] { display: none; }
.cookie__modal-overlay.is-visible { opacity: 1; }
.cookie__modal { position: relative; width: 768px; max-width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; padding: 48px; background: #fff; border-radius: 30px; box-shadow: 0 4px 20px rgba(0, 0, 0, .25); transform: translateY(12px); transition: transform .3s cubic-bezier(.22, .61, .36, 1); }
.cookie__modal-overlay.is-visible .cookie__modal { transform: none; }
.cookie__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 24px; padding: 24px 0; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.cookie-check { display: inline-flex; flex: none; cursor: pointer; }
.cookie-check__input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-check__box { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid #000; border-radius: 5px; background: #fff; transition: background .2s ease, border-color .2s ease; }
.cookie-check__box svg { opacity: 0; transition: opacity .2s ease; }
.cookie-check__input:checked + .cookie-check__box { background: var(--green); border-color: var(--green); }
.cookie-check__input:checked + .cookie-check__box svg { opacity: 1; }
.cookie-check__input:focus-visible + .cookie-check__box { outline: 2px solid var(--teal); outline-offset: 2px; }
body.cookie-modal-open { overflow: hidden; }

/* ============ 404 ============ */
.error-404 { display: flex; align-items: center; min-height: 68vh; }
.error-404__code { font-family: var(--font-alt); font-weight: 900; font-size: clamp(7.5rem, 22vw, 15rem); line-height: 1; letter-spacing: -.02em; color: var(--green); }

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes bos-slide-from-right {
  from { opacity: 0; transform: translateX( 56px ); }
  to { opacity: 1; transform: translateX( 0 ); }
}
@keyframes bos-slide-from-left {
  from { opacity: 0; transform: translateX( -56px ); }
  to { opacity: 1; transform: translateX( 0 ); }
}
@keyframes navbar-slide-in {
  from { transform: translateY( -100% ); }
  to { transform: translateY( 0 ); }
}
@keyframes navbar-slide-out {
  from { transform: translateY( 0 ); }
  to { transform: translateY( -100% ); }
}
@keyframes mapa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(149, 193, 31, .5); }
  70% { box-shadow: 0 0 0 16px rgba(149, 193, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(149, 193, 31, 0); }
}
@keyframes cf-spin {
  to { transform: rotate(360deg); }
}
@keyframes cf-modal-in {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSYWNOŚĆ 
   ============================================================ */

/* --- Tablet / mniejsze desktopy (≤1240) --- */
@media (max-width: 1240px) {
  :root {
    --gutter: 40px;
  }
  .navbar { padding: 0 40px; }
  .section-title--split { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-title--split > h2, .section-title--split > p { width: auto; margin-left: 0; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__links { flex-wrap: wrap; }
  .footer__col { flex: 1 1 40%; }
  /* O nas */
  .fundator__title { font-size: 3rem; line-height: 53px; }
  .transparentnosc__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  /* Projekty */
  .projekty-hero__cards { grid-template-columns: repeat(2, 1fr); }
  /* Statut */
  .statut__grid { gap: 64px; }
  /* Sprawozdania */
  .spr-year { gap: 40px; }
  .spr-year__num { width: 200px; }
  /* Rada Fundacji */
  .rada__grid { gap: 80px; }
  /* Single post */
  .post-related__more { margin-top: 64px; }
}

/* --- ≤1024 --- */
@media (max-width: 1024px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .navbar { background: var(--blue); height: 50px; align-items: flex-start; padding: 0 12px 0 20px; box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .25); }
  .navbar__logo { width: 100px; height: 62px; padding: 10px 23px 10px 27px; border-radius: 0 0 20px 20px; }
  .navbar__logo img { width: 50px; height: 36px; }
  .gk-projects__grid { grid-template-columns: 1fr; }
  /* O nas — wyższe selektory dla nadpisania .navbar--sub desktop */
  .navbar--sub .navbar__logo { height: 62px; padding: 10px 23px 10px 27px; border-radius: 0 0 20px 20px; }
  .navbar--sub .navbar__logo img { width: 50px; height: 36px; }
  .onas-hero .container { grid-template-columns: 1fr; gap: 48px; }
  .onas-hero__img { height: 400px; }
  .zespol__row { grid-template-columns: 1fr; }
  /* Kontakt */
  .kontakt__grid { grid-template-columns: 1fr; }
  /* Statut */
  .statut__grid { flex-direction: column; gap: 48px; }
  .toc { position: static; width: 100%; }
  /* Projekty archiwalne */
  .arch-card__img { min-height: 420px; }
  /* Rada Fundacji */
  .rada__grid { flex-direction: column; gap: 48px; }
  .rada__title-col { position: static; width: 100%; }
  /* Single post */
  .article__img { height: 280px; }
}

/* --- Mobile (projekt 375px, ≤767) --- */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }
  .section-divider { display: none; }
  .section-divider--mobile { display: block; }
  /* Pigułki kategorii/tagów — zamiast zawijania, przewijanie w poziomie, bez widocznego paska. */
  .tag-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
  .tag-row::-webkit-scrollbar { display: none; }
  .tag-row > * { flex-shrink: 0; }
  /* W kartach: pigułki chowają się na krawędzi karty (wyjście z paddingu .card__content = 30px). */
  .card__content .tag-row { margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; }
  /* Reveal wyłączony — przy szybkim scrollu treść „nie zdąża", a zysk wizualny mały. */
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero { min-height: 685px; padding-bottom: 90px; }
  .hero__video-toggle { right: auto; left: var(--gutter); }
  .audience__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .projects__grid > article { justify-content: flex-start; padding-bottom: 60px; }
  .gk-projects__grid > article { justify-content: flex-start; padding-bottom: 60px; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 0; min-width: 100%; margin-bottom: 38px; scrollbar-width: none; -ms-overflow-style: none; }
  .filters::-webkit-scrollbar { display: none; }
  /* Baza wiedzy: pigułki chowają się na krawędzi ekranu, nie na paddingu sekcji (--gutter). */
  .knowledge .filters { min-width: calc(100% + var(--gutter) * 2); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .cards-grid { grid-template-columns: 1fr; }
  .transparentnosc__grid { grid-template-columns: 1fr; }
  .card__image { height: 223px; }
  .testimonial__arrow { display: none; }
  /* Długi tekst przycisków CTA zawija się zamiast rozpychać stronę. */
  .cta__buttons .btn { height: auto; min-height: 56px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: center; max-width: 100%; }
  /* Blok pliku — na mobile: ikona przy górze obok tytułu, nazwa zawija się,
     a przycisk „Pobierz" ląduje pod spodem na całą szerokość. */
  .article__body .wp-block-file { flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
  .article__body .wp-block-file .wp-block-file__button { width: 100%; margin-left: 0; justify-content: center; }
  /* Tabela — na mobile przewijanie w poziomie zamiast przycinania, kolumny bez zawijania, mniejszy padding. */
  .article__body .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article__body .wp-block-table table { table-layout: auto; width: max-content; min-width: 100%; max-width: none; }
  .article__body table th, .article__body table td { white-space: nowrap; }
  .article__body table th { padding: 12px 16px; }
  .article__body table td { padding: 16px; }
  .footer__col { flex: none; }
  .footer__col--logo { flex: none; }
  .footer__logo { width: 83px; height: 59px; }
  .newsletter-form__input { height: 48px; padding: 12px; }
  /* Projekty */
  .projekty-hero__cards { grid-template-columns: 1fr; }
  .value-card__content { padding: 36px 0; }
  .projekty-szkolne__grid { grid-template-columns: 1fr; }
  .szkolne-card h3 { font-size: 2.25rem; }
  .projekty-gk__grid { grid-template-columns: 1fr; }
  .gk2-card h3 { font-size: 2.25rem; }
  /* O nas */
  .onas-hero__img { height: 260px; }
  .mapa__leaflet { height: 376px; } /* jak .ts-map__area w bos2026-projekty */
  .historia__slide { flex: 0 0 100%; padding: 0; }
  .mapa__leaflet { border-radius: 20px; }
  /* Statut */
  .statut__body h2 { font-size: 1.5rem; line-height: 31px; padding-top: 32px; padding-bottom: 16px; }
  .statut__body > * + h2 { padding-top: 32px; }
  /* Sprawozdania */
  .spr-year { flex-direction: column; gap: 0; }
  .spr-year + .spr-year { margin-top: 36px; }
  .spr-year__num { width: auto; }
  .spr-year__list .spr-item:first-child { border-top: none; }
  .spr-year__list .spr-item:last-child { border-bottom: 1px solid #000; }
  /* Projekty archiwalne */
  .arch-card__img { width: 100%; min-height: 240px; }
  .arch-card__content { padding: 32px 0 0; }
  /* Single post */
  .article__img { height: 220px; }
  .article__body blockquote { font-size: 1.5rem; line-height: 31px; }
  .post-related__more { margin-top: 48px; }
  /* Baza wiedzy / Aktualności */
  .cat-archive__filters .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 0; min-width: calc(100% + var(--gutter) * 2); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  /* Navbar zawsze fixed na mobile */
  .navbar { position: fixed; }
  .navbar--sub ~ .site-content { padding-top: 50px; }
  .navbar.is-sticky .navbar__logo { height: 62px; padding: 10px 23px 10px 27px; }
  .navbar.is-sticky .navbar__links { height: 50px; }
  .navbar.is-sticky { animation: none; }
  /* Lightbox */
  .bos-lightbox { padding: 12px; }
  .bos-lightbox__stage { padding: 8px 52px; }
  .bos-lightbox__img { max-height: 64vh; }
  .bos-lightbox__nav { width: 44px; height: 44px; font-size: 1.625rem; }
  .bos-lightbox__nav:hover { transform: translateY(-50%); }
  .bos-lightbox__nav--prev { left: 6px; }
  .bos-lightbox__nav--next { right: 6px; }
  /* Cookies */
  .cookie__banner { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; padding: 24px 24px 24px 24px; border-radius: 20px; }
  .cookie__close { top: 20px; right: 20px; }
  .cookie__banner .cookie__actions { justify-content: center; }
  .cookie__banner .cookie__actions .btn { flex: 1 1 auto; }
  .cookie__banner .cookie__link-btn { flex: 1 0 100%; text-align: center; }
  .cookie__modal-overlay { padding: 0; align-items: flex-end; }
  .cookie__modal { max-height: 90vh; padding: 32px 20px; border-radius: 20px 20px 0 0; }
  .cookie__list { grid-template-columns: 1fr; }
  .cookie__modal .cookie__actions .btn { flex: 1 1 auto; }
}

/* --- Ograniczenie animacji (prefers-reduced-motion) --- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mapa-pin__dot::before { animation: none; }
  .js .article__body .wp-block-gallery .wp-block-image { opacity: 1; transform: none; transition: none; }
  .article__body .wp-block-gallery .wp-block-image img, .bos-lightbox, .bos-lightbox__img, .bos-lightbox__nav, .bos-lightbox__close, .bos-lightbox__thumb { transition: none !important; }
  .cookie__banner, .cookie__modal-overlay, .cookie__modal { transition: none; transform: none; }
}
