/* =====================================================================
   Frontend — system projektowy CMS
   Minimalizm · jasny motyw · WCAG 2.1 AA
   Kolor akcentu (--accent*) jest wstrzykiwany inline z ustawień portalu
   (patrz public/views/layout/header.html) — wartości poniżej to fallback
   na wypadek braku ustawienia.
   ===================================================================== */

/* ----- Tokens ----- */
:root {
  --accent:        #2563eb;   /* fallback — nadpisywany per-portal z ustawień */
  --accent-dark:   #1d4ed8;
  --accent-soft:   #eaf1ff;
  --accent-bright: #3b82f6;   /* jasny akcent (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: 'Open Sans', -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 */
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: .01em;
  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;
  padding: 8px 0;
}
.a11y-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.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 (lewa) + logowanie do poczty firmowej (prawa) ----- */
.brandbar { background: #fff; border-bottom: 1px solid var(--border); }
.brandbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brandbar .brand { flex-shrink: 0; }
.brandbar .brand img { height: 72px; width: auto; }

.webmail-login {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px 12px 22px; flex-wrap: wrap;
}
.webmail-login__logo { height: 20px; width: auto; }
.webmail-login__brand { font-size: .88rem; font-weight: 700; color: var(--text); }
.webmail-login__divider { width: 1px; height: 24px; background: var(--border); }
.webmail-login__input {
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: .88rem; color: var(--text); width: 130px;
}
.webmail-login__input--pass { border-left: 1px solid var(--border); padding-left: 16px; }
.webmail-login__submit {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: var(--accent); color: #fff;
  border: 0; border-radius: var(--radius-sm); cursor: pointer; flex-shrink: 0;
  transition: background .15s var(--ease);
}
.webmail-login__submit:hover { background: var(--accent-dark); }

.webmail-login-compact {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px 8px 16px;
  text-decoration: none;
}
.webmail-login-compact__label { font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.webmail-login-compact__btn {
  font-size: .78rem; font-weight: 700; color: #fff; background: var(--accent);
  padding: 7px 14px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: background .15s var(--ease);
}
.webmail-login-compact:hover .webmail-login-compact__btn { background: var(--accent-dark); }

@media (max-width: 560px) {
  .webmail-login { padding: 10px 12px; gap: 10px; }
  .webmail-login__input { width: 90px; }
}
.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: 999px;
  cursor: pointer;
  padding: 5px 13px;
  font-family: inherit;
  line-height: 1;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.a11y-btn:hover { background: rgba(255,255,255,.18); }
.a11y-btn.is-active { background: var(--accent); border-color: var(--accent); }

/* grupa A / A+ / A++ jako jeden spójny segmentowany przełącznik zamiast 3 osobnych przycisków */
.a11y-group--seg {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.a11y-group--seg .a11y-btn { border: none; padding: 4px 12px; }
.a11y-group--seg .a11y-btn--a1 { font-size: .72rem; }
.a11y-group--seg .a11y-btn--a2 { font-size: .9rem; }
.a11y-group--seg .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: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(17, 24, 39, .04);
}
.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', sans-serif;
}
.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(--text-muted); 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 { display: none; }   /* w rozwijanym submenu tylko tekst — czyściej */
.nav .caret { font-size: .7em; opacity: .6; transition: transform .2s var(--ease); }
.nav li.has-children > a > .caret { margin-left: 2px; }

/* desktop: podświetlenie na pełną wysokość belki (nie pigułka na środku) */
@media (min-width: 1201px) {
  .header-inner { justify-content: center; gap: 0; align-items: stretch; }   /* wyśrodkowanie menu w całym pasku */
  .nav { align-items: stretch; }
  .nav > ul { justify-content: center; gap: 0; flex-wrap: wrap; align-items: stretch; }
  .nav > ul > li { display: flex; border-left: 1px solid var(--border); }
  .nav > ul > li:first-child { border-left: none; }
  .nav > ul > li > a {
    position: relative;
    z-index: 0;
    overflow: hidden;
    align-items: center;
    height: 100%;
    padding: 0 22px;
    border-radius: 0;
    line-height: 1.2;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: color .2s var(--ease);
  }
  /* podświetlenie "wjeżdżające" od dołu na hover / aktywnej pozycji */
  .nav > ul > li > a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s var(--ease);
  }
  .nav > ul > li > a .nav-ico { font-size: 1rem; }
  .nav > ul > li > a:hover,
  .nav > ul > li.has-children:hover > a,
  .nav > ul > li > a.is-active {
    color: #fff;
  }
  .nav > ul > li > a:hover::before,
  .nav > ul > li.has-children:hover > a::before,
  .nav > ul > li > a.is-active::before {
    transform: scaleY(1);
  }
  .nav > ul > li > a:hover .nav-ico,
  .nav > ul > li.has-children:hover > a .nav-ico,
  .nav > ul > li > a.is-active .nav-ico { color: #fff; }
}

/* submenu (dropdown + flyout) */
.nav .submenu {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  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ół — brak górnej krawędzi, zaokrąglenie tylko od dołu */
.nav > ul > li > .submenu {
  top: 100%;
  left: 0;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
/* 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: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 400;
  font-size: .92rem;
  letter-spacing: .02em;
}
.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: #374151;
  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 (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;
  transform: translateX(100%);
  transition: transform .7s cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.hero-slider .hero-slide.is-active {
  transform: translateX(0);
  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 */
  /* Zdjęcia slidera są szerokie (16:5, pod desktop) — na wąskim ekranie
     object-fit:cover ucinałby boki. Zamiast tego: całe zdjęcie widoczne
     (contain) na rozmytym, powiększonym tle z tej samej grafiki zamiast
     pustych pasków. */
  .hero-slide { background-size: cover; background-position: center; }
  .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(.65);
    transform: scale(1.15);   /* ukrywa rozmyte krawędzie */
  }
  .hero-slide__img {
    position: relative;
    z-index: 1;
    object-fit: contain;
  }
}
.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; }
}

/* =====================================================================
   Karuzela aktualności (strona główna) — płynne przewijanie w bok,
   przeciąganie myszką + swipe na dotyku, strzałki jak w sliderze hero.
   ===================================================================== */
.ip-news-carousel { position: relative; }
.ip-news-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: -4px -2px -8px;
}
.ip-news-track::-webkit-scrollbar { display: none; }
.ip-news-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.ip-news-track.is-dragging .ip-news-card { pointer-events: none; }
.ip-news-card {
  flex: 0 0 auto;
  width: min(320px, 78vw);
  scroll-snap-align: start;
}
.news-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border: 1px solid oklch(0.9 0.005 250);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.news-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.news-arrow[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.news-arrow--prev { left: -22px; }
.news-arrow--next { right: -22px; }
@media (max-width: 960px) {
  .news-arrow { display: none; }
}

/* 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-top: 14px;
  padding-bottom: 14px;
}
.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(--text-muted); 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; }

/* data wyróżnionego newsa jako pigułka na zdjęciu, nie szary tekst nad tytułem */
.card--big .card__date {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.card--big .card__date i { opacity: .85; }

/* 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 24px;
  border-radius: 999px;
  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(--bg-soft);
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* =====================================================================
   Breadcrumb / nagłówek strony wewnętrznej
   ===================================================================== */
.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.page-hero h1 {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--accent);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-muted);
}
.breadcrumb li::after { content: '/'; margin-left: 8px; opacity: .4; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li:last-child { color: var(--accent-dark); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* 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-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(--text-muted); }
.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(--text-muted); 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; }
.side-links__item > a.side-links__link--noop:hover { background: none; color: var(--text); box-shadow: none; cursor: default; }
@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: 12px; color: var(--text-muted); max-width: 70ch; }

/* Moduł „kontakt" — 3 kolumny danych, formularz pełną szerokością, mapa na końcu */
.contact-columns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .contact-columns { grid-template-columns: 1fr; } }
.contact-col {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.contact-col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.contact-col__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-col__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-col__title {
  margin: 0; font-size: .95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text);
}
.contact-col__text { font-size: .92rem; line-height: 1.7; color: var(--text); }
.contact-col__text a { word-break: break-word; }
.contact-col__text p { margin: 0 0 12px; }
.contact-col__text p:last-child { margin-bottom: 0; }

.contact-map { border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); line-height: 0; }
.contact-map--full { margin-top: 28px; }

.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, .field select {
  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, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__help { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 5px; }
.field--checkbox { display: flex; align-items: center; gap: 10px; }
.field--checkbox input { width: auto; flex-shrink: 0; accent-color: var(--accent); }
.field--checkbox .field__label { margin-bottom: 0; }
.field__options { display: flex; flex-direction: column; gap: 8px; }
.field__option { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--text); cursor: pointer; }
.field__option input { width: auto; flex-shrink: 0; accent-color: var(--accent); }
.form-section-heading {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin: 22px 0 4px; padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.form-section-heading:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.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-md);
  overflow: hidden;
}
.side-tree__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 16px 18px;
  transition: filter .15s var(--ease);
}
.side-tree__head-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  font-size: .82em;
  transition: background .15s var(--ease);
}
.side-tree__head-label { flex: 1; }
.side-tree__head-arrow { font-size: .75em; opacity: .8; transition: transform .15s var(--ease); }
.side-tree__head:hover { color: #fff; filter: brightness(1.08); }
.side-tree__head:hover .side-tree__head-ico { background: rgba(255, 255, 255, .3); }
.side-tree__head:hover .side-tree__head-arrow { transform: translateX(3px); }
.side-tree__head--noop, .side-tree__head--noop:hover { cursor: default; filter: none; }
.side-tree__list { list-style: none; margin: 0; padding: 8px; }
.side-tree__list--l1,
.side-tree__list--l2 {
  margin: 1px 0 1px 14px;
  padding-left: 10px;
  border-left: 1px dashed var(--border);
}
.side-tree__link {
  display: flex;
  align-items: center;
  gap: 10px;
  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), transform .15s var(--ease);
}
.side-tree__ico { color: var(--text-muted); 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);
  transform: translateX(3px);
}
.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: 700;
  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 {
  position: relative;
  background: var(--bg-dark-2);
  color: var(--text-on-dark);
  padding: 56px 0 0;
}
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
}
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer p { color: var(--text-on-dark); opacity: .85; font-size: .88rem; line-height: 1.7; max-width: 30ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-footer a { color: var(--text-on-dark); opacity: .85; }
.site-footer a:hover { color: #fff; opacity: 1; }

.footer-logo-mono { height: 40px; width: auto; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand-img { height: 28px; width: auto; filter: brightness(1.3); margin-bottom: 14px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }

.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.footer-contact-item i { flex-shrink: 0; color: var(--accent-bright); width: 1em; text-align: center; }

.footer-text-block p { margin: 0 0 12px; max-width: none; }
.footer-text-block p:last-child { margin-bottom: 0; }
.footer-text-block strong { color: #fff; font-weight: 600; }
.footer-text-block a { text-decoration: none; }
.footer-text-block a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: .82rem;
  color: #9CA3AF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .footer-credit { opacity: .7; }
.footer-bottom .footer-credit a { color: inherit; }
.footer-bottom .footer-credit a:hover { color: #fff; }

/* =====================================================================
   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: 1200px) {
  .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: kompaktowy pasek górny */
  .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; }

  /* pełny formularz logowania do poczty nie mieści się obok logo na wąskim ekranie —
     zamiast niego sam link "Twoja poczta / Zaloguj się" */
  .webmail-login { display: none; }
  .webmail-login-compact { display: flex; }

  /* na mobile menu jest w wysuwanym panelu — .site-header zostaje tylko z przyciskiem
     hamburgera, więc niech będzie niski, a nie pełne 72px pustego białego pasa */
  .header-inner { min-height: 52px; }
  /* .nav jest na mobile position:fixed (poza przepływem), więc zostaje tylko
     .header-actions — bez marginesu "space-between" ustawiłoby go po lewej */
  .header-actions { margin-left: auto; }
}

@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-top: 11px; padding-bottom: 11px; }
.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-top: 14px; padding-bottom: 14px; 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; }
.sitemap-list__link--noop { color: var(--text); font-weight: 500; }

/* ===== 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; }

/* =====================================================================
   Strona główna — sekcje treści (hero, oferta, opinie, kontakt) między
   współdzielonym nagłówkiem i stopką.
   ===================================================================== */
.home-page {
  background: oklch(0.99 0.004 250);
  color: oklch(0.22 0.02 255);
}

.cta:hover { filter: brightness(1.08); }
.cta-ghost:hover { background: oklch(0.96 0.01 250); }

/* Mini-boxy ofertowe pod sliderem (Internet+TV / Internet / TV) */
.qo-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.qo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px oklch(0.4 0.05 250 / 0.14);
  border-color: var(--accent) !important;
}
.qo-icon { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.qo-card:hover .qo-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 10px 22px oklch(0.5 0.18 260 / 0.45) !important; }
.qo-link { position: relative; transition: gap .18s var(--ease); }
.qo-link svg { transition: transform .22s var(--ease); }
.qo-card:hover .qo-link svg { transform: translateX(4px); }
.plan { transition: box-shadow .25s var(--ease, ease), transform .25s var(--ease, ease), border-color .25s var(--ease, ease); }
.plan:hover { box-shadow: 0 16px 36px oklch(0.4 0.05 250 / 0.16); transform: translateY(-8px) !important; border-color: var(--accent) !important; }
.plan--popular:hover { transform: translateY(-10px) scale(1.02) !important; }
.plan-badge { animation: planBadgePulse 2.4s ease-in-out infinite; }
@keyframes planBadgePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .plan-badge { animation: none; }
}

/* =====================================================================
   Pakiety internetowe — siatka kart (moduł "packages")
   Współdzielona: strona główna (bez przełącznika okresu) i pełna
   oferta pod /oferta/pakiety (z przełącznikiem).
   ===================================================================== */
.pkg-period-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
/* Warianty zagnieżdżone w .tv-base-tabs-wrap (strona "Pakiet Internet+Jambox")
   — do lewej, mniejszy odstęp od siatki kart niż domyślne 32px powyżej. Dwa
   osobne boksy (pakiet internetowy / okres umowy), oba wewnątrz białej
   .pij-frame, żeby nie wyglądały na oderwane od reszty treści. */
.pkg-group-selector.tv-base-tabs,
.pkg-period-selector.tv-base-tabs { justify-content: flex-start; margin-bottom: 0; }
.pkg-group-wrap { margin-bottom: 16px; }
.pkg-period-wrap { margin-bottom: 20px; }
.pij-frame {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
@media (max-width: 600px) { .pij-frame { padding: 18px; } }
.pkg-period-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05);
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pkg-period-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.pkg-period-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.pkg-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.pkg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: var(--accent); }
.pkg-card--popular { border: 2px solid var(--accent); }
.pkg-card--popular:hover { transform: translateY(-8px) scale(1.01); }
.pkg-card[hidden] { display: none; }

.pkg-card__header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 18px 28px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.pkg-card__body { padding: 28px 28px 0; display: flex; flex-direction: column; flex: 1; }

.pkg-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 1;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; white-space: nowrap;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(17, 24, 39, .15);
  animation: planBadgePulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .pkg-badge { animation: none; } }

.pkg-name { font-size: 18px; font-weight: 700; color: #fff; text-align: center; line-height: 1.3; }
.pkg-speed-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  background: var(--accent-soft); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: #000;
  max-width: 100%;
}
.pkg-speed-pill span { white-space: nowrap; }
.pkg-speed-pill i { color: var(--accent); margin-right: 3px; }
.pkg-speed-sep { width: 1px; height: 12px; background: var(--border); }

.pkg-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 2px; }
.pkg-price__amount { font-size: 26px; font-weight: 800; color: var(--accent); }
.pkg-price__suffix { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.pkg-price__period { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.pkg-savings {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin: 6px 0 0;
}
.pkg-savings[hidden] { display: none; }

.pkg-divider { height: 1px; background: var(--border-soft); margin: 12px 0; }
.pkg-features { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13px; font-weight: 400; color: #000; line-height: 2.1; }
.pkg-features i { color: var(--accent); width: 1.1em; margin-right: 4px; }

/* Karty "Pakiet Internet+Jambox" (.pkg-grid--pij) — wariant kart pakietów
   internetowych: pełny, kolorowy nagłówek (kolor marki) z białą nazwą,
   cena wyśrodkowana i dociśnięta do dołu (żeby karty o różnej długości
   listy cech miały ceny w jednej linii). Scoped przez --pij, żeby nie
   ruszać zwykłych .pkg-card na stronach pakietów internetowych. */
/* auto-fill zamiast auto-fit: kolumny siatki mają stałą szerokość niezależnie
   od tego, ile kart jest akurat ukrytych przełącznikiem okresu — inaczej przy
   1-2 widocznych kartach auto-fit rozciągałoby je na całą szerokość sekcji. */
.pkg-grid--pij { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pkg-grid--pij .pkg-card--pij { display: flex; flex-direction: column; padding: 0; }
.pkg-grid--pij .pkg-card--pij[hidden] { display: none; }
.pkg-grid--pij .pkg-card--pij.pkg-card--group-hidden { display: none; }
.pkg-card__header--pij {
  background: var(--accent); padding: 18px 28px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  min-height: 76px; display: flex; align-items: center; justify-content: center;
}
.pkg-card__body--pij { padding: 28px 28px 0; display: flex; flex-direction: column; flex: 1; }
.pkg-name--pij {
  font-size: 18px; font-weight: 700; color: #fff;
  text-align: center; line-height: 1.3;
}
.pkg-card__price-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-soft); text-align: center; }
.pkg-card__price-footer .pkg-cta { margin-top: 14px; }
.pkg-price--center { justify-content: center; }

/* Stopka z ceną na ciemnogranatowym tle, odróżnionym od reszty białej
   karty — dotyczy zarówno zwykłych pakietów internetowych, jak i
   Internet+Jambox (dwa różne rodzice body, ta sama stopka). UWAGA:
   margin-top zostaje "auto" z bazowej reguły wyżej (dociska stopkę do
   dołu rozciągniętej przez grid karty) — skrót "margin: 0 -28px -28px"
   zerowałby margin-top, przez co na krótszych kartach (mniej cech)
   stopka nie sięgała dołu i zostawało pod nią białe pole. */
.pkg-card__body > .pkg-card__price-footer,
.pkg-card__body--pij > .pkg-card__price-footer {
  background: #10203f;
  margin-right: -28px; margin-bottom: 0; margin-left: -28px;
  padding: 20px 28px;
  border-top: none;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}
.pkg-card__body > .pkg-card__price-footer .pkg-price__amount,
.pkg-card__body--pij > .pkg-card__price-footer .pkg-price__amount { color: #fff; font-weight: 700; }
.pkg-card__body > .pkg-card__price-footer .pkg-price__suffix,
.pkg-card__body > .pkg-card__price-footer .pkg-price__period,
.pkg-card__body--pij > .pkg-card__price-footer .pkg-price__suffix,
.pkg-card__body--pij > .pkg-card__price-footer .pkg-price__period { color: rgba(255, 255, 255, .65); }
.pkg-card__body > .pkg-card__price-footer .pkg-cta,
.pkg-card__body--pij > .pkg-card__price-footer .pkg-cta { border-color: rgba(255, 255, 255, .4); color: #fff; }
.pkg-card__body > .pkg-card__price-footer .pkg-cta:hover,
.pkg-card__body--pij > .pkg-card__price-footer .pkg-cta:hover { background: rgba(255, 255, 255, .12); }
.pkg-card__body > .pkg-card__price-footer .pkg-cta--solid,
.pkg-card__body--pij > .pkg-card__price-footer .pkg-cta--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.pkg-card__body .pkg-speed-pill,
.pkg-card__body--pij .pkg-speed-pill { align-self: center; }

.pkg-channels__btn {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  cursor: pointer; font-size: 12.5px; font-weight: 700; margin: 4px 0 4px;
  color: var(--accent); background: #fff; padding: 8px 16px; border: 1.5px solid var(--accent); border-radius: 999px;
  transition: background .15s var(--ease);
}
.pkg-channels__btn:hover { background: var(--accent-soft); }

/* Okno z listą kanałów — modal, zamykany krzyżykiem, kliknięciem w tło lub Esc
   (patrz front-tv-jambox.js). */
.pkg-channels-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pkg-channels-modal[hidden] { display: none; }
/* Celowo bez przyciemnienia tła — sam element zostaje jako "klikalne tło"
   do zamykania modala, ale wizualnie niewidoczny. */
.pkg-channels-modal__backdrop { position: absolute; inset: 0; background: transparent; }
.pkg-channels-modal__panel {
  position: relative; background: #fff; border-radius: 14px;
  max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.pkg-channels-modal__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--border-soft); color: var(--text);
  cursor: pointer; font-size: 14px; transition: background .15s var(--ease);
}
.pkg-channels-modal__close:hover { background: var(--border); }
.pkg-channels-modal__title { font-size: 17px; font-weight: 800; margin: 0 0 18px; padding-right: 32px; }

.pkg-channels-modal__search {
  width: 100%; box-sizing: border-box; padding: 10px 14px; margin-bottom: 16px;
  border: 1.5px solid var(--border); border-radius: 999px; font-size: 13.5px;
}
.pkg-channels-modal__search:focus { outline: none; border-color: var(--accent); }
.pkg-channels-modal__empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 20px 0; }
.pkg-channels-modal__empty[hidden] { display: none; }

.pkg-cta {
  display: block; width: 100%; text-align: center; box-sizing: border-box;
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
  padding: 11px; border-radius: 9px; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease);
}
.pkg-cta:hover { background: var(--accent-soft); }
.pkg-cta--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.pkg-cta--solid:hover { background: var(--accent-dark); color: #fff; }

.tv-section-title { font-size: 20px; font-weight: 800; margin: 36px 0 16px; }
.tv-section-title:first-child { margin-top: 0; }

/* Zakładki — dwa WYRAŹNIE różne poziomy, żeby się nie zlewały wizualnie:
   1) kategoria (Podstawowe/Tematyczne/Premium) — duży pasek z podkreśleniem,
      jak klasyczne taby strony.
   2) w środku "Podstawowe": wybór POJEDYNCZEGO pakietu — małe piguły w
      wyraźnie odseparowanym, wyszarzonym "koszyku" z podpisem nad nimi.
   Jeden panel widoczny naraz na każdym poziomie (patrz front-tv-jambox.js). */
.tv-tab-btn {
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}

/* Segmentowany przełącznik (jak iOS/macOS) — celowo INNY styl niż
   .tv-base-tabs (poziom 2, wybór pojedynczego pakietu podstawowego):
   szary "kapsułowy" kontener, aktywny segment jako biała, uniesiona
   "pastylka" z cieniem. Różny wygląd obu poziomów jest celowy — pierwsza
   wersja miała identyczny styl i wszystko się zlewało (patrz historia). */
.tv-tier-tabs {
  display: flex; gap: 4px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 5px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.tv-tier-tabs .tv-tab-btn {
  flex: 1 1 0; text-align: center;
  background: none; border: none; border-radius: 999px;
  padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  box-shadow: none;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tv-tier-tabs .tv-tab-btn:hover { color: var(--accent-dark); background: var(--accent-soft); }
.tv-tier-tabs .tv-tab-btn.is-active {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .18);
}
@media (max-width: 600px) {
  .tv-tier-tabs { flex-direction: column; border-radius: 16px; }
  .tv-tier-tabs .tv-tab-btn { border-radius: 12px; }
}

.tv-base-tabs-wrap {
  background: #f5f6f9; border-radius: 12px; padding: 14px 16px 16px; margin-bottom: 28px;
}
.tv-base-tabs-label {
  font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.tv-base-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tv-base-tabs .tv-tab-btn {
  background: #fff; border: 1.5px solid var(--border); color: var(--text-muted);
  padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 700;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.tv-base-tabs .tv-tab-btn:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.tv-base-tabs .tv-tab-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tv-tier-panel[hidden], .tv-base-panel[hidden] { display: none; }
.tv-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Celowo BEZ overflow:hidden — obcinałoby chmurkę z ceną (.tv-price-tooltip),
     która wystaje ponad box. Zaokrąglenie górnych rogów robi za to sam header. */
}
/* "Najczęściej wybierany" jako okrągła pieczątka w rogu, nie ramka wokół
   całej karty (poprzednia wersja z border-em wokół karty wyglądała brzydko). */
.tv-badge-stamp {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px solid var(--accent); background: #fff; color: var(--accent);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  text-align: center; line-height: 1.3; padding: 8px;
  transform: rotate(-11deg);
}
.tv-badge-stamp::before {
  content: ''; position: absolute; inset: 5px; border: 1px dashed var(--accent);
  border-radius: 50%; opacity: .55;
}
.tv-card__header {
  background: var(--accent-soft); padding: 20px 28px; border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.tv-card__header--popular { padding-right: 104px; }
.tv-card__body { padding: 24px 28px 28px; }
.tv-card__title-row { display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; margin-bottom: 6px; }
.tv-card__name { font-size: 19px; font-weight: 800; }
.tv-card__price-inline { flex-shrink: 0; white-space: nowrap; }
.tv-card__price-inline .pkg-price__amount { font-size: 22px; color: var(--accent-dark); }
.tv-card__price-inline .pkg-price__suffix,
.tv-card__price-inline .pkg-price__period { font-size: 12px; }
.tv-card__count { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 0; }
.tv-card__count i { color: var(--accent); margin-right: 4px; }
.tv-card__count-split { font-weight: 500; }

.tv-contract-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: -4px 0 6px; }

/* "Chmurka" z ceną bezterminową przy gwiazdce ceny terminowej. */
.tv-price-note {
  position: relative; display: inline-block; margin-left: 3px;
  font-size: 15px; font-weight: 800; color: var(--accent); cursor: help;
}
.tv-price-tooltip {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: max-content; max-width: min(260px, 80vw);
  white-space: normal; /* .tv-addon__price ma white-space:nowrap — dziedziczyło się tu i psuło zawijanie */
  background: #1f2937; color: #fff; font-size: 12px; font-weight: 500;
  line-height: 1.5; padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .15s var(--ease);
  z-index: 20;
}
.tv-price-tooltip::after {
  content: ''; position: absolute; bottom: 100%; right: 10px;
  border: 6px solid transparent; border-bottom-color: #1f2937;
}
.tv-card:hover .tv-price-tooltip,
.tv-addon-box:hover .tv-price-tooltip,
.tv-price-note:hover .tv-price-tooltip,
.tv-price-note:focus .tv-price-tooltip { opacity: 1; visibility: visible; }

/* Kanały jako kafelki z samym logo (nazwa jako natywny tooltip po
   najechaniu, przez title="" na kafelku). Loga z feedu jambox są małe
   (~80×53px) i niekwadratowe — kafelek ma ich proporcje (nie kwadrat),
   żeby nie rozciągać obrazka ponad jego naturalną rozdzielczość, a ramka
   ma realny kontrast (poprzedni jasnoszary na jasnoniebieskim tle był
   praktycznie niewidoczny). */
.tv-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.tv-channel {
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.tv-channel[hidden] { display: none; }
.tv-channel img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #fff;
  border-radius: 8px; padding: 6px; border: 1px solid rgba(17, 24, 39, .14);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), border-color .12s var(--ease);
}
.tv-channel:hover img { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }

.tv-logos--compact { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); margin-top: 12px; padding-top: 4px; gap: 10px; }

/* Dodatkowe pakiety (tematyczne/premium) — dwie kolumny, kanały widoczne
   od razu (bez rozwijania). Nagłówek każdego boxa ma wyraźne tło i mocniejszą
   ramkę całości, żeby każdy pakiet czytelnie wyglądał jak osobna oferta,
   nie jak fragment jednej wspólnej listy kanałów. */
.tv-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .tv-addon-grid { grid-template-columns: 1fr; }
}
.tv-addon-box {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
  /* Celowo BEZ overflow:hidden, patrz komentarz przy .tv-card. */
}
.tv-addon-box__header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  background: var(--accent-soft); padding: 14px 18px; border-bottom: 1px solid var(--border);
  border-radius: 11px 11px 0 0;
}
.tv-addon-box__body { padding: 16px 18px 18px; }
.tv-addon__name { font-weight: 800; flex: 1; font-size: 14.5px; }
.tv-addon__count { color: var(--text-muted); font-size: 12.5px; }
.tv-addon__price { font-weight: 800; color: var(--accent); white-space: nowrap; }

/* Wyszukiwarka kanałów (AJAX) */
.tv-search { position: relative; max-width: 420px; margin-bottom: 20px; }
.tv-search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; pointer-events: none;
}
.tv-search__input {
  width: 100%; box-sizing: border-box; padding: 11px 14px 11px 36px;
  border: 1.5px solid var(--border); border-radius: 999px; font-size: 13.5px;
  background: #fff; transition: border-color .15s var(--ease);
}
.tv-search__input:focus { outline: none; border-color: var(--accent); }
.tv-search__results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); max-height: 340px; overflow-y: auto; padding: 6px;
}
.tv-search__results[hidden] { display: none; }
.tv-search__item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.tv-search__item:hover { background: var(--accent-soft, #f4f6fb); }
.tv-search__item img { width: 32px; height: 32px; object-fit: contain; background: #fff; border: 1px solid var(--border-soft); border-radius: 5px; flex-shrink: 0; }
.tv-search__item-name { font-weight: 700; font-size: 13px; }
.tv-search__item-packages { font-size: 11.5px; color: var(--text-muted); }
.tv-search__empty { padding: 12px; font-size: 13px; color: var(--text-muted); text-align: center; }

.footer-link { display: inline-block; line-height: 1.3; color: oklch(0.72 0.02 255); font-size: 13px; text-decoration: none; transition: color .15s, transform .15s; }
.footer-link:hover { color: var(--accent); opacity: 1; transform: translateX(3px); }
.footer-link--noop:hover { color: oklch(0.72 0.02 255); transform: none; cursor: default; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid oklch(0.32 0.02 255);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.75 0.02 255);
  transition: background .15s, border-color .15s, color .15s;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }

.back-to-top { display: inline-flex; align-items: center; gap: 6px; color: oklch(0.6 0.02 255); font-size: 12px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.back-to-top:hover { color: var(--accent); opacity: 1; }

/* Dynamiczne pojawianie się sekcji strony głównej przy przewijaniu — klasa
   reveal-init jest dodawana wyłącznie przez JS inline w home.html, więc bez
   JS lub przy prefers-reduced-motion treść zawsze jest w pełni widoczna. */
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
}
.reveal-visible { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 960px) {
  .ip-header, .ip-hero, .ip-promo-wrap, .ip-offer, .ip-why, .ip-testimonials, .ip-contact-wrap, .ip-footer-grid, .ip-quickoffer, .ip-news {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .ip-nav { flex-wrap: wrap; height: auto !important; padding: 8px 24px !important; }
  .ip-hero { flex-direction: column !important; }
  .ip-why-grid, .ip-testi-grid, .ip-footer-grid, .ip-quickoffer-grid { grid-template-columns: 1fr !important; }
  .ip-contact-wrap { flex-direction: column !important; }
}

/* =====================================================================
   Konfigurator pakietów — segmentowane przełączniki (Internet, Telewizja)
   + dodatki (checkbox-karty) + podsumowanie z ceną na żywo, przyklejone
   do dołu ekranu (front-konfigurator.js) + panel kontaktowy.
   ===================================================================== */
.kfg-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kfg-errors {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; font-size: 14px;
}
.kfg-errors div { margin-bottom: 4px; }
.kfg-errors div:last-child { margin-bottom: 0; }

.kfg-frame {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
@media (max-width: 600px) { .kfg-frame { padding: 20px; } }

.kfg-section { margin-bottom: 36px; }
.kfg-section:last-child { margin-bottom: 0; }
.kfg-section__title { font-size: 18px; font-weight: 800; margin: 0 0 14px; }

/* Segmentowany przełącznik — kompaktowa jedna linia zamiast dużych kart,
   ten sam kapsułowy język co .tv-tier-tabs. */
.kfg-toggle {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow);
}
.kfg-toggle__btn {
  flex: 1 1 160px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; border-radius: 10px; cursor: pointer; font-family: inherit;
  padding: 12px 16px; text-align: left;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.kfg-toggle__btn:hover { background: var(--accent-soft); }
.kfg-toggle__btn.is-active { background: var(--accent); color: #fff; }
.kfg-toggle__label { font-size: 14px; font-weight: 700; color: inherit; }
.kfg-toggle__label small { display: block; font-size: 11.5px; font-weight: 500; opacity: .75; margin-top: 2px; }
.kfg-toggle__price { flex-shrink: 0; font-size: 13px; font-weight: 800; white-space: nowrap; color: inherit; }
.kfg-toggle__btn:not(.is-active) .kfg-toggle__price { color: var(--accent-dark); }
.kfg-toggle__btn[hidden] { display: none; }
.kfg-toggle__btn:disabled {
  opacity: .4; cursor: not-allowed; pointer-events: none;
}
.kfg-toggle__btn:disabled:hover { background: none; }

.kfg-addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.kfg-addon-card {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.kfg-addon-card:hover { border-color: var(--accent); }
.kfg-addon-card.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.kfg-addon-card__checkbox { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.kfg-addon-card__check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
  background: #fff; transition: background .15s var(--ease), border-color .15s var(--ease);
}
.kfg-addon-card__check i { opacity: 0; transition: opacity .15s var(--ease); }
.kfg-addon-card.is-selected .kfg-addon-card__check { background: var(--accent); border-color: var(--accent); }
.kfg-addon-card.is-selected .kfg-addon-card__check i { opacity: 1; }
.kfg-addon-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kfg-addon-card__name { font-weight: 700; font-size: 14px; color: #000; }
.kfg-addon-card__count { font-size: 12px; color: var(--text-muted); }
.kfg-addon-card__price { flex-shrink: 0; font-weight: 800; color: var(--accent-dark); font-size: 14px; white-space: nowrap; }

/* Przyklejony do dołu WIDOKU podczas przewijania treści (position: sticky),
   ale tylko do końca własnego kontenera — po dotarciu do końca treści
   konfiguratora pasek przestaje się przyklejać i przewija się normalnie,
   nie zasłania stopki strony. */
.kfg-summary {
  position: sticky; bottom: 0; z-index: 500;
  background: #10203f; color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -6px 20px rgba(17, 24, 39, .25);
}
.kfg-summary__inner {
  max-width: var(--container); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.kfg-summary__label { font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 4px; }
.kfg-summary__total { font-size: 28px; font-weight: 800; display: inline-block; }
.kfg-summary__total.kfg-pulse { animation: kfgPricePulse .5s var(--ease); }
@keyframes kfgPricePulse {
  0%   { transform: scale(1);    color: #fff; }
  35%  { transform: scale(1.14); color: #7dffb0; }
  100% { transform: scale(1);    color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .kfg-summary__total.kfg-pulse { animation: none; } }
.kfg-summary__total .kfg-summary__period { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .65); margin-left: 2px; }
.kfg-summary__savings {
  display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700;
  color: #baf7d0; background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 2px 8px;
}
.kfg-summary__savings[hidden] { display: none; }
.kfg-summary__cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  border: none; border-radius: 9px; padding: 14px 26px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .15s var(--ease); font-family: inherit;
}
.kfg-summary__cta:hover { background: var(--accent-dark); }
@media (max-width: 600px) {
  .kfg-summary__inner { justify-content: center; text-align: center; }
  .kfg-summary__cta { width: 100%; justify-content: center; }
}

.kfg-contact { margin-top: 28px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.kfg-contact h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.kfg-selection-summary { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 6px 18px; margin-bottom: 20px; font-size: 13px; }
.kfg-selection-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: #000; border-bottom: 1px solid var(--border-soft); }
.kfg-selection-summary__row:last-child { border-bottom: none; }
.kfg-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kfg-field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.kfg-field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 14px; box-sizing: border-box; color: #000;
}
.kfg-field input:focus { outline: none; border-color: var(--accent); }

.kfg-sent { text-align: center; padding: 60px 20px; }
.kfg-sent i { font-size: 48px; color: var(--accent); margin-bottom: 16px; }
.kfg-sent h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.kfg-sent p { color: var(--text-muted); margin: 0; }

/* Ramka na osadzone narzędzia (np. speedtest) w treści stron tekstowych.
   UWAGA: narzędzie z cudzej domeny (iframe) samo w sobie NIE jest
   responsywne — jego wewnętrzna treść renderuje się w stałym rozmiarze,
   niezależnie jak szeroki zrobimy sam element <iframe> (rozciągnięcie do
   100% szerokości robi tylko wielki, pusty biały box z małym widgetem
   w środku — stąd wcześniejsze "bardzo mały"). Rozwiązanie: ramka
   dopasowana do naturalnego rozmiaru narzędzia (wyśrodkowana, bez
   marnowanego miejsca), a iframe skaluje się proporcjonalnie (aspect-ratio)
   dopiero gdy ekran jest węższy niż jego naturalna szerokość — to eliminuje
   poziomy scroll na telefonie bez rozciągania/psucia treści na desktopie. */
.embed-frame {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  display: flex; justify-content: center; overflow: hidden;
}
.embed-frame iframe {
  display: block; border: none;
  width: 350px; max-width: 100%; height: auto; aspect-ratio: 350 / 500;
}
@media (max-width: 600px) { .embed-frame { padding: 12px; } }

/* Standardowy wzorzec "sr-only" — element pozostaje w drzewie DOM (czytelny
   dla wyszukiwarek/czytników ekranu), ale wizualnie całkowicie niewidoczny
   i nie zajmuje miejsca w layoucie. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
