/* =====================================================================
   SM „Środula” – arkusz stylów
   Struktura:  1. Fonty  2. Tokeny  3. Wysoki kontrast  4. Baza
               5. Układ  6. Nagłówek i menu  7. Moduły strony głównej
               8. Podstrony  9. Formularze  10. Stopka  11. Media
   Nazewnictwo klas: blok__element--modyfikator (BEM), jeden plik na start –
   w Symfony można go podzielić per komponent (AssetMapper / Encore).
   ===================================================================== */

/* 1. Fonty – Atkinson Hyperlegible Next: krój projektowany z myślą o osobach słabowidzących.
      Hostowany lokalnie (bez Google Fonts – bez przekazywania IP mieszkańców firmom trzecim). */
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

/* 2. Tokeny. Kolory wywiedzione z logo spółdzielni (zieleń napisu, słońce, kolorowe bloki).
      Każda para tekst/tło ma kontrast min. 4.5:1, tekst podstawowy ≥ 12:1. */
:root {
  --ink: #1d2733;          /* tekst – 14.9:1 na białym */
  --ink-soft: #404c59;     /* tekst drugorzędny – 9:1 */
  --paper: #ffffff;
  --plaster: #eef2ec;      /* tło sekcji – „tynk” */
  --line: #c3ccc1;
  --line-strong: #6b776d;  /* obramowania pól formularza – 4.6:1 */
  --green: #1e6b3c;        /* kolor główny, linki – 6.6:1 */
  --green-dark: #144a2a;
  --green-tint: #e1efe4;
  --sun: #f6be2c;
  --sun-pale: #fdf0c4;
  --alert: #b3261e;        /* 6.5:1 */
  --alert-tint: #fbe5e2;
  --eu: #003399;           /* błękit UE – 11.4:1 z białym */
  --eu-deep: #002a80;
  --eu-yellow: #ffcc00;
  --focus-ring: #1d2733;
  --focus-halo: #f6be2c;

  /* Elewacje – kolory płyt po termomodernizacji (kafelki „Załatw sprawę”) */
  --tile-sun: #fbe3a0;   --tile-sun-edge: #d9a521;
  --tile-brick: #f6cfc2; --tile-brick-edge: #c8705a;
  --tile-mint: #d3ebd6;  --tile-mint-edge: #5e9d6c;
  --tile-sky: #d2e2f4;   --tile-sky-edge: #5d86b8;
  --tile-lilac: #e3d8f0; --tile-lilac-edge: #8d6cb8;
  --tile-teal: #c9e8e4;  --tile-teal-edge: #4b9b93;
  --wall: #dfe4dc;

  --font: "Atkinson Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  /* Skala typograficzna 1.25 od bazy 20 px (1.25rem) – większa baza dla starszych czytelników */
  --fs-sm: 1.0625rem;   /* 17 px – minimum na stronie */
  --fs-base: 1.25rem;   /* 20 px */
  --fs-md: 1.4rem;      /* 22.4 px */
  --fs-lg: 1.75rem;     /* 28 px */
  --fs-xl: 2.2rem;      /* 35 px */
  --fs-2xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  --lh: 1.6;

  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem;
  --wrap: 78rem;
  --radius-s: 4px;
  --radius-m: 10px;
}

/* Powiększanie tekstu – działa na całą stronę, bo wszystkie wymiary są w rem */
html[data-text-size="large"]  { font-size: 112.5%; }
html[data-text-size="xlarge"] { font-size: 125%; }

/* 3. Wysoki kontrast (żółty na czarnym). Zmienia tylko tokeny, więc obejmuje każdy moduł. */
html[data-contrast="high"] {
  --ink: #ffffff; --ink-soft: #ffffff; --paper: #000000; --plaster: #000000;
  --line: #ffffff; --line-strong: #ffffff;
  --green: #ffe14d; --green-dark: #000000; --green-tint: #000000;
  --sun: #ffe14d; --sun-pale: #000000; --alert: #ff8a80; --alert-tint: #000000;
  --eu: #000000; --eu-deep: #000000; --eu-yellow: #ffe14d;
  --focus-ring: #ffffff; --focus-halo: #ff00ff;
  --tile-sun: #000; --tile-brick: #000; --tile-mint: #000; --tile-sky: #000; --tile-lilac: #000; --tile-teal: #000;
  --tile-sun-edge: #ffe14d; --tile-brick-edge: #ffe14d; --tile-mint-edge: #ffe14d; --tile-sky-edge: #ffe14d; --tile-lilac-edge: #ffe14d; --tile-teal-edge: #ffe14d;
  --wall: #000;
}
html[data-contrast="high"] a { color: #ffe14d; }
html[data-contrast="high"] img.brand__logo,
html[data-contrast="high"] .eu-strip img { background: #fff; }
html[data-contrast="high"] .tag,
html[data-contrast="high"] .button,
html[data-contrast="high"] .notice,
html[data-contrast="high"] .emergency,
html[data-contrast="high"] .eu-project,
html[data-contrast="high"] .side-box,
html[data-contrast="high"] .callout,
html[data-contrast="high"] .dept,
html[data-contrast="high"] .person { border: 2px solid #fff; background: #000; color: #fff; }

/* 4. Baza */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
a[href^="mailto:"], .contact-lines a, .callout a { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 3px; }
html[data-contrast="high"] a:hover { color: #fff; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--focus-halo);
  border-radius: 2px;
}
main:focus, #stopka:focus, #pogotowie:focus, .nav:focus { outline: none; box-shadow: none; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.plain { list-style: none; margin: 0; padding: 0; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
abbr[title] { text-decoration: none; }
[hidden] { display: none !important; }

/* Linki „przejdź do” – widoczne po fokusie */
.skip-links ul { list-style: none; margin: 0; padding: 0; }
.skip-links a {
  position: absolute; left: 1rem; top: -100rem; z-index: 100;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
}
.skip-links a:focus { top: 1rem; }

/* 5. Układ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(1rem, 3vw); }
.section-title { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.section-title--small { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; margin-bottom: var(--space-2); }
.section-head .section-title { margin-bottom: 0; }
.section-head__link { font-weight: 700; }

.button {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  color: #fff; background: var(--green); border: 2px solid var(--green);
  border-radius: var(--radius-s); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button--ghost { background: transparent; color: var(--green); }
.button--ghost:hover { background: var(--green); color: #fff; }

.tag {
  display: inline-block; padding: .1rem .55rem; border-radius: var(--radius-s);
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.5;
  background: var(--green-tint); color: var(--green-dark);
}
.tag--komunikat { background: var(--alert-tint); color: #8a1c16; }
.tag--przetarg { background: #e3e8f6; color: #22337a; }
.tag--ogloszenie { background: var(--sun-pale); color: #5c4300; }
html[data-contrast="high"] .tag { color: #fff; }

/* 6. Pasek górny, nagłówek, menu */
.utility { background: var(--green-dark); color: #fff; font-size: var(--fs-sm); }
.utility__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .35rem; }
.utility__emergency { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; }
.utility__emergency span:first-of-type { font-weight: 700; }
.utility a { color: #fff; font-weight: 700; }
.utility__a11y { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.utility__label { font-weight: 700; }
.textsize { display: inline-flex; }
.textsize button, .contrast-toggle {
  font: inherit; color: #fff; background: transparent; cursor: pointer;
  border: 2px solid rgba(255,255,255,.7); min-height: 2.5rem; min-width: 2.75rem; padding: .1rem .6rem; font-weight: 700;
}
.textsize button + button { margin-left: -2px; }
.textsize button:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.textsize button:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.textsize button[data-text-size="large"] { font-size: 1.15em; }
.textsize button[data-text-size="xlarge"] { font-size: 1.3em; line-height: 1; }
.textsize button[aria-pressed="true"], .contrast-toggle[aria-pressed="true"] { background: #fff; color: var(--green-dark); border-color: #fff; }
.contrast-toggle { display: inline-flex; align-items: center; gap: .4rem; border-radius: var(--radius-s); }
html[data-contrast="high"] .utility { border-bottom: 2px solid #fff; }
html[data-contrast="high"] .textsize button[aria-pressed="true"],
html[data-contrast="high"] .contrast-toggle[aria-pressed="true"] { background: #ffe14d; color: #000; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: .6rem 2rem; padding-block: .75rem .4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__logo { width: 4.2rem; height: auto; }
.brand__name { display: grid; line-height: 1.05; }
.brand__kind { font-size: var(--fs-sm); font-weight: 700; color: var(--green); }
.brand__title { font-size: 2rem; font-weight: 800; letter-spacing: .01em; }
.brand__city { font-size: var(--fs-sm); color: var(--ink-soft); }
.brand:hover .brand__title { text-decoration: underline; text-decoration-thickness: 3px; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius-s); min-height: 3rem; padding: .4rem 1rem; cursor: pointer;
}
.header-contact { margin: 0; display: grid; justify-items: end; line-height: 1.25; }
.header-contact a { font-size: var(--fs-md); font-weight: 800; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.header-contact a:hover { text-decoration: underline; }
.header-contact__label { font-size: var(--fs-sm); color: var(--ink-soft); }
.nav { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: .4rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.nav__item--highlight { margin-left: auto; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .6rem; color: var(--ink); text-decoration: none; font-weight: 700;
  border-bottom: 4px solid transparent;
}
.nav__link:hover { color: var(--green); border-bottom-color: var(--line); }
.nav__item.is-active > .nav__link { border-bottom-color: var(--green); color: var(--green-dark); }
html[data-contrast="high"] .nav__item.is-active > .nav__link { color: #ffe14d; border-bottom-color: #ffe14d; }
.nav__item--highlight > .nav__link { background: var(--sun); border-radius: var(--radius-s); border-bottom-color: transparent; margin-left: .25rem; }
.nav__item--highlight > .nav__link:hover { background: #ffd35a; color: var(--ink); border-bottom-color: transparent; }
html[data-contrast="high"] .nav__item--highlight > .nav__link { background: #000; color: #ffe14d; outline: 2px solid #ffe14d; }
.nav__subtoggle {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-left: -.35rem;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius-s);
}
.nav__subtoggle:hover { background: var(--plaster); }
.nav__subtoggle .icon { transition: transform .15s ease; }
.nav__subtoggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: 100%; left: 0; min-width: 16rem;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-s);
  box-shadow: 0 10px 0 -4px var(--sun);
  display: none;
}
.nav__item.is-open > .nav__sub { display: block; }
.nav__sub a { display: block; padding: .55rem 1rem; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav__sub a:hover { background: var(--plaster); color: var(--green-dark); text-decoration: underline; }
.nav__sub a[aria-current="page"] { color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.nav__item--highlight .nav__sub { right: 0; left: auto; }

.eu-strip { background: #fff; border-bottom: 1px solid var(--line); }
.eu-strip .wrap { display: flex; justify-content: center; padding-block: .4rem; }
.eu-strip__link { display: block; line-height: 0; }
.eu-strip img { width: 100%; max-width: 46rem; }

/* 7. Strona główna */

/* 7a. Tablica ogłoszeń – zielona tablica z „przypiętymi” kartkami */
.board { background: var(--green); color: #fff; padding-block: var(--space-4) var(--space-5); position: relative; }
.board::after { /* pas elewacji: kolory bloków z logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .7rem;
  background: linear-gradient(90deg,
    var(--tile-sun-edge) 0 16.66%, var(--tile-brick-edge) 0 33.33%, var(--tile-mint-edge) 0 50%,
    var(--tile-sky-edge) 0 66.66%, var(--tile-lilac-edge) 0 83.33%, var(--tile-teal-edge) 0);
}
.board__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem); gap: var(--space-4); align-items: start; }
.board__title { font-size: var(--fs-2xl); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: .3em; max-width: 14ch; }
.board__lead { font-size: var(--fs-md); max-width: 38ch; margin-bottom: var(--space-3); }
.notices { display: grid; gap: var(--space-3); }
.notice {
  position: relative; background: var(--paper); color: var(--ink);
  padding: var(--space-3) var(--space-3) var(--space-3);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0,0,0,.18), 0 14px 24px -14px rgba(0,0,0,.5);
}
.notice:nth-child(odd) { transform: rotate(-.4deg); }
.notice:nth-child(even) { transform: rotate(.35deg); }
.notice::before { /* pinezka */
  content: ""; position: absolute; top: -.55rem; left: 50%; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe38a, var(--sun) 45%, #b8860b);
  box-shadow: 0 2px 3px rgba(0,0,0,.35);
}
.notice__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: .6rem; }
.notice__title { font-size: var(--fs-lg); margin-bottom: .4em; }
.notice__text { max-width: 60ch; }
.notice__more { font-weight: 700; }
html[data-contrast="high"] .notice { transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .notice { transform: none !important; } }

.board__aside { display: grid; gap: var(--space-3); }
.emergency { background: var(--sun); color: var(--ink); padding: var(--space-3); border-radius: var(--radius-m); }
.emergency__title { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-md); margin-bottom: .5rem; }
.emergency__title .icon { width: 1.5em; height: 1.5em; margin-top: -.1em; }
.emergency__lead { margin-bottom: .5rem; }
.emergency__phones { display: grid; gap: .4rem; margin-bottom: 1rem; }
.emergency__phones a {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xl); font-weight: 800; color: var(--ink); text-decoration: none;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.emergency__phones a:hover { text-decoration: underline; }
.emergency__phones .icon { width: .8em; height: .8em; }
.emergency__note { font-size: var(--fs-sm); margin-bottom: .4rem; }
.emergency a { color: var(--ink); }
html[data-contrast="high"] .emergency a { color: #ffe14d; }

.office { background: var(--green-dark); padding: var(--space-3); border-radius: var(--radius-m); }
.office__title { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-md); margin-bottom: .3rem; }
.office__address { margin-bottom: .5rem; }
.office__today { font-weight: 800; font-size: var(--fs-md); margin-bottom: .5rem; }
.office a { color: #fff; font-weight: 700; }
html[data-contrast="high"] .office { border: 2px solid #fff; }
html[data-contrast="high"] .office a { color: #ffe14d; }

.hours { border-collapse: collapse; width: 100%; margin-bottom: .8rem; }
.hours caption { text-align: left; font-weight: 700; padding-bottom: .3rem; }
.hours th, .hours td { text-align: left; padding: .3rem .5rem .3rem 0; border-top: 1px solid currentColor; border-color: rgba(127,127,127,.45); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.hours tr.is-today th::after { content: " (dziś)"; font-weight: 400; }

/* 7b. Załatw sprawę – „elewacja” z kolorowymi płytami */
.tasks { padding-block: var(--space-5) var(--space-4); }
.facade {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem;
  background: var(--wall); padding: .6rem; border-radius: var(--radius-m);
}
.facade__tile a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: .9rem;
  height: 100%; padding: 1.4rem 1.4rem 1.6rem;
  color: var(--ink); text-decoration: none;
  background: var(--tile-bg); border-bottom: 8px solid var(--tile-edge); border-radius: 6px 6px 2px 2px;
}
.facade__tile .icon { grid-row: span 2; width: 2.4rem; height: 2.4rem; color: var(--ink); padding: .35rem; background: rgba(255,255,255,.65); border-radius: 50%; box-sizing: content-box; }
.facade__name { font-size: var(--fs-md); font-weight: 800; line-height: 1.2; margin-bottom: .3rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.facade__desc { color: var(--ink-soft); font-size: var(--fs-base); line-height: 1.45; }
.facade__tile a:hover .facade__name { text-decoration-color: currentColor; }
.facade__tile a:hover { border-bottom-width: 12px; padding-bottom: calc(1.6rem - 4px); }
.facade__tile--sun   { --tile-bg: var(--tile-sun);   --tile-edge: var(--tile-sun-edge); }
.facade__tile--brick { --tile-bg: var(--tile-brick); --tile-edge: var(--tile-brick-edge); }
.facade__tile--mint  { --tile-bg: var(--tile-mint);  --tile-edge: var(--tile-mint-edge); }
.facade__tile--sky   { --tile-bg: var(--tile-sky);   --tile-edge: var(--tile-sky-edge); }
.facade__tile--lilac { --tile-bg: var(--tile-lilac); --tile-edge: var(--tile-lilac-edge); }
.facade__tile--teal  { --tile-bg: var(--tile-teal);  --tile-edge: var(--tile-teal-edge); }
html[data-contrast="high"] .facade__tile a { border: 2px solid #ffe14d; border-bottom-width: 8px; }
html[data-contrast="high"] .facade__tile .icon { background: #000; color: #ffe14d; }

/* 7c. Aktualności */
.news { padding-block: var(--space-4) var(--space-5); }
.news__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: var(--space-4); align-items: start; }
.news-list { border-top: 3px solid var(--ink); }
.news-item { padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: .5rem; }
.news-item__title { font-size: var(--fs-md); margin-bottom: .35rem; max-width: 40ch; }
.news-item__title a { color: var(--ink); text-decoration-color: var(--line); }
.news-item__title a:hover { color: var(--green-dark); text-decoration-color: currentColor; }
.news-item__excerpt { margin: 0; max-width: 65ch; color: var(--ink-soft); }
.news__side { display: grid; gap: var(--space-3); }
.side-box { background: var(--plaster); padding: var(--space-3); border-radius: var(--radius-m); }
.side-list { display: grid; gap: 1rem; }
.side-list li { display: grid; gap: .1rem; }
.side-list time { font-size: var(--fs-sm); color: var(--ink-soft); }
.side-list a { font-weight: 700; line-height: 1.35; }
.duty { margin: 0 0 1rem; display: grid; gap: .8rem; }
.duty dt { font-weight: 700; }
.duty dd { margin: 0; }
.side-box__note { font-size: var(--fs-sm); margin: 0; }

/* 7d. Fundusze Europejskie */
.eu { background: var(--eu); color: #fff; padding-block: var(--space-5); }
.eu__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: center; margin-bottom: var(--space-4); }
.eu__stars { width: 6.5rem; height: 6.5rem; }
.eu__title { font-size: var(--fs-xl); margin-bottom: .35em; max-width: 24ch; }
.eu__lead { font-size: var(--fs-md); max-width: 52ch; margin: 0; }
.eu__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.eu-project { background: var(--paper); color: var(--ink); border-radius: var(--radius-m); padding: var(--space-3) var(--space-3) var(--space-4); border-top: .6rem solid var(--eu-yellow); }
.eu-project__flag { display: inline-block; font-size: var(--fs-sm); font-weight: 700; background: var(--sun-pale); color: #5c4300; border: 2px dashed #a17a00; padding: .1rem .6rem; border-radius: var(--radius-s); margin-bottom: .8rem; }
.eu-project__program { font-weight: 700; color: var(--eu); margin-bottom: .3rem; }
html[data-contrast="high"] .eu-project__program { color: #ffe14d; }
.eu-project__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.eu-project__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 var(--space-3); }
.eu-project__facts div { background: var(--paper); padding: .7rem .9rem; }
.eu-project__facts dt { font-size: var(--fs-sm); color: var(--ink-soft); }
.eu-project__facts dd { margin: 0; font-weight: 800; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.eu-project__subtitle { font-size: var(--fs-base); margin-bottom: .6rem; }
.button--eu { background: var(--eu); border-color: var(--eu); }
.button--eu:hover { background: var(--eu-deep); border-color: var(--eu-deep); }
html[data-contrast="high"] .button--eu { border-color: #ffe14d; color: #ffe14d; }

.stages { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: stage; }
.stages__item { position: relative; padding: 2.4rem .5rem 0 0; counter-increment: stage; }
.stages__item::before { /* kropka etapu z numerem – etapy są faktyczną sekwencją */
  content: counter(stage); position: absolute; top: 0; left: 0; z-index: 1;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; font-size: var(--fs-sm);
  background: var(--paper); color: var(--ink-soft); border: 2px solid var(--line-strong);
}
.stages__item::after { content: ""; position: absolute; top: .9rem; left: 1.9rem; right: 0; height: 3px; background: var(--line); }
.stages__item:last-child::after { display: none; }
.stages__item--done::before { background: var(--eu); border-color: var(--eu); color: #fff; content: "✓"; }
.stages__item--done::after { background: var(--eu); }
.stages__item--current::before { background: var(--eu-yellow); border-color: var(--ink); color: var(--ink); }
.stages__label { display: block; font-weight: 700; line-height: 1.25; font-size: var(--fs-sm); }
.stages__status { display: block; font-size: var(--fs-sm); color: var(--ink-soft); }
.stages__item--current .stages__status { font-weight: 700; color: var(--ink); }
html[data-contrast="high"] .stages__item--done::before { background: #ffe14d; color: #000; }

.eu__subtitle { font-size: var(--fs-lg); }
.benefits { display: grid; gap: var(--space-3); margin-bottom: var(--space-3); }
.benefits li { display: grid; gap: .2rem; padding-left: 2.2rem; position: relative; }
.benefits li::before { /* gwiazdka UE */
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.4rem; height: 1.4rem; background: var(--eu-yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.benefits__title { font-size: var(--fs-md); }
.eu__more { color: #fff; font-weight: 700; font-size: var(--fs-md); }
.eu__more:hover { color: var(--eu-yellow); }
html[data-contrast="high"] .eu { border-block: 2px solid #fff; }
html[data-contrast="high"] .eu__more { color: #ffe14d; }

/* 7e. O spółdzielni */
.about { padding-block: var(--space-5); background: var(--plaster); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.about__text { max-width: 60ch; }
.about__facts { display: grid; gap: 0; border-left: 6px solid var(--green); padding-left: var(--space-3); }
.about__facts li { font-size: var(--fs-md); padding-block: .5rem; border-bottom: 1px solid var(--line); }
.about__facts li:last-child { border-bottom: 0; }
.about__facts strong { display: inline-block; min-width: 4.5ch; font-size: var(--fs-xl); color: var(--green-dark); font-variant-numeric: tabular-nums; margin-right: .4rem; }
html[data-contrast="high"] .about__facts strong { color: #ffe14d; }

/* 7f. Szkic osiedla (SVG z tools/skyline.mjs). Dekoracja: aria-hidden, bez JS i przy „ogranicz ruch”
       rysunek jest od razu gotowy – animację włącza dopiero main.js. */
.skyline { display: block; width: 100%; height: 100%;
  --sk-ink: var(--green-dark); --sk-paper: var(--plaster); --sk-dur: 3.6s;
  --sk-sun: var(--tile-sun-edge); --sk-brick: var(--tile-brick-edge); --sk-mint: var(--tile-mint-edge); }
.sk-line { fill: none; stroke: var(--sk-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sk-ground { stroke-width: 2.4; }
.sk-thin { stroke-width: 1.1; }
.sk-faint { opacity: .5; }
.sk-fill { fill: var(--sk-paper); }
.sk-b--back .sk-line { opacity: .45; }
.sk-b--back .sk-detail { opacity: .35; }
.sk-p { fill: none; stroke: var(--sk-ink); stroke-width: .7; opacity: .7; }
.sk-wash { opacity: .45; }
.sk-wash--sun { fill: var(--sk-sun); }
.sk-wash--brick { fill: var(--sk-brick); }
.sk-wash--mint { fill: var(--sk-mint); }
.sk-band-edge { fill: none; stroke: var(--sk-ink); stroke-width: .7; opacity: .8; }
.sk-notes { font: 11px var(--font); fill: var(--ink-soft); }
.sk-dim { fill: none; stroke: var(--ink-soft); stroke-width: .8; }

/* pas pod menu strony głównej (nad logotypami UE) – ten sam rysunek co nad stopką, na białym tle */
.hero-skyline { height: clamp(9rem, 4rem + 14vw, 17rem); overflow: hidden; background-color: var(--paper);
  background-image: linear-gradient(rgba(30,107,60,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(30,107,60,.07) 1px, transparent 1px);
  background-size: 24px 24px; background-position: 0 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.skyline--sk-hero { --sk-paper: var(--paper); --sk-dur: 2.6s; }
html[data-contrast="high"] .hero-skyline { background: #000; }
@media print { .hero-skyline { display: none; } }

/* wariant zapasowy (obecnie nieużywany): pas na górze tablicy komunikatów – biała kreska na zieleni */
.board--skyline { padding-top: 0; }
.board__skyline { height: clamp(4.5rem, 2rem + 8vw, 9.5rem); margin-bottom: var(--space-3); overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px; background-position: 0 100%; }
.skyline--sk-intro { --sk-ink: #fff; --sk-paper: var(--green); --sk-dur: 2s;
  --sk-sun: #f6be2c; --sk-brick: #f08a6e; --sk-mint: #9fd8ac; }
.skyline--sk-intro .sk-wash { opacity: .6; }
.skyline--sk-intro .sk-p { opacity: .55; }

/* animacja: kreska po kresce, potem okna „rosną” piętro po piętrze */
.skyline.is-armed .sk-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.skyline.is-armed .sk-detail { clip-path: inset(100% 0 0 0); }
.skyline.is-armed .sk-notes { opacity: 0; }
.skyline.is-playing .sk-line { animation: sk-draw 1s cubic-bezier(.5,0,.3,1) forwards; animation-delay: calc(var(--t) * var(--sk-dur)); }
.skyline.is-playing .sk-detail { animation: sk-rise 1.4s steps(12, end) forwards; animation-delay: calc(var(--t) * var(--sk-dur) + .2s); }
.skyline.is-playing .sk-notes { animation: sk-fade .8s ease forwards; animation-delay: calc(var(--sk-dur) + .4s); }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-rise { to { clip-path: inset(0 0 0 0); } }
@keyframes sk-fade { to { opacity: 1; } }

html[data-contrast="high"] .skyline { --sk-ink: #ffe14d; --sk-paper: #000; }
html[data-contrast="high"] .board__skyline { background: none; }
html[data-contrast="high"] .sk-wash { display: none; }
html[data-contrast="high"] .sk-notes { fill: #fff; }
html[data-contrast="high"] .sk-dim { stroke: #fff; }
@media print { .board__skyline { display: none; } }

/* 8. Podstrony */
.page-header { background: var(--plaster); padding-block: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); position: relative; }
.page-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: .45rem; width: min(22rem, 45vw);
  background: linear-gradient(90deg, var(--tile-sun-edge) 0 33.3%, var(--tile-mint-edge) 0 66.6%, var(--tile-sky-edge) 0); }
.page-header__title { font-size: var(--fs-2xl); line-height: 1.1; max-width: 26ch; margin: 0; }
.page-header__lead { font-size: var(--fs-md); max-width: 55ch; margin: .8rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-wrap: wrap; font-size: var(--fs-sm); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline: .6rem; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }
.page-body { padding-block: var(--space-4) var(--space-5); }

.prose { max-width: 42rem; }
.prose h2 { font-size: var(--fs-lg); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose__lead { font-size: var(--fs-md); line-height: 1.5; }

.subnav { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 3px solid var(--ink); }
.subnav__list { display: flex; flex-wrap: wrap; gap: .75rem; }
.subnav__list a { display: inline-block; padding: .6rem 1rem; border: 2px solid var(--green); border-radius: var(--radius-s); font-weight: 700; text-decoration: none; }
.subnav__list a:hover { background: var(--green); color: #fff; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: var(--space-2); margin-bottom: var(--space-4); }
.person { display: grid; gap: .15rem; padding: var(--space-3); background: var(--plaster); border-radius: var(--radius-m); border-top: 6px solid var(--green); }
.person__name { font-size: var(--fs-md); font-weight: 800; }
.person__role { font-weight: 700; color: var(--green-dark); }
.person__extra { color: var(--ink-soft); }
html[data-contrast="high"] .person__role { color: #ffe14d; }

.callout { background: var(--sun-pale); border-left: 8px solid var(--sun); padding: var(--space-3); border-radius: 0 var(--radius-m) var(--radius-m) 0; max-width: 46rem; margin-block: var(--space-4) 0; }
.callout__title { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-md); }
.callout p:last-child { margin-bottom: 0; }

.contact-lines { display: grid; gap: .4rem; margin-bottom: 1rem; }
.contact-lines li { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.contact-lines .icon { color: var(--green); align-self: center; }

.table-scroll { overflow-x: auto; margin-bottom: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-m); }
.data-table { border-collapse: collapse; width: 100%; min-width: 46rem; }
.data-table caption { text-align: left; font-size: var(--fs-lg); font-weight: 800; padding: var(--space-2) var(--space-2) .5rem; }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.data-table thead th { background: var(--plaster); font-size: var(--fs-sm); border-top: 0; }
.data-table tbody th { font-weight: 800; white-space: nowrap; }
.data-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: var(--green-tint); }

/* Dokumenty */
.docs-layout { display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.docs-toc { position: sticky; top: 1rem; padding: var(--space-3); background: var(--plaster); border-radius: var(--radius-m); }
.docs-toc__title { font-size: var(--fs-md); }
.docs-toc ul { display: grid; gap: .5rem; margin-bottom: var(--space-3); }
.docs-toc__switch { font-size: var(--fs-sm); margin: 0; }
.doc-group { margin-bottom: var(--space-4); scroll-margin-top: 1rem; }
.doc-group__title { font-size: var(--fs-lg); padding-bottom: .5rem; border-bottom: 3px solid var(--ink); margin-bottom: 0; }
.files li { border-bottom: 1px solid var(--line); }
.file {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge title icon" "badge meta icon";
  column-gap: 1rem; align-items: center; padding: .9rem .5rem; color: var(--ink); text-decoration: none;
}
.file:hover { background: var(--green-tint); }
.file:hover .file__title { text-decoration: underline; }
.file__badge { grid-area: badge; display: grid; place-items: center; width: 3.4rem; height: 3.8rem; font-size: .85rem; font-weight: 800; color: #fff; background: var(--green); border-radius: 3px 12px 3px 3px; letter-spacing: .02em; }
.file__title { grid-area: title; font-weight: 700; color: var(--green-dark); line-height: 1.35; }
.file__meta { grid-area: meta; font-size: var(--fs-sm); color: var(--ink-soft); }
.file__icon { grid-area: icon; width: 1.6rem; height: 1.6rem; color: var(--green); }
html[data-contrast="high"] .file__badge { background: #000; border: 2px solid #ffe14d; color: #ffe14d; }
html[data-contrast="high"] .file__title { color: #ffe14d; }
.docs__help { margin-top: var(--space-3); max-width: 46rem; }

/* Artykuł */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); gap: var(--space-5); align-items: start; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--ink-soft); margin-bottom: var(--space-3); }
.attachments { margin-top: var(--space-4); max-width: 42rem; }
.article__back { margin-top: var(--space-4); font-weight: 700; }
.article-aside { padding: var(--space-3); background: var(--plaster); border-radius: var(--radius-m); }
.news-list--page { max-width: 52rem; }
.empty { padding: var(--space-3); background: var(--plaster); border-radius: var(--radius-m); }
.pagination ul { display: flex; gap: .5rem; margin-top: var(--space-3); }
.pagination a { display: grid; place-items: center; min-width: 3rem; min-height: 3rem; border: 2px solid var(--green); border-radius: var(--radius-s); font-weight: 700; text-decoration: none; }
.pagination a[aria-current] { background: var(--green); color: #fff; }
.facts { margin: 0; display: grid; gap: .8rem; }
.facts dt { font-size: var(--fs-sm); color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }
.eu-statement { margin-top: var(--space-4); padding: var(--space-2) var(--space-3); border-left: 6px solid var(--eu); background: #eef2fb; max-width: 42rem; }
html[data-contrast="high"] .eu-statement { background: #000; border-color: #ffe14d; }

/* Fundusze – podstrona */
.project-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.project-row { padding: var(--space-3); border: 2px solid var(--line); border-top: .5rem solid var(--eu); border-radius: var(--radius-m); max-width: 56rem; }
.project-row__title { font-size: var(--fs-lg); }
.benefits--light li::before { background: var(--eu); }
html[data-contrast="high"] .benefits--light li::before { background: #ffe14d; }
.benefits-section { max-width: 46rem; }
.stages--light { max-width: 46rem; }

/* Kontakt */
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.contact-card { padding: var(--space-3); border: 2px solid var(--line); border-radius: var(--radius-m); }
.contact-card__address { font-style: normal; font-size: var(--fs-md); margin-bottom: 1rem; }
.emergency--wide .emergency__phones { grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.hours-section { margin-bottom: var(--space-4); }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--space-3); }
.hours-grid .hours { background: var(--plaster); border-radius: var(--radius-m); }
.hours-grid .hours caption { font-size: var(--fs-md); }
.hours-grid .hours th, .hours-grid .hours td { padding-inline: 1rem; }
.departments { margin-bottom: var(--space-4); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: var(--space-3); }
.dept { padding: var(--space-3); background: var(--plaster); border-radius: var(--radius-m); }
.dept__name { font-size: var(--fs-md); padding-bottom: .5rem; border-bottom: 3px solid var(--green); }
.dept__email { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-weight: 700; word-break: break-word; }
.dept__people { display: grid; gap: .9rem; }
.dept__people li { display: grid; }
.dept__person { font-weight: 800; }
.dept__role { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.4; }
.dept__phone { font-variant-numeric: tabular-nums; }

/* Mapa strony */
.sitemap { font-size: var(--fs-md); line-height: 1.8; }
.sitemap ul { font-size: var(--fs-base); }

/* 9. Formularze */
.form-section { max-width: 42rem; }
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.field__req { font-weight: 400; color: var(--ink-soft); }
.field__hint { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line-strong); border-radius: var(--radius-s);
  padding: .65rem .8rem; min-height: 3rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
.field--check input { width: 1.6rem; height: 1.6rem; margin-top: .2rem; accent-color: var(--green); }
.field--check .field__error { grid-column: 1 / -1; }
.field__error { margin: 0; color: var(--alert); font-weight: 700; display: flex; gap: .4rem; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%; background: var(--alert); color: #fff; font-size: .9rem; margin-top: .15rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--alert); border-width: 3px; }
.form__summary { border: 3px solid var(--alert); background: var(--alert-tint); padding: var(--space-2) var(--space-3); border-radius: var(--radius-m); }
.form__summary-title { font-size: var(--fs-md); color: var(--alert); }
.form__summary ul { margin: 0; padding-left: 1.2rem; }
.form__success { font-weight: 700; color: var(--green-dark); background: var(--green-tint); padding: var(--space-2); border-radius: var(--radius-m); }
.form .button { justify-self: start; }

/* 10. Stopka */
.site-footer { background: var(--ink); color: #fff; margin-top: 0; }
html[data-contrast="high"] .site-footer { border-top: 2px solid #fff; }
.site-footer a { color: #fff; }
html[data-contrast="high"] .site-footer a { color: #ffe14d; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: var(--space-4); padding-block: var(--space-5) var(--space-4); }
.site-footer__heading { font-size: var(--fs-md); margin-bottom: 1rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.site-footer ul.plain { display: grid; gap: .45rem; }
.site-footer .contact-lines .icon { color: var(--sun); }
.site-footer__emergency { padding: .8rem 1rem; border: 2px solid var(--sun); border-radius: var(--radius-s); }
.site-footer__small { font-size: var(--fs-sm); }
.registry { margin: 0; display: grid; gap: .3rem; font-variant-numeric: tabular-nums; }
.registry div { display: flex; gap: .6rem; }
.registry dt { font-weight: 700; min-width: 4.5rem; }
.registry dd { margin: 0; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.25); font-size: var(--fs-sm); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; }
.site-footer__bottom p { margin: 0; }
.inline-list { display: flex !important; flex-wrap: wrap; gap: .5rem 1.5rem !important; }

/* 11. Media – układ zwija się do jednej kolumny; breakpointy w em, więc reagują też na powiększenie tekstu */
@media (max-width: 68em) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .eu__grid, .news__grid, .board__grid, .about__grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .board__aside { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
}
@media (max-width: 60em) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; border-top: 0; padding-top: 0; }
  .header-contact { display: none; }
  .site-header__inner { padding-block: .75rem; }
  .nav__item--highlight { margin-left: 0; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; border-top: 2px solid var(--ink); }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; padding: .85rem .25rem; border-bottom: 0; }
  .nav__item.is-active > .nav__link { box-shadow: inset 5px 0 0 var(--green); padding-left: .9rem; }
  .nav__subtoggle { width: 3rem; height: 3rem; }
  .nav__sub { position: static; width: 100%; border: 0; border-left: 4px solid var(--line); box-shadow: none; border-radius: 0; margin: 0 0 .6rem .25rem; padding: 0; }
  .nav__item--highlight > .nav__link { margin: .5rem 0; padding-left: .9rem; }
  .facade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout, .contact-top { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { position: static; }
  .eu-project__facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40em) {
  :root { --space-4: 2rem; --space-5: 2.75rem; --fs-xl: 1.85rem; --fs-lg: 1.5rem; }
  .facade { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .brand__logo { width: 3.4rem; }
  .brand__title { font-size: 1.7rem; }
  .utility__inner { justify-content: flex-start; }
  .stages { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .stages__item { padding: 0 0 0 2.8rem; min-height: 2.2rem; }
  .stages__item::after { top: 1.9rem; left: .9rem; right: auto; width: 3px; height: calc(100% - 1.1rem); }
  .eu__head { grid-template-columns: minmax(0, 1fr); }
  .eu__stars { width: 4.5rem; height: 4.5rem; }
  .notice { padding: var(--space-2) var(--space-2) var(--space-3); }
  .emergency__phones a { font-size: var(--fs-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .utility, .nav, .nav-toggle, .eu-strip, .skip-links, .site-footer nav { display: none !important; }
  body { font-size: 12pt; }
  a { color: #000; }
}

/* Wysoki kontrast – elementy z zielonym tłem (token --green zmienia się w nim na kolor linków) */
html[data-contrast="high"] .board { background: #000; border-bottom: 2px solid #fff; }
html[data-contrast="high"] .button:hover,
html[data-contrast="high"] .subnav__list a:hover,
html[data-contrast="high"] .pagination a[aria-current],
html[data-contrast="high"] .button--ghost:hover { background: #ffe14d; color: #000; }
html[data-contrast="high"] .button { color: #ffe14d; border-color: #ffe14d; }
html[data-contrast="high"] .data-table tbody tr:hover,
html[data-contrast="high"] .file:hover,
html[data-contrast="high"] .nav__sub a:hover { background: #222; }
html[data-contrast="high"] .about { border-top: 2px solid #fff; }
html[data-contrast="high"] .site-footer { background: #000; color: #fff; }
html[data-contrast="high"] .eu-project__flag { background: #000; color: #ffe14d; border-color: #ffe14d; }
html[data-contrast="high"] .skip-links a { background: #ffe14d; color: #000; }

/* Wąskie ekrany i duży tekst (WCAG 1.4.10 – zawijanie bez przewijania w poziomie przy 320 px) */
h1, h2, h3, h4 { hyphens: auto; }
.project-list > li, .notices > li, .facade > li { min-width: 0; }
@media (max-width: 40em) {
  .hours td { white-space: normal; }
  .hours-grid .hours th, .hours-grid .hours td { padding-inline: .6rem; }
  .project-row, .eu-project, .side-box, .dept, .person, .contact-card, .emergency, .office, .callout, .docs-toc { padding: 1rem; }
}
a[href^="tel:"] { white-space: nowrap; }
.emergency--wide .emergency__phones { display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.dept-grid { align-items: start; }
