/* ==========================================================================
   Edu Siechnice — Portal · main.css
   Granat + złoto, Source Serif 4 / IBM Plex Sans (lokalnie), WCAG 2.2 AA.
   ========================================================================== */

/* ---------- Fonty (lokalne, podzbiory latin + latin-ext) ---------- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-wght-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: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-wght-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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-wght-italic.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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-wght-italic.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-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+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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-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+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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-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+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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-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+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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-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: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-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+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: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-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+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; }

/* ---------- Tokeny ---------- */
:root {
	--navy: #0b2545;
	--navy-2: #13315c;
	--navy-3: #1d4b8f;
	--navy-deep: #06172e;
	--gold: #d4a72c;
	--gold-2: #f3c969;
	--gold-ink: #7a5a00;
	--paper: #f7f5ef;
	--bg: #ffffff;
	--ink: #14213d;
	--muted: #4a5568;
	--line: #e2ddcf;
	--on-dark: #e8eef7;
	--on-dark-muted: #b9c7dc;

	--tone-0: #1d4ed8;
	--tone-1: #15803d;
	--tone-2: #b91c1c;
	--tone-3: #a16207;
	--tone-4: #6d28d9;
	--tone-5: #0e7490;

	--font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 18px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .06);
	--shadow: 0 10px 30px -12px rgba(11, 37, 69, .28), 0 4px 10px -6px rgba(11, 37, 69, .12);
	--shadow-lg: 0 30px 60px -24px rgba(11, 37, 69, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--wrap: 1220px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
html[data-fs="2"] { font-size: 112.5%; }
html[data-fs="3"] { font-size: 125%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--navy-3); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); text-decoration-thickness: .14em; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.18; color: var(--navy); margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button { font: inherit; }
abbr[title] { text-decoration: none; }

:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--gold-2);
	border-radius: 4px;
}
.section--navy :focus-visible, .hero :focus-visible, .topbar :focus-visible, .footer :focus-visible, .page-head :focus-visible {
	outline-color: var(--gold-2);
	box-shadow: 0 0 0 6px rgba(243, 201, 105, .35);
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--gold-2); color: var(--navy); padding: .7em 1.1em; border-radius: 0 0 10px 10px;
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-main:focus { outline: none; }

.icon { flex: none; vertical-align: middle; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em; justify-content: center;
	padding: .72em 1.25em; min-height: 44px;
	border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn .icon-arrow { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn--small { padding: .45em 1em; min-height: 40px; font-size: .95rem; }
.btn--gold { background: var(--gold-2); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(243, 201, 105, .8); }
.btn--gold:hover { background: #ffd982; color: var(--navy); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; box-shadow: var(--shadow); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }

/* ---------- Pasek górny ---------- */
.topbar { background: var(--navy-deep); color: var(--on-dark); font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.topbar__network { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--on-dark-muted); }
.topbar__network strong { color: #fff; font-weight: 600; }
.topbar__network .icon { color: var(--gold-2); }
.topbar__links { display: flex; gap: 4px 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--gold-2); text-decoration: underline; }
.a11y-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.a11y-tools__label { color: var(--gold-2); display: inline-flex; }
.a11y-tools__sizes { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 2px; }
.a11y-btn {
	display: inline-flex; align-items: center; gap: 6px;
	min-width: 32px; min-height: 32px; padding: 0 8px;
	background: transparent; color: var(--on-dark); border: 1px solid transparent; border-radius: 6px;
	cursor: pointer; font-weight: 600; font-size: .85rem;
}
.a11y-btn--l { font-size: .98rem; }
.a11y-btn--xl { font-size: 1.1rem; }
.a11y-btn--wide { border-color: rgba(255, 255, 255, .22); }
.a11y-btn:hover { color: var(--gold-2); border-color: rgba(243, 201, 105, .6); }
.a11y-btn[aria-pressed="true"] { background: var(--gold-2); color: var(--navy); border-color: var(--gold-2); }
.a11y-btn .when-still { display: none; }
.is-still .a11y-btn .when-still { display: inline-flex; }
.is-still .a11y-btn .when-moving { display: none; }

/* ---------- Przełącznik placówek ---------- */
.topbar { position: relative; z-index: 60; }
.switcher { position: relative; }
.switcher__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px;
	background: var(--gold-2); color: var(--navy); border: 0; border-radius: 8px; font-weight: 700; font-size: .85rem; cursor: pointer;
	transition: background .2s;
}
.switcher__btn:hover { background: #ffd982; }
.switcher__count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--navy); color: var(--gold-2); font-size: .72rem; }
.switcher__chev { transition: transform .25s var(--ease); }
.switcher.is-open .switcher__chev { transform: rotate(180deg); }
.switcher__panel {
	position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; width: min(720px, calc(100vw - 2 * var(--gutter)));
	max-height: min(70vh, 560px); overflow: auto; padding: 18px 20px 20px;
	background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
	animation: swin .22s var(--ease);
}
.switcher__panel[hidden] { display: none; }
.switcher__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.switcher__title { margin: 0; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 650; color: var(--navy); }
.topbar .switcher__portal { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-3); font-weight: 600; font-size: .9rem; text-decoration: underline; }
.switcher__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 24px; }
.switcher__gtitle { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.switcher__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.topbar .switcher__list a {
	display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
	color: var(--ink); text-decoration: none;
}
.topbar .switcher__list a:hover, .topbar .switcher__list a:focus-visible { background: var(--paper); color: var(--navy); }
.topbar .switcher__list a[aria-current] { background: color-mix(in srgb, var(--tone) 10%, #fff); }
.switcher__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); grid-row: span 2; }
.switcher__name { font-weight: 600; line-height: 1.3; font-size: .95rem; }
.switcher__host { grid-column: 2; font-size: .78rem; color: var(--muted); }
.switcher__panel :focus-visible { outline-color: var(--navy); box-shadow: 0 0 0 5px var(--gold-2); }
@keyframes swin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
	.switcher { position: static; width: 100%; }
	.switcher__btn { width: 100%; justify-content: center; min-height: 40px; }
	.switcher__panel { left: 12px; right: 12px; top: calc(100% + 4px); width: auto; max-height: 75vh; }
}
.is-hc .switcher__btn { background: #ffff00; color: #000; }
.is-hc .switcher__panel { background: #000; color: #fff; border-color: #fff; }
.is-hc .switcher__title, .is-hc .switcher__name { color: #fff; }
.is-hc .switcher__list a:hover, .is-hc .switcher__list a[aria-current] { background: #222 !important; }

/* ---------- Godło RP ---------- */
.godlo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.godlo img { width: 40px; height: auto; }
.godlo__text { font-family: var(--font-serif); font-size: .72rem; line-height: 1.15; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.godlo--header { padding-right: 18px; margin-right: 4px; border-right: 1px solid var(--line); }
.godlo--footer img { width: 30px; }
.godlo--footer .godlo__text { color: var(--on-dark); font-size: .68rem; }
.footer__bottom-inner { align-items: center; }
.footer__bottom-inner > .godlo { margin-right: auto; }
.footer__title--iod { margin-top: 26px; }
.footer__small { font-size: .88rem; margin: 8px 0 0; }
@media (max-width: 1499px) { .godlo--header .godlo__text { display: none; } .godlo--header { padding-right: 14px; } }
@media (min-width: 561px) { .brand__name, .brand__sub { white-space: nowrap; } }
@media (min-width: 1361px) { .nav .menu a { white-space: nowrap; padding-left: .7em; padding-right: .7em; } .nav .menu > li > a::after { left: .7em; right: .7em; } }
@media (max-width: 560px) { .godlo img { width: 30px; } .godlo--header { padding-right: 10px; margin-right: 0; } }
.is-hc .godlo__text { color: #fff; }

/* ---------- Nagłówek ---------- */
.masthead {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}
.masthead.is-scrolled { box-shadow: 0 8px 24px -16px rgba(11, 37, 69, .5); }
.masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__crest { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 60px; flex: none; }
.brand__logo { max-height: 60px; width: auto; }
.brand__placeholder { width: 44px; height: 52px; color: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.brand__accent { color: var(--gold-ink); font-style: italic; }
.brand__sub { font-size: .8rem; color: var(--muted); letter-spacing: .02em; margin-top: 4px; }

.nav { margin-left: auto; }
.nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav .menu a {
	display: block; padding: .6em .85em; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
	border-radius: 8px; position: relative;
}
.nav .menu > li > a::after {
	content: ""; position: absolute; left: .85em; right: .85em; bottom: .35em; height: 2px;
	background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav .menu > li > a:hover::after, .nav .menu > .current-menu-item > a::after { transform: scaleX(1); }
.nav .menu a:hover { color: var(--navy); }
.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__toggle {
	display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; cursor: pointer;
}
.nav__toggle .when-open { display: none; }
.nav__toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.nav__toggle[aria-expanded="true"] .when-closed { display: none; }
.masthead__cta { flex: none; }

@media (max-width: 1360px) {
	.masthead__inner { flex-wrap: wrap; min-height: 72px; gap: 12px; }
	.nav { order: 3; margin-left: 0; }
	.masthead__cta { margin-left: auto; }
	.nav__toggle { display: inline-flex; }
	.js .nav .menu {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	}
	.js .nav.is-open .menu { display: flex; }
	.nav .menu a { padding: .8em .4em; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav .menu > li > a::after { display: none; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
}
@media (max-width: 560px) {
	.masthead__inner { flex-wrap: nowrap; gap: 8px; }
	.brand { min-width: 0; gap: 10px; }
	.brand__crest { width: 40px; height: 48px; }
	.brand__logo { max-height: 48px; }
	.nav { margin-left: 0; }
	.nav__toggle { padding: 0 12px; }
	.topbar__network { display: none; }
	.topbar__inner { justify-content: center; }
	.a11y-tools { margin: 0 auto; justify-content: center; }
	.a11y-btn--wide > span:not(.when-still):not(.when-moving) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.a11y-btn--wide { min-width: 40px; justify-content: center; }
	.brand__sub { display: none; }
	.brand__name { font-size: 1.3rem; }
	.masthead__cta > span:not(.screen-reader-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.masthead__cta { padding: .6em; min-width: 44px; }
	.a11y-tools { margin-left: 0; }
	.topbar__links { display: none; }
}

/* ---------- Sekcje: wspólne ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(36px, 5vw, 64px) var(--gutter); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 0; }
.section__title--light { color: #fff; }
.section__lead { font-size: 1.15rem; color: var(--muted); margin: 14px auto 0; max-width: 680px; }
.section__more { margin: 36px 0 0; text-align: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
	font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }
.section__head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
	border: 1.5px solid var(--line); background: #fff; color: var(--ink);
	border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip--sm { min-height: 36px; font-size: .85rem; padding: 0 12px; }

.empty {
	display: flex; gap: 14px; align-items: center; padding: 28px; border: 2px dashed var(--line);
	border-radius: var(--radius); color: var(--muted); background: #fff;
}
.empty p { margin: 0; }
.empty--dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .2); color: var(--on-dark); }

/* ---------- HERO ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 600px at 85% 20%, rgba(29, 75, 143, .75), transparent 60%),
		linear-gradient(160deg, #0b2545 0%, #0a2140 55%, #081a33 100%);
	padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 9vw, 120px);
}
.hero__bg::before {
	content: ""; position: absolute; inset: 0;
	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: 44px 44px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero__glow--a { width: 380px; height: 380px; background: #d4a72c; left: -140px; bottom: -160px; opacity: .25; animation: drift 18s ease-in-out infinite alternate; }
.hero__glow--b { width: 420px; height: 420px; background: #2f6fd6; right: 8%; top: -180px; opacity: .35; animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.2rem, 3.9vw, 3.35rem); line-height: 1.06; letter-spacing: -.025em; margin: 6px 0 22px; font-weight: 700; }
.hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--on-dark); max-width: 36em; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 12px 40px; flex-wrap: wrap; margin: 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: .85rem; color: var(--on-dark-muted); }
.hero__stats dd { margin: 0; font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--gold-2); line-height: 1.1; }
.hero__art { position: relative; }
.hero__edge { position: absolute; left: -5%; right: -5%; bottom: -1px; height: 64px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

.eco { width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.eco__orbit { fill: none; stroke: rgba(243, 201, 105, .35); stroke-width: 1.5; stroke-dasharray: 4 8; }
.eco__ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.eco__sat { fill: var(--gold-2); }
.eco__sat--b { fill: #7fb0ff; }
.eco__spin { transform-box: view-box; transform-origin: 280px 260px; animation: spin 90s linear infinite; }
.eco__link { stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.eco__flow { stroke: var(--gold-2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 22; animation: flow 2.8s linear infinite; }
.eco__pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4.5s ease-in-out infinite; }
.eco__screen { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.eco__bar { fill: var(--gold-2); transform-box: fill-box; transform-origin: bottom; animation: bars 3.6s var(--ease) infinite; }
.eco__bar--2 { fill: #7fb0ff; animation-delay: -.9s; }
.eco__bar--3 { fill: #ffffff; opacity: .8; animation-delay: -1.8s; }
.eco__bar--4 { fill: var(--gold); animation-delay: -2.7s; }
.eco__cursor { animation: blink 1.1s steps(1) infinite; }
.eco__check { transform-box: fill-box; transform-origin: center; animation: pop 4s var(--ease) infinite; }
.eco__cap { transform-box: fill-box; transform-origin: center; animation: capfloat 6s ease-in-out infinite; }
.eco__spark { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; }
.eco__spark--b { animation-delay: -1.5s; }
.eco__node { animation: float 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0s) * -1); }
.eco__node-bg { fill: #fff; stroke: var(--gold-2); stroke-width: 3; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }
.eco__label { fill: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em; paint-order: stroke; stroke: rgba(8, 26, 51, .85); stroke-width: 4px; stroke-linejoin: round; }

@media (max-width: 600px) { .eco__label { font-size: 19px; } }
@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ---------- Kafelki usług ---------- */
.roles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roles__label { font-weight: 700; color: var(--navy); margin-right: 4px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.tile {
	--tone-c: var(--navy);
	position: relative; display: flex; flex-direction: column;
	padding: 28px 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .3s;
}
.tile::before {
	content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -90px; top: -110px;
	border-radius: 50%; background: var(--tone-c); opacity: .07; transition: transform .6s var(--ease), opacity .4s;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone-c) 40%, var(--line)); }
.tile:hover::before { transform: scale(1.35); opacity: .12; }
.tile--blue { --tone-c: #1d4ed8; }
.tile--green { --tone-c: #15803d; }
.tile--red { --tone-c: #b91c1c; }
.tile--gold { --tone-c: #a16207; }
.tile--violet { --tone-c: #6d28d9; }
.tile--navy { --tone-c: #0b2545; }
.tile__icon {
	width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
	background: var(--tone-c); color: #fff; box-shadow: 0 10px 20px -10px var(--tone-c);
	position: relative; overflow: hidden;
}
.tile__icon::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .8s var(--ease);
}
.tile:hover .tile__icon::after { transform: translateX(120%); }
.tile__title { font-size: 1.45rem; margin: 0 0 8px; }
.tile__link { color: var(--navy); text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile__link:focus-visible { box-shadow: none; outline: none; }
.tile:has(.tile__link:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 7px var(--gold-2); }
.tile__desc { color: var(--muted); margin-bottom: 12px; }
.tile__for { font-size: .82rem; font-weight: 600; color: var(--gold-ink); letter-spacing: .02em; margin-bottom: 18px; }
.tile__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tile__btn, .tile__go {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
	border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none;
	border: 1.5px solid var(--line); color: var(--navy); background: #fff;
}
.tile__btn { position: relative; z-index: 2; }
.tile__btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.tile__btn:hover { border-color: var(--navy); background: var(--paper); color: var(--navy); }
.tile__go { border: 0; padding: 0; min-height: 0; color: var(--navy); }
.tile__go .icon, .tile__btn .icon { transition: transform .25s var(--ease); }
.tile:hover .tile__go .icon, .tile__btn:hover .icon, .tile:hover .tile__btn--primary .icon { transform: translateX(4px); }
.tile__host { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); }
.tile.is-hidden { display: none; }

/* ---------- Aktualności ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }
.news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ncard {
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ncard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ncard__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-2); overflow: hidden; }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	color: rgba(255, 255, 255, .85); font-family: var(--font-serif); font-size: 1.1rem; text-align: center; padding: 16px;
	background:
		radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 60%),
		linear-gradient(135deg, var(--navy-2), var(--navy));
}
.ncard__placeholder::before {
	content: ""; position: absolute; inset: 0; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 16px 16px;
}
.ncard__placeholder .icon { color: var(--gold-2); position: relative; }
.ncard__placeholder span { position: relative; }
.ncard__school {
	position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
	background: var(--tone); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
	padding: 5px 11px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.ncard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ncard__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.ncard__meta time { display: inline-flex; align-items: center; gap: 6px; }
.ncard__cat { color: var(--gold-ink); font-weight: 600; }
.ncard__title { font-size: 1.2rem; margin: 0 0 10px; line-height: 1.3; }
.ncard__title a { color: var(--navy); text-decoration: none; }
.ncard__title a::after { content: ""; position: absolute; inset: 0; }
.ncard__title a:hover { text-decoration: underline; }
.ncard:has(.ncard__title a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 7px var(--gold-2); }
.ncard__title a:focus-visible { box-shadow: none; outline: none; }
.ncard__excerpt { color: var(--muted); font-size: .98rem; margin: 0; }
.ncard__also { font-size: .8rem; color: var(--muted); margin: 12px 0 0; font-style: italic; }
.ncard--featured { grid-column: span 2; grid-row: span 2; }
.ncard--featured .ncard__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
.ncard--featured .ncard__media img { position: absolute; inset: 0; }
.ncard--featured .ncard__body { flex: 0 0 auto; }
.ncard--featured .ncard__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.ncard--featured .ncard__excerpt { font-size: 1.06rem; }
.ncard.is-hidden { display: none; }
.news__grid--all .ncard--featured { grid-column: auto; grid-row: auto; }
.news__empty { margin-top: 20px; }
@media (max-width: 1000px) {
	.news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ncard--featured { grid-row: auto; }
	.ncard--featured .ncard__media { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
}
@media (max-width: 640px) {
	.news__grid { grid-template-columns: 1fr; }
	.ncard--featured { grid-column: auto; }
	.filters { justify-content: flex-start; }
}

/* ---------- MEN ---------- */
.men { overflow: hidden; }
.men__deco {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(600px 400px at 0% 100%, rgba(212, 167, 44, .18), transparent 60%),
		radial-gradient(700px 500px at 100% 0%, rgba(47, 111, 214, .3), transparent 60%);
}
.men__inner { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.men__intro { position: sticky; top: 120px; }
.men__lead { color: var(--on-dark); font-size: 1.1rem; margin: 16px 0 26px; }
.men__badge {
	width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 22px;
	background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--navy);
	box-shadow: 0 16px 36px -14px rgba(243, 201, 105, .7); animation: bob 6s ease-in-out infinite;
}
.men__source { font-size: .9rem; color: var(--on-dark-muted); }
.men__source a { color: var(--gold-2); }
.men__updated { font-size: .82rem; }
.men__list { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.men__list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold-2), rgba(243, 201, 105, .1)); }
.men__item {
	position: relative; padding: 18px 22px; margin-bottom: 14px; border-radius: 14px;
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
	transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.men__item::before {
	content: ""; position: absolute; left: -28px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--navy); border: 3px solid var(--gold-2);
}
.men__item:hover { background: rgba(255, 255, 255, .08); border-color: rgba(243, 201, 105, .4); transform: translateX(4px); }
.men__date { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 4px; }
.men__title { font-size: 1.2rem; margin: 0 0 6px; color: #fff; }
.men__title a { color: #fff; text-decoration: none; }
.men__title a::after { content: ""; position: absolute; inset: 0; }
.men__title a:hover { text-decoration: underline; text-decoration-color: var(--gold-2); }
.men__intro-text { color: var(--on-dark-muted); font-size: .96rem; margin: 0; }
.men__more { margin: 26px 0 0; }
@media (max-width: 900px) {
	.men__inner { grid-template-columns: 1fr; }
	.men__intro { position: static; }
	.men__badge { display: none; }
}

/* ---------- Nowoczesna edukacja ---------- */
.modern { overflow: hidden; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature {
	text-align: center; padding: 34px 22px 28px; border-radius: var(--radius); background: #fff;
	border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__art { position: relative; width: 112px; height: 112px; margin: 0 auto 22px; display: grid; place-items: center; }
.feature__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(212, 167, 44, .7); animation: spin 24s linear infinite; }
.feature__ring--2 { inset: 14px; border: 2px solid rgba(29, 75, 143, .18); border-top-color: var(--navy-3); animation-duration: 6s; animation-direction: reverse; }
.feature__icon {
	position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(145deg, var(--navy-3), var(--navy)); color: var(--gold-2);
	box-shadow: 0 10px 22px -10px rgba(11, 37, 69, .7);
}
.feature__title { font-size: 1.25rem; }
.feature__text { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.ribbon { margin-top: clamp(48px, 7vw, 80px); background: var(--navy); transform: rotate(-1.2deg); padding: 16px 0; overflow: hidden; box-shadow: var(--shadow); }
.ribbon__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ribbon__list { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0 22px; }
.ribbon__list li { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.ribbon__list .icon { color: var(--gold-2); }

/* ---------- Szkoły ---------- */
.schools__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.school {
	position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; border-left: 5px solid var(--tone);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.school:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.school__mark { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 12%, #fff); color: var(--tone); overflow: hidden; }
.school__mark img { width: 100%; height: 100%; object-fit: cover; }
.school__text { display: flex; flex-direction: column; min-width: 0; }
.school__name { font-family: var(--font-serif); font-weight: 650; font-size: 1.1rem; color: var(--navy); text-decoration: none; line-height: 1.25; }
.school__name::after { content: ""; position: absolute; inset: 0; }
.school:has(.school__name:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 7px var(--gold-2); }
.school__name:focus-visible { outline: none; box-shadow: none; }
.school__host { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school__arrow { margin-left: auto; color: var(--navy); transition: transform .3s var(--ease); }
.school:hover .school__arrow { transform: translateX(5px); }

/* ---------- Pas pomocy ---------- */
.helpband { background: linear-gradient(120deg, var(--gold-2) 0%, #ecb94a 55%, var(--gold) 100%); color: var(--navy); position: relative; overflow: hidden; }
.helpband::before {
	content: ""; position: absolute; inset: 0; opacity: .25;
	background-image: radial-gradient(rgba(11, 37, 69, .35) 1.2px, transparent 1.2px); background-size: 18px 18px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.helpband__inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.helpband__art { position: relative; width: 104px; height: 104px; }
.helpband__bubble {
	position: absolute; inset: 0; border-radius: 30px 30px 30px 8px; display: grid; place-items: center;
	background: var(--navy); color: var(--gold-2); box-shadow: 0 16px 30px -14px rgba(11, 37, 69, .8);
	animation: bob 5s ease-in-out infinite;
}
.helpband__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); right: -18px; top: 10px; animation: twinkle 2.4s ease-in-out infinite; }
.helpband__dot--2 { right: -30px; top: 34px; width: 7px; height: 7px; animation-delay: -.8s; }
.helpband__dot--3 { right: -14px; top: 58px; width: 5px; height: 5px; animation-delay: -1.6s; }
.helpband__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 8px; }
.helpband__copy p { margin: 0 0 10px; max-width: 46em; }
.helpband__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.helpband__contact li { display: inline-flex; align-items: center; gap: 8px; }
.helpband__contact a { color: var(--navy); }
@media (max-width: 900px) {
	.helpband__inner { grid-template-columns: 1fr; }
	.helpband__art { display: none; }
}

/* ---------- e-Doręczenia ---------- */
.ade { background: var(--bg); }
.ade__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ade__intro { position: sticky; top: 120px; }
.ade__lead { color: var(--muted); font-size: 1.08rem; margin: 16px 0 24px; }
.ade__art { position: relative; width: 150px; height: 104px; margin: 0 0 24px; }
.ade__env {
	position: absolute; left: 0; top: 10px; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center;
	background: linear-gradient(145deg, var(--navy-3), var(--navy)); color: var(--gold-2);
	box-shadow: 0 16px 30px -14px rgba(11, 37, 69, .75); animation: send 5s var(--ease) infinite;
}
.ade__seal {
	position: absolute; left: 70px; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--gold-2); color: var(--navy); border: 3px solid var(--bg); animation: pop 5s var(--ease) infinite;
}
.ade__trail { position: absolute; left: 100px; top: 58px; width: 50px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); animation: trail 1.2s linear infinite; }
.ade__facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ade__facts li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.ade__facts .icon { color: var(--gold-ink); }
.ade__more a { font-weight: 600; }
.ade__search { margin-bottom: 18px; }
.ade__search label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ade__search-row { position: relative; }
.ade__search-row .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ade__search input { width: 100%; min-height: 50px; padding: 0 16px 0 44px; border: 2px solid #8a94a6; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.ade__search input:focus { border-color: var(--navy); }
.ade__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.ade-card {
	padding: 18px 18px 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--tone); border-radius: 14px;
	box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ade-card.is-hidden { display: none; }
.ade-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ade-card__mark { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 12%, #fff); color: var(--tone); }
.ade-card__name { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.ade-card__name a { color: var(--navy); text-decoration: none; }
.ade-card__name a:hover { text-decoration: underline; }
.ade-card__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ade-card__addr { margin: 0; flex: 1 1 220px; min-width: 0; }
.ade-card__addr code {
	display: block; padding: 9px 12px; border-radius: 10px; background: var(--paper); border: 1px dashed #c9c1ab; color: var(--navy);
	font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace; font-size: .92rem; font-weight: 600; letter-spacing: .02em;
	overflow-wrap: anywhere; user-select: all;
}
.ade-card__copy {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
	border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s;
}
.ade-card__copy > span { display: inline-flex; align-items: center; gap: 6px; }
.ade-card__copy:hover { background: var(--navy); color: #fff; }
.ade-card__copy-done { display: none !important; }
.ade-card__copy.is-done { background: #15803d; border-color: #15803d; color: #fff; }
.ade-card__copy.is-done .ade-card__copy-idle { display: none; }
.ade-card__copy.is-done .ade-card__copy-done { display: inline-flex !important; }
.ade__empty { margin-top: 16px; color: var(--muted); }
@keyframes send { 0%, 100% { transform: translate(0, 0) rotate(0); } 45% { transform: translate(6px, -4px) rotate(-4deg); } 60% { transform: translate(0, 0) rotate(0); } }
@keyframes trail { to { background-position: 12px 0; } }
@media (max-width: 900px) {
	.ade__inner { grid-template-columns: 1fr; }
	.ade__intro { position: static; }
	.ade__art { display: none; }
}
.is-hc .ade-card, .is-hc .ade__search input, .is-hc .ade-card__copy { background: #000 !important; border-color: #fff !important; color: #fff; }
.is-hc .ade-card__addr code { background: #000; color: #ffff00; border-color: #ffff00; }
.is-hc .ade-card__mark, .is-hc .ade__env, .is-hc .ade__seal { background: #000 !important; color: #ffff00 !important; border: 2px solid #ffff00; }
.is-hc .ade__facts li { color: #fff; }
.is-hc .ade-card__copy.is-done { background: #ffff00 !important; color: #000 !important; }

/* ---------- Nagłówek podstrony ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 36px 0 56px; }
.page-head__grid {
	position: absolute; inset: 0; pointer-events: none;
	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: 40px 40px;
	mask-image: linear-gradient(90deg, transparent 30%, #000);
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head__title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 0; max-width: 24em; }
.page-head__lead { color: var(--on-dark); font-size: 1.15rem; margin: 12px 0 0; max-width: 42em; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; }
.crumbs li { color: var(--on-dark-muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--gold-2); }
.crumbs a { color: var(--on-dark); }

/* ---------- Treść wpisów ---------- */
.entry-wrap, .entry { max-width: 780px; }
.section--tight .entry, .section--tight .entry-wrap { margin: 0 auto; }
.entry { font-size: 1.08rem; }
.entry h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry h3 { font-size: 1.35rem; margin-top: 1.5em; }
.entry img { border-radius: 12px; }
.entry blockquote { margin: 1.5em 0; padding: 12px 24px; border-left: 4px solid var(--gold); background: var(--paper); font-family: var(--font-serif); font-size: 1.2rem; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .96rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--paper); }
.entry-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.entry-meta time { display: inline-flex; gap: 6px; align-items: center; }
.entry-hero { margin: 0 0 28px; }
.entry-hero img { border-radius: var(--radius); width: 100%; }
mark.todo { background: #fff3bf; color: #5c4400; padding: 0 .3em; border-radius: 4px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); font-family: var(--font-serif); font-weight: 600; }
.post-nav a span { display: block; font-family: var(--font-sans); font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post-nav__next { text-align: right; grid-column: 2; }

.list { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.litem { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.litem:not(:has(.litem__media)) { grid-template-columns: 1fr; }
.litem__media img { border-radius: 12px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.litem__title { font-size: 1.4rem; margin: 0 0 8px; }
.litem__title a { color: var(--navy); text-decoration: none; }
.litem__title a:hover { text-decoration: underline; }
.litem__excerpt p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .litem { grid-template-columns: 1fr; } }
.pagination { margin: 36px auto 0; max-width: 900px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

.search-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border: 2px solid #8a94a6; border-radius: 12px; font: inherit; }
.search-form input[type="search"]:focus { border-color: var(--navy); }
.search-inline { max-width: 900px; margin: 0 auto 28px; }
.front-extra { padding-top: 0; }

/* ---------- Stopka ---------- */
.footer { position: relative; background: var(--navy-deep); color: var(--on-dark); font-size: .96rem; }
.footer__wave { height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.footer .brand { color: #fff; }
.footer .brand__accent { color: var(--gold-2); }
.footer .brand__sub { color: var(--on-dark-muted); }
.footer__note { margin-top: 18px; color: var(--on-dark-muted); max-width: 34em; }
.footer__title { font-family: var(--font-sans); color: var(--gold-2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.footer__address { font-style: normal; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--gold-2); }
.footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__menu a { text-decoration: none; }
.footer__menu a:hover { text-decoration: underline; }
.footer .widget { margin-top: 24px; }
.footer .widget h2, .footer .widget h3, .footer .widget .wp-block-heading { font-family: var(--font-sans); color: var(--gold-2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }
.footer .widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: var(--on-dark-muted); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Pasek informacyjny (prywatność) ---------- */
.infobar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; }
.infobar__inner {
	display: flex; align-items: center; gap: 12px 20px; max-width: 980px; padding: 14px 18px;
	background: var(--navy); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid rgba(243, 201, 105, .35);
}
.infobar p { margin: 0; font-size: .92rem; }
.infobar a { color: var(--gold-2); }
@media (max-width: 640px) { .infobar__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Pojawianie się przy przewijaniu ---------- */
.js:not(.is-still) .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js:not(.is-still) .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Animacje ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -230; } }
@keyframes pulse { 0%, 100% { transform: scale(.88); opacity: .75; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes bars { 0%, 100% { transform: scaleY(.35); } 40% { transform: scaleY(1); } 70% { transform: scaleY(.6); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.18); } 80% { transform: scale(.95); } }
@keyframes capfloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(60px, -40px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Zatrzymanie animacji (przycisk lub ustawienie systemu) — WCAG 2.2.2 */
.is-still *, .is-still *::before, .is-still *::after { animation-play-state: paused !important; }
.is-still { scroll-behavior: auto; }
.is-still .eco__bar { animation: none; transform: scaleY(.8); }

/* ---------- Wysoki kontrast ---------- */
.is-hc {
	--bg: #000; --paper: #000; --ink: #fff; --muted: #fff; --line: #fff;
	--navy: #000; --navy-2: #000; --navy-3: #ffff00; --navy-deep: #000;
	--gold: #ffff00; --gold-2: #ffff00; --gold-ink: #ffff00; --on-dark: #fff; --on-dark-muted: #fff;
	--tone-0: #000; --tone-1: #000; --tone-2: #000; --tone-3: #000; --tone-4: #000; --tone-5: #000;
}
.is-hc body { background: #000; color: #fff; }
.is-hc a, .is-hc .tile__link, .is-hc .ncard__title a, .is-hc .school__name, .is-hc .men__title a, .is-hc .litem__title a, .is-hc .nav .menu a { color: #ffff00 !important; text-decoration: underline; }
.is-hc h1, .is-hc h2, .is-hc h3, .is-hc h4, .is-hc .brand, .is-hc .roles__label { color: #fff; }
.is-hc .masthead, .is-hc .tile, .is-hc .ncard, .is-hc .feature, .is-hc .school, .is-hc .litem, .is-hc .men__item, .is-hc .empty, .is-hc .chip, .is-hc .tile__btn, .is-hc .nav__toggle, .is-hc .nav .menu, .is-hc .nav .sub-menu, .is-hc .post-nav a, .is-hc .pagination .page-numbers {
	background: #000 !important; border-color: #fff !important; color: #fff; box-shadow: none !important;
}
.is-hc .hero, .is-hc .page-head, .is-hc .helpband, .is-hc .ribbon, .is-hc .section--navy, .is-hc .footer, .is-hc .topbar, .is-hc .infobar__inner { background: #000 !important; color: #fff; border-top: 1px solid #fff; }
.is-hc .hero__bg, .is-hc .men__deco, .is-hc .page-head__grid, .is-hc .helpband::before, .is-hc .tile::before, .is-hc .hero__edge { display: none; }
.is-hc .btn, .is-hc .chip[aria-pressed="true"], .is-hc .a11y-btn[aria-pressed="true"], .is-hc .tile__btn--primary { background: #ffff00 !important; color: #000 !important; border-color: #ffff00 !important; box-shadow: none; }
.is-hc .tile__icon, .is-hc .feature__icon, .is-hc .men__badge, .is-hc .helpband__bubble, .is-hc .school__mark { background: #000 !important; color: #ffff00 !important; border: 2px solid #ffff00; box-shadow: none; }
.is-hc .ncard__school { background: #ffff00; color: #000; }
.is-hc .ncard__placeholder { background: #000; border-bottom: 1px solid #fff; }
.is-hc .eco__node-bg { fill: #000; stroke: #ffff00; }
.is-hc .eco svg { stroke: #ffff00; }
.is-hc .eco__label { fill: #ffff00; stroke: #000; }
.is-hc mark.todo { background: #ffff00; color: #000; }
.is-hc .search-form input[type="search"] { background: #000; color: #fff; border-color: #fff; }
.is-hc :focus-visible { outline: 3px solid #ffff00 !important; box-shadow: 0 0 0 6px #fff !important; }

/* ---------- Bloki edytora ---------- */
.has-navy-color { color: var(--navy); } .has-navy-background-color { background-color: var(--navy); }
.has-navy-2-color { color: var(--navy-2); } .has-navy-2-background-color { background-color: var(--navy-2); }
.has-gold-color { color: var(--gold); } .has-gold-background-color { background-color: var(--gold); }
.has-gold-ink-color { color: var(--gold-ink); } .has-gold-ink-background-color { background-color: var(--gold-ink); }
.has-paper-color { color: var(--paper); } .has-paper-background-color { background-color: var(--paper); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { border-radius: 999px; background: var(--navy); color: #fff; }
