/* Wawerski Uniwersytet Trzeciego Wieku – arkusz stylów, wariant C (serwis informacyjny)
   Czcionki: Roboto (tekst, licencja Apache 2.0) i Oswald (nagłówki, menu, licencja OFL), pliki w assets/fonts.
   Tryby: html.fs-1 / html.fs-2 (większy tekst), html.hc (wysoki kontrast), html.spacing (większe odstępy). */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-ext-700-italic.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/oswald-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 1. Zmienne ---------- */
:root {
  --font: "Roboto", "Segoe UI", Arial, sans-serif;                 /* tekst */
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;        /* nagłówki, menu */

  --bg: #ffffff;
  --bg-2: #f4f5f7;            /* jasne tła pomocnicze */
  --surface: #ffffff;
  --ink: #262626;
  --muted: #595959;
  --line: #e3e3e3;
  --line-strong: #c9c9c9;
  --navy: #0c3835;            /* pasy, stopka, nagłówki – głęboka zieleń */
  --navy-2: #092b29;
  --teal: #0f766e;            /* morska zieleń z dotychczasowej palety */
  --accent: #e2694a;          /* koral – akcenty ozdobne */
  --accent-ink: #913417;      /* koral przyciemniony – tekst akcentowy */
  --accent-soft: #fdeae3;
  --link: #0f6586;
  --link-visited: #6b3fa0;
  --focus: #c25414;

  --radius: 6px;
  --radius-s: 4px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.4rem; --space-4: 2.1rem; --space-5: 3.2rem;
  --measure: 44rem;
  --wide: 76rem;
}

/* ---------- 2. Podstawy ---------- */
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.fs-1 { font-size: 115%; }
html.fs-2 { font-size: 132%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; border: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-thickness .15s, color .15s; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:target, h2[id], h3[id] { scroll-margin-top: 5.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 500; line-height: 1.25; color: var(--ink); margin: 0; text-wrap: balance; }

/* ---------- 3. Linki pomijające ---------- */
.skip-links a { position: absolute; left: -999em; top: .5rem; z-index: 100; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); font-family: var(--font-head); }
.skip-links a:focus { left: .5rem; }

/* ---------- 4. Pasek ułatwień ---------- */
.a11y-bar { background: var(--navy); color: #d8dfe9; font-size: .92rem; }
.a11y-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.a11y-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.a11y-bar a, .a11y-bar a:visited { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.a11y-bar a:hover { text-decoration-color: #fff; }
.a11y-menu { position: relative; }
.a11y-toggle { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .28rem .9rem; cursor: pointer; transition: background .15s; }
.a11y-toggle svg { width: 1.1em; height: 1.1em; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: rgba(255,255,255,.24); }
.a11y-tools { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 90; width: min(26rem, 90vw); background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 1.1rem; font-family: var(--font); }
.a11y-tools[hidden] { display: none; }
.a11y-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .8rem; }
.a11y-row:last-child { margin-bottom: 0; }
.a11y-row .label { width: 100%; color: var(--muted); }
.a11y-tools button { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; transition: background .15s, border-color .15s; }
.a11y-tools button:hover { border-color: var(--navy); }
.a11y-tools button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.a11y-tools .sz2 { font-size: 1.15em; } .a11y-tools .sz3 { font-size: 1.3em; }

/* ---------- 5. Nagłówek ---------- */
.site-header { background: var(--bg); position: relative; z-index: 20; }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:visited { color: var(--ink); }
.brand .logo-img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand > span { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--navy); text-transform: uppercase; letter-spacing: .01em; }
.brand-sub { font-size: .95rem; color: var(--muted); }
.search-form { display: flex; flex: 0 1 22rem; background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); padding: .2rem .2rem .2rem 1rem; transition: border-color .15s; }
.search-form:focus-within { border-color: var(--navy); }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 0; background: transparent; color: var(--ink); padding: .35rem 0; }
.search-form input:focus-visible { outline: none; }
.search-form .btn { border-radius: 3px; padding: .45rem 1.1rem; }

/* ---------- 6. Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--font-head); font-size: 1rem; font-weight: 500; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius-s); padding: .55rem 1.2rem; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:visited { color: #fff; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.secondary, .btn.secondary:visited { background: var(--bg); color: var(--navy); }
.btn.secondary:hover { background: var(--bg-2); }
.btn.accent, .btn.accent:visited { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.accent:hover { background: #0b5a54; border-color: #0b5a54; }

/* ---------- 7. Menu główne – belka zakładek ---------- */
.main-nav { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 3px solid var(--navy); }
.nav-toggle { display: none; }
.menu { list-style: none; margin: 0 0 0 -1rem; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; display: flex; align-items: stretch; }
.menu a, .menu a:visited { color: var(--ink); text-decoration: none; }
.menu > li > a, .menu > li > a:visited { display: flex; align-items: center; padding: .8rem 1rem .7rem; font-family: var(--font-head); font-weight: 500; font-size: 1.04rem; letter-spacing: .035em; text-transform: uppercase; color: var(--ink); box-shadow: inset 0 -4px 0 transparent; transition: box-shadow .15s, color .15s; }
.menu > li > a:hover { color: var(--accent); box-shadow: inset 0 -4px 0 var(--line-strong); }
.menu > li > a[aria-current="page"], .menu > li.active > a { color: var(--navy); font-weight: 600; box-shadow: inset 0 -4px 0 var(--accent); }
.sub-toggle { display: none; }
.submenu { display: none; }
@media (min-width: 60.01em) { .main-nav { position: sticky; top: 0; z-index: 70; } }

/* ---------- 8. Ścieżka i nagłówek podstrony ---------- */
.breadcrumbs { font-size: .95rem; margin: var(--space-3) 0 var(--space-2); color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumbs li + li::before { content: "›"; margin: 0 .45rem 0 .2rem; }
.breadcrumbs [aria-current] { color: var(--ink); }
main { display: block; padding-bottom: var(--space-5); }
main:focus { outline: none; }
.page-head { padding: var(--space-2) 0 var(--space-3); border-bottom: 3px solid var(--navy); margin: var(--space-2) 0 var(--space-4); }
.breadcrumbs + main > .page-head:first-child { margin-top: 0; }
.page-ikona { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: var(--radius-s); background: var(--navy); margin-bottom: .8rem; }
.page-ikona svg { width: 1.7rem; height: 1.7rem; color: #fff; }
.page-head h1 { color: var(--navy); font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; max-width: 44rem; }
.page-head .lead, .page-head p { color: var(--muted); font-size: 1.1rem; max-width: var(--measure); margin: .8rem 0 0; }

/* ---------- 9. Treść ---------- */
.content > * { max-width: var(--measure); }
.content > .row, .content > .cards, .content > .gallery, .content > hr, .content > .wide, .content > table, .content > h2, .content > .ogl-lista { max-width: none; }
.content h2 { font-size: 1.45rem; margin: var(--space-4) 0 var(--space-2); padding-bottom: .35rem; border-bottom: 2px solid var(--line); max-width: var(--measure); text-transform: uppercase; letter-spacing: .02em; }
.content h2::after { content: ""; display: block; width: 4rem; height: 3px; background: var(--accent); margin-bottom: -2px; margin-top: .33rem; }
.content > h2:first-child, .content hr + h2 { margin-top: var(--space-3); }
.content h3 { font-size: 1.22rem; margin: var(--space-4) 0 var(--space-1); }
.content h4 { font-size: 1.08rem; margin: var(--space-3) 0 var(--space-1); }
.content h5 { font-size: 1.02rem; margin: var(--space-3) 0 var(--space-1); color: var(--ink); }
.content p { margin: 0 0 var(--space-2); }
.content ul, .content ol { margin: 0 0 var(--space-2); padding-left: 1.4rem; }
.content li { margin: 0 0 .4rem; padding-left: .15rem; }
.content li::marker { color: var(--teal); font-weight: 700; }
.content ol ol, .content ul ul { margin: .4rem 0; }
.content table { border-collapse: collapse; width: 100%; margin: 0 0 var(--space-3); background: var(--surface); font-size: 1rem; border: 1px solid var(--line-strong); }
.content th, .content td { border-bottom: 1px solid var(--line); padding: .6rem .85rem; text-align: left; vertical-align: top; }
.content th { font-family: var(--font-head); font-weight: 500; letter-spacing: .03em; background: var(--navy); color: #fff; }
.content tr:nth-child(even) td { background: var(--bg-2); }
.content ul.lista-tekstowa, ul.lista-tekstowa { list-style: none; padding-left: 0; }
ul.lista-tekstowa > li { margin: 0 0 .5rem; }
.content mark { background: #fff2c4; color: inherit; padding: 0 .15em; }
.content a[href^="http"]:not(.btn)::after { content: " \2197" / ""; font-size: .7em; vertical-align: .25em; }

/* Ogłoszenia (Aktualności) jako wpisy serwisu informacyjnego */
.ogl { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); padding: clamp(1.1rem, 2.5vw, 1.5rem); margin: 0 0 var(--space-3); max-width: 50rem; }
.content .ogl > h2 { font-size: 1.3rem; margin: 0 0 .5rem; border-bottom: 0; padding-bottom: 0; text-transform: none; letter-spacing: 0; font-weight: 600; }
.content .ogl > h2::after { display: none; }
.ogl > :last-child { margin-bottom: 0; }
.ogl > h2 + p:has(> strong:only-child) { display: inline-block; background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink); padding: .1rem .6rem; font-size: .95rem; margin-bottom: var(--space-2); }
.ogl > h2 + p:has(> strong:only-child) strong { font-family: var(--font); font-weight: 700; color: var(--accent-ink); }
.content .ogl h3 { font-size: 1.1rem; margin-top: var(--space-3); text-transform: none; letter-spacing: 0; }
.ogl p, .ogl li { line-height: 1.75; }
.content hr:has(+ .ogl), .content .ogl + hr { border: 0; margin: 0; }

/* Aktualności – kalendarz w kolumnie bocznej na szerokim ekranie */
.ogl-bok > :last-child { margin-bottom: 0; }
@media (min-width: 64em) {
  .content:has(> .ogl-bok) { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; column-gap: var(--space-4); align-items: start; }
  .content:has(> .ogl-bok) > * { grid-column: 1; max-width: none; }
  .content:has(> .ogl-bok) > .ogl-bok { grid-column: 2; grid-row: 1 / span 50; position: sticky; top: 4.6rem; }
  .content:has(> .ogl-bok) > hr { display: none; }
}
.ogl-bok .embed { max-width: none; }

/* Strona główna – ramki ogłoszeń obok siebie */
@media (min-width: 56em) {
  .content > .note { display: inline-block; vertical-align: top; width: calc(50% - .6rem); max-width: none; margin-right: .9rem; }
  .content > .note + .note { margin-right: 0; }
}

/* ---------- 10. Kolumny, rysunki ---------- */
.row { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); }
.row > .col > *:first-child { margin-top: 0; }
@media (min-width: 48em) {
  .row.cols-2 { grid-template-columns: 1fr 1fr; }
  .row.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .row.cols-3.mid-wide { grid-template-columns: 1fr 2fr 1fr; }
  .row.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) { .row.cols-4 { grid-template-columns: repeat(4, 1fr); } }
figure { margin: 0 0 var(--space-3); }
figure img, .col .figure img { display: block; border-radius: var(--radius-s); }
figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }

/* ---------- 11. Karty „Na skróty” ---------- */
.cards, .content ul.cards { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); border-radius: 0 0 var(--radius-s) var(--radius-s); margin: 0; transition: border-color .15s; }
.card:hover { border-color: var(--navy); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card .card-body { padding: 1.2rem 1.2rem 1.5rem; }
.card-icon { display: inline-flex; width: 2.8rem; height: 2.8rem; align-items: center; justify-content: center; border-radius: var(--radius-s); background: var(--navy); color: #fff; margin-bottom: .8rem; }
.card-icon svg { width: 1.45rem; height: 1.45rem; }
.content .card h2, .content .card h3, .card h2, .card h3 { font-size: 1.12rem; margin: 0 0 .3rem; border-bottom: 0; padding-bottom: 0; text-transform: none; letter-spacing: 0; }
.content .card h2::after { display: none; }
.card a.card-link, .card a.card-link:visited { color: var(--navy); text-decoration: none; }
.card a.card-link::after { content: ""; position: absolute; inset: 0; }
.card a.card-link:focus-visible { outline: none; }
.card:hover a.card-link { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--accent); text-decoration-thickness: 2.5px; }
.card p { margin: 0; font-size: .98rem; color: var(--muted); }
.card img { display: block; width: 100%; }
.card::after { content: "\2192" / ""; position: absolute; right: 1.1rem; bottom: .8rem; font-weight: 700; font-size: 1.2rem; color: var(--accent); opacity: .5; transition: opacity .15s; }
.card:hover::after { opacity: 1; }

/* ---------- 12. Ramki ---------- */
.note { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 1.3rem 1.4rem; margin: 0 0 var(--space-2); }
.note > p:first-child > strong:only-child { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--navy); text-transform: uppercase; letter-spacing: .02em; }
.note > :last-child { margin-bottom: 0; }
.note.info { border-left-color: var(--navy); }
.toc, .subnav, .transcript { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1.2rem 1.4rem; margin: 0 0 var(--space-3); }
.content .toc h2, .content .subnav h2, .toc h2, .subnav h2 { font-size: 1.08rem; margin: 0 0 .5rem; border-bottom: 0; padding-bottom: 0; }
.content .toc h2::after, .content .subnav h2::after { display: none; }
.toc ol, .subnav ul { margin: 0; padding-left: 1.2rem; }
.toc li, .subnav li { margin: .25rem 0; }
.toc details summary, .transcript summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.transcript[open] summary { margin-bottom: .5rem; }
.subnav [aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
.todo { background: #fff2c4; padding: 0 .2em; }

/* ---------- 13. Osadzenia ---------- */
.embed { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 1.3rem 1.4rem; margin: 0 0 var(--space-3); max-width: 50rem; }
.embed-title { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; margin: 0 0 .35rem; color: var(--navy); }
.embed-note { font-size: 1rem; color: var(--muted); margin: 0 0 .9rem; }
.embed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0 0 .7rem; }
.embed-remember { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.embed-remember input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.embed-frame { margin-top: .8rem; }
.embed-frame iframe { display: block; width: 100%; }
.embed.video .embed-frame iframe { aspect-ratio: 16 / 9; height: auto; }
.embed.calendar .embed-frame iframe { height: 600px; }
.embed.doc .embed-frame iframe { height: 700px; }
.embed.map .embed-frame iframe { height: 420px; }
.embed.loaded .embed-actions .btn.load { display: none; }

/* ---------- 14. Pliki ---------- */
.file-link { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 1rem 1.25rem; margin: 0 0 var(--space-2); max-width: var(--measure); transition: border-color .15s; }
.file-link:hover { border-color: var(--navy); }
.file-link svg { width: 2rem; height: 2rem; color: var(--teal); flex: none; margin-top: .1rem; }
.file-link .meta { display: block; font-size: .95rem; color: var(--muted); }
.file-link a { font-family: var(--font-head); font-weight: 500; }

/* ---------- 15. Wyszukiwarka ---------- */
.search-page form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--space-3); max-width: var(--measure); }
.search-page input { flex: 1 1 14rem; font: inherit; padding: .6rem 1rem; border: 1.5px solid #767676; border-radius: var(--radius-s); }
.results { list-style: none; padding: 0 !important; }
.results li { border-bottom: 1px solid var(--line); padding: 1rem 0 1.1rem; margin: 0; }
.results a { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; }
.results p { margin: .35rem 0 0; font-size: 1rem; color: var(--muted); }
.results mark { background: #fff2c4; color: var(--ink); }

/* ---------- 16. Strona główna ---------- */
.home-hero { padding: var(--space-3) 0 var(--space-4); border-bottom: 3px solid var(--navy); margin: var(--space-2) 0 var(--space-4); }
.eyebrow { display: block; margin: 0 0 .7rem; font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.home-hero h1 { color: var(--navy); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .8rem; }
.home-hero .lead { font-size: 1.18rem; color: var(--muted); margin: 0 0 1.3rem; max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 1.2rem; }
.hero-addr { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- 17. Stopka ---------- */
.site-footer { background: var(--navy); color: #d8dfe9; font-size: 1rem; padding: var(--space-5) 0 var(--space-3); border-top: 4px solid var(--accent); margin-top: var(--space-4); }
.site-footer a, .site-footer a:visited { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.site-footer a:hover { text-decoration-color: #fff; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.25); margin-top: var(--space-4); padding-top: var(--space-2); font-size: .95rem; }
.footer-bottom p, .footer-law p { margin: 0; }
.footer-law { margin-top: var(--space-2); font-size: .9rem; color: #b9c3d2; }
.to-top, .to-top:visited { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--space-3); font-family: var(--font-head); font-size: .95rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .5rem 1.1rem; text-decoration: none; transition: background .15s; }
.to-top::before { content: "\2191" / ""; font-weight: 700; }
.to-top:hover { background: rgba(255,255,255,.22); text-decoration: underline; }

/* ---------- 18. Wąskie ekrany ---------- */
@media (max-width: 60em) {
  .menu { margin-left: -.6rem; padding: .15rem 0; }
  .menu > li > a, .menu > li > a:visited { padding: .6rem .6rem .5rem; font-size: .98rem; }
  .search-form { flex: 1 1 100%; }
}
@media (max-width: 40em) {
  body { font-size: 1.05rem; }
  .wrap { padding: 0 1rem; }
  .a11y-bar { font-size: .85rem; }
  .a11y-bar .wrap { padding-top: .3rem; padding-bottom: .3rem; }
  .a11y-links { gap: .15rem .9rem; }
  .a11y-toggle { padding: .2rem .75rem; }
  .brand-row { gap: .6rem; padding-top: .7rem; padding-bottom: .5rem; }
  .brand { gap: .6rem; }
  .brand .logo-img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .88rem; }
  .search-form { padding: .12rem .12rem .12rem .8rem; }
  .search-form .btn { padding: .4rem .9rem; }
  .content h2 { font-size: 1.28rem; }
  .a11y-tools { right: auto; left: 0; }
  .home-hero h1 { font-size: 1.6rem; }
  .home-hero .lead { font-size: 1.05rem; }
  .eyebrow { font-size: .85rem; }
  .page-head h1 { font-size: 1.5rem; }
  .breadcrumbs { margin-top: var(--space-2); }
}

/* ---------- 19. Większe odstępy (WCAG 1.4.12) ---------- */
html.spacing body { line-height: 2; letter-spacing: .12em; word-spacing: .16em; }
html.spacing p, html.spacing li, html.spacing dd { margin-bottom: 2em; }

/* ---------- 20. Wysoki kontrast ---------- */
html.hc *, html.hc *::before, html.hc *::after { transition: none !important; animation: none !important; }
html.hc { --bg: #000; --bg-2: #000; --surface: #000; --ink: #fff; --muted: #fff; --line: #fff; --line-strong: #fff; --navy: #000; --navy-2: #000; --teal: #ff0; --accent: #ff0; --accent-ink: #ff0; --accent-soft: #000; --link: #ff0; --link-visited: #ff0; --focus: #0ff; }
html.hc body { background: #000; color: #fff; }
html.hc img:not(.logo-img) { filter: grayscale(1) contrast(1.2); }
html.hc .main-nav { background: #000; border-bottom-color: #ff0; }
html.hc .menu > li > a:hover { box-shadow: none; outline: 2px solid #ff0; color: #ff0; }
html.hc .menu > li > a[aria-current="page"], html.hc .menu > li.active > a { background: #ff0; color: #000; box-shadow: none; }
html.hc .a11y-bar, html.hc .site-footer { background: #000; border: 2px solid #fff; }
html.hc .page-head { border-bottom-color: #ff0; }
html.hc .page-head h1, html.hc .home-hero h1 { color: #fff; }
html.hc .page-ikona { background: #000; border: 1px solid #ff0; }
html.hc .page-ikona svg { color: #ff0; }
html.hc .card, html.hc .note, html.hc .ogl, html.hc .embed, html.hc .file-link, html.hc .toc, html.hc .subnav, html.hc .a11y-tools { border-color: #fff; background: #000; }
html.hc .ogl, html.hc .card { border-top-color: #ff0; }
html.hc .note { border-left-color: #ff0; }
html.hc .card-icon { background: #000; border: 1px solid #ff0; color: #ff0; }
html.hc .btn, html.hc .btn:visited, html.hc .a11y-tools button[aria-pressed="true"] { background: #ff0; color: #000; border-color: #ff0; }
html.hc .btn.secondary, html.hc .btn.secondary:visited { background: #000; color: #ff0; border-color: #ff0; }
html.hc .menu a, html.hc .a11y-toggle, html.hc .search-form { color: #ff0; background: #000; }
html.hc .a11y-toggle { border-color: #ff0; }
html.hc .content mark, html.hc .results mark, html.hc .todo { background: #ff0; color: #000; }
html.hc .brand .logo-img { background: #fff; border-radius: 50%; }
html.hc .brand-name { color: #fff; }
html.hc .card::after { color: #ff0; opacity: 1; }
html.hc .to-top, html.hc .to-top:visited { background: #000; color: #ff0; border-color: #ff0; }
html.hc .results li { border-bottom-color: #fff; }
html.hc .content th { background: #000; color: #ff0; border-bottom-color: #ff0; }
html.hc .content table, html.hc .content td { border-color: #fff; }
html.hc .eyebrow { color: #ff0; }
html.hc .ogl > h2 + p:has(> strong:only-child) { border-left-color: #ff0; }
html.hc .ogl > h2 + p:has(> strong:only-child) strong { color: #ff0; }

/* ---------- 21. Ruch i druk ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .a11y-bar, .main-nav, .search-form, .breadcrumbs, .subnav, .embed-actions, .embed-remember, .to-top, .skip-links, .footer-grid ul { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
  .site-footer { background: #fff; color: #000; border-top: 2px solid #000; }
}
