/* ==========================================================================
   Gmina Oporów — style główne
   Paleta i typografia dobrane pod kątem WCAG 2.1 AA (kontrast min. 4.5:1)
   ========================================================================== */

:root {
  /* Paleta oparta na barwach herbu Gminy Oporów (czerwień i złoto) */
  --color-primary: #a31621;
  --color-primary-dark: #7a1019;
  --color-primary-light: #c41e3a;
  --color-primary-tint: #f6dce0;
  --color-accent: #c9971c;
  --color-accent-dark: #8a6508;
  --color-accent-tint: #f8edd3;
  --color-warning: #c1440e;
  --color-warning-dark: #963309;
  --color-text: #1a1f24;
  --color-text-muted: #5c544c;
  --color-bg: #ffffff;
  --color-bg-alt: #faf8f5;
  --color-border: #e7e0d8;
  --color-focus: #1d4ed8;
  --color-focus-on-dark: #ffffff;
  --font-base: "Lato", "Source Sans 3", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-base);
  --max-width: 1240px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Zapobiega chowaniu się fokusu pod przyklejonym paskiem górnym (WCAG 2.4.11) */
  scroll-padding-top: 130px;
  /* Zapobiega przesuwaniu strony w poziomie przez niewidoczne, szerokie podmenu */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: clip;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Linki w treści — odróżnione od tekstu grubością, bez podkreślenia */
.entry-content a,
.card p a {
  font-weight: 600;
}

/* Widoczny focus dla nawigacji klawiaturą — wymóg dostępności */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Na ciemnych tłach (stopka, kolorowe przyciski) biały fokus jest lepiej widoczny */
.site-footer a:focus-visible,
.hero a:focus-visible,
.menu-toggle:focus-visible,
.btn--primary:focus-visible,
.search-form button:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--color-focus-on-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ==========================================================================
   Przyciski
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(163, 22, 33, 0.25);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 10px 20px rgba(163, 22, 33, 0.3);
}

.btn--outline {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.06);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(20, 20, 40, 0.1);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn--sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* Pasek ostrzeżeń (aktualne komunikaty z kategorii "Ostrzeżenia meteorologiczne" itp.) */
.site-alerts {
  background: var(--color-warning);
  color: #fff;
}

.site-alerts a {
  color: #fff;
  font-weight: 600;
}

.site-alerts .container {
  padding-block: 0.6rem;
}

.site-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.site-alert + .site-alert {
  margin-top: 0.4rem;
}

.site-alert__icon {
  flex-shrink: 0;
}

/* Pasek górny + nagłówek przyklejone do góry przy przewijaniu */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(20, 20, 40, 0.08);
}

/* Pasek narzędziowy (kontakt, BIP, ePUAP) */
.top-bar {
  background: #f2f2f2;
  color: var(--color-text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.5rem;
}

.top-bar a {
  color: var(--color-text);
}

.top-bar a:hover {
  color: var(--color-primary);
}

.top-bar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar__links li > a:not(.top-bar__logo-link):not(.top-bar__icon-link) {
  display: inline-block;
  padding-block: 5px;
}

.top-bar__weather {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 5px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.top-bar__weather-date {
  text-transform: capitalize;
}

.top-bar__weather-data {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}

.top-bar__weather-icon {
  font-size: 1rem;
  line-height: 1;
}

.top-bar__odpady {
  padding-block: 5px;
  border-left: 1px solid var(--color-border);
  padding-left: 0.25rem;
}

.top-bar__odpady-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.top-bar__odpady-link:hover,
.top-bar__odpady-link:focus-visible {
  color: var(--color-primary);
}

.top-bar__odpady-icon {
  display: inline-flex;
  color: var(--color-accent-dark);
}

.top-bar__odpady-icon .icon {
  width: 1rem;
  height: 1rem;
}

.top-bar__weather-alert {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.top-bar__weather-alert:hover,
.top-bar__weather-alert:focus-visible {
  color: var(--color-primary);
}

.top-bar__weather-alert--active {
  background: #f2740c;
  color: #2b1400;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(242, 116, 12, 0.55);
}

.top-bar__weather-alert--active:hover,
.top-bar__weather-alert--active:focus-visible {
  background: #d85f00;
  color: #2b1400;
  transform: translateY(-1px);
}

.top-bar__weather-alert--high {
  background: #c8102e;
  color: #fff;
  box-shadow: 0 1px 4px rgba(200, 16, 46, 0.6);
  animation-name: weather-alert-highlight-high;
}

.top-bar__weather-alert--high:hover,
.top-bar__weather-alert--high:focus-visible {
  background: #96001f;
  color: #fff;
}

@keyframes weather-alert-highlight {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(242, 116, 12, 0.6);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(242, 116, 12, 0);
  }
}

@keyframes weather-alert-highlight-high {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(200, 16, 46, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .top-bar__weather-alert--active {
    animation: weather-alert-highlight 1.8s ease-in-out infinite;
  }
}

.top-bar__logo-link {
  display: block;
  line-height: 0;
  padding: 5px 2px;
}

.top-bar__logo-link img {
  height: 22px;
  width: auto;
}

.top-bar__logo-link--epuap img {
  height: 30px;
}

.top-bar__icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  padding: 3px;
}

.top-bar__icon-link:hover {
  color: var(--color-primary);
}

/* Nagłówek — logo i menu w jednej linii (jak kleszczow.pl) */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.site-header__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.site-branding img,
.site-branding .custom-logo {
  height: 44px;
  width: auto;
  max-width: 44px;
}

.site-title-link {
  text-decoration: none;
}

.site-branding .site-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0;
}

.site-branding .site-subtitle {
  display: none;
}

/* Nawigacja główna — inline, obok logo */
.main-navigation {
  min-width: 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-navigation a {
  display: block;
  padding: 0.6rem 0.65rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(20, 20, 40, 0.14);
  transform: translateY(-2px);
}

.main-navigation .current-menu-item > a {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.08);
}

/* Podmenu (rozwijane sekcje: Urząd Gminy, Rada Gminy, Jednostki organizacyjne…) */
.main-navigation li {
  position: relative;
}

.main-navigation ul ul {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 32px rgba(20, 20, 40, 0.16);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.main-navigation ul ul ul {
  top: 0;
  left: 100%;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.main-navigation ul ul a {
  padding: 0.7rem 1rem;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: 0;
  transition: background-color 0.2s var(--ease), padding-left 0.2s var(--ease), color 0.2s var(--ease);
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus-visible {
  padding-left: 1.35rem;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}

.main-navigation .menu-item-has-children > a::after {
  content: "▾";
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7em;
  transition: transform 0.25s var(--ease);
}

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation .menu-item-has-children:focus-within > a::after {
  transform: rotate(-180deg);
}

.menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.menu-toggle:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Strona główna — sekcje */
.section {
  padding-block: 2.5rem;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__header h2 {
  margin: 0;
}

.section__header p {
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
}

/* Baner projektów / partnerów — jeden wiersz, przewijany karuzelowo */
.project-banner,
.partner-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-banner__track,
.partner-banner__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.5rem;
  flex: 1 1 auto;
}

.project-banner__track::-webkit-scrollbar,
.partner-banner__track::-webkit-scrollbar {
  display: none;
}

.project-banner__nav,
.partner-banner__nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20, 20, 40, 0.1);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.project-banner__nav:hover,
.project-banner__nav:focus-visible,
.partner-banner__nav:hover,
.partner-banner__nav:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.project-banner__nav:active,
.partner-banner__nav:active {
  transform: scale(0.94);
}

.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 360px;
  height: 210px;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.06);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.project-logo:hover,
.project-logo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(20, 20, 40, 0.12);
  border-color: var(--color-primary);
}

.project-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-logo__placeholder {
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: center;
  font-size: 0.9rem;
}

/* Dodatkowe miejsce nad i po bokach kart na dymek z nazwą partnera (inaczej byłby przycięty przez przewijany kontener) */
.partner-banner__track {
  padding-top: 5.5rem;
  padding-inline: 3rem;
}

/* Kafelki logotypów partnerów — mniejsze, w odcieniach szarości do czasu najechania */
.partner-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 190px;
  height: 110px;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.partner-logo__name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 260px;
  padding: 0.45rem 0.75rem;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.partner-logo__name::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary-dark);
}

.partner-logo:hover .partner-logo__name,
.partner-logo:focus-visible .partner-logo__name {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.partner-logo:hover,
.partner-logo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(20, 20, 40, 0.1);
  border-color: var(--color-primary);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}

.partner-logo:hover img,
.partner-logo:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(20, 20, 40, 0.1);
  transform: translateY(-2px);
}

.card--flat {
  border-color: transparent;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.card--flat h3,
.card--flat p,
.card--flat time,
.card--flat .card__tags {
  padding-inline: 0.1rem;
}

.card--flat:hover {
  box-shadow: none;
  transform: none;
}

.card {
  overflow: hidden;
}

.card > img,
.card > a > img {
  border-radius: calc(var(--radius) - 4px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.card:hover > img,
.card:hover > a > img {
  transform: scale(1.04);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card time {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Tagi kategorii na kartach aktualności */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card:hover .tag {
  background: var(--color-primary);
  color: #fff;
}

.card:hover .tag--accent {
  background: var(--color-accent-dark);
  color: #fff;
}

.card:hover .tag--warning {
  background: var(--color-warning);
  color: #fff;
}

.tag--accent {
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
}

.tag--warning {
  background: #fbe3d6;
  color: var(--color-warning-dark);
}

.card a.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card {
  position: relative;
}

/* Hero / baner powitalny */
.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding-block: 3rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.hero p {
  max-width: 60ch;
  font-size: 1.1rem;
}

/* Karuzela hero (strona główna) */
.hero-carousel {
  position: relative;
  height: min(560px, 72vh);
  min-height: 380px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 6, 9, 0.88) 0%, rgba(30, 6, 9, 0.45) 55%, rgba(30, 6, 9, 0.35) 100%);
}

.hero-carousel__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-block: 3rem;
  color: #fff;
}

.hero-carousel__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-accent-tint);
  margin: 0 0 0.5rem;
}

.hero-carousel__content h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  margin: 0 0 0.75rem;
  max-width: 40ch;
}

.hero-carousel__content p {
  max-width: 60ch;
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.hero-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-carousel__arrow--prev {
  left: 1.5rem;
}

.hero-carousel__arrow--next {
  right: 1.5rem;
}

.hero-carousel__dots {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-carousel__dots button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel__dots button::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: background-color 0.2s ease;
}

.hero-carousel__dots button.is-active::before {
  background: #fff;
}

.hero-carousel__playpause {
  position: absolute;
  bottom: 1.25rem;
  left: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.hero-carousel__playpause:hover {
  background: rgba(0, 0, 0, 0.45);
}

.hero-carousel__playpause-icon {
  display: block;
  width: 10px;
  height: 10px;
  position: relative;
}

.hero-carousel__playpause-icon::before,
.hero-carousel__playpause-icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 10px;
  background: currentColor;
}

.hero-carousel__playpause-icon::before {
  left: 1px;
}

.hero-carousel__playpause-icon::after {
  right: 1px;
}

.hero-carousel__playpause.is-paused .hero-carousel__playpause-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid currentColor;
  background: none;
}

.hero-carousel__playpause.is-paused .hero-carousel__playpause-icon::before,
.hero-carousel__playpause.is-paused .hero-carousel__playpause-icon::after {
  content: none;
}

/* Wyszukiwarka w górnej belce */
.site-header__search {
  flex: 1 1 auto;
  max-width: 260px;
}

.site-header__search .search-form {
  display: flex;
  gap: 0.4rem;
}

.site-header__search .search-form input[type="search"] {
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  border-radius: 999px;
  min-width: 0;
}

.site-header__search .search-form button {
  padding: 0.3rem 0.7rem;
  border-radius: 50%;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
}

.site-header__search .search-form button::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Siatka funkcji (4 kolumny z ikoną) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.feature {
  text-align: center;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature__icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.section__header--center {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.section__more {
  text-align: center;
  margin-top: 2rem;
}

/* Siatka kafelków (przydatne linki) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.tile .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.tile:hover,
.tile:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(163, 22, 33, 0.28);
}

.tile:nth-child(3n+2) {
  background: var(--color-accent-dark);
}

.tile:nth-child(3n+2):hover,
.tile:nth-child(3n+2):focus-visible {
  background: #6b4c06;
  box-shadow: 0 14px 24px rgba(138, 101, 8, 0.28);
}

/* Stopka */
.site-footer {
  background: #fff;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.footer-grid h2 {
  color: var(--color-primary-dark);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0;
}

.footer-electronic {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.site-footer a.footer-bip-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.9rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer a.footer-bip-badge:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 320px;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 400;
}

.hours-table th {
  color: var(--color-text-muted);
  font-weight: 400;
}

.hours-table td {
  text-align: right;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-bottom__links {
  display: flex;
  gap: 1.25rem;
}

/* Treść stron/wpisów */
.entry-content {
  max-width: 75ch;
}

.entry-content > * + * {
  margin-top: 1rem;
}

.page-header {
  padding-block: 2rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

/* Paginacja */
.pagination {
  margin-top: 2.5rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

a.page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(163, 22, 33, 0.2);
}

.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Formularz wyszukiwania */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.search-form input[type="search"] {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input[type="search"]:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

.search-form button {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(163, 22, 33, 0.25);
}

/* Dostępność — panel (wielkość czcionki, warianty kontrastu) */
.a11y-widget {
  position: relative;
}

.a11y-widget__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.a11y-widget__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
}

.a11y-widget__toggle:hover {
  transform: translateY(-1px);
}

.a11y-widget__toggle:focus-visible {
  outline-offset: 3px;
}

.a11y-widget__toggle[aria-expanded="true"] .a11y-widget__icon {
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

.a11y-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.6rem;
  width: 290px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(20, 20, 40, 0.18);
  padding: 1rem;
  z-index: 300;
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel__group + .a11y-panel__group {
  margin-top: 1rem;
}

.a11y-panel__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.a11y-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.a11y-font-btn,
.a11y-contrast-btn {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.a11y-font-btn {
  padding: 0.4rem 0.7rem;
  font-weight: 600;
}

.a11y-font-btn--default span {
  font-size: 0.85rem;
}

.a11y-font-btn--large span {
  font-size: 1rem;
}

.a11y-font-btn--largest span {
  font-size: 1.15rem;
}

.a11y-contrast-btn {
  width: 2.75rem;
  height: 2.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.a11y-contrast-btn--default {
  background: #fff;
  color: var(--color-text);
}

.a11y-contrast-btn--white-black {
  background: #000;
  color: #fff;
}

.a11y-contrast-btn--yellow-black {
  background: #000;
  color: #ffe600;
}

.a11y-contrast-btn--black-yellow {
  background: #ffe600;
  color: #000;
}

.a11y-font-btn:hover,
.a11y-contrast-btn:hover {
  transform: translateY(-1px);
}

.a11y-font-btn[aria-pressed="true"],
.a11y-contrast-btn[aria-pressed="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-tint);
}

/* Wielkość czcionki — skaluje cały serwis (jednostki rem liczą się od html) */
html.a11y-font-large {
  font-size: 112.5%;
}

html.a11y-font-largest {
  font-size: 125%;
}

/* Warianty wysokiego kontrastu — wymuszone kolory w całym serwisie */
html.a11y-contrast-white-black body,
html.a11y-contrast-white-black body * {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.a11y-contrast-white-black a {
  color: #ffe600 !important;
  text-decoration: underline !important;
}

html.a11y-contrast-yellow-black body,
html.a11y-contrast-yellow-black body * {
  background-color: #000 !important;
  background-image: none !important;
  color: #ffe600 !important;
  border-color: #ffe600 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.a11y-contrast-yellow-black a {
  color: #fff !important;
  text-decoration: underline !important;
}

html.a11y-contrast-black-yellow body,
html.a11y-contrast-black-yellow body * {
  background-color: #ffe600 !important;
  background-image: none !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.a11y-contrast-black-yellow a {
  color: #00248f !important;
  text-decoration: underline !important;
}

html[class*="a11y-contrast-"] img,
html[class*="a11y-contrast-"] .hero-carousel__overlay {
  opacity: 0.85;
}

/* W trybach kontrastowych przywracamy oryginalne kolory odznak w pasku dostępności, żeby podgląd trybu był czytelny */
html[class*="a11y-contrast-"] .a11y-contrast-btn--default,
html[class*="a11y-contrast-"] .a11y-contrast-btn--white-black,
html[class*="a11y-contrast-"] .a11y-contrast-btn--yellow-black,
html[class*="a11y-contrast-"] .a11y-contrast-btn--black-yellow {
  background-color: revert !important;
  color: revert !important;
}

html.a11y-contrast-white-black .a11y-contrast-btn--default { background-color: #fff !important; color: #000 !important; }
html.a11y-contrast-white-black .a11y-contrast-btn--white-black { background-color: #000 !important; color: #fff !important; }
html.a11y-contrast-white-black .a11y-contrast-btn--yellow-black { background-color: #000 !important; color: #ffe600 !important; }
html.a11y-contrast-white-black .a11y-contrast-btn--black-yellow { background-color: #ffe600 !important; color: #000 !important; }

html.a11y-contrast-yellow-black .a11y-contrast-btn--default { background-color: #fff !important; color: #000 !important; }
html.a11y-contrast-yellow-black .a11y-contrast-btn--white-black { background-color: #000 !important; color: #fff !important; }
html.a11y-contrast-yellow-black .a11y-contrast-btn--yellow-black { background-color: #000 !important; color: #ffe600 !important; }
html.a11y-contrast-yellow-black .a11y-contrast-btn--black-yellow { background-color: #ffe600 !important; color: #000 !important; }

html.a11y-contrast-black-yellow .a11y-contrast-btn--default { background-color: #fff !important; color: #000 !important; }
html.a11y-contrast-black-yellow .a11y-contrast-btn--white-black { background-color: #000 !important; color: #fff !important; }
html.a11y-contrast-black-yellow .a11y-contrast-btn--yellow-black { background-color: #000 !important; color: #ffe600 !important; }
html.a11y-contrast-black-yellow .a11y-contrast-btn--black-yellow { background-color: #ffe600 !important; color: #000 !important; }

@media (max-width: 782px) {
  .site-header__row {
    flex-wrap: wrap;
  }

  .site-branding {
    order: 1;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .main-navigation {
    order: 3;
    flex-basis: 100%;
    display: none;
    border-top: 1px solid var(--color-border);
    margin-top: 0.65rem;
    padding-top: 0.5rem;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation ul li {
    width: 100%;
  }

  .main-navigation ul ul {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
  }

  .hero-carousel__arrow {
    display: none;
  }

  .hero-carousel {
    height: 420px;
  }
}

/* Baner zgody na cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(20, 20, 40, 0.12);
  padding-block: 1rem;
}

.cookie-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__row p {
  margin: 0;
  max-width: 70ch;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Placeholder osadzonych treści (mapy, wideo) do czasu zgody */
.embed-facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  min-height: 280px;
  padding: 2rem;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.embed-facade p {
  max-width: 45ch;
  color: var(--color-text-muted);
  margin: 0;
}

.embed-facade iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
  border-radius: var(--radius);
}

/* Harmonogram odbioru odpadów */

.harmonogram-page {
  padding-block: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.harmonogram-upcoming h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.harmonogram-upcoming__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.harmonogram-upcoming__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--fraction-color, var(--color-primary));
  border-radius: var(--radius);
}

.harmonogram-upcoming__item strong {
  display: block;
  font-size: 0.95rem;
}

.harmonogram-upcoming__date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.harmonogram-upcoming__dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: var(--fraction-color, var(--color-primary));
}

.harmonogram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.harmonogram-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.harmonogram-legend__swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.harmonogram-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}

.harmonogram-table th,
.harmonogram-table td {
  padding: 0.6rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.harmonogram-table thead th {
  background: var(--color-bg-alt);
  font-weight: 700;
}

.harmonogram-table tbody th {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  white-space: nowrap;
}

.harmonogram-table tbody tr:last-child th,
.harmonogram-table tbody tr:last-child td {
  border-bottom: none;
}

.harmonogram-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.harmonogram-info__card {
  padding: 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.harmonogram-info__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.harmonogram-info__card p {
  margin: 0;
  color: var(--color-text-muted);
}

.harmonogram-pdf {
  margin: 0;
}

/* Galeria zdjęć */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 20, 40, 0.18);
}

.gallery-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.gallery-tile:hover .gallery-tile__img,
.gallery-tile:focus-visible .gallery-tile__img {
  transform: scale(1.05);
}

.gallery-tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.75rem 1rem 0.75rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.gallery-tile__title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
}

.gallery-tile__count {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Siatka miniatur na stronie pojedynczej galerii */

.photo-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  padding-block: 0.5rem 3rem;
}

.photo-page-grid__thumb {
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: var(--color-bg-alt);
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.12);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.photo-page-grid__thumb:hover,
.photo-page-grid__thumb:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.photo-page-grid__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.92);
  padding: 1rem;
}

.photo-lightbox[hidden] {
  display: none;
}

body.has-lightbox-open {
  overflow: hidden;
}

.photo-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
}

.photo-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.photo-lightbox__caption {
  margin: 0;
  color: #f2ede6;
  font-size: 0.9rem;
  text-align: center;
  max-width: 70ch;
}

.photo-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.photo-lightbox__nav:hover,
.photo-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.photo-lightbox__nav--prev {
  left: 1rem;
}

.photo-lightbox__nav--next {
  right: 1rem;
}

.photo-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .photo-lightbox__nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Modern refresh — warstwa nadpisań nadająca nowoczesny wygląd
   (szkło na nagłówku, mocniejszy hero, karty z cieniem, złote akcenty,
   animacje przy przewijaniu). Wszystkie funkcje bez zmian.
   ========================================================================== */

:root {
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 40, 0.05), 0 1px 2px rgba(20, 20, 40, 0.04);
  --shadow-md: 0 10px 24px rgba(20, 20, 40, 0.10), 0 2px 6px rgba(20, 20, 40, 0.05);
  --shadow-lg: 0 24px 48px rgba(20, 20, 40, 0.14), 0 4px 10px rgba(20, 20, 40, 0.06);
}

/* --- Przyklejony nagłówek: efekt szkła --- */
.site-header-sticky {
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(20, 20, 40, 0.06), 0 8px 24px rgba(20, 20, 40, 0.06);
}

.top-bar {
  background: rgba(244, 242, 238, 0.86);
  border-bottom-color: rgba(20, 20, 40, 0.06);
}

.site-header {
  background: rgba(255, 255, 255, 0.84);
}

.main-navigation a {
  font-weight: 600;
}

/* --- Hero: gradient ukośny, zaokrąglony dół, większy tytuł, pasek postępu --- */
.hero-carousel {
  border-radius: 0 0 28px 28px;
  box-shadow: 0 24px 48px rgba(30, 6, 9, 0.18);
}

.hero-carousel__overlay {
  background:
    linear-gradient(105deg, rgba(30, 6, 9, 0.92) 0%, rgba(30, 6, 9, 0.62) 42%, rgba(30, 6, 9, 0.18) 100%),
    linear-gradient(0deg, rgba(30, 6, 9, 0.55) 0%, rgba(30, 6, 9, 0) 45%);
}

.hero-carousel__content {
  padding-block: 3.25rem 3.5rem;
}

.hero-carousel__eyebrow {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #1c1300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.hero-carousel__content h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-carousel__content p {
  font-size: 1.08rem;
  opacity: 0.92;
}

.hero-carousel__arrow {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-carousel:has(.hero-carousel__dots) .hero-carousel__slide.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--color-accent), #fff);
  animation: hero-progress 7s linear forwards;
}

.hero-carousel:has(.hero-carousel__playpause.is-paused) .hero-carousel__slide.is-active::after {
  animation-play-state: paused;
}

@keyframes hero-progress {
  to { width: 100%; }
}

/* --- Nagłówki sekcji: złoto-czerwony akcent --- */
.section {
  padding-block: 3.25rem;
}

.section__header h2 {
  position: relative;
  padding-bottom: 0.7rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

.section__header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.section__header--center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Skróty (feature grid): karty --- */
.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.9rem 1.25rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature__icon {
  width: 4.25rem;
  height: 4.25rem;
  background: linear-gradient(135deg, var(--color-primary-tint), #fff);
  box-shadow: inset 0 0 0 1px rgba(163, 22, 33, 0.14);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature__icon .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.feature:hover .feature__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 10px 22px rgba(163, 22, 33, 0.3);
}

/* --- Aktualności: karty z obrazem na całą szerokość --- */
.card--flat {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 0 1.1rem;
  gap: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card--flat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card--flat > img,
.card--flat > a > img {
  border-radius: 0;
  margin-bottom: 0.4rem;
}

.card--flat h3,
.card--flat p,
.card--flat time,
.card--flat .card__tags {
  padding-inline: 1.1rem;
}

.card--flat h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}

.card--flat h3 a {
  transition: color 0.2s var(--ease);
}

.card--flat:hover h3 a {
  color: var(--color-primary);
}

/* --- Przydatne linki: kafelki z gradientem --- */
.tile {
  background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary-dark));
  box-shadow: 0 6px 16px rgba(163, 22, 33, 0.18);
  padding: 1.6rem 1rem;
}

.tile:nth-child(3n+2) {
  background: linear-gradient(145deg, #d3a22a, var(--color-accent-dark));
  box-shadow: 0 6px 16px rgba(138, 101, 8, 0.2);
}

.tile .icon {
  box-sizing: content-box;
  padding: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.tile:hover .icon,
.tile:focus-visible .icon {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.24);
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(163, 22, 33, 0.3);
}

.tile:nth-child(3n+2):hover,
.tile:nth-child(3n+2):focus-visible {
  box-shadow: 0 18px 30px rgba(138, 101, 8, 0.3);
}

/* --- Przyciski --- */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* --- Stopka --- */
.site-footer {
  position: relative;
  border-top: 0;
  background: linear-gradient(180deg, #faf8f5 0%, #f2ede6 100%);
  margin-top: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* --- Animacje przy przewijaniu (dodawane przez JS, tylko gdy dostępny IntersectionObserver) --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-carousel__slide.is-active::after {
    display: none;
  }
}

@media (max-width: 782px) {
  .hero-carousel {
    border-radius: 0 0 20px 20px;
  }

  .section {
    padding-block: 2.5rem;
  }
}

/* --- Galeria na stronie głównej: karty spójne z resztą kompozycji --- */
.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-tile {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-tile__overlay {
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(20, 6, 8, 0.86) 0%, rgba(20, 6, 8, 0.35) 60%, rgba(20, 6, 8, 0) 100%);
}

.gallery-tile__title {
  font-size: 1.05rem;
}

.gallery-tile__title::after {
  content: "→";
  display: inline-block;
  margin-left: 0.45rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-tile:hover .gallery-tile__title::after,
.gallery-tile:focus-visible .gallery-tile__title::after {
  opacity: 1;
  transform: none;
}

.gallery-tile__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.gallery-tile__badge .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--color-primary);
}

/* --- Nagłówek: większe logo, przyklejony tylko pasek menu, kompaktowy po przewinięciu --- */
html {
  scroll-padding-top: 110px;
}

.top-bar {
  position: static;
}

.site-header__row {
  padding-block: 0.95rem;
  transition: padding 0.3s var(--ease);
}

.site-branding img,
.site-branding .custom-logo {
  height: 68px;
  max-width: 68px;
  transition: height 0.3s var(--ease), max-width 0.3s var(--ease);
}

.site-branding .site-title {
  font-size: 1.25rem;
  transition: font-size 0.3s var(--ease);
}

.site-header-sticky.is-compact .site-header__row {
  padding-block: 0.4rem;
}

.site-header-sticky.is-compact .site-branding img,
.site-header-sticky.is-compact .site-branding .custom-logo {
  height: 42px;
  max-width: 42px;
}

.site-header-sticky.is-compact .site-branding .site-title {
  font-size: 1.05rem;
}

.site-header-sticky.is-compact {
  box-shadow: 0 1px 0 rgba(20, 20, 40, 0.06), 0 10px 28px rgba(20, 20, 40, 0.10);
}

@media (max-width: 782px) {
  .site-branding img,
  .site-branding .custom-logo {
    height: 54px;
    max-width: 54px;
  }
}

/* Menu nieco gęstsze, żeby przy większym logo mieściło się w jednej linii */
.main-navigation a {
  padding: 0.6rem 0.55rem;
  font-size: 0.88rem;
}

.site-header__row {
  gap: 0.75rem;
}

/* Audyt: minimalne cele dotykowe (WCAG 2.2 2.5.8) i czytelność drobnego tekstu */
.footer-bottom__links a {
  display: inline-block;
  padding-block: 0.3rem;
}

.hero-carousel__eyebrow {
  font-size: 0.78rem;
}

/* Górny pasek: pozycje tekstowe (pogoda, wywóz odpadów) nie kurczą się, tylko zawijają w całości */
.top-bar__odpady {
  flex-shrink: 0;
}

/* ==========================================================================
   Menu główne — jak na stronie GOPS: logo i nazwa u góry, pod nimi jasny pasek menu
   na całą szerokość (pozycje rozłożone równo, podkreślenie przy najechaniu, przyciski
   rozwijania podmenu). Przy przewijaniu przykleja się tylko pasek menu.
   ========================================================================== */
.site-header {
  background: #fff;
}

.site-header__row {
  justify-content: flex-start;
  padding-block: 1.1rem;
}

.site-header .site-branding {
  gap: 1rem;
}

.site-header .site-branding img,
.site-header .site-branding .custom-logo {
  height: 76px;
  max-width: 76px;
}

.site-header .site-branding .site-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-header .site-branding .site-subtitle {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.95rem;
  color: #5a5f6b;
}

.site-header-sticky {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--color-border);
}

.main-nav-bar__inner {
  display: block;
}

.main-nav-bar .menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.main-nav-bar .menu-toggle:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  transform: none;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), top 0.2s var(--ease);
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__icon::before {
  top: -6px;
}

.menu-toggle__icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Poziom 1 */
.main-nav-bar .main-navigation > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
}

.main-nav-bar .main-navigation > ul > li {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
}

.main-nav-bar .main-navigation > ul > li > a {
  position: relative;
  flex: 1;
  padding: 1rem 0.6rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav-bar .main-navigation > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0;
  height: 2px;
  margin: 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease);
}

.main-nav-bar .main-navigation > ul > li > a:hover,
.main-nav-bar .main-navigation > ul > li:focus-within > a,
.main-nav-bar .main-navigation > ul > li.current-menu-item > a,
.main-nav-bar .main-navigation > ul > li.current-menu-ancestor > a,
.main-nav-bar .main-navigation > ul > li.current_page_item > a,
.main-nav-bar .main-navigation > ul > li.current-page-ancestor > a {
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--color-primary);
}

.main-nav-bar .main-navigation > ul > li > a:hover::after,
.main-nav-bar .main-navigation > ul > li:focus-within > a::after,
.main-nav-bar .main-navigation > ul > li.current-menu-item > a::after,
.main-nav-bar .main-navigation > ul > li.current-menu-ancestor > a::after,
.main-nav-bar .main-navigation > ul > li.current_page_item > a::after,
.main-nav-bar .main-navigation > ul > li.current-page-ancestor > a::after {
  transform: scaleX(1);
}

/* Przycisk rozwijania podmenu */
.main-nav-bar .submenu-toggle {
  position: relative;
  flex: none;
  width: 22px;
  margin-left: -0.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5a5f6b;
  cursor: pointer;
}

.main-nav-bar .submenu-toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -5px 0 0 -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s var(--ease);
}

.main-nav-bar .menu-item-has-children.is-open > .submenu-toggle::before {
  transform: rotate(-135deg);
  margin-top: -1px;
}

/* Podmenu */
.main-nav-bar .main-navigation ul ul {
  display: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  min-width: 290px;
  margin: 0;
  padding: 0.5rem;
  border-radius: 14px;
  top: calc(100% + 1px);
  box-shadow: 0 1px 2px rgba(30, 34, 44, 0.05), 0 10px 30px rgba(30, 34, 44, 0.12);
}

.main-nav-bar .main-navigation ul ul ul {
  top: 0;
  left: calc(100% + 4px);
}

.main-nav-bar .main-navigation .menu-item-has-children.is-open > ul {
  display: flex;
}

.main-nav-bar .main-navigation ul ul li {
  display: flex;
  align-items: stretch;
}

.main-nav-bar .main-navigation ul ul a {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: normal;
}

.main-nav-bar .main-navigation ul ul a:hover,
.main-nav-bar .main-navigation ul ul a:focus-visible {
  padding-left: 0.9rem;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  box-shadow: none;
  transform: none;
}

.main-nav-bar .main-navigation ul ul .submenu-toggle {
  margin-left: 0;
}

.main-nav-bar .main-navigation ul ul .submenu-toggle::before {
  transform: rotate(-45deg);
}

.main-nav-bar .main-navigation ul ul .menu-item-has-children.is-open > .submenu-toggle::before {
  transform: rotate(135deg);
  margin-top: -5px;
}

@media (min-width: 783px) {
  .main-nav-bar .main-navigation > ul > li.menu-item-has-children:hover > ul,
  .main-nav-bar .main-navigation ul ul li.menu-item-has-children:hover > ul {
    display: flex;
  }

  .main-nav-bar .main-navigation > ul > li:last-child > ul,
  .main-nav-bar .main-navigation > ul > li:nth-last-child(2) > ul {
    left: auto;
    right: 0;
  }
}

@media (max-width: 782px) {
  .site-header .site-branding .site-title {
    font-size: 1.2rem;
  }

  .site-header .site-branding .site-subtitle {
    display: none;
  }

  .main-nav-bar__inner {
    padding-block: 0.5rem;
  }

  .main-nav-bar .menu-toggle {
    display: inline-flex;
  }

  .main-nav-bar .main-navigation {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-top: 0;
  }

  .main-nav-bar .main-navigation > ul {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .main-nav-bar .main-navigation > ul > li {
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
  }

  .main-nav-bar .main-navigation > ul > li:first-child {
    border-top: 0;
  }

  .main-nav-bar .main-navigation > ul > li > a {
    text-align: left;
    padding: 0.95rem 0.25rem;
    white-space: normal;
  }

  .main-nav-bar .main-navigation > ul > li > a::after {
    display: none;
  }

  .main-nav-bar .submenu-toggle,
  .main-nav-bar .main-navigation ul ul .submenu-toggle {
    width: 52px;
    margin: 0;
  }

  .main-nav-bar .main-navigation ul ul {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0.25rem 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f7f7f9;
  }

  .main-nav-bar .main-navigation ul ul a {
    padding-left: 1.25rem;
  }

  .main-nav-bar .main-navigation ul ul a:hover,
  .main-nav-bar .main-navigation ul ul a:focus-visible {
    padding-left: 1.25rem;
  }

  .main-nav-bar .main-navigation ul ul ul a {
    padding-left: 2.25rem;
  }

  .main-nav-bar .main-navigation .menu-item-has-children.is-open > ul {
    display: block;
  }
}

/* Logo + narzędzia (wyszukiwarka, dostępność) w jednym pasku; bez linii pod nim */
.site-header {
  border-bottom: 0;
}

.site-header__row {
  justify-content: space-between;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 1 auto;
  min-width: 0;
}

.site-header__search {
  flex: 1 1 auto;
  width: 340px;
  max-width: 100%;
}

.site-header__search .search-form input[type="search"] {
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  width: 100%;
}

.site-header__search .search-form button {
  width: 2.5rem;
  height: 2.5rem;
}

.site-header__tools .a11y-widget {
  flex: none;
}

/* Czcionka menu jak w GOPS (Lato, zwykła waga) */
.main-nav-bar .main-navigation > ul > li > a {
  font-size: 0.95rem;
  font-weight: 400;
}

.main-nav-bar .main-navigation ul ul a {
  font-weight: 400;
}

@media (max-width: 782px) {
  .site-header__row {
    flex-wrap: wrap;
  }

  .site-header__tools {
    order: 3;
    flex-basis: 100%;
  }

  .site-header__search {
    width: auto;
  }
}

@media (min-width: 783px) and (max-width: 1199px) {
  .main-nav-bar .main-navigation > ul > li > a {
    font-size: 0.86rem;
    padding-inline: 0.4rem;
  }

  .main-nav-bar .main-navigation > ul > li > a::after {
    left: 0.4rem;
    right: 0.4rem;
  }

  .main-nav-bar .submenu-toggle {
    margin-left: -0.4rem;
  }
}

/* Górny pasek rozciągnięty na całą szerokość: skróty po lewej, pogoda i wywóz odpadów po prawej */
.top-bar__links > li {
  display: flex;
  align-items: center;
}

@media (min-width: 783px) {
  .top-bar__links {
    flex: 1 1 100%;
    gap: 0.5rem 1.25rem;
  }

  .top-bar__links > .top-bar__weather {
    margin-left: auto;
  }

  .top-bar__links > .top-bar__odpady {
    padding-left: 1.25rem;
  }
}

@media (max-width: 782px) {
  .top-bar__weather {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 0.25rem;
  }
}

/* Moduły górnego paska rozłożone równo na całej szerokości */
@media (min-width: 783px) {
  .top-bar__links {
    justify-content: space-between;
  }

  .top-bar__links > .top-bar__weather {
    margin-left: 0;
  }

  .top-bar__links > .top-bar__odpady {
    padding-left: 0.25rem;
    border-left: 0;
  }
}

/* Górny pasek: większe logo ePUAP i Facebooka */
.top-bar__logo-link--epuap img {
  height: 38px;
}

.top-bar__icon-link img {
  width: 28px;
  height: 28px;
}

/* Węższe ekrany: skróty po lewej, pogoda i wywóz odpadów po prawej (zawijają się do drugiej linii) */
@media (min-width: 783px) and (max-width: 1199px) {
  .top-bar__links {
    justify-content: flex-start;
    gap: 0.4rem 1.25rem;
  }

  .top-bar__links > .top-bar__weather,
  .top-bar__links > .top-bar__odpady {
    margin-left: auto;
  }
}

/* Trzy górne paski (informacyjny, logo, menu): to samo białe tło, bez pogrubień */
.top-bar,
.site-header,
.site-header-sticky {
  background: #fff;
}

.top-bar {
  border-bottom: 0;
}

.top-bar,
.top-bar *,
.site-header .site-title,
.site-header .site-subtitle,
.main-nav-bar .main-navigation a,
.main-nav-bar .menu-toggle {
  font-weight: 400;
}

.site-header .site-branding .site-title {
  font-weight: 400;
}

/* Górny pasek informacyjny: lekko szary jak w GOPS (#f7f8fa) */
.top-bar {
  background: #f7f8fa;
}

/* Wyszukiwarka jak w GOPS: jedna owalna pigułka z lupą po prawej */
.site-header__search .search-form {
  display: flex;
  gap: 0;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #f7f8fa;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.site-header__search .search-form:focus-within {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(163, 22, 33, 0.08);
}

.site-header__search .search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.5rem 0.7rem 1.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.95rem;
}

.site-header__search .search-form input[type="search"]:focus,
.site-header__search .search-form input[type="search"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.site-header__search .search-form button {
  width: auto;
  height: auto;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-primary);
  box-shadow: none;
  transform: none;
}

.site-header__search .search-form button:hover {
  background: transparent;
  color: var(--color-primary-dark);
  transform: none;
}

.site-header__search .search-form button::before {
  width: 1.25rem;
  height: 1.25rem;
}

/* Przyciski dostępności jak w GOPS: rząd małych przycisków w nagłówku, bez rozwijanego panelu */
.site-header__tools .a11y-widget {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.75rem;
  flex: none;
}

.a11y-widget__group {
  display: flex;
  gap: 0.15rem;
}

.site-header__tools .a11y-font-btn,
.site-header__tools .a11y-contrast-btn {
  min-width: 34px;
  width: auto;
  height: 32px;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  border-radius: 8px;
  transform: none;
}

.site-header__tools .a11y-font-btn {
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
}

.site-header__tools .a11y-font-btn span {
  font-size: 0.875rem;
}

.site-header__tools .a11y-font-btn:hover {
  background: #fff;
  border-color: var(--color-border);
  transform: none;
}

.site-header__tools .a11y-font-btn[aria-pressed="true"] {
  background: var(--color-text);
  color: #fff;
  box-shadow: none;
}

.site-header__tools .a11y-contrast-btn {
  width: 34px;
  padding: 0;
  border: 1px solid var(--color-border);
}

.site-header__tools .a11y-contrast-btn[aria-pressed="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-tint);
}

@media (max-width: 1199px) {
  .site-header__search {
    width: 240px;
  }
}

@media (max-width: 782px) {
  .site-header__tools {
    flex-wrap: wrap;
  }

  .site-header__search {
    width: 100%;
    flex-basis: 100%;
  }
}

/* Przyciski dostępności — identyczne jak w GOPS (A−, A, A+, kontrast, podkreślenie linków) */
[data-fs="-1"] { font-size: 90%; }
[data-fs="1"]  { font-size: 112.5%; }
[data-fs="2"]  { font-size: 125%; }
[data-fs="3"]  { font-size: 137.5%; }

html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.18em;
}

.a11y {
  display: flex;
  gap: 0.15rem;
  flex: none;
}

.a11y__btn {
  min-width: 34px;
  height: 32px;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 400 0.875rem/1 var(--font-base);
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.a11y__btn:hover {
  background: #fff;
  border-color: var(--color-border);
}

.a11y__btn[aria-pressed="true"] {
  background: var(--color-text);
  color: #fff;
}

.a11y__btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

html[class*="a11y-contrast-"] .a11y__btn[aria-pressed="true"] {
  background-color: #ffe600 !important;
  color: #000 !important;
}

/* Górny pasek: ikona e-Doręczeń */
.top-bar__logo-link--edoreczenia img {
  height: 30px;
  width: auto;
}

/* Menu: przy najechaniu tylko powolne podkreślenie (bez ruchu, cieni i tła) */
.main-nav-bar .main-navigation > ul > li > a {
  transition: color 0.4s ease;
  animation: none;
}

.main-nav-bar .main-navigation > ul > li > a::after {
  transition: transform 0.5s ease;
}

.main-nav-bar .main-navigation ul ul a {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav-bar .main-navigation ul ul {
  transition: none;
}

.main-nav-bar .submenu-toggle::before {
  transition: none;
}

/* Przyklejone menu: półprzezroczyste szkło jak wcześniej (treść przewija się pod paskiem) */
.site-header-sticky {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

/* Mniej pogrubień w treści strony (jak w GOPS: nagłówki, przyciski i linki zwykłą wagą).
   Zostają pogrubienia semantyczne (<strong>, <b>) i nagłówki tabel. */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .hero-carousel__content h2,
body .gallery-tile__title,
body .gallery-tile__badge,
body .hero-carousel__eyebrow,
body .tag,
body .tile,
body .btn,
body .entry-content a,
body .card p a,
body .site-alerts a,
body .partner-logo__name,
body .pagination .page-numbers,
body .hours-table td,
body .harmonogram-table tbody th,
body .site-footer a.footer-bip-badge,
body .project-logo__placeholder,
body .search-form button {
  font-weight: 400;
}

/* Pogoda: temperatura linkuje do źródła danych (Open-Meteo) */
a.top-bar__weather-data {
  text-decoration: none;
  transition: color 0.2s ease;
}

a.top-bar__weather-data:hover,
a.top-bar__weather-data:focus-visible {
  color: var(--color-primary);
}

/* Tytuł karty na listach wyników/archiwum (h2 zamiast h3 — poprawna hierarchia nagłówków) */
.card h2.card__title {
  margin: 0;
  font-size: 1.1rem;
}

/* Galerie z treści (zmigrowane wpisy): układ kolumnowy zamiast wbudowanego <style> */
.entry-content .gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem -0.5rem;
}

.entry-content .gallery .gallery-item {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  margin: 0;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.entry-content .gallery-columns-1 .gallery-item { flex-basis: 100%; max-width: 100%; }
.entry-content .gallery-columns-2 .gallery-item { flex-basis: 50%; max-width: 50%; }
.entry-content .gallery-columns-4 .gallery-item { flex-basis: 25%; max-width: 25%; }
.entry-content .gallery-columns-5 .gallery-item { flex-basis: 20%; max-width: 20%; }
.entry-content .gallery-columns-6 .gallery-item { flex-basis: 16.666%; max-width: 16.666%; }

.entry-content .gallery .gallery-icon a {
  display: block;
}

.entry-content .gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content .gallery .gallery-caption {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

@media (max-width: 782px) {
  .entry-content .gallery .gallery-item {
    flex-basis: 50%;
    max-width: 50%;
  }
}

/* Cel dotykowy przycisku podmenu co najmniej 24 px (WCAG 2.2, 2.5.8) */
.main-nav-bar .submenu-toggle {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
}

/* Przydatne linki — lekkie kafelki: białe tło, cienka ramka, czerwona ikona w jasnym kółku */
.tile,
.tile:nth-child(3n+2) {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
  padding: 1.4rem 1rem;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tile .icon,
.tile:nth-child(3n+2) .icon {
  color: var(--color-primary);
  background: var(--color-primary-tint);
  transition: background-color 0.25s ease;
}

.tile:hover,
.tile:focus-visible,
.tile:nth-child(3n+2):hover,
.tile:nth-child(3n+2):focus-visible {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(20, 20, 40, 0.08);
  transform: none;
}

.tile:hover .icon,
.tile:focus-visible .icon {
  transform: none;
  background: #fbe9eb;
}

/* Zdjęcia w galeriach w treści: kursor powiększenia (podgląd pełnoekranowy w main.js) */
.entry-content .is-zoomable {
  cursor: zoom-in;
}

/* Na skróty: 8 kafelków w równych rzędach (4 / 2 kolumny) */
.tile-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 782px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Aktualności na stronie głównej: 8 wpisów w równych rzędach (4 / 2 / 1 kolumna) */
.card-grid--news {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1099px) {
  .card-grid--news {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .card-grid--news {
    grid-template-columns: 1fr;
  }
}

/* Podstrony i wpisy: kolumna treści wyśrodkowana, tytuł wyrównany do niej */
.entry-content {
  max-width: 880px;
  margin-inline: auto;
  padding-bottom: 3rem;
}

body.page:not(.page-template-template-harmonogram-odpadow):not(.page-template-template-mapa-serwisu):not(.page-template-template-podatki-oplaty):not(.page-template-template-zglos-problem):not(.page-template-template-sesje):not(.page-template-template-gmina-w-liczbach) .page-header .container > *,
body.single:not(.single-galeria_zdjec):not(.single-sprawa):not(.single-organizacja) .page-header .container > * {
  max-width: 880px;
  margin-inline: auto;
}

/* Układ z bocznym panelem — tylko gdy w panelu są widżety */
.page-layout--sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.page-layout--sidebar .entry-content {
  max-width: none;
  margin-inline: 0;
}

@media (max-width: 900px) {
  .page-layout--sidebar {
    grid-template-columns: 1fr;
  }
}

/* Czytanie treści na głos */
.tts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.tts[hidden],
.tts__btn[hidden] {
  display: none;
}

.tts__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tts__btn .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-primary);
}

.tts__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tts__btn--main[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.tts__btn--main[aria-pressed="true"] .icon {
  color: #fff;
}

.tts-reading {
  background: #fdf3c4;
  box-shadow: 0 0 0 4px #fdf3c4;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.entry-content > .tts + * {
  margin-top: 0;
}

/* Pasek z tytułem strony pod menu — węższy (mniej pionowych odstępów) */
.page-header {
  padding-block: 1.25rem;
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}

.page-header h1 + p,
.page-header h1 + .archive-description {
  margin: 0.35rem 0 0;
}

/* ==========================================================================
   Boczne menu sekcji na podstronach (wzór: ugbelchatow.pl)
   ========================================================================== */
.page-layout--nav {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.page-layout--nav .entry-content {
  max-width: 880px;
  margin-inline: 0;
}

.page-layout__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}

.section-nav {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.section-nav__title {
  margin: 0;
}

.section-nav__title a {
  display: block;
  padding: 0.95rem 1.1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
}

.section-nav__title a:hover,
.section-nav__title a:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
}

.section-nav__toggle {
  display: none;
}

.section-nav__list,
.section-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-nav__item {
  margin: 0;
}

.section-nav__list > .section-nav__item + .section-nav__item {
  border-top: 1px solid var(--color-border);
}

.section-nav__item > a {
  position: relative;
  display: block;
  padding: 0.75rem 2.2rem 0.75rem 1.1rem;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.section-nav__list > .section-nav__item > a::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.section-nav__item > a:hover,
.section-nav__item > a:focus-visible {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}

.section-nav__item.is-current > a,
.section-nav__item.is-ancestor > a {
  background: #f7f8fa;
  color: var(--color-primary);
}

.section-nav__item.is-current > a {
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.section-nav__sub {
  margin: 0 0 0.5rem 1.1rem;
  border-left: 2px solid var(--color-primary-tint);
}

.section-nav__sub .section-nav__item > a {
  padding: 0.5rem 1rem 0.5rem 1rem;
  font-size: 0.9rem;
}

.section-nav__sub .section-nav__item.is-current > a,
.section-nav__sub .section-nav__item.is-ancestor > a {
  background: transparent;
}

.section-nav__sub .section-nav__item.is-current > a {
  box-shadow: inset 3px 0 0 var(--color-primary);
  margin-left: -2px;
}

/* Tytuł strony wyrównany do kolumny treści (obok menu) */
@media (min-width: 901px) {
  body.page.has-section-nav:not(.page-template-template-harmonogram-odpadow):not(.page-template-template-gmina-w-liczbach) .page-header .container > * {
    /* !important: ogólna reguła wyśrodkowania tytułu ma silniejszy selektor (wiele :not) */
    max-width: none !important;
    margin-left: calc(280px + 2.5rem) !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 900px) {
  .page-layout--nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-layout__nav {
    position: static;
  }

  .section-nav__title {
    display: none;
  }

  .section-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
  }

  .section-nav__toggle-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.9;
  }

  .section-nav__toggle-hint::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .section-nav.is-open .section-nav__toggle-hint::after {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  .section-nav .section-nav__list {
    display: none;
  }

  .section-nav.is-open .section-nav__list {
    display: block;
  }
}

/* ==========================================================================
   Stopka: kolumny z ikoną w nagłówku + newsletter (wzór: ugbelchatow.pl)
   ========================================================================== */
.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}

.footer-grid .footer-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
}

.footer-heading__icon {
  display: inline-flex;
  flex: none;
  color: var(--color-primary);
}

.footer-heading__icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.footer-newsletter__desc {
  display: block;
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.footer-newsletter__row {
  display: flex;
  height: 48px;
}

.footer-newsletter__row input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 1rem;
  border: 1px solid #dedede;
  border-right: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.85rem;
}

.footer-newsletter__row input[type="email"]:focus-visible {
  outline: 3px solid var(--color-focus, #1a5fd0);
  outline-offset: 1px;
}

.footer-newsletter__submit {
  flex: none;
  height: 100%;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--color-primary);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-newsletter__submit:hover,
.footer-newsletter__submit:focus-visible {
  background: var(--color-primary-dark);
}

.footer-newsletter__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.footer-newsletter__consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  cursor: pointer;
}

.footer-newsletter__consent input {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
}

.footer-newsletter__box {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  background: #fff;
}

.footer-newsletter__consent input:checked + .footer-newsletter__box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.footer-newsletter__consent input:checked + .footer-newsletter__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.footer-newsletter__consent input:focus-visible + .footer-newsletter__box {
  outline: 3px solid var(--color-focus, #1a5fd0);
  outline-offset: 2px;
}

.footer-newsletter__consent-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text);
}

.footer-newsletter__consent-text a {
  color: var(--color-text);
  text-decoration: underline;
}

.footer-newsletter__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-newsletter__message {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
}

.footer-newsletter__message:empty {
  display: none;
}

.footer-newsletter__message[data-state="ok"] {
  padding: 0.6rem 0.8rem;
  border-left: 3px solid #2e7d32;
  background: #eef6ee;
  color: #1e4d21;
}

.footer-newsletter__message[data-state="error"] {
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--color-primary);
  background: #fdecee;
  color: var(--color-primary-dark);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid .footer-newsletter {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Dolny pasek stopki: linki z ikonami (jak na ugbelchatow.pl) */
.footer-bottom {
  align-items: center;
}

.footer-bottom__links {
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-bottom__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-bottom__links .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.footer-bottom__links a:hover .icon {
  color: var(--color-primary);
}

/* Mapa serwisu */
.sitemap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  padding-bottom: 3rem;
}

.sitemap__section--pages {
  grid-column: 1 / -1;
}

.sitemap__section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

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

.sitemap__tree ul ul {
  margin: 0.25rem 0 0.5rem 0.4rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.sitemap__tree li {
  margin: 0;
  padding: 0.2rem 0;
  break-inside: avoid;
}

.sitemap__tree a {
  color: var(--color-text);
  text-decoration: none;
}

.sitemap__tree a:hover,
.sitemap__tree a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.sitemap__section--menu .sitemap__tree > ul {
  columns: 2;
  column-gap: 2.5rem;
}

.sitemap__section--menu .sitemap__tree > ul > li {
  padding-bottom: 0.6rem;
}

.sitemap__section--menu .sitemap__tree > ul > li > a,
.sitemap__tree--columns > ul > li > a {
  font-weight: 700;
}

.sitemap__tree--columns > ul {
  columns: 3;
  column-gap: 2.5rem;
}

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

  .sitemap__tree--columns > ul {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .sitemap__section--menu .sitemap__tree > ul,
  .sitemap__tree--columns > ul {
    columns: 1;
  }
}

/* ==========================================================================
   Paleta „grafit i biel z oszczędną czerwienią” (wariant 3)
   Grafit na nagłówki i ciemne powierzchnie, biel/jasna szarość na tła,
   czerwień herbu tylko na akcenty: przyciski, linki, ikony, podkreślenia.
   ========================================================================== */
:root {
  --color-primary: #b3202e;
  --color-primary-dark: #2b2f36;
  --color-primary-light: #c8343f;
  --color-primary-tint: #f1f2f4;
  --color-accent: #b3202e;
  --color-accent-dark: #2b2f36;
  --color-accent-tint: #f1f2f4;
  --color-text: #1f2329;
  --color-text-muted: #5f6670;
  --color-bg-alt: #f6f7f8;
  --color-border: #e4e6ea;
}

/* Karuzela: neutralny grafitowy cień zamiast bordowego */
.hero-carousel {
  background: #2b2f36;
  box-shadow: 0 24px 48px rgba(20, 22, 26, 0.18);
}

.hero-carousel__overlay {
  background:
    linear-gradient(105deg, rgba(20, 22, 26, 0.88) 0%, rgba(20, 22, 26, 0.55) 42%, rgba(20, 22, 26, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 22, 26, 0.55) 0%, rgba(20, 22, 26, 0) 45%);
}

.hero-carousel__eyebrow {
  background: var(--color-primary);
  color: #fff;
}

.gallery-tile__overlay {
  background: linear-gradient(to top, rgba(20, 22, 26, 0.86) 0%, rgba(20, 22, 26, 0.35) 60%, rgba(20, 22, 26, 0) 100%);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Stopka grafitowa */
.site-footer {
  background: #2b2f36;
  color: #d6d9de;
}

.site-footer::before {
  background: var(--color-primary);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #f3a4ab;
}

.footer-grid .footer-heading {
  color: #fff;
}

.footer-heading__icon {
  color: #ef7d87;
}

.footer-electronic,
.hours-table th {
  color: #b7bcc4;
}

.hours-table td {
  color: #fff;
}

.hours-table th,
.hours-table td {
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-newsletter__desc,
.footer-newsletter__consent-text {
  color: #d6d9de;
}

.footer-newsletter__consent-text a {
  color: #fff;
}

.footer-newsletter__row input[type="email"] {
  border-color: #fff;
}

.footer-newsletter__box {
  border-color: #8a9099;
  background: transparent;
}

.footer-newsletter__consent input:checked + .footer-newsletter__box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.footer-newsletter__submit:hover,
.footer-newsletter__submit:focus-visible {
  background: var(--color-primary-light);
}

.footer-newsletter__message[data-state="ok"] {
  border-left-color: #6fcf73;
  background: rgba(255, 255, 255, 0.08);
  color: #e3f5e4;
}

.footer-newsletter__message[data-state="error"] {
  border-left-color: #ef7d87;
  background: rgba(255, 255, 255, 0.08);
  color: #fde3e5;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: #b7bcc4;
}

.footer-bottom__links .icon {
  color: #b7bcc4;
}

.footer-bottom__links a:hover .icon {
  color: #f3a4ab;
}

.site-footer a:focus-visible,
.footer-newsletter__row input[type="email"]:focus-visible,
.footer-newsletter__consent input:focus-visible + .footer-newsletter__box {
  outline-color: #fff;
}

/* Boczne menu działu: nagłówek grafitowy, czerwień tylko na zaznaczeniu */
.section-nav__title a,
.section-nav__toggle {
  background: #2b2f36;
}

.section-nav__title a:hover,
.section-nav__title a:focus-visible {
  background: #1f2329;
}

/* Pod karuzelą 5 kafelków w jednym rzędzie na dużych ekranach */
@media (min-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Ostrzeganie i alarmowanie */
.alert-page {
  max-width: calc(880px + 2 * 20px);
  padding-bottom: 3rem;
}

.alert-page__lead {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.alert-page__section {
  margin-bottom: 2.75rem;
}

.alert-page__section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}

.alert-page__note {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.alert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.alert-table th,
.alert-table td {
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.alert-table thead th {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
}

.alert-table tbody th {
  background: var(--color-bg-alt);
  font-weight: 700;
  white-space: nowrap;
}

.alert-sound {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.alert-sound .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-primary);
}

.alert-sound:hover {
  border-color: var(--color-primary);
}

.alert-sound[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.alert-sound[aria-pressed="true"] .icon {
  color: #fff;
}

.alert-steps {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.7;
}

.alert-steps li + li {
  margin-top: 0.5rem;
}

.alert-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.alert-guide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alert-guide:hover,
.alert-guide:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(20, 20, 40, 0.08);
}

.alert-guide__icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.alert-guide__icon .icon {
  width: 22px;
  height: 22px;
}

.alert-guide__title {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.alert-guide__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.alert-phones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.alert-phones a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}

.alert-phones a:hover,
.alert-phones a:focus-visible {
  border-color: var(--color-primary);
}

.alert-phones strong {
  font-size: 1.35rem;
  color: var(--color-primary);
}

.alert-phones span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .alert-guides {
    grid-template-columns: 1fr;
  }

  .alert-table tbody th {
    white-space: normal;
  }
}

.alert-sound {
  display: flex;
  width: fit-content;
}

/* Pod karuzelą 6 kafelków: 3 kolumny (2 rzędy) na komputerze, 6 w rzędzie na szerokich ekranach */
@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1400px) {
  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Plan ogólny gminy */
.pog__lead {
  font-size: 1.08rem;
  line-height: 1.7;
}

.pog h2 {
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}

.pog__links {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.pog__link {
  display: block;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3202e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 14 20 4M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") no-repeat 0.9rem center / 18px;
  color: var(--color-text);
  text-decoration: none;
}

.pog__link:hover,
.pog__link:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pog__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.pog__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.pog__badge--done {
  border-color: #2e7d32;
  color: #1e5b21;
}

.pog__badge--current {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.pog-steps {
  counter-reset: pog;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.pog-steps__item {
  counter-increment: pog;
  position: relative;
  margin: 0;
  padding: 0 0 1.5rem 3.4rem;
}

.pog-steps__item::before {
  content: counter(pog);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.pog-steps__item::after {
  content: "";
  position: absolute;
  left: calc(1.1rem - 1px);
  top: 2.4rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--color-border);
}

.pog-steps__item:last-child::after {
  display: none;
}

.pog-steps__item.is-done::before {
  content: "✓";
  border-color: #2e7d32;
  background: #2e7d32;
  color: #fff;
}

.pog-steps__item.is-done::after {
  background: #2e7d32;
}

.pog-steps__item.is-current::before {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 5px var(--color-primary-tint);
}

.pog-steps__item h3 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--color-text);
}

.pog-steps__item.is-current h3 {
  color: var(--color-primary);
  font-weight: 700;
}

.pog-steps__item:not(.is-done):not(.is-current) h3 {
  color: var(--color-text-muted);
}

.pog-version {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
}

.pog-version h4 {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  color: var(--color-primary-dark);
}

.pog-files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pog-files li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.45rem 0 0.45rem 1.6rem;
  border-top: 1px solid var(--color-border);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3202e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") no-repeat 0 0.55rem / 16px;
}

.pog-files li:first-child {
  border-top: 0;
}

.pog-files__date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.pog-files__zip a {
  font-weight: 700;
}

/* ==========================================================================
   Ogłoszenia i przetargi
   ========================================================================== */
.notices {
  max-width: calc(980px + 2 * 1.25rem);
  padding-bottom: 3rem;
}

.notices__filters {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.notices__tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.notices__tab {
  padding: 0.7rem 1.1rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 700;
}

.notices__tab:hover {
  color: var(--color-primary);
}

.notices__tab.is-active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.notices__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice-chip {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.88rem;
  text-decoration: none;
}

.notice-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.notice-chip.is-active {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: #fff;
}

.notices__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.notice-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notice-row:hover,
.notice-row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(20, 20, 40, 0.08);
}

.notice-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 0.6rem 0.3rem;
  border-radius: 10px;
  background: var(--color-bg-alt);
  text-align: center;
  line-height: 1.1;
}

.notice-row__day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.notice-row__month {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.notice-row__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
}

.notice-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.notice-badge--archive {
  background: #fff4e5;
  color: #7a4100;
}

.notice-row__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.notice-row__title a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.notice-row:hover .notice-row__title a {
  color: var(--color-primary);
}

.notice-row__excerpt {
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.notice-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

.notice-row__meta:empty {
  display: none;
}

.notices__empty,
.notices__bip {
  color: var(--color-text-muted);
}

.notices__bip {
  margin-top: 2rem;
  font-size: 0.92rem;
}

/* Pojedyncze ogłoszenie */
.notice-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.notice-figure {
  margin: 0 0 1.5rem;
}

.notice-figure img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.entry-content table td,
.entry-content table th {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
}

.entry-content table tr:first-child td,
.entry-content table thead th {
  background: var(--color-bg-alt);
  font-weight: 700;
}

.notice-files {
  margin-top: 2rem;
}

.notice-files h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.notice-files ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.notice-files a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}

.notice-files a:hover,
.notice-files a:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.notice-files__ext {
  min-width: 2.8rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.notice-files__size {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 600px) {
  .notice-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .notice-row__date {
    flex-direction: row;
    gap: 0.4rem;
    justify-self: start;
    padding: 0.3rem 0.7rem;
  }

  .notice-row__day {
    font-size: 1rem;
  }

  .notice-row__month {
    margin-top: 0;
  }
}

.post-type-archive-ogloszenie .page-header .container > *,
.tax-kategoria_ogloszen .page-header .container > * {
  max-width: 980px;
  margin-inline: auto;
}

@media (max-width: 782px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
  }
}

.notices__bip a {
  text-decoration: underline;
}

/* Plakietka ogłoszenia na liście aktualności */
.tag--notice {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Gdzie publikujemy przetargi */
.tender-info {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 0 0 12px 12px;
  background: var(--color-bg-alt);
}

.entry-content .tender-info {
  margin-top: 2rem;
}

.tender-info .tender-info__title {
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.tender-info__lead {
  margin: 0 0 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

.tender-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tender-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.tender-info__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.tender-info__name {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.tender-info__link:hover .tender-info__name,
.tender-info__link:focus-visible .tender-info__name {
  color: var(--color-primary);
  text-decoration: underline;
}

.tender-info__host {
  font-size: 0.82rem;
  color: var(--color-primary);
  word-break: break-all;
}

.tender-info__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.tender-info__more {
  margin-top: auto;
  font-size: 0.86rem;
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .tender-info__list {
    grid-template-columns: 1fr;
  }
}

/* Wysuwany panel Facebooka (prawa krawędź ekranu) */
.fb-panel {
  position: fixed;
  top: 34%;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  transform: translateX(340px);
  transition: transform 0.35s ease;
}

.fb-panel.is-open {
  transform: translateX(0);
}

.fb-panel__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: 1rem;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: #1877f2;
  color: #fff;
  cursor: pointer;
  box-shadow: -4px 4px 14px rgba(20, 20, 40, 0.18);
}

.fb-panel__tab:hover,
.fb-panel__tab:focus-visible {
  background: #0f63d0;
}

.fb-panel__box {
  width: 340px;
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  box-shadow: -8px 10px 30px rgba(20, 20, 40, 0.18);
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

.fb-panel.is-open .fb-panel__box {
  visibility: visible;
  transition-delay: 0s;
}

.fb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  background: #1877f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.fb-panel__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fb-panel__close:hover,
.fb-panel__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.fb-panel__content {
  display: flex;
  justify-content: center;
  min-height: 220px;
  padding: 10px;
}

.fb-panel__content iframe {
  display: block;
  width: 320px;
  max-width: 100%;
  height: 500px;
  border: 0;
}

.fb-panel__consent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.fb-panel__consent p {
  margin: 0;
  color: var(--color-text-muted);
}

.fb-panel__link {
  font-size: 0.88rem;
  text-decoration: underline;
}

@media (max-width: 782px), (max-height: 560px) {
  .fb-panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-panel,
  .fb-panel__box {
    transition: none;
  }
}

/* Kontrast: nagłówek panelu Facebooka ciemniejszy (biały tekst min. 4,5:1) */
.fb-panel__head {
  background: #1360c4;
}

.cookie-banner a {
  text-decoration: underline;
}

/* Zakładka Facebooka nad przyklejonym menu (z-index 200), pod banerem cookies i galerią */
.fb-panel {
  z-index: 250;
}

/* Pasek przewijających się ogłoszeń (pod menu) */
.ticker {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.92rem;
}

.ticker__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 44px;
}

.ticker__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

.ticker__label:hover,
.ticker__label:focus-visible {
  background: var(--color-primary-light);
  color: #fff;
}

.ticker__label .icon {
  width: 18px;
  height: 18px;
}

.ticker__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-duration, 40s) linear infinite;
}

.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker__list {
  display: flex;
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticker__item {
  flex: none;
  padding: 0 2.5rem 0 1.25rem;
  position: relative;
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

.ticker__item a {
  color: #fff;
  text-decoration: none;
}

.ticker__item a:hover,
.ticker__item a:focus-visible {
  text-decoration: underline;
}

.ticker__item time {
  margin-right: 0.4rem;
  color: #c9ced6;
}

.ticker__toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ticker__toggle:hover,
.ticker__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.ticker__toggle-icon {
  position: relative;
  width: 12px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.ticker.is-paused .ticker__toggle-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid currentColor;
  border-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }

  .ticker__list[aria-hidden="true"] {
    display: none;
  }

  .ticker__viewport {
    overflow-x: auto;
  }

  .ticker__toggle {
    display: none;
  }
}

@media (max-width: 600px) {
  .ticker__label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Cel kliknięcia linków na pasku min. 24 px (WCAG 2.5.8) */
.ticker__item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ticker__label {
  position: relative;
  z-index: 1;
}

/* Ikony ETR i PJM obok przycisków dostępności w nagłówku */
.a11y-links {
  display: flex;
  gap: 0.15rem;
  flex: none;
}

.a11y-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--color-text);
}

.a11y-links__item:hover,
.a11y-links__item:focus-visible {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-primary);
}

.a11y-links__item .icon {
  width: 22px;
  height: 22px;
}

/* Tekst łatwy do czytania (ETR): duża czcionka, krótkie linie, wyraźne sekcje */
.etr {
  font-size: 1.2rem;
  line-height: 1.8;
}

.etr__block {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-primary);
  border-radius: 0;
  background: #fff;
}

.etr__block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

.etr__block p {
  margin: 0 0 0.6rem;
  max-width: 60ch;
}

.etr__block ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.4rem;
}

.etr__block li + li {
  margin-top: 0.35rem;
}

.etr__address {
  font-size: 1.35rem;
  font-weight: 700;
}

/* Język migowy */
.pjm__video {
  margin: 0 0 2rem;
  padding: 1.5rem;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
}

.pjm__soon {
  margin: 0;
}

@media (max-width: 782px) {
  .etr {
    font-size: 1.1rem;
  }
}

.etr a,
.pjm a {
  text-decoration: underline;
}

/* ==========================================================================
   Kalendarz wydarzeń
   ========================================================================== */
.events-page {
  padding-bottom: 3rem;
}

.events-page__cats {
  margin-bottom: 1.5rem;
}

.events-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.cal {
  position: sticky;
  top: 80px;
  padding: 1rem 1rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.cal__title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.cal__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}

.cal__arrow:hover,
.cal__arrow:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cal__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  table-layout: fixed;
}

.cal__table th {
  padding: 0.3rem 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

.cal__table abbr {
  text-decoration: none;
}

.cal__table td {
  height: 44px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
}

.cal__day .cal__num {
  font-size: 0.92rem;
}

.cal__day a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.cal__day a:hover,
.cal__day a:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

.cal__dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--color-primary);
}

.cal__day a:hover .cal__dot,
.cal__day a:focus-visible .cal__dot {
  background: #fff;
}

.cal__day.is-today {
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.cal__today-link {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.events-list__title {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}

.events-list__day {
  margin-bottom: 1.5rem;
  scroll-margin-top: 90px;
}

.events-list__date {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: capitalize;
}

.events-list__day:target .event-card {
  border-color: var(--color-primary);
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 1.1rem;
  margin-bottom: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover,
.event-card:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(20, 20, 40, 0.08);
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 0.55rem 0.2rem;
  border-radius: 10px;
  background: var(--color-primary-dark);
  color: #fff;
  line-height: 1.1;
  text-align: center;
}

.event-card__day {
  font-size: 1.55rem;
  font-weight: 700;
}

.event-card__month,
.event-card__weekday {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-card__weekday {
  margin-top: 0.2rem;
  color: #c9ced6;
}

.event-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.event-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.event-card__title a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.event-card:hover .event-card__title a {
  color: var(--color-primary);
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.event-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.event-card__meta .icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Strona główna — nadchodzące wydarzenia */
.events-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
}

/* Strona wydarzenia */
.event-facts {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 0;
  background: var(--color-bg-alt);
}

.event-facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
}

.event-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.event-facts dt .icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.event-facts dd {
  margin: 0;
}

.event-facts__map {
  margin-left: 0.4rem;
  font-size: 0.88rem;
  text-decoration: underline;
}

.post-type-archive-wydarzenie .page-header .container > *,
.tax-kategoria_wydarzen .page-header .container > * {
  max-width: none;
}

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

  .cal {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .event-facts div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.events-list__date {
  text-transform: none;
}

.events-list__date::first-letter {
  text-transform: uppercase;
}

/* Nasi partnerzy: mniejszy odstęp pod nagłówkiem — nazwa partnera pokazuje się wewnątrz kafelka */
.partners-section .section__header {
  margin-bottom: 0.75rem;
}

.partner-banner__track {
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.partner-logo {
  overflow: hidden;
}

.partner-logo__name {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  padding: 0.35rem 0.5rem;
  border-radius: 0;
  font-size: 0.72rem;
  transform: translateY(100%);
}

.partner-logo__name::after {
  content: none;
}

.partner-logo:hover .partner-logo__name,
.partner-logo:focus-visible .partner-logo__name {
  transform: translateY(0);
}

/* Menu z 10 pozycjami: ciaśniej na węższych ekranach, żeby zostało w jednej linii */
@media (min-width: 783px) and (max-width: 1199px) {
  .main-nav-bar .main-navigation > ul > li > a {
    font-size: 0.8rem;
    padding-inline: 0.3rem;
  }

  .main-nav-bar .main-navigation > ul > li > a::after {
    left: 0.3rem;
    right: 0.3rem;
  }

  .main-nav-bar .submenu-toggle {
    margin-left: -0.3rem;
  }
}

/* Panel Facebooka wyżej (pod przyklejonym menu), żeby zmieścić dłuższy fragment osi czasu */
.fb-panel {
  top: 76px;
}

.fb-panel__content iframe {
  height: auto;
}

/* Kompaktowy panel Facebooka (sam nagłówek profilu) na wysokości zakładki „f” */
.fb-panel {
  top: max(300px, 34vh);
}

.fb-panel__tab {
  margin-top: 0;
}

.fb-panel__content {
  min-height: 0;
}

/* ==========================================================================
   Nieodpłatna pomoc prawna
   ========================================================================== */
.npp__lead {
  font-size: 1.08rem;
  line-height: 1.7;
}

.npp p a,
.npp li a {
  text-decoration: underline;
}

.npp h2 {
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.3rem;
}

.npp h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.npp__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.npp__facts li {
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border-radius: 10px;
  background: var(--color-bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3202e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat 0.9rem 1rem / 18px;
  line-height: 1.45;
}

.npp-booking {
  margin: 1.5rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  background: #fff;
}

.npp-booking h2 {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.npp-booking__ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
}

.npp-booking__way {
  margin: 0;
}

.npp-booking__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.npp-booking__value {
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-word;
}

.npp-booking__value a {
  color: var(--color-primary);
}

.npp-booking__note {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.npp-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.npp-point {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.npp-point__type {
  align-self: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.npp-point address {
  margin: 0 0 0.8rem;
  font-style: normal;
  line-height: 1.5;
}

.npp-hours {
  margin: 0 0 0.8rem;
  border-top: 1px solid var(--color-border);
}

.npp-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.npp-hours dt {
  color: var(--color-text-muted);
}

.npp-hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.npp-hours .is-different dd {
  color: var(--color-primary);
}

.npp-point__who {
  margin: 0 0 0.8rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.npp-point__map {
  margin-top: auto;
  font-size: 0.92rem;
}

.npp-scope {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.npp-scope > section {
  padding: 1.2rem 1.25rem;
  border-radius: 12px;
  background: var(--color-bg-alt);
}

.npp-scope ol {
  margin: 0;
  padding-left: 1.2rem;
}

.npp-scope li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.npp-scope p {
  margin: 0.8rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.npp details {
  margin: 0.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.npp summary {
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.npp summary:hover,
.npp summary:focus-visible {
  color: var(--color-primary);
}

.npp details[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.npp details > :not(summary) {
  margin-inline: 1.1rem;
}

.npp details > :last-child {
  margin-bottom: 1rem;
}

.npp__funding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.npp__funding img {
  width: auto;
  height: 56px;
  border: 0;
  border-radius: 0;
}

.npp__funding p {
  flex: 1 1 220px;
  margin: 0;
}

@media (max-width: 640px) {
  .npp__facts,
  .npp-points {
    grid-template-columns: 1fr;
  }
}

/* Lista podstron na stronie działu bez własnej treści */
.subpage-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subpage-list li {
  margin: 0;
}

.subpage-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.subpage-list a::after {
  content: "›";
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
}

.subpage-list a:hover,
.subpage-list a:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Menu z 10 pozycjami (z „Dla mieszkańca”): od 1200 px jeden wiersz, węższe ekrany — dwa równe wiersze po 5 */
@media (min-width: 1200px) {
  .main-nav-bar .main-navigation > ul > li > a {
    font-size: 0.85rem;
    padding-inline: 0.4rem;
  }

  .main-nav-bar .main-navigation > ul > li > a::after {
    left: 0.4rem;
    right: 0.4rem;
  }

  .main-nav-bar .submenu-toggle {
    margin-left: -0.4rem;
  }
}

@media (min-width: 783px) and (max-width: 1199px) {
  .main-nav-bar .main-navigation > ul {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: center;
    column-gap: 0.5rem;
  }

  .main-nav-bar .main-navigation > ul > li > a {
    font-size: 0.86rem;
    padding: 0.7rem 0.5rem;
  }

  .main-nav-bar .main-navigation > ul > li > a::after {
    left: 0.5rem;
    right: 0.5rem;
  }

  .main-nav-bar .submenu-toggle {
    margin-left: -0.5rem;
  }
}

/* ==========================================================================
   Pasek ogłoszeń przyklejony do dołu ekranu (jak na gminalanieta.pl),
   z przyciskiem chowania po lewej stronie
   ========================================================================== */
:root {
  --ticker-height: 46px;
}

body.has-ticker {
  padding-bottom: var(--ticker-height);
}

.ticker-collapsed body.has-ticker {
  padding-bottom: 0;
}

.ticker-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  height: var(--ticker-height);
  pointer-events: none;
}

.ticker-dock .ticker {
  position: absolute;
  inset: 0;
  padding-left: var(--ticker-height);
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 14px rgba(20, 24, 32, 0.08);
  color: var(--color-text);
  pointer-events: auto;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

.ticker-collapsed .ticker-dock .ticker {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

.ticker-dock .ticker__inner {
  height: 100%;
  min-height: 0;
}

.ticker-dock__hide {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ticker-height);
  height: var(--ticker-height);
  padding: 0;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}

.ticker-dock__hide:hover,
.ticker-dock__hide:focus-visible {
  background: var(--color-primary-light);
}

.ticker-dock__hide:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: -3px;
}

.ticker-dock__chevron {
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.ticker-collapsed .ticker-dock__chevron {
  margin-top: 6px;
  transform: rotate(-135deg);
}

.ticker-dock .ticker__label {
  padding: 0 0.9rem 0 1rem;
  background: transparent;
  color: var(--color-primary);
  border-right: 1px solid var(--color-border);
}

.ticker-dock .ticker__label:hover,
.ticker-dock .ticker__label:focus-visible {
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.ticker-dock .ticker__item a {
  min-height: var(--ticker-height);
  color: var(--color-text);
}

.ticker-dock .ticker__item a:hover,
.ticker-dock .ticker__item a:focus-visible {
  color: var(--color-primary);
}

.ticker-dock .ticker__item time {
  color: var(--color-text-muted);
}

.ticker-dock .ticker__item::after {
  background: var(--color-primary);
}

.ticker-dock .ticker__toggle {
  border-left: 1px solid var(--color-border);
  color: var(--color-text);
}

.ticker-dock .ticker__toggle:hover,
.ticker-dock .ticker__toggle:focus-visible {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-dock .ticker,
  .ticker-dock__chevron {
    transition: none;
  }
}

@media print {
  .ticker-dock {
    display: none;
  }

  body.has-ticker {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Kalendarz wydarzeń (jak na gminalanieta.pl)
   ========================================================================== */

/* — Strona główna: lista | mini-kalendarz | plakat — */
.evcal-home {
  background: var(--color-bg-alt);
}

.evcal-home__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: stretch;
}

.evcal-home__row.has-poster {
  grid-template-columns: minmax(0, 1fr) 320px 300px;
}

.evcal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.evcal-list__title {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 1.45rem;
  font-weight: 400;
}

.evcal-list__items {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evcal-entry {
  position: relative;
  display: block;
  padding: 1rem 2.6rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
}

.evcal-entry::after {
  content: "›";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.evcal-entry:hover,
.evcal-entry:focus-visible {
  border-color: var(--color-primary);
}

.evcal-entry:hover .evcal-entry__title,
.evcal-entry:focus-visible .evcal-entry__title {
  color: var(--color-primary);
}

.evcal-entry__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.evcal-entry__meta .icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.evcal-entry__title {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}

.evcal-list__empty {
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  color: var(--color-text-muted);
}

.evcal-list__reset {
  align-self: flex-start;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.evcal-mini {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.1rem 1.25rem;
  border-radius: 10px;
  background: var(--color-primary-dark);
  color: #fff;
}

.evcal-mini__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.evcal-mini__title {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
}

.evcal-mini__year {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #d5d9df;
}

.evcal-mini__arrow,
.evcal-band__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
}

.evcal-mini__arrow:hover,
.evcal-mini__arrow:focus-visible,
.evcal-band__arrow:hover,
.evcal-band__arrow:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.evcal-mini__grid {
  transition: opacity 0.2s ease;
}

.evcal-mini.is-loading .evcal-mini__grid {
  opacity: 0.5;
}

.evcal-mini__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
  font-size: 0.85rem;
}

.evcal-mini__table th {
  padding: 0 0 0.25rem;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.evcal-mini__table abbr {
  text-decoration: none;
}

.evcal-mini__table td {
  padding: 0;
  border: 0;
  background: none;
}

.evcal-mini__day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.evcal-mini__cell.is-outside .evcal-mini__day {
  background: rgba(255, 255, 255, 0.12);
  color: #ccd1d8;
  font-weight: 400;
}

.evcal-mini__cell.has-events .evcal-mini__day {
  background: var(--color-primary);
  color: #fff;
}

.evcal-mini__cell.has-events a.evcal-mini__day:hover,
.evcal-mini__cell.has-events a.evcal-mini__day:focus-visible,
.evcal-mini__cell.is-selected .evcal-mini__day {
  background: var(--color-primary-light);
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.evcal-mini__cell.is-today .evcal-mini__day {
  box-shadow: inset 0 0 0 3px #f2c94c;
}

.evcal-mini__all,
.evcal-row__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.evcal-mini__all {
  align-self: center;
  margin-top: auto;
  transform: translateY(0.4rem);
}

.evcal-mini__all:hover,
.evcal-mini__all:focus-visible,
.evcal-row__more:hover,
.evcal-row__more:focus-visible {
  background: var(--color-primary-light);
  color: #fff;
}

.evcal-poster {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.evcal-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evcal-poster:hover,
.evcal-poster:focus-visible {
  border-color: var(--color-primary);
}

@media (max-width: 1100px) {
  .evcal-home__row.has-poster {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .evcal-home__row.has-poster .evcal-poster {
    display: none;
  }
}

@media (max-width: 760px) {
  .evcal-home__row,
  .evcal-home__row.has-poster {
    grid-template-columns: 1fr;
  }

  .evcal-mini {
    order: -1;
  }
}

/* — Strona kalendarza: pas z dniami miesiąca + lista wierszy — */
.evcal-band {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-radius: 10px;
  background: var(--color-primary-dark);
  color: #fff;
}

.evcal-band__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.evcal-band__title {
  margin: 0;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
}

.evcal-band__year {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: #d5d9df;
}

.evcal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(27px, 1fr);
  gap: 3px;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.evcal-strip__day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  margin: 0;
  text-align: center;
}

.evcal-strip__wd {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.evcal-strip__day.is-weekend .evcal-strip__wd {
  color: #f0a3aa;
}

.evcal-strip__num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 4px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.evcal-strip__day.has-events .evcal-strip__num {
  background: var(--color-primary);
  color: #fff;
}

.evcal-strip__day.has-events a.evcal-strip__num:hover,
.evcal-strip__day.has-events a.evcal-strip__num:focus-visible,
.evcal-strip__day.is-selected .evcal-strip__num {
  background: var(--color-primary-light);
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.evcal-strip__day.is-today .evcal-strip__num {
  box-shadow: inset 0 0 0 3px #f2c94c;
}

.evcal-month__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.evcal-month__title {
  margin: 0;
  font-size: 1.35rem;
}

.evcal-month__reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.evcal-rows {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.evcal-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.evcal-row[hidden] {
  display: none;
}

.evcal-row:hover {
  border-color: var(--color-primary);
}

.evcal-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  line-height: 1;
}

.evcal-row__day {
  font-size: 1.6rem;
  font-weight: 700;
}

.evcal-row__mon {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.evcal-row__cats {
  margin: 0 0 0.3rem;
}

.evcal-row__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.evcal-row__title a {
  color: var(--color-text);
  text-decoration: none;
}

.evcal-row__title a:hover,
.evcal-row__title a:focus-visible {
  color: var(--color-primary);
  text-decoration: underline;
}

.evcal-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.evcal-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.evcal-row__meta .icon {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .evcal-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .evcal-row__more {
    display: none;
  }

  .evcal-band__title {
    font-size: 1.5rem;
  }
}

/* Motyw jasny: zaokrąglenia jak na stronie GOPS (blok „Ostre kąty w całym serwisie” usunięty) */

/* Szersze sekcje strony głównej: kafelki pod slajderem i aktualności */
.container--wide {
  max-width: 1520px;
}

/* Galeria zdjęć na stronie głównej: szersza sekcja, 4 szersze kolumny od 1200 px */
@media (min-width: 1200px) {
  .gallery-section .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Slajder projektów w szerszej sekcji: loga dopasowane do pełnej szerokości (3 lub 4 w rzędzie) */
@media (min-width: 1200px) {
  .container--wide .project-logo {
    width: calc((100% - 2 * 1.5rem) / 3);
  }
}

@media (min-width: 1600px) {
  .container--wide .project-logo {
    width: calc((100% - 3 * 1.5rem) / 4);
  }
}

/* Na skróty: 14 kafelków — 2 rzędy po 7 (komputer), po 4 z wyśrodkowanym ostatnim rzędem (tablet) */
@media (min-width: 783px) {
  .tile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tile-grid > .tile {
    flex: 0 0 calc((100% - 3 * 1.1rem) / 4);
    min-width: 0;
  }

  .tile span {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (min-width: 1100px) {
  .tile-grid > .tile {
    flex-basis: calc((100% - 6 * 1.1rem) / 7);
  }
}

@media (max-width: 782px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile span {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

/* Tytuł karty jako nagłówek h2 (np. strona „Zabytki”) — wygląd jak h3 w kartach */
.npp .npp-point__title {
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* ==========================================================================
   „Wyjątkowe miejsce” – zdjęcie gminy z lotu ptaka i liczby (jak na gminalanieta.pl)
   ========================================================================== */
.place-section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  isolation: isolate;
}

.place-section__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 30, 0.62), rgba(20, 24, 30, 0.72));
}

.place-section__inner {
  max-width: 1000px;
}

.place-section__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
}

.place-section__lead {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.7;
}

.place-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.place-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.place-stats__value {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.place-stats__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

.place-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 2rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.place-section__btn:hover,
.place-section__btn:focus-visible {
  background: var(--color-primary-light);
  color: #fff;
}

.place-section__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .place-section {
    padding: 3rem 0;
  }

  .place-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Odliczanie liczb w sekcji „Poznaj Gminę Oporów” */
.place-stats__num {
  display: inline-block;
  min-width: 4ch;
  transition: transform 0.3s ease;
}

.place-stats__num.is-counting {
  transform: scale(1.04);
}

/* ==========================================================================
   Gmina w liczbach
   ========================================================================== */
.numbers-page {
  padding-bottom: 3rem;
}

.numbers-page__lead {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.numbers-page__toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.numbers-page__toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.numbers-page__toc a:hover,
.numbers-page__toc a:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.numbers-group {
  margin-top: 2.75rem;
  scroll-margin-top: 140px;
}

.numbers-group__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  font-size: 1.4rem;
}

.numbers-group__title .icon {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.numbers-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  background: #fff;
}

.numbers-card__value {
  color: var(--color-primary-dark);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.numbers-card__value .place-stats__num {
  min-width: 0;
}

.numbers-card__unit {
  font-size: 0.55em;
  font-weight: 700;
}

.numbers-card__label {
  font-weight: 700;
  line-height: 1.4;
}

.numbers-card__note {
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.numbers-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.numbers-chart {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.numbers-chart figcaption {
  margin-bottom: 1rem;
}

.numbers-chart__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.numbers-chart__desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.entry-content .numbers-bars,
.numbers-bars {
  display: table;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.numbers-bars th,
.numbers-bars td {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  vertical-align: middle;
}

.numbers-bars th {
  width: 1%;
  padding-right: 0.9rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.numbers-bars td {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.numbers-bars__bar {
  flex: 0 0 auto;
  width: calc((100% - 6.5rem) * var(--bar));
  min-width: 3px;
  height: 22px;
  background: var(--color-primary);
}

.numbers-bars tr:nth-child(even) .numbers-bars__bar {
  background: var(--color-primary-dark);
}

.numbers-bars__value {
  flex: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.numbers-sources {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  font-size: 0.92rem;
}

.numbers-sources h2,
.numbers-sources h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.numbers-sources ul {
  margin: 0 0 0.6rem;
  padding-left: 1.2rem;
}

.numbers-sources a {
  text-decoration: underline;
}

.numbers-sources p {
  margin: 0;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .numbers-bars th {
    white-space: normal;
    width: 40%;
  }

  .numbers-bars__bar {
    width: calc((100% - 6rem) * var(--bar));
  }
}

/* Drugi przycisk w sekcji „Poznaj Gminę Oporów” */
.place-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.place-section__btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 2px #fff;
}

.place-section__btn--ghost:hover,
.place-section__btn--ghost:focus-visible {
  background: #fff;
  color: var(--color-primary-dark);
}

/* Gmina w liczbach: przypis źródła działu i wykresy z długimi nazwami */
.numbers-group__source {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.numbers-group__source a {
  text-decoration: underline;
}

.numbers-bars--wrap th {
  width: 42%;
  white-space: normal;
  font-weight: 600;
  line-height: 1.35;
}

.numbers-charts > .numbers-chart:has(.numbers-bars--wrap) {
  grid-column: 1 / -1;
}

/* Informacje o gminie + Gmina w liczbach na jednej stronie */
.numbers-page__intro {
  max-width: 900px;
}

.numbers-page__heading {
  margin: 3rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  scroll-margin-top: 140px;
}

/* ==========================================================================
   Mapa gminy
   ========================================================================== */
.map-page {
  padding-bottom: 3rem;
}

.map-page__lead {
  max-width: 860px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}

.gmina-map {
  height: min(72vh, 640px);
  min-height: 420px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  z-index: 0;
}

.gmina-map__noscript {
  padding: 2rem;
}

.map-page__hint {
  margin: 0.6rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.map-panel {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--color-border);
  background: #fff;
}

.map-panel__title {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

.parcel-form p {
  margin: 0 0 0.8rem;
}

.parcel-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.parcel-form select,
.parcel-form input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  border: 1px solid #8a9099;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.parcel-form select:focus-visible,
.parcel-form input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 1px;
}

.parcel-form__help {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.parcel-form .btn {
  width: 100%;
  justify-content: center;
}

.parcel-result:not(:empty) {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid #f2c94c;
  background: var(--color-bg-alt);
  font-size: 0.92rem;
}

.parcel-result.is-error:not(:empty) {
  border-left-color: var(--color-primary);
}

.parcel-result p {
  margin: 0 0 0.5rem;
}

.parcel-result__head {
  font-weight: 700;
}

.parcel-result__data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.6rem;
}

.parcel-result__data dt {
  color: var(--color-text-muted);
}

.parcel-result__data dd {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

.parcel-result a {
  text-decoration: underline;
}

.parcel-result__note {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.map-places {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-places li + li {
  border-top: 1px solid var(--color-border);
}

.map-places__btn {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.2rem;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-places__btn:hover strong,
.map-places__btn:focus-visible strong {
  color: var(--color-primary);
  text-decoration: underline;
}

.map-places__num,
.map-pin span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.map-places__addr {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.map-pin span {
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.map-pin:focus-visible span {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 2px;
}

.map-zoom-hint {
  padding: 0.35rem 0.6rem;
  background: rgba(43, 47, 54, 0.85);
  color: #fff;
  font-size: 0.82rem;
}

.leaflet-container {
  font: inherit;
}

.leaflet-container a {
  color: var(--color-primary);
}

.map-sip {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
}

.map-sip h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.map-sip__note {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

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

  .gmina-map {
    height: 60vh;
    min-height: 360px;
  }
}

/* ==========================================================================
   Mapa planu ogólnego (strona „Plan ogólny gminy”)
   ========================================================================== */
.pog-map {
  margin: 1rem 0 2.5rem;
}

.pog-map__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pog-map__side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  align-items: start;
}

.pog-map__side .map-panel {
  margin-bottom: 0;
}

.pog-map__canvas {
  height: min(70vh, 620px);
}

.pog-info {
  font-size: 0.92rem;
}

.pog-info p {
  margin: 0 0 0.5rem;
}

.pog-info__empty,
.pog-info__extra {
  color: var(--color-text-muted);
}

.pog-info__error {
  color: var(--color-primary);
  font-weight: 700;
}

.pog-info__head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.pog-info__head .pog-legend__swatch {
  margin-top: 0.2rem;
}

.pog-info__label {
  margin-top: 0.75rem !important;
  font-weight: 700;
}

.pog-info__std {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  margin: 0;
}

.pog-info__std dt {
  color: var(--color-text-muted);
}

.pog-info__std dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.pog-info__list {
  margin: 0;
  padding-left: 1.1rem;
}

.pog-info__list li {
  margin-bottom: 0.15rem;
}

.pog-map__legend-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
}

.pog-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.pog-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  line-height: 1.35;
}

.pog-legend__swatch {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 16px;
  border: 1px solid #8a9099;
}

.pog-legend__swatch--ouz {
  border: 1.5px dashed #1f2329;
  background: rgba(31, 35, 41, 0.08);
}

@media (max-width: 960px) {
  .pog-map__layout {
    grid-template-columns: 1fr;
  }

  .pog-map__canvas {
    height: 60vh;
    min-height: 360px;
  }
}

/* ==========================================================================
   Poprawki z przeglądu designu (10.2026)
   ========================================================================== */

/* 1. Karty aktualności: zdjęcie zawsze na pełną szerokość karty, w jednej proporcji */
.card > img,
.card > a > img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 782px) {
  /* 2. Telefon: niższy górny pasek — skróty w pierwszym wierszu, pogoda i wywóz odpadów pod nimi */
  .top-bar .container {
    padding-block: 0.35rem;
  }

  .top-bar__links {
    gap: 0.25rem 0.9rem;
    font-size: 0.82rem;
  }

  .top-bar__logo-link--epuap img {
    height: 30px;
  }

  .top-bar__icon-link img {
    width: 24px;
    height: 24px;
  }

  .top-bar__weather-date {
    display: none;
  }

  .top-bar__links > .top-bar__weather {
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .top-bar__links > .top-bar__weather,
  .top-bar__links > .top-bar__odpady {
    flex-basis: 100%;
  }

  .top-bar__links > .top-bar__odpady,
  .top-bar__weather-data {
    border-left: 0;
    padding-left: 0;
  }

  .top-bar__links li > a.top-bar__odpady-link {
    padding-block: 2px;
  }

  /* 2. Telefon: zwarty nagłówek — mniejszy herb, mniej odstępów */
  .site-header__row {
    padding-block: 0.6rem;
    gap: 0.5rem;
  }

  .site-header .site-branding img,
  .site-header .site-branding .custom-logo {
    height: 48px;
    max-width: 48px;
  }

  .site-header__tools {
    gap: 0.35rem;
    justify-content: space-between;
  }

  /* 3. Telefon: kafelki pod karuzelą w dwóch kolumnach, cały kafelek klikalny */
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .feature {
    position: relative;
    padding: 1rem 0.75rem;
  }

  .feature__icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.6rem;
  }

  .feature__icon .icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  .feature h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .feature p {
    display: none;
  }

  .feature .btn {
    position: static;
    display: block;
    height: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    font-size: 0;
    background: none;
    box-shadow: none;
  }

  .feature .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }

  .feature .btn:focus-visible {
    outline: none;
  }

  .feature:focus-within {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }

  /* 4. Telefon: karuzela projektów — jedna karta na szerokość, z przyciąganiem */
  .project-banner__track {
    gap: 1rem;
    scroll-snap-type: x mandatory;
  }

  .project-logo {
    width: 100%;
    height: 170px;
    padding: 1.25rem;
    scroll-snap-align: center;
  }
}

/* ==========================================================================
   Górny pasek: jakość powietrza (obok pogody)
   ========================================================================== */
.top-bar__air {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  color: var(--color-text);
}

.top-bar__air[hidden],
.top-bar__links li > a.top-bar__air[hidden] {
  display: none;
}

.top-bar__links li > a.top-bar__air:not([hidden]) {
  display: inline-flex;
}

.top-bar__air-dot {
  display: inline-block;
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #9aa0a8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.top-bar__air--very-good .top-bar__air-dot { background: #2e9d3a; }
.top-bar__air--good .top-bar__air-dot { background: #8cc63f; }
.top-bar__air--moderate .top-bar__air-dot { background: #f2c200; }
.top-bar__air--sufficient .top-bar__air-dot { background: #f08c00; }
.top-bar__air--bad .top-bar__air-dot { background: #d7263d; }
.top-bar__air--very-bad .top-bar__air-dot { background: #7a1a4a; }

@media (max-width: 782px) {
  .top-bar__links > .top-bar__weather {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }
}

/* ==========================================================================
   Harmonogram odpadów: subskrypcja kalendarza (.ics)
   ========================================================================== */
.harmonogram-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 2rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-primary-tint);
  border: 1px solid rgba(163, 22, 33, 0.15);
  border-radius: var(--radius);
}

.harmonogram-calendar h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.harmonogram-calendar p {
  margin: 0;
}

.harmonogram-calendar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.harmonogram-calendar__more {
  grid-column: 1 / -1;
}

.harmonogram-calendar__more summary {
  cursor: pointer;
  font-weight: 600;
}

.harmonogram-calendar__more ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

@media (max-width: 782px) {
  .harmonogram-calendar {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }
}

/* ==========================================================================
   Nowe sekcje: Jak załatwić sprawę, Podatki i opłaty, Sesje Rady, Zgłoś problem,
   Organizacje, Odwiedź Oporów, pasek e-usług na stronie głównej
   ========================================================================== */

/* --- Wspólne --- */
.sprawy-back {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.sprawy-back a {
  color: var(--color-text-muted);
}

.sprawy-back a:hover {
  color: var(--color-primary);
}

.sprawy-back span {
  margin: 0 0.35rem;
  color: var(--color-text-muted);
}

.notice-chip--more {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.section--tight {
  padding-block: 2.25rem;
}

/* --- Lista spraw --- */
.sprawy {
  padding-block: 2rem 3rem;
}

.sprawy__search {
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.sprawy__search label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.sprawy__search input,
.eservices__search input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
}

.sprawy__empty {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

.sprawy__cats {
  margin-bottom: 2rem;
}

.sprawy__popular,
.sprawy__group {
  margin-bottom: 2.5rem;
}

.sprawy__popular h2,
.sprawy__group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.sprawy__group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

.sprawy__group-icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.sprawy-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sprawy-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sprawy-tile:hover,
.sprawy-tile:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.sprawy-tile__icon {
  flex: none;
  color: var(--color-primary);
}

.sprawy-tile__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.sprawy-tile a {
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
}

.sprawy-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sprawy-list__item {
  position: relative;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  transition: box-shadow 0.2s var(--ease);
}

.sprawy-list__item:hover,
.sprawy-list__item:focus-within {
  box-shadow: var(--shadow-md);
}

.sprawy-list__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.sprawy-list__item h3 a {
  color: var(--color-primary-dark);
}

.sprawy-list__item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.sprawy-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.6rem !important;
  font-size: 0.85rem !important;
}

.sprawy-list__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sprawy-list__meta .icon {
  width: 1rem;
  height: 1rem;
}

.sprawy-list__online {
  color: #1f6f3a;
}

.sprawy__help {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--color-primary-tint);
  border-radius: var(--radius);
}

.sprawy__help h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.sprawy__help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.sprawy__help-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sprawy__help-actions .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* --- Karta sprawy --- */
.sprawa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2rem 3rem;
}

.sprawa__section + .sprawa__section {
  margin-top: 2rem;
}

.sprawa__checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.sprawa__checklist li {
  position: relative;
  padding: 0.6rem 0.9rem 0.6rem 2.6rem;
  background: #f7f8fa;
  border-radius: 8px;
}

.sprawa__checklist li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
}

.sprawa__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.sprawa__fact {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.sprawa__fact h2,
.sprawa-box h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.sprawa__fact h2 .icon,
.sprawa-box h2 .icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-primary);
}

.sprawa__fact p {
  margin: 0;
}

.sprawa__law {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.sprawa__law h2 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.sprawa__updated {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sprawa__aside {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 1rem;
}

.sprawa-box {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.sprawa-box p {
  margin: 0 0 0.6rem;
}

.sprawa-box p .icon,
.sprawa-box__contact .icon {
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
  color: var(--color-text-muted);
}

.sprawa-box--online {
  background: var(--color-primary-tint);
  border-color: rgba(163, 22, 33, 0.18);
}

.sprawa-box--online .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.sprawa-box__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.org-logo img {
  max-width: 200px;
  height: auto;
}

/* --- Podatki i opłaty --- */
.podatki {
  padding-block: 2rem 3rem;
}

.podatki__admin-note {
  padding: 0.8rem 1rem;
  background: #fff8db;
  border: 1px solid #e6c84a;
  border-radius: 8px;
}

.podatki__section {
  margin-bottom: 2.75rem;
}

.podatki__section > h2,
.sesje__year h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

.podatki__section > h2 .icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--color-primary);
}

.podatki__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.podatki-card {
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.podatki-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
}

.podatki-card__dates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}

.podatki-card__dates li {
  padding: 0.6rem 0.4rem;
  text-align: center;
  background: var(--color-primary-tint);
  border-radius: 8px;
}

.podatki-card__dates strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 0.98rem;
}

.podatki-card__dates span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.podatki-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.podatki__ways {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.podatki__ways li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.podatki__accounts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.podatki__accounts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.8rem 1rem;
  background: #f7f8fa;
  border-radius: 8px;
}

.podatki__iban {
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.podatki-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.podatki-table th,
.podatki-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.podatki-table td:last-child {
  white-space: nowrap;
  font-weight: 600;
}

.sprawy-list--compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* --- Sesje Rady --- */
.sesje {
  padding-block: 2rem 3rem;
}

.sesje__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.sesje__links .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sesje__links .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.sesje__years {
  margin-bottom: 2rem;
}

.sesje__year {
  margin-bottom: 2.5rem;
  scroll-margin-top: 90px;
}

.sesje__count {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.sesje-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.sesje-list__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.sesje-list__item:hover,
.sesje-list__item:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.sesje-list__num {
  flex: none;
  min-width: 3.4rem;
  padding: 0.4rem 0.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  border-radius: 8px;
}

.sesje-list__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.sesje-list__body h3 a {
  color: var(--color-text);
}

.sesje-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.sesje-list__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sesje-list__meta .icon {
  width: 1rem;
  height: 1rem;
}

.sesja-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f7f8fa;
  border-radius: 8px;
}

.sesja-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.sesja-bar .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-primary);
}

/* --- Zgłoś problem --- */
.zglos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2rem 3rem;
}

.zglos__emergency {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  background: #fdecee;
  border: 1px solid #f2b8bf;
  border-radius: 8px;
  color: #7a1420;
  font-weight: 600;
}

.zglos__emergency .icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.zglos__step {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.zglos__step legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 600;
}

.zglos__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
}

.zglos__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zglos__cat input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.zglos__cat span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.zglos__cat input:checked + span {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.zglos__cat input:focus-visible + span {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.zglos__hint {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.zglos__map {
  height: 340px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  z-index: 0;
}

.zglos__map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.6rem;
}

.zglos__map-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.zglos__map-actions .icon {
  width: 1rem;
  height: 1rem;
}

.zglos__coords {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.zglos__field {
  margin: 0 0 1rem;
}

.zglos__field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.zglos__field textarea,
.zglos__field input[type="email"],
.zglos__field input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
}

.zglos__req {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.zglos__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.zglos__preview {
  display: block;
  max-width: 240px;
  margin-top: 0.6rem;
  border-radius: 8px;
}

.zglos__preview[hidden] {
  display: none;
}

.zglos__consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.zglos__consent input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.zglos__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.zglos__status:empty {
  display: none;
}

.zglos__status {
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
}

.zglos__status.is-ok {
  background: #e7f5ea;
  color: #1f5f31;
  border: 1px solid #b6dfc0;
}

.zglos__status.is-error {
  background: #fdecee;
  color: #7a1420;
  border: 1px solid #f2b8bf;
}

.zglos__aside {
  position: sticky;
  top: 90px;
  padding: 1.25rem;
  background: #f7f8fa;
  border-radius: var(--radius);
}

.zglos__aside h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.zglos__aside ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.zglos__aside li + li {
  margin-top: 0.4rem;
}

/* --- Organizacje --- */
.organizacje {
  padding-block: 2rem 3rem;
}

.organizacje nav {
  margin-bottom: 1.75rem;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.org-card {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.org-card:hover,
.org-card:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.org-card__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  overflow: hidden;
}

.org-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.org-card__logo .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.org-card__type {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.org-card h2 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.02rem;
  line-height: 1.3;
}

.org-card h2 a {
  color: var(--color-text);
}

.org-card__place {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.org-card__place .icon {
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: -0.1em;
}

/* --- Odwiedź Oporów --- */
.visit-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.visit-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visit-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.15) 0%, rgba(20, 24, 32, 0.78) 100%);
}

.visit-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 3rem;
  max-width: 820px;
  margin-inline: auto;
}

.visit-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
}

.visit-hero p {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
}

.visit {
  padding-block: 3rem;
}

.visit__section {
  margin-bottom: 3.5rem;
}

.visit-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding: 1.75rem;
  background: var(--color-primary-tint);
  border-radius: var(--radius);
}

.visit-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}

.visit-feature__icon .icon {
  width: 2.2rem;
  height: 2.2rem;
}

.visit-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.visit-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.visit-feature__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.visit-feature__actions .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.visit-card {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.visit-card__icon {
  display: inline-flex;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.visit-card__icon .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.visit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.visit-card p {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.visit-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.visit-split h2 {
  margin-top: 0;
}

.visit-split__img {
  margin: 0;
}

.visit-split__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Strona główna: pasek e-usług --- */
.eservices {
  background: #fff;
}

.eservices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.75rem;
  background: var(--color-primary-tint);
  border-radius: var(--radius);
}

.eservices h2 {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
}

.eservices__search {
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  margin-bottom: 1rem;
}

.eservices__search input {
  flex: 1 1 auto;
  min-width: 0;
}

.eservices__popular {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eservices__report {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(163, 22, 33, 0.2);
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.eservices__report:hover,
.eservices__report:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.eservices__report-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}

.eservices__report-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.eservices__report strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.eservices__report span span {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* --- Responsywność nowych sekcji --- */
@media (max-width: 1023px) {
  .sprawa-layout,
  .zglos,
  .eservices__grid {
    grid-template-columns: 1fr;
  }

  .sprawa__aside,
  .zglos__aside {
    position: static;
  }

  /* Telefon/tablet: „Załatw przez internet” i dane urzędu nad treścią karty */
  .sprawa__aside {
    order: -1;
  }
}

@media (max-width: 782px) {
  .sprawy-list {
    grid-template-columns: 1fr;
  }

  .podatki-card__dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .podatki__ways li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .zglos__row {
    grid-template-columns: 1fr;
  }

  .zglos__step {
    padding: 1rem;
  }

  .zglos__map {
    height: 280px;
  }

  .visit-feature {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .visit-split {
    grid-template-columns: 1fr;
  }

  .eservices__grid {
    padding: 1.1rem;
  }

  .eservices__search {
    flex-direction: column;
  }

  .eservices h2 {
    font-size: 1.25rem;
  }
}

/* Górny pasek: data ukryta poniżej 1600 px, żeby pogoda, powietrze i wywóz odpadów mieściły się w jednym wierszu */
@media (min-width: 783px) and (max-width: 1599px) {
  .top-bar__weather-date {
    display: none;
  }

  .top-bar__weather-data {
    border-left: 0;
    padding-left: 0;
  }
}

.sprawa__main.entry-content {
  max-width: none;
  margin-inline: 0;
  padding-bottom: 0;
}

/* Telefon: bez aktywnych ostrzeżeń sam dzwonek (tekst dla czytników ekranu), żeby pogoda i powietrze mieściły się w jednym wierszu */
@media (max-width: 782px) {
  .top-bar__weather-alert:not(.top-bar__weather-alert--active) #weather-alert-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 379px) {
  .top-bar__links > .top-bar__odpady {
    flex-shrink: 1;
    min-width: 0;
  }

  .top-bar__links li > a.top-bar__odpady-link {
    white-space: normal;
  }
}

@media (max-width: 782px) {
  .top-bar__weather-place {
    display: none;
  }
}

/* Odwiedź Oporów: 4 atrakcje w równych rzędach (4 w rzędzie lub 2×2) */
@media (min-width: 640px) {
  #visit-zobacz .visit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  #visit-zobacz .visit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Górny pasek: równe odstępy (1.25rem) między temperaturą, jakością powietrza, ostrzeżeniami i wywozem odpadów */
@media (min-width: 783px) {
  .top-bar__links li > a.top-bar__air:not([hidden]) {
    margin-left: 0.65rem;
  }

  .top-bar__weather-alert {
    margin-left: 0.05rem;
  }
}

/* Szeroki ekran: skróty rozłożone równo po lewej, pogoda i wywóz odpadów jednym blokiem po prawej */
@media (min-width: 1200px) {
  .top-bar__links {
    justify-content: flex-start;
    column-gap: 2.25rem;
  }

  .top-bar__links > .top-bar__weather {
    margin-left: auto;
  }

  .top-bar__links > .top-bar__odpady {
    margin-left: calc(1.25rem - 0.6rem - 2.25rem - 0.25rem);
  }
}

/* Na skróty: 18 kafelków — 3 rzędy po 6 (komputer), 6 rzędów po 3 (tablet) */
@media (min-width: 783px) and (max-width: 1099px) {
  .tile-grid > .tile {
    flex-basis: calc((100% - 2 * 1.1rem) / 3);
  }
}

@media (min-width: 1100px) {
  .tile-grid > .tile {
    flex-basis: calc((100% - 5 * 1.1rem) / 6);
  }
}

/* ==========================================================================
   Telefony do urzędu
   ========================================================================== */
.entry-content .phones-lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

.entry-content .phones-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  background: var(--color-border);
}

.entry-content .phones-main__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 1rem 1.2rem;
  background: var(--color-bg-alt);
}

.entry-content .phones-main__label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.entry-content .phones-main__item strong {
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.entry-content .phones-table {
  margin-bottom: 1.5rem;
}

.entry-content .phones-table th:nth-child(1) {
  width: 60%;
}

/* Pierwszy wiersz danych nie jest nagłówkiem (nagłówek jest w <thead>) */
.entry-content .phones-table tbody tr:first-child td {
  background: transparent;
  font-weight: 400;
}

.entry-content .phones-table tbody tr td:nth-child(2) {
  white-space: nowrap;
  font-weight: 700;
}

.entry-content .phones-table a {
  text-decoration: underline;
}

.entry-content .phones-table__note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.entry-content .phones-note {
  margin-top: 2rem;
  color: var(--color-text-muted);
}

.entry-content .phones-note a {
  text-decoration: underline;
}

@media (max-width: 782px) {
  .entry-content .phones-main {
    grid-template-columns: 1fr;
  }

  /* Telefon: każdy wiersz tabeli jako karta z podpisami pól */
  .entry-content .phones-table,
  .entry-content .phones-table tbody,
  .entry-content .phones-table tr,
  .entry-content .phones-table td {
    display: block;
    width: 100%;
  }

  .entry-content .phones-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .entry-content .phones-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
  }

  .entry-content .phones-table td {
    border: 0;
    border-top: 1px solid var(--color-border);
  }

  .entry-content .phones-table td:first-child {
    border-top: 0;
  }

  .entry-content .phones-table td:not(:first-child) {
    display: flex;
    gap: 0.75rem;
  }

  .entry-content .phones-table td:not(:first-child)::before {
    content: attr(data-label);
    min-width: 4.5rem;
    color: var(--color-text-muted);
    font-weight: 400;
  }
}

/* Szerokie logotypy (np. logo programu dofinansowania) jako miniatury kafelków — w całości, na białym tle */
.card > img.is-wide-logo,
.card > a > img.is-wide-logo {
  object-fit: contain;
  padding: 0.75rem;
  background: #fff;
  box-sizing: border-box;
}

/* Slajder partnerów w szerszej sekcji: całe logotypy bez uciętego ostatniego (5 lub 6 w widoku) */
@media (min-width: 1200px) {
  .container--wide .partner-logo {
    width: calc((100% - 4 * 1.5rem) / 5);
  }
}

@media (min-width: 1400px) {
  .container--wide .partner-logo {
    width: calc((100% - 5 * 1.5rem) / 6);
  }
}

/* Slajder aktualności: tekst w szerszym kontenerze zawsze za strzałkami (strzałka 1.5rem od krawędzi, 2.75rem szerokości) */
@media (min-width: 783px) {
  .hero-carousel__content.container--wide {
    padding-inline: max(1.25rem, calc(5.25rem - max(0px, (100vw - 1520px) / 2)));
  }
}

/* Stopka: godziny otwarcia wyrównane do prawej krawędzi (gdy kolumna jest po prawej stronie) */
@media (min-width: 641px) {
  .footer-hours {
    justify-self: end;
    width: min(320px, 100%);
  }
}

/* Typ i rozmiar pliku przy linkach do dokumentów (np. „(PDF, 140 KB)”) */
.entry-content .file-meta {
  color: var(--color-text-muted);
  font-size: 0.85em;
  white-space: nowrap;
}

/* Ramka informacyjna CEEB (strona Czyste powietrze): linki w tekście podkreślone */
.entry-content .ceeb-info a {
  text-decoration: underline;
}

/* ==========================================================================
   Czyste Powietrze: dane kwartalne programu w gminie (shortcode [czyste_powietrze_dane])
   ========================================================================== */
.entry-content .cp-stats {
  margin: 0 0 2.5rem;
}

.entry-content .cp-stats h2 {
  margin-top: 0;
}

.entry-content .cp-stats__lead {
  color: var(--color-text-muted);
}

.entry-content .cp-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.entry-content .cp-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--color-bg-alt);
}

.entry-content .cp-stats__value {
  color: var(--color-primary);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entry-content .cp-stats__label {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.entry-content .cp-stats__source {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.entry-content .cp-stats__subtitle {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

/* Pierwszy wiersz danych nie jest nagłówkiem (nagłówek jest w <thead>) */
.entry-content .cp-stats__table tbody tr:first-child td,
.entry-content .cp-stats__table tbody tr:first-child th {
  background: transparent;
  font-weight: 400;
}

.entry-content .cp-stats__table th[scope="row"] {
  font-weight: 400;
  white-space: nowrap;
}

.entry-content .cp-stats__table td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Telefon: kafelki jeden pod drugim (kwota dotacji mieści się w jednej linii) */
@media (max-width: 600px) {
  .entry-content .cp-stats__grid {
    grid-template-columns: 1fr;
  }

  .entry-content .cp-stats__item {
    padding: 0.85rem 1rem;
  }
}

/* Menu z pozycją „Ochrona środowiska”: przy 1200–1299 px ciaśniejsze odstępy, żeby zostać w jednym wierszu */
@media (min-width: 1200px) and (max-width: 1299px) {
  .main-nav-bar .main-navigation > ul > li > a {
    font-size: 0.83rem;
    padding-inline: 0.25rem;
  }

  .main-nav-bar .main-navigation > ul > li > a::after {
    left: 0.25rem;
    right: 0.25rem;
  }

  .main-nav-bar .submenu-toggle {
    margin-left: -0.25rem;
  }
}

/* Strona projektu: tabela finansowania (nagłówek w <thead>, wiersz „Razem” wyróżniony) */
.entry-content .project-budget tbody tr:first-child td,
.entry-content .project-budget tbody tr:first-child th {
  background: transparent;
  font-weight: 400;
}

.entry-content .project-budget th[scope="row"] {
  font-weight: 400;
  text-align: left;
}

.entry-content .project-budget td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.entry-content .project-budget tbody tr:last-child > * {
  background: var(--color-bg-alt);
}

.entry-content .project-lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Strona projektu: linki w akapitach podkreślone (czytelne bez rozróżniania kolorów) */
.single-projekt .entry-content p a {
  text-decoration: underline;
}

/* Pasek logotypów Funduszy Europejskich (zestawienie znaków FE – RP – UE) na stronach projektów */
.entry-content .fe-logos {
  margin: 0 0 1.75rem;
  padding: 0.75rem 0;
  background: #fff;
}

.entry-content .fe-logos img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* Telefon: pionowe zestawienie znaków FE (źródło <picture>) — wyśrodkowane, w czytelnym rozmiarze */
@media (max-width: 600px) {
  .entry-content .fe-logos img {
    width: auto;
    max-width: min(240px, 70vw);
    margin-inline: auto;
  }
}

/* Podatki i opłaty: lista uchwał do pobrania */
.podatki__docs {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.podatki__docs li {
  margin-bottom: 0.4rem;
}

.podatki__docs a {
  text-decoration: underline;
}

.podatki__doc-type {
  color: var(--color-text-muted);
  font-size: 0.85em;
}

/* Podatki i opłaty: linki w tekście (gov.pl, telefon) podkreślone */
.podatki__ways a,
.podatki__contact a {
  text-decoration: underline;
}

/* Gospodarka odpadami: tabela stawek opłaty i numer rachunku */
.entry-content .fee-table tbody tr:first-child > * {
  background: transparent;
}

.entry-content .fee-table tbody tr:first-child th {
  font-weight: 400;
}

.entry-content .fee-table tbody tr:first-child td {
  font-weight: 700;
}

.entry-content .fee-table th[scope="row"] {
  font-weight: 400;
  text-align: left;
}

.entry-content .fee-table tbody tr td {
  font-weight: 700;
  white-space: nowrap;
}

.entry-content .fee-account {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.entry-content .odpady-oplata a {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .entry-content .fee-table tbody tr td {
    white-space: normal;
  }
}

/* Podatki i opłaty: wiersz z uwagą (linia bez stawki) */
.podatki-table td.podatki-table__note {
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-style: italic;
  font-weight: 400;
  white-space: normal;
}

/* Gospodarka odpadami: przyciski pobrania deklaracji (PDF i DOCX) */
.entry-content .deklaracja-pliki {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.entry-content .deklaracja-pliki li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.entry-content .odpady-deklaracja .btn {
  text-decoration: none;
}

/* Strona „Wójt Gminy”: zdjęcie obok danych kontaktowych */
.entry-content .wojt-photo {
  float: right;
  width: 260px;
  max-width: 40%;
  margin: 0 0 1.25rem 1.75rem;
}

.entry-content .wojt-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
}

.entry-content .wojt-photo ~ h2 {
  clear: none;
}

@media (max-width: 600px) {
  .entry-content .wojt-photo {
    float: none;
    width: min(240px, 70vw);
    max-width: none;
    margin: 0 auto 1.25rem;
  }
}

/* Stopka: rachunek bankowy (opłata za odpady) */
.site-footer .footer-bank {
  color: #b7bcc4;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer .footer-bank__nr {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .site-footer .footer-bank__nr {
    white-space: normal;
  }
}

/* Stopka: kolumna „Przydatne linki” (jak na gminalanieta.pl) — 4 kolumny od 1200 px, 2 na tablecie */
.footer-links__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links__list li {
  margin: 0 0 0.55rem;
}

.footer-links__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
}

.footer-links__list a::before {
  content: "›";
  color: var(--color-primary-light, #c8343f);
  font-weight: 700;
}

.footer-links__list a:hover,
.footer-links__list a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem 2.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid .footer-newsletter {
    grid-column: auto;
    order: 0;
  }
}

/* Informacje o gminie (z „Gminą w liczbach”): tytuł i wstęp wyrównane do lewej, jak sekcje z danymi poniżej */
.entry-content.numbers-page__intro {
  max-width: 880px;
  margin-inline: 0;
}

/* Menu: pozycja-nagłówek bez linku (np. „Gmina”) */
.main-navigation .menu-item__nolink {
  cursor: default;
}

.section-nav__title > span {
  display: block;
  padding: 0.95rem 1.1rem;
  background: #2b2f36;
  color: #fff;
  font-size: 1.05rem;
}

/* Kalendarz: ukryte etykiety dni (.screen-reader-text) nie wychodzą poza przewijany pas — brak poziomego przewijania strony na telefonie */
.evcal-strip,
.evcal-strip__day {
  position: relative;
}

/* Dostępność (WCAG 1.4.1): linki w tekście odróżnione nie tylko kolorem — delikatne podkreślenie, pełne po najechaniu */
.entry-content :is(p, li, td, dd, div, figcaption, blockquote) a:not([class]),
#content :is(p > a, label a):not([class]),
.site-footer p a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.entry-content :is(p, li, td, dd, div, figcaption, blockquote) a:not([class]):hover,
#content :is(p > a, label a):not([class]):hover,
.site-footer p a:not([class]):hover {
  text-decoration-color: currentColor;
}

/* Listy-kafelki z linkami (podstrony, pliki, telefony, spis treści) — bez podkreślenia; to nie są linki w tekście */
.entry-content :is(.subpage-list, .notice-files, .alert-phones, .cal__day, .numbers-page__toc) a:not([class]) {
  text-decoration: none;
}

/* Tytuł bocznego menu działu — link nawigacyjny, bez podkreślenia z reguły „linki w tekście” */
#content .section-nav__title > a:not([class]) {
  text-decoration: none;
}

/* Tabela z prawdziwym nagłówkiem (thead): pierwszy wiersz danych bez wyglądu nagłówka
   (reguła „pierwszy wiersz = nagłówek” dotyczy starych tabel bez thead) */
.entry-content table:has(thead) tbody tr:first-child td {
  background: transparent;
  font-weight: inherit;
}
