/* =====================================================================
   System CMS — Frontend (system projektowy)
   Minimalizm · jasny motyw · niebieski akcent samorządowy · WCAG 2.1 AA
   ===================================================================== */

/* ----- Tokens ----- */
:root {
  --accent:        #13805a;   /* zieleń kalety.pl (kontrast AA na bieli) */
  --accent-dark:   #0e6044;
  --accent-soft:   #e7f5ee;
  --accent-bright: #2fc27d;   /* jasna zieleń akcentowa (gradienty/tła) */

  --bg:            #F4F6F8;   /* delikatnie szare tło strony — białe karty/sekcje odskakują */
  --bg-soft:       #F8F9FA;
  --bg-dark:       #111827;
  --bg-dark-2:     #0B111E;

  --text:          #1F2937;
  --text-muted:    #656C77;   /* przyciemnione: AA (>=4.5:1) takze na szarym tle --bg */
  --text-on-dark:  #E5E7EB;
  --border:        #E5E7EB;
  --border-soft:   #F0F1F3;

  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 2px 8px rgba(17, 24, 39, .06);
  --shadow-md:     0 8px 24px rgba(17, 24, 39, .10);
  --shadow-lg:     0 18px 40px rgba(17, 24, 39, .14);

  --container:     1200px;
  --header-h:      72px;

  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;              /* skalowane przez pasek dostępności */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;          /* ~17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s var(--ease);
}
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section--tight-top { padding-top: 28px; }
.section--soft { background: var(--bg-soft); }

/* scroll-reveal — sekcje/karty pojawiają się przy zjeżdżaniu (klasa .reveal dodaje JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head .more {
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* skip link (WCAG) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 2000;
}
.skip-link:focus { left: 0; color: #fff; }

/* widoczny focus dla dostępności */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* =====================================================================
   Pasek dostępności (WCAG)
   ===================================================================== */
.a11y-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: .82rem;
}
.a11y-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
}
.topbar-right { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.datebar { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .82rem; }
.datebar__date { font-weight: 600; }
.datebar__date i { opacity: .8; margin-right: 3px; }
.datebar__names { opacity: .9; }
.a11y-group { display: inline-flex; align-items: center; gap: 6px; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: .85rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.social__link:hover { background: var(--accent); color: #fff; }

/* ----- Pasek brandu: logo+nazwa (lewa) · szukaj (środek) · kontakt+logotypy (prawa) ----- */
.brandbar { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 4px 14px rgba(17,24,39,.04); }
.brandbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 92px; padding: 12px 0;
}
.brandbar .brand { flex-shrink: 0; gap: 14px; }
.brandbar .brand img { height: 68px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.brand__name { font-weight: 800; font-size: 1.15rem; color: #111827; letter-spacing: -.02em; }
.brand__tagline { font-size: .82rem; font-weight: 500; color: var(--text-muted); }

/* pole wyszukiwania w środku */
.brand-search {
  flex: 1 1 260px; max-width: 430px; display: flex; align-items: stretch;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.brand-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.brand-search__input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 11px 18px; font: inherit; font-size: .95rem; color: var(--text);
}
.brand-search__btn {
  border: 0; background: var(--accent); color: #fff; width: 46px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease);
}
.brand-search__btn:hover { background: var(--accent-dark); }

.brandbar__right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand-contact { display: flex; flex-direction: column; gap: 5px; }
.brand-contact__item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap;
  transition: color .15s var(--ease);
}
.brand-contact__item i { color: var(--accent); width: 1em; text-align: center; }
.brand-contact__item:hover { color: var(--accent-dark); }
@media (max-width: 1100px) { .brandbar .logos { display: none; } }
@media (max-width: 920px)  { .brand-contact { display: none; } }
@media (max-width: 768px) {
  .brandbar__inner { flex-wrap: wrap; gap: 12px 18px; }
  .brand-search { order: 3; flex-basis: 100%; max-width: none; }
  .brand__tagline { display: none; }
}
/* logotypy w subtelnej "tacce" z separatorami */
.logos {
  display: flex; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 8px 2px;
}
.logos__item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px;
  position: relative;
}
.logos__item:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 30px; background: var(--border);
}
.logos__item img {
  height: 42px; width: auto; max-width: 130px; object-fit: contain;
  opacity: .9; transition: opacity .15s var(--ease), transform .15s var(--ease);
}
a.logos__item:hover img { opacity: 1; transform: translateY(-2px); }
.a11y-group .label { opacity: .7; margin-right: 2px; }
.a11y-btn {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 4px 10px;
  font-family: inherit;
  line-height: 1;
  transition: background .15s var(--ease);
}
.a11y-btn:hover { background: rgba(255,255,255,.18); }
.a11y-btn.is-active { background: var(--accent); border-color: var(--accent); }
.a11y-btn--a1 { font-size: .72rem; }
.a11y-btn--a2 { font-size: .9rem; }
.a11y-btn--a3 { font-size: 1.05rem; }

/* =====================================================================
   Header / nawigacja
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1450;   /* powyżej .nav-overlay (1400), by mobilny drawer (w środku) był klikalny */
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-bottom: 1px solid var(--accent-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
  letter-spacing: -.02em;
}
.brand img { height: 44px; width: auto; }
.brand:hover { color: #111827; }

/* primary nav (desktop) */
.nav {
  display: flex;
  align-items: center;
  font-family: 'Barlow Semi Condensed', var(--font);
}
.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.nav li { position: relative; }

.nav a,
.nav .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #374151;
  font-weight: 600;
  font-size: .97rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav > ul > li > a:hover,
.nav > ul > li.has-children:hover > a,
.nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.nav .nav-ico { font-size: .92em; color: var(--accent); width: 1.1em; text-align: center; transition: color .15s var(--ease); }
.nav a:hover .nav-ico,
.nav li.has-children:hover > a .nav-ico { color: var(--accent-dark); }
.nav .submenu .nav-ico { color: var(--text-muted); }
.nav .caret { font-size: .7em; opacity: .6; transition: transform .2s var(--ease); }
.nav li.has-children > a > .caret { margin-left: 2px; }

/* desktop: pozycje 1. poziomu — ikona u góry, napis pod spodem, wyśrodkowane */
@media (min-width: 769px) {
  .header-inner { justify-content: center; gap: 0; }   /* wyśrodkowanie menu w całym pasku */
  .nav > ul { justify-content: center; gap: 8px; flex-wrap: wrap; }
  .nav > ul > li > a {
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 10px 18px;
    min-width: 96px;
    line-height: 1.2;
    color: #fff;
    font-weight: 500;
    letter-spacing: .01em;
  }
  .nav > ul > li > a .nav-ico { font-size: 1.85rem; width: auto; color: #fff; }
  .nav > ul > li > a > .caret { display: none; }   /* rozwijanie na hover, bez strzałki */
  .nav > ul > li > a:hover,
  .nav > ul > li.has-children:hover > a {
    background: rgba(255,255,255,.16);
    color: #fff;
  }
  .nav > ul > li > a:hover .nav-ico,
  .nav > ul > li.has-children:hover > a .nav-ico { color: #fff; }

  /* animowane podkreślenie (hover + aktywna) */
  .nav > ul > li > a::after {
    content: '';
    position: absolute; left: 50%; bottom: 4px;
    width: 56%; height: 2px; border-radius: 2px;
    background: #fff;
    transform: translateX(-50%) scaleX(0); transform-origin: center;
    transition: transform .22s var(--ease);
  }
  .nav > ul > li > a:hover::after,
  .nav > ul > li > a.is-active::after { transform: translateX(-50%) scaleX(1); }

  /* aktywna pozycja — mocniejsze tło + pogrubienie */
  .nav > ul > li > a.is-active {
    background: rgba(255, 255, 255, .18);
    font-weight: 600;
  }
}

/* submenu (dropdown + flyout) */
.nav .submenu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 1200;
}
/* poziom 1: rozwijany w dół */
.nav > ul > li > .submenu {
  top: calc(100% + 6px);
  left: 0;
}
/* poziom 2+: flyout w bok (prawo domyślnie) */
.nav .submenu .submenu {
  top: -7px;
  left: 100%;
  margin-left: 4px;
}
/* flyout w lewo, gdy brak miejsca (klasa dodawana przez JS) */
.nav .submenu .submenu.flip-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 4px;
}
.nav li:hover > .submenu,
.nav li.open > .submenu,
.nav li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #374151;
  font-weight: 500;
}
.nav .submenu a .caret { transform: rotate(-90deg); }

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.nav-burger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-search {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.header-search:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.header-actions { display: inline-flex; align-items: center; gap: 12px; }

/* =====================================================================
   Hero / slider placeholder
   ===================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f6647, #2fc27d);
  color: #fff;
  overflow: hidden;
}
.hero-slide {
  min-height: clamp(320px, 42vw, 600px);
  display: flex;
  align-items: center;
}
.hero-slide__content { max-width: 640px; }
.hero-slide h1 { color: #fff; margin-bottom: .4em; }
.hero-slide p { font-size: 1.2rem; opacity: .92; margin-bottom: 1.6em; }

/* hero strony głównej — pełnoekranowy, czysty, treść wyśrodkowana */
.hero--home .hero-slide {
  min-height: clamp(440px, 58vw, 680px);
  justify-content: center;
  text-align: center;
}
.hero--home .hero-slide__content { max-width: 760px; margin: 0 auto; }
.hero--home .hero-slide h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero--home .hero-slide p { margin-bottom: 2rem; }

/* szukajka w hero (pigułka) */
.hero-searchbar {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-searchbar input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  background: transparent;
}
.hero-searchbar button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 26px;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s var(--ease);
}
.hero-searchbar button:hover { background: var(--accent-dark); }

/* =====================================================================
   Hero slider (karuzela)
   ===================================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0d121c;
  width: 100%;
  aspect-ratio: 16 / 5;       /* = 3,2:1. Wgrywaj zdjęcia 1920×600 → 0 kadrowania na każdej szerokości */
}
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease);
}
.hero-slider .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* proporcja kontenera (16:5) = proporcja zdjęć (1920×600) → pełny obraz bez ucinania */
  object-position: center;
  display: block;
}
@media (max-width: 600px) {
  .hero-slider { aspect-ratio: auto; height: 220px; }  /* na telefonie nie za płaski */
}
.hero-slide__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-slide__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,18,28,.6), rgba(13,18,28,.12));
  z-index: -1;
}
.hero-slide__title {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 .3em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-slide__sub {
  color: #fff;
  opacity: .94;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  max-width: 46ch;
  margin: 0 0 1.5em;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  backdrop-filter: blur(4px);
  transition: background .15s var(--ease);
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.34); }
.hero-slider__arrow--prev { left: 18px; }
.hero-slider__arrow--next { right: 18px; }
.hero-slider__dots {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-slider__dot {
  width: 10px; height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background .15s var(--ease), width .25s var(--ease);
}
.hero-slider__dot.is-active { background: #fff; width: 28px; border-radius: 6px; }
@media (max-width: 768px) {
  .hero-slider__arrow { width: 40px; height: 40px; }
  .hero-slider__arrow--prev { left: 8px; }
  .hero-slider__arrow--next { right: 8px; }
}

/* smukły, płaski pasek szybkich linków pod hero */
.quicklinks { background: #fff; border-bottom: 1px solid var(--border); }
.quicklinks__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  padding: 14px 0;
}
.quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #374151;
  font-weight: 600;
  font-size: .95rem;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.quicklinks a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.quicklinks a i { color: var(--accent); font-size: 1.05em; }

/* =====================================================================
   Karty
   ===================================================================== */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* cała karta klikalna → artykuł (rozciągnięty link tytułu) */
.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* elementy nad rozciągniętym linkiem (wideo, przycisk, media w zajawce) pozostają osobno klikalne */
.card__media,
.card__video,
.card__body .more,
.card__excerpt .sc-audio,
.card__excerpt .sc-video,
.card__excerpt .embed-video,
.card__excerpt audio,
.card__excerpt video { position: relative; z-index: 2; }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; position: relative; }

/* ikona odtwarzania na miniaturze wideo */
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(17, 24, 39, .55);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  pointer-events: none;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.play-badge i { margin-left: 3px; }
.play-badge--sm { width: 40px; height: 40px; font-size: .85rem; }
.card:hover .play-badge { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.card__media[data-video-src] { cursor: pointer; }

/* lightbox wideo — skalowany do ekranu */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(4px);
}
.video-lightbox.is-open { display: flex; animation: newsFade .2s var(--ease); }
.video-lightbox__frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}
/* Facebook w lightboxie — wysokość wg proporcji wideo (SDK), nie 16:9 */
.video-lightbox.is-fb .video-lightbox__frame {
  aspect-ratio: auto;
  max-width: 440px;
  max-height: 90vh;
  display: flex;
  justify-content: center;
}
.video-lightbox.is-fb .video-lightbox__frame .fb-video { width: 100%; }
.video-lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.video-lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.card__date { font-size: .82rem; color: var(--text-muted); }
.card__title { font-size: 1.1rem; font-weight: 700; margin: 0; color: #111827; overflow-wrap: anywhere; }
.card__excerpt, .card__title { overflow-wrap: anywhere; word-break: break-word; }
.card__excerpt { color: var(--text-muted); font-size: .95rem; margin: 0; }
.card__excerpt p { margin: 0 0 .4em; }
.card__excerpt > :last-child { margin-bottom: 0; }
.card__excerpt a { color: var(--accent); text-decoration: underline; }
.card__excerpt--mini {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.45;
  margin: 2px 0 0;
}

/* układ "wyróżniony + lista" (wariant 2 aktualności) */
.news-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.news-featured__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--big .card__media { aspect-ratio: 16 / 9; }
.card--big .card__title { font-size: 1.6rem; }

/* player osadzony w karcie (duży wyróżniony news) */
.card__video { line-height: 0; }
.card__video .embed-video { margin: 0; border-radius: 0; }
.card__video .embed-video iframe { border-radius: 0; }
.card--big .card__excerpt { font-size: 1.02rem; }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media {
  width: 132px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.card--row .card__body { padding: 14px 16px; gap: 4px; }
.card--row .card__title { font-size: 1rem; }
@media (max-width: 768px) {
  .news-featured { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .card--row { flex-direction: column; }
  .card--row .card__media { width: 100%; aspect-ratio: 16 / 10; }
}

/* strzałki przewijania porcji newsy */
.news-nav { display: inline-flex; align-items: center; gap: 10px; }
.news-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.news-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-arrow:disabled { opacity: .4; cursor: not-allowed; }

/* pasek "więcej aktualności" — przewijany w bok (4/3/2/1 RWD) */
.news-strip { position: relative; margin-top: 28px; }

/* strzałki jako nakładki po bokach */
.news-strip__arrow {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .15s var(--ease), color .15s var(--ease), opacity .2s var(--ease);
}
.news-strip__arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.news-strip__arrow:disabled { opacity: 0; pointer-events: none; }
.news-strip__arrow--prev { left: -8px; }
.news-strip__arrow--next { right: -8px; }

.news-strip__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.news-strip__track::-webkit-scrollbar { display: none; }
.news-tile {
  flex: 0 0 calc((100% - 3 * 24px) / 4);
  scroll-snap-align: start;
}
.news-tile .card__media { aspect-ratio: 16 / 10; }
@media (max-width: 992px) {
  .news-tile { flex-basis: calc((100% - 2 * 24px) / 3); }
}
@media (max-width: 768px) {
  .news-tile { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 480px) {
  .news-tile { flex-basis: 82%; }
}

/* pager — pokazuje jedną porcję na raz */
.news-pager { position: relative; }
.news-page { display: none; }
.news-page.is-active { display: block; animation: newsFade .35s var(--ease); }
@keyframes newsFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Przyciski
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--light { background: #fff; color: var(--accent-dark); }
.btn--light:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* =====================================================================
   Szybki dostęp
   ===================================================================== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #374151;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.quick:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); color: var(--accent-dark); }
.quick__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
}

/* =====================================================================
   Breadcrumb / nagłówek strony wewnętrznej
   ===================================================================== */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.page-hero h1 { margin: 0 0 8px; }
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  color: var(--text-muted);
}
.breadcrumb li::after { content: '/'; margin-left: 8px; opacity: .5; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* obszar treści modułu (placeholder w fazie A) */
.module-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-soft);
}
.module-placeholder code {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 600;
}

/* =====================================================================
   Pojedynczy artykuł
   ===================================================================== */
.article-container { max-width: 820px; }
.article-meta { color: var(--text-muted); font-size: .95rem; margin: 0; }
.article-cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.article-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #374151;
  font-weight: 500;
  margin-bottom: 24px;
}
.article-lead p { margin: 0 0 .5em; }
.article-lead > :last-child { margin-bottom: 0; }
.article-content { font-size: 1.06rem; line-height: 1.75; }
.article-content h2, .article-content h3 { margin-top: 1.6em; }
.article-content img { border-radius: var(--radius-sm); margin: 1em 0; height: auto; }
.article-content a { text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
.sc-audio, .sc-video { margin: 1.4em 0; }
.sc-audio audio, .sc-video video { width: 100%; border-radius: var(--radius-sm); }
.article-content img.lb-zoom { cursor: zoom-in; }

/* ----- Artykuł: udostępnianie ----- */
.article-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.article-share__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text);
}
.article-share__label i { color: var(--accent); }
.article-share__btns { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  cursor: pointer; font-size: 1.05rem; text-decoration: none;
  transition: transform .15s var(--ease), background .15s var(--ease),
              border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.share-btn--fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn--x:hover { background: #0f1419; border-color: #0f1419; color: #fff; }
.share-btn--link:hover,
.share-btn--print:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.share-btn.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }
/* dymek (tooltip) nad przyciskiem — na hover/fokus, oraz po skopiowaniu linku */
.share-btn__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: #111827; color: #fff; font-size: .78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.share-btn__tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #111827;
}
.share-btn:hover .share-btn__tip,
.share-btn:focus-visible .share-btn__tip,
.share-btn.is-copied .share-btn__tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.share-btn.is-copied .share-btn__tip { background: var(--accent); }
.share-btn.is-copied .share-btn__tip::after { border-top-color: var(--accent); }

/* ----- Lista artykułów: pasek narzędzi + przełącznik widoku ----- */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; margin-bottom: 24px;
}
.list-toolbar__count { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.view-toggle {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
}
.view-toggle__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 34px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: .95rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.view-toggle__btn:hover { color: var(--accent); }
.view-toggle__btn.is-active { background: var(--accent); color: #fff; }

/* ----- Lista artykułów: dwa widoki (kafelki / lista) ----- */
.articles { display: grid; gap: 24px; }
.articles[data-view="grid"] { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.articles[data-view="list"] { grid-template-columns: 1fr; gap: 16px; }
.articles[data-view="list"] .card { flex-direction: row; align-items: stretch; }
.articles[data-view="list"] .card__media {
  width: 320px; max-width: 38%; flex-shrink: 0; aspect-ratio: 16 / 10;
}
.articles[data-view="list"] .card__body { padding: 22px 26px; }
.articles[data-view="list"] .card__title { font-size: 1.25rem; }
@media (max-width: 600px) {
  .articles[data-view="list"] .card { flex-direction: column; }
  .articles[data-view="list"] .card__media { width: 100%; max-width: none; }
}

/* ----- Artykuł: nawigacja poprzedni / następny ----- */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px;
}
.article-nav__link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
a.article-nav__link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-nav__link.is-empty { border: 0; background: transparent; pointer-events: none; }
.article-nav__link--next { text-align: right; }
.article-nav__dir { font-size: .85rem; color: var(--accent); font-weight: 600; }
.article-nav__title { font-weight: 600; line-height: 1.4; }

/* ----- Lightbox obrazów (galeria w treści) ----- */
.image-lightbox {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(10, 14, 20, .93); padding: 40px;
  align-items: center; justify-content: center;
}
.image-lightbox.is-open { display: flex; animation: newsFade .2s var(--ease); }
.image-lightbox__stage {
  margin: 0; max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column; align-items: center;
}
.image-lightbox__stage img {
  max-width: 92vw; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.image-lightbox__caption {
  margin-top: 12px; color: var(--text-on-dark); font-size: .95rem;
  text-align: center; max-width: 70ch;
}
.image-lightbox__close, .image-lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .16); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease);
}
.image-lightbox__close:hover, .image-lightbox__nav:hover { background: rgba(255, 255, 255, .32); }
.image-lightbox__close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.2rem; }
.image-lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.3rem; }
.image-lightbox__nav--prev { left: 18px; }
.image-lightbox__nav--next { right: 18px; }
.image-lightbox__nav[hidden] { display: none; }
.image-lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--text-on-dark); font-size: .9rem;
  background: rgba(0, 0, 0, .35); padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 600px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__link--next { text-align: left; }
  .image-lightbox { padding: 16px; }
  .image-lightbox__nav { width: 44px; height: 44px; }
}

/* osadzone wideo (YouTube / Vimeo / Facebook) — responsywne 16:9 */
.embed-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.4em 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Facebook sam liczy proporcje (SDK) — nie wymuszamy boksu 16:9 */
.embed-video--fb {
  position: static;
  padding-bottom: 0;
  height: auto;
  background: transparent;
  display: flex;
  justify-content: center;
}
.embed-video--fb .fb-video { width: 100%; max-width: 420px; }
.embed-video--fb .fb-video span,
.embed-video--fb .fb-video iframe { max-width: 100%; }

/* =====================================================================
   Paginacja
   ===================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination__num,
.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #374151;
  font-weight: 600;
  background: #fff;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.pagination__num:hover,
.pagination__btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.pagination__num.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================================================================
   Dodatkowe menu — spis linków (typ "side"), 3 kolumny
   ===================================================================== */
.side-links {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}
.side-links__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 40px;
  column-rule: 1px solid var(--border);   /* pionowa separacja między kolumnami */
}
.side-links__item { break-inside: avoid; margin-bottom: 2px; }
.side-links__item > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.side-links__ico { color: var(--accent); width: 1.1em; text-align: center; flex-shrink: 0; }
.side-links__item > a:hover {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: var(--shadow);
}
.side-links__item > a:hover .side-links__ico { color: var(--accent-dark); }
.side-links__item.is-active > a { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 768px) { .side-links__grid { column-count: 2; } }
@media (max-width: 480px) { .side-links__grid { column-count: 1; } }

/* =====================================================================
   Podstrona z drzewem (lewa kolumna) + treść modułu
   ===================================================================== */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.page-layout__nav { position: sticky; top: calc(var(--header-h) + 16px); }
.page-layout__main { min-width: 0; }

/* Moduły tekstowe: układy kolumn (a=100%, b=70/30, c=30/70, d=33×3) */
.text-cols { display: grid; gap: 32px; align-items: start; }
.text-cols--a { grid-template-columns: 1fr; }
.text-cols--b { grid-template-columns: 7fr 3fr; }
.text-cols--c { grid-template-columns: 3fr 7fr; }
.text-cols--d { grid-template-columns: repeat(3, 1fr); }
.text-cols__col { min-width: 0; }
.text-cols__col > :first-child { margin-top: 0; }
.text-cols__col > :last-child { margin-bottom: 0; }

/* Moduł „wiele treści": kolejne bloki oddzielone odstępem */
.text-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 32px; }
.text-block + .text-block { margin-top: 28px; }
.text-block__title { margin: 0 0 18px; font-size: 1.5rem; }

@media (max-width: 768px) {
  .text-cols--b, .text-cols--c, .text-cols--d { grid-template-columns: 1fr; gap: 24px; }
  .text-block { padding: 22px 20px; }
}

/* Moduł „pliki do pobrania" */
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.file-item {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 20px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.file-item:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-1px); }
.file-item__icon { font-size: 2rem; flex-shrink: 0; line-height: 1; width: 40px; text-align: center; }
.file-item__body { flex: 1 1 auto; min-width: 0; }
.file-item__title { font-weight: 600; color: var(--text); font-size: 1.05rem; text-decoration: none; }
.file-item__title:hover { color: var(--accent-dark); text-decoration: underline; }
.file-item__desc { margin: 4px 0 0; color: var(--text-muted); font-size: .92rem; }
.file-item__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--text-muted); font-size: .82rem; }
.file-item__meta i { margin-right: 4px; opacity: .8; }
.file-badge {
  display: inline-block; font-weight: 700; font-size: .72rem; letter-spacing: .5px;
  background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 999px;
}
.file-item__btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--accent-dark); background: transparent; border: 1.5px solid var(--accent);
  text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease);
}
.file-item__btn:hover { background: var(--accent); color: #fff; }
@media (max-width: 600px) {
  .file-item { flex-wrap: wrap; gap: 12px; }
  .file-item__btn { width: 100%; justify-content: center; }
}

/* Moduł „galeria" — lista albumów */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.album-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.album-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); display: block; }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card:hover .album-card__media img { transform: scale(1.04); }
.album-card__media img { transition: transform .3s var(--ease); }
.album-card__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: var(--border); }
.album-card__count {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(17,24,39,.72); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(2px);
}
.album-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.album-card__title { font-weight: 600; font-size: 1.05rem; }
.album-card__desc { color: var(--text-muted); font-size: .88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Pojedynczy album — siatka zdjęć */
.album-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.album-back:hover { text-decoration: underline; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-tile {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--bg-soft); box-shadow: var(--shadow); cursor: zoom-in; position: relative;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s var(--ease); }
.photo-tile::after {
  content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; background: rgba(17,24,39,.32);
  opacity: 0; transition: opacity .2s var(--ease);
}
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile:hover::after { opacity: 1; }
@media (max-width: 992px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.page-hero__lead { margin-top: 8px; color: var(--text-muted); max-width: 70ch; }

/* Moduł „kontakt" */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.contact-row { display: flex; gap: 14px; padding: 12px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--border-soft); }
.contact-row__ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-row__label { display: block; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); margin-bottom: 2px; }
.contact-map { margin-top: 18px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); line-height: 0; }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px;
}
.contact-form-title { margin: 0 0 16px; font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .req { color: #dc3545; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-submit {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 6px;
  padding: 12px 26px; border: none; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.contact-submit:hover { background: var(--accent-dark); }
.contact-submit:active { transform: translateY(1px); }
.form-alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .92rem; }
.form-alert--ok  { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid #bfe3d2; }
.form-alert--err { background: #fdecec; color: #b02a37; border: 1px solid #f5c2c7; }
.form-alert i { margin-right: 6px; }
.g-recaptcha { margin: 4px 0 16px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.side-tree {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.side-tree__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 14px 16px;
}
.side-tree__head::before {
  content: '\f0ca';                      /* fa-list-ul */
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: .85em; opacity: .85;
}
.side-tree__head:hover { color: #fff; filter: brightness(1.06); }
.side-tree__list { list-style: none; margin: 0; padding: 6px; }
.side-tree__list--l1,
.side-tree__list--l2 {
  margin: 1px 0 1px 12px;
  padding-left: 8px;
  border-left: 1px solid var(--border-soft);
}
.side-tree__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  line-height: 1.35;
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.side-tree__ico { color: var(--accent); width: 1.05em; text-align: center; flex-shrink: 0; transition: color .15s var(--ease); }
.side-tree__link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.side-tree__link:hover .side-tree__ico { color: var(--accent-dark); }
.side-tree__item.is-active > .side-tree__link {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);   /* pasek akcentu przy wybranej */
}
.side-tree__item.is-active > .side-tree__link .side-tree__ico { color: var(--accent); }
@media (max-width: 860px) {
  .page-layout { grid-template-columns: 1fr; gap: 20px; }
  .page-layout__nav { position: static; }
}

/* =====================================================================
   Kalendarz imprez + Biuletyn
   ===================================================================== */
.cal-bulletin { background: #fff; border-top: 1px solid var(--border); padding: 44px 0; }
.cal-bulletin__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
.cal-bulletin__grid--3 { grid-template-columns: 1fr 1fr 0.85fr; }
@media (max-width: 992px) { .cal-bulletin__grid--3 { grid-template-columns: 1fr; } }
.cal-bulletin__title {
  font-size: 1.2rem; margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.cal-bulletin__title::before {
  content: ''; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent);
}

/* ----- Biuletyn (kolumna 2) ----- */
.bulletin { display: flex; flex-direction: column; height: 100%; }
.bulletin__text { color: var(--text-muted); margin: 0 0 16px; }
.bulletin__actions { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bulletin__archive-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600; text-decoration: none; padding: 4px 0;
  transition: gap .15s var(--ease), color .15s var(--ease);
}
.bulletin__archive-link:hover { color: var(--accent-dark); gap: 11px; }

/* ----- Okładka biuletynu (kolumna 3) ----- */
.bulletin-cover {
  display: block; align-self: start;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md);
}
.bulletin-cover img { width: 100%; height: auto; display: block; transition: transform .25s var(--ease); }
.bulletin-cover:hover img { transform: scale(1.03); }
@media (max-width: 992px) { .bulletin-cover { max-width: 260px; } }

/* ----- Archiwum biuletynu (strona /biuletyn) ----- */
.bulletin-archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.bulletin-archive-item {
  display: flex; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.bulletin-archive-item__cover { flex-shrink: 0; width: 90px; display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.bulletin-archive-item__cover img { width: 100%; height: auto; display: block; }
.bulletin-archive-item__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bulletin-archive-item__title { margin: 0; font-size: 1.15rem; }
.bulletin-archive-item__date { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 480px) { .bulletin-archive-item { flex-direction: column; align-items: flex-start; } }

/* ----- Kalendarz ----- */
.calendar { max-width: 480px; }
.calendar__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.calendar__month { font-weight: 700; font-size: 1.05rem; }
.calendar__nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.calendar__nav:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.calendar__wd, .calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar__wd { margin-bottom: 4px; }
.calendar__wd span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.calendar__cell {
  position: relative; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 6px;
  background: var(--bg-soft); color: var(--text); font-size: .82rem; cursor: default;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.calendar__cell.is-empty { background: transparent; }
.calendar__cell[disabled] { color: var(--text-muted); opacity: .55; background: transparent; }
.calendar__cell.has-event { cursor: pointer; font-weight: 700; background: #fff; border-color: var(--border); }
.calendar__cell.has-event:hover { border-color: var(--accent); color: var(--accent-dark); }
.calendar__cell.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar__cell.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.calendar__dot {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.calendar__cell.is-selected .calendar__dot { background: #fff; }

/* animacja zmiany miesiąca — dni „obracają się" (fala lewo→prawo) */
.calendar__grid { perspective: 900px; }
@keyframes calCellFlip {
  from { opacity: 0; transform: rotateX(-90deg); }
  to   { opacity: 1; transform: rotateX(0); }
}
.calendar__days .calendar__cell { animation: calCellFlip .42s var(--ease) both; transform-origin: center; }
.calendar__days .calendar__cell:nth-child(7n+1) { animation-delay: 0ms; }
.calendar__days .calendar__cell:nth-child(7n+2) { animation-delay: 25ms; }
.calendar__days .calendar__cell:nth-child(7n+3) { animation-delay: 50ms; }
.calendar__days .calendar__cell:nth-child(7n+4) { animation-delay: 75ms; }
.calendar__days .calendar__cell:nth-child(7n+5) { animation-delay: 100ms; }
.calendar__days .calendar__cell:nth-child(7n+6) { animation-delay: 125ms; }
.calendar__days .calendar__cell:nth-child(7n+7) { animation-delay: 150ms; }
@media (prefers-reduced-motion: reduce) {
  .calendar__days .calendar__cell { animation: none; }
}

.calendar__events { margin-top: 18px; }
.calendar__events-head { font-weight: 700; margin-bottom: 8px; color: var(--accent-dark); }
.cal-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-event { position: relative; display: flex; gap: 12px; padding: 10px 12px; background: var(--bg-soft); border-radius: var(--radius-sm); transition: background .15s var(--ease), box-shadow .15s var(--ease); }
.cal-event--link { cursor: pointer; }
.cal-event--link:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(19, 128, 90, .35); }
.cal-event__hit { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-sm); }
.cal-event__go { align-self: center; margin-left: auto; color: var(--accent); opacity: .45; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.cal-event--link:hover .cal-event__go { opacity: 1; transform: translateX(3px); }
.cal-event__date {
  flex-shrink: 0; font-weight: 700; font-size: .8rem; color: var(--accent-dark);
  background: var(--accent-soft); padding: 4px 8px; border-radius: var(--radius-sm);
  height: fit-content; white-space: nowrap;
}
.cal-event__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-event__title { font-weight: 600; overflow-wrap: anywhere; }
.cal-event__title a { color: inherit; text-decoration: none; }
.cal-event__title a:hover { color: var(--accent-dark); text-decoration: underline; }
.cal-event__meta { font-size: .82rem; color: var(--text-muted); }
.cal-event__desc { font-size: .85rem; color: var(--text-muted); }
.cal-events__empty { color: var(--text-muted); padding: 8px 0; }
.calendar__hint { color: var(--text-muted); font-size: .9rem; margin: 6px 0 0; }
@media (max-width: 480px) {
  .bulletin__inner { flex-direction: column; }
  .bulletin__cover, .bulletin__cover--icon { width: 100px; }
}

/* =====================================================================
   Stopka
   ===================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--text-on-dark); opacity: .85; }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: .85rem;
  color: #9CA3AF;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =====================================================================
   Tryb wysokiego kontrastu (WCAG) — klasa na <html>
   ===================================================================== */
html.a11y-contrast,
html.a11y-contrast body { background: #000 !important; color: #FFD400 !important; }
html.a11y-contrast a,
html.a11y-contrast .nav a,
html.a11y-contrast h1,
html.a11y-contrast h2,
html.a11y-contrast h3,
html.a11y-contrast .card__title,
html.a11y-contrast .brand { color: #FFD400 !important; }
html.a11y-contrast .site-header,
html.a11y-contrast .brandbar,
html.a11y-contrast .card,
html.a11y-contrast .quick,
html.a11y-contrast .page-hero,
html.a11y-contrast .section--soft,
html.a11y-contrast .module-placeholder,
html.a11y-contrast .search-item,
html.a11y-contrast .search-item__type,
html.a11y-contrast .nav .submenu { background: #000 !important; }
html.a11y-contrast .card,
html.a11y-contrast .quick,
html.a11y-contrast .nav .submenu,
html.a11y-contrast .site-header,
html.a11y-contrast .search-item,
html.a11y-contrast .search-item__type,
html.a11y-contrast .btn { border-color: #FFD400 !important; }
html.a11y-contrast .search-item__title a,
html.a11y-contrast .search-item__type { color: #FFD400 !important; }
html.a11y-contrast .btn { background: #000 !important; color: #FFD400 !important; }
/* Linki odróżnialne od tekstu (nie tylko kolorem) — podkreślenie; przyciski mają ramki */
html.a11y-contrast a { text-decoration: underline !important; }
html.a11y-contrast .btn,
html.a11y-contrast .nav-burger { text-decoration: none !important; }
/* Wyraźny, wysokokontrastowy focus w trybie kontrastu */
html.a11y-contrast a:focus-visible,
html.a11y-contrast button:focus-visible,
html.a11y-contrast [tabindex]:focus-visible { outline: 3px solid #FFD400 !important; outline-offset: 2px; }
html.a11y-contrast .hero { background: #000 !important; }
html.a11y-contrast .card__media { filter: grayscale(1) contrast(1.1); }

/* =====================================================================
   Responsywność
   ===================================================================== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }

  /* mobile drawer */
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .25s var(--ease);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 16px 24px;
    overflow-y: auto;
    z-index: 1500;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > ul { flex-direction: column; gap: 2px; }
  .nav li { position: static; }

  /* w drawerze submenu to akordeon (rozwija w dół) */
  .nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin: 2px 0 2px 14px;
    padding: 2px 0 2px 8px;
    min-width: 0;
    display: none;
  }
  .nav li.open > .submenu { display: block; }
  .nav .submenu .submenu { left: auto; margin-left: 0; }
  .nav li.has-children > a > .caret { margin-left: auto; }
  .nav li.open > a > .caret { transform: rotate(180deg); }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
    z-index: 1400;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }

  /* nagłówek na mobile: ukryj logotypy, kompaktowy pasek górny */
  .logos { display: none; }
  .brandbar__inner { min-height: 64px; }
  .brandbar .brand img { height: 46px; }
  .a11y-bar .container { gap: 10px; }
  .topbar-right { gap: 10px; }
  .datebar__names { display: none; }      /* na mobile zostaje sama data */
  .a11y-group .label { display: none; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4, .quick-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

/* mniejsze animacje gdy użytkownik tego chce (WCAG) */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* === Tryb żałoby === całość w odcieniach szarości + czarna wstążka w rogu */
html.mourning { -webkit-filter: grayscale(100%); filter: grayscale(100%); }
html.mourning body::before {
  content: '';
  position: fixed; top: 26px; left: -62px;
  width: 215px; height: 30px;
  background: #0a0a0a;
  transform: rotate(-45deg);
  z-index: 99999; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
@media print { html.mourning body::before { display: none; } }

/* === Wyskakujące okno (popup) === */
.popup-overlay {
  position: fixed; inset: 0; z-index: 4000;
  display: none; align-items: center; justify-content: center;
  background: rgba(17, 24, 39, .6); padding: 20px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.popup-overlay.is-open { display: flex; animation: popupFade .25s var(--ease); }
.popup-box {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 540px; width: 100%;
  max-height: 90vh; overflow: auto; animation: popupIn .3s var(--ease);
}
.popup-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: background .15s var(--ease);
}
.popup-close:hover { background: #fff; color: var(--accent-dark); }
.popup-image { width: 100%; max-height: 280px; object-fit: cover; display: block;
  border-radius: var(--radius) var(--radius) 0 0; }
.popup-content { padding: 26px 28px 28px; }
.popup-title { margin: 0 0 12px; font-size: 1.5rem; }
.popup-text { color: var(--text); line-height: 1.65; }
.popup-text :first-child { margin-top: 0; }
.popup-text :last-child { margin-bottom: 0; }
.popup-text a { color: var(--accent-dark); text-decoration: underline; }
.popup-btn {
  display: inline-block; margin-top: 18px; padding: 11px 24px;
  background: var(--accent); color: #fff; border-radius: 999px; font-weight: 600;
  text-decoration: none; transition: background .15s var(--ease);
}
.popup-btn:hover { background: var(--accent-dark); color: #fff; }
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .popup-content { padding: 20px; } .popup-title { font-size: 1.25rem; } }

/* ===== Moduł: Mapa punktów (Leaflet) ===== */
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.map-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text-muted); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .15s var(--ease);
}
.map-chip:hover { border-color: var(--accent); color: var(--text); }
.map-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.map-chip__dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }

.map-canvas {
  width: 100%; height: 480px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; z-index: 0;
}

.map-pin {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.map-popup { font-family: var(--font); min-width: 160px; }
.map-popup strong { font-size: 1rem; color: var(--text); }
.map-popup__cat { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .82rem; color: var(--text-muted); }
.map-popup__cat span { width: 10px; height: 10px; border-radius: 50%; }
.map-popup__addr { margin-top: 5px; font-size: .85rem; color: var(--text-muted); }
.map-popup__desc { margin-top: 8px; font-size: .88rem; line-height: 1.5; color: var(--text); }

.map-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.map-list__item {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  cursor: pointer; transition: all .15s var(--ease);
}
.map-list__item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.map-list__dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.map-list__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-list__title { font-weight: 600; color: var(--text); }
.map-list__cat { font-size: .78rem; color: var(--accent-dark); }
.map-list__addr { font-size: .82rem; color: var(--text-muted); }

@media (max-width: 600px) { .map-canvas { height: 360px; } }

/* ===== Widżet: Jakość powietrza ===== */
.airq {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 18px 0 4px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.airq__badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 62px; height: 62px; border-radius: 12px; flex-shrink: 0; line-height: 1;
}
.airq__aqi  { font-size: 1.55rem; font-weight: 800; }
.airq__unit { font-size: .68rem; font-weight: 700; opacity: .85; margin-top: 2px; letter-spacing: .03em; }
.airq__body { flex: 1; min-width: 180px; }
.airq__head { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; color: var(--text); }
.airq__head i { color: var(--accent); }
.airq__pm { margin-top: 4px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--text-muted); }
.airq__src { font-size: .76rem; color: var(--text-muted); margin-left: auto; align-self: flex-start; white-space: nowrap; }
@media (max-width: 560px) {
  .airq__src { margin-left: 0; width: 100%; }
}

/* ===== Alerty / ostrzeżenia (pasek na górze strony) ===== */
.alertbars { position: relative; z-index: 60; }
.alertbar { color: #fff; font-size: .95rem; }
.alertbar__inner { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.alertbar__inner > i { flex-shrink: 0; font-size: 1.05rem; }
.alertbar__msg { flex: 1; min-width: 0; line-height: 1.4; }
.alertbar__link {
  color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; flex-shrink: 0;
}
.alertbar__link:hover { color: #fff; opacity: .85; }
.alertbar__close {
  background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; opacity: .8; padding: 0 2px; flex-shrink: 0;
}
.alertbar__close:hover { opacity: 1; }

.alertbar--info    { background: #1d4ed8; }
.alertbar--warning { background: #c2410c; }
.alertbar--danger  { background: #b91c1c; }
.alertbar--danger .alertbar__inner > i { animation: alertPulse 1.4s ease-in-out infinite; }
@keyframes alertPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

@media (max-width: 560px) {
  .alertbar__inner { flex-wrap: wrap; gap: 8px 12px; }
  .alertbar__msg { flex: 1 1 100%; order: 2; }
}

/* ===== Pasek cookies ===== */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--bg-dark, #1a2035); color: #fff;
  box-shadow: 0 -3px 16px rgba(0,0,0,.25);
}
.cookiebar[hidden] { display: none; }
.cookiebar__inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
.cookiebar__text { margin: 0; flex: 1; min-width: 220px; font-size: .9rem; line-height: 1.5; opacity: .95; }
.cookiebar__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookiebar__more { color: #fff; text-decoration: underline; font-size: .9rem; white-space: nowrap; }
.cookiebar__more:hover { color: #fff; opacity: .8; }
.cookiebar__accept {
  background: var(--accent, #2563eb); color: #fff; border: none; border-radius: 999px;
  padding: 9px 22px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease);
}
.cookiebar__accept:hover { background: var(--accent-dark, #1d4ed8); }

/* ===== Mapa strony ===== */
.sitemap__head { margin: 28px 0 10px; font-size: 1.2rem; }
.sitemap__head:first-child { margin-top: 0; }
.sitemap-list { list-style: none; padding-left: 0; margin: 0; }
.sitemap-list .sitemap-list { padding-left: 22px; border-left: 2px solid var(--border); margin: 4px 0 4px 6px; }
.sitemap-list__item { padding: 4px 0; }
.sitemap-list__item > a { color: var(--link, var(--accent-dark)); text-decoration: none; font-weight: 500; }
.sitemap-list__item > a:hover { text-decoration: underline; }

/* ===== Wyniki wyszukiwania ===== */
.search-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.search-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: 0 4px 14px rgba(17, 24, 39, .04);
}
.search-item__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.search-item__type {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 12px;
}
.search-item__date { font-size: .82rem; color: var(--text-muted); }
.search-item__title { font-size: 1.15rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.search-item__title a { color: #111827; text-decoration: none; }
.search-item__title a:hover { color: var(--accent); }
.search-item__excerpt { color: var(--text-muted); font-size: .95rem; line-height: 1.55; margin: 6px 0 0; overflow-wrap: anywhere; }
.search-item__url { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--accent); overflow-wrap: anywhere; }
