/* Czcionki (hostowane lokalnie) */
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/lato-400-latin-ext.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:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/lato-400-latin.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:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/lato-700-latin-ext.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:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/lato-700-latin.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:'Lato';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/lato-300-latin-ext.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:'Lato';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/lato-300-latin.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:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/poppins-300-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/poppins-300-latin.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:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/poppins-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/poppins-400-latin.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;}

/* ==========================================================================
   GOPS Oporów – style główne (wersja jasna)
   Zasady: dużo bieli i światła, cienkie pismo (300/400), miękkie cienie,
   zaokrąglenia; czerwień z herbu tylko jako akcent.
   ========================================================================== */

:root {
	--brand: #b3202e;
	--brand-dark: #8c1722;
	--on-brand: #ffffff;
	--brand-ink: #a41c2a;      /* czerwień jako tekst na jasnym tle (kontrast > 7:1) */
	--ink: #2b2f36;
	--muted: #646a74;
	--bg: #ffffff;
	--soft: #f7f8fa;
	--card: #ffffff;
	--tint: #fbf1f2;           /* delikatny róż z czerwieni herbu */
	--line: #e9eaee;
	--accent: #f2d600;
	--focus: #1a5fd0;
	--shadow: 0 1px 2px rgba(30, 34, 44, .04), 0 10px 30px rgba(30, 34, 44, .07);
	--shadow-sm: 0 1px 2px rgba(30, 34, 44, .05), 0 4px 14px rgba(30, 34, 44, .05);
	--radius: 14px;
	--radius-sm: 10px;
	--container: 1200px;
	--font: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--head: 'Poppins', 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	/* ciepła gama kafelków: od żółci krzyżyków herbu do koralu (ciemny tekst ≥ 5:1) */
	--t1: #f8d08a;
	--t2: #f6b27d;
	--t3: #f09a82;
	--t4: #e88482;
	--warm: linear-gradient(90deg, var(--t1), var(--t2), var(--t3), var(--t4), var(--brand));
	--hero-bg: radial-gradient(60% 90% at 88% 10%, rgba(248, 208, 138, .45), transparent 70%),
		radial-gradient(50% 80% at 70% 100%, rgba(232, 132, 130, .28), transparent 70%),
		linear-gradient(120deg, #fffaf2 0%, #fdf1ea 55%, #fbeef0 100%);
}

/* ---------- Wysoki kontrast (przełącznik w pasku dostępności) ---------- */
[data-contrast="high"] {
	--brand: #000;
	--brand-dark: #000;
	--on-brand: #ffe600;
	--brand-ink: #ffe600;
	--ink: #ffffff;
	--muted: #ffffff;
	--bg: #000;
	--soft: #000;
	--card: #000;
	--tint: #000;
	--line: #ffe600;
	--accent: #ffe600;
	--focus: #00e5ff;
	--shadow: none;
	--shadow-sm: none;
}
[data-contrast="high"] a { color: #ffe600; text-decoration: underline; }
[data-contrast="high"] img { filter: grayscale(1) contrast(1.1); }
[data-contrast="high"] .custom-logo-link { display: inline-block; background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); }
[data-contrast="high"] .custom-logo { filter: none; }
[data-contrast="high"] .btn,
[data-contrast="high"] .row-card,
[data-contrast="high"] .side-box,
[data-contrast="high"] .tile,
[data-contrast="high"] .event,
[data-contrast="high"] .contact-card,
[data-contrast="high"] .subpages a,
[data-contrast="high"] .section-nav,
[data-contrast="high"] .search-form,
[data-contrast="high"] .ext-link { border: 1px solid #ffe600; }
[data-contrast="high"] .main-nav { border-block: 1px solid #ffe600; }
[data-contrast="high"] .hero, [data-contrast="high"] .page-head { background: #000; }
[data-contrast="high"] .hero__title, [data-contrast="high"] .hero__lead { color: #fff; }
[data-contrast="high"] .tiles .tile { background: #000; color: #fff; }
[data-contrast="high"] .line-title::after, [data-contrast="high"] .site-footer::before, [data-contrast="high"] .hero__bar { background: #ffe600; }
[data-contrast="high"] .calendar__table td.has-event a { background: #ffe600; color: #000; }
[data-contrast="high"] .calendar__table td.is-today { outline: 2px solid #ffe600; }
[data-contrast="high"] .event__date { border: 1px solid #ffe600; }
[data-contrast="high"] .site-footer, [data-contrast="high"] .footer-bar { border-color: #ffe600; }

/* ---------- Rozmiar tekstu (A− / A / A+) ---------- */
[data-fs="-1"] { font-size: 90%; }
[data-fs="1"]  { font-size: 112.5%; }
[data-fs="2"]  { font-size: 125%; }
[data-fs="3"]  { font-size: 137.5%; }

[data-links="underline"] a { text-decoration: underline !important; text-underline-offset: .18em; }

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.3; margin: 0 0 .6em; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
b, strong { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Linki pomijające ---------- */
.skip-links a {
	position: absolute; left: 8px; top: -60px; z-index: 1000;
	background: var(--accent); color: #000; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	transition: top .15s;
}
.skip-links a:focus { top: 0; }

/* ---------- Komunikat ---------- */
.alert-bar { background: var(--tint); color: var(--brand-ink); padding: .6rem 0; text-align: center; border-bottom: 1px solid var(--line); }

/* ---------- Pasek górny ---------- */
.topbar { background: var(--soft); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar__date { margin: 0; display: flex; gap: .45rem; align-items: center; color: var(--muted); }
.topbar__tools { display: flex; align-items: center; gap: .75rem; }
.a11y { display: flex; gap: .15rem; }
.a11y__btn {
	min-width: 40px; height: 40px; padding: 0 .45rem; display: inline-flex; align-items: center; justify-content: center;
	font: 400 .875rem/1 var(--font); color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.a11y__btn:hover { background: var(--bg); border-color: var(--line); }
.a11y__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[data-contrast="high"] .a11y__btn[aria-pressed="true"] { background: #ffe600; color: #000; }
.topbar__social { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: #1877f2; border-radius: 50%; }
[data-contrast="high"] .topbar__social { color: #ffe600; }
.topbar__social .icon { width: 1.35em; height: 1.35em; }

/* ---------- Nagłówek ---------- */
.masthead { background: var(--bg); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; }
.site-branding { flex: 0 1 auto; min-width: 0; }
.custom-logo-link { display: block; }
.custom-logo { display: block; width: auto; max-width: min(100%, 440px); max-height: 108px; }
.masthead__side { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; justify-content: flex-end; }

.search-form { display: flex; width: min(100%, 340px); border: 1px solid var(--line); border-radius: 999px; background: var(--soft); overflow: hidden; transition: border-color .15s, background .15s, box-shadow .15s; }
.search-form:focus-within { border-color: var(--brand); background: var(--bg); box-shadow: 0 0 0 4px rgba(179, 32, 46, .08); }
.search-form__field { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; padding: .7rem 1.2rem; }
.search-form__field:focus { outline: none; }
.search-form__submit { border: 0; background: transparent; color: var(--brand-ink); padding: 0 1.1rem; cursor: pointer; }
.search-form__submit .icon { width: 1.25em; height: 1.25em; }

.ext-links { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; }
.ext-link {
	display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); text-decoration: none; font-size: .9rem; background: var(--bg); transition: border-color .15s, color .15s;
}
.ext-link strong { font-weight: 400; }
.ext-link:hover { border-color: var(--brand); color: var(--brand-ink); }
.ext-link .icon { color: var(--brand-ink); }

.nav-toggle { display: none; align-items: center; gap: .5rem; padding: .6rem 1rem; font: 400 1rem var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }

/* ---------- Menu główne: jasne, wyśrodkowane, z separatorami; przyklejane ---------- */
.main-nav { background: var(--bg); border-block: 1px solid var(--line); position: sticky; top: 0; z-index: 60; transition: box-shadow .2s; }
.admin-bar .main-nav { top: 32px; }
.main-nav.is-stuck { box-shadow: 0 8px 24px -16px rgba(30, 34, 44, .35); }
.main-nav > .container { max-width: 1280px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav .menu > li { position: relative; display: flex; align-items: stretch; }
.main-nav .menu > li + li::before { content: ""; position: absolute; left: 0; top: 34%; height: 32%; width: 1px; background: var(--line); }
.main-nav a {
	position: relative; display: block; padding: 1rem .72rem; color: var(--ink); text-decoration: none;
	font-family: var(--head); font-weight: 400; font-size: .9rem; white-space: nowrap;
}
.main-nav .menu > li.menu-item-has-children > a { padding-right: 1.6rem; }
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: .72rem; right: .72rem; bottom: -1px; height: 2px; background: var(--brand);
	transform: scaleX(0); transform-origin: center; transition: transform .2s;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li:focus-within > a,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current_page_item > a,
.main-nav .menu > li.current-page-ancestor > a { color: var(--brand-ink); }
.main-nav .menu > li > a:hover::after,
.main-nav .menu > li:focus-within > a::after,
.main-nav .menu > li.current-menu-item > a::after,
.main-nav .menu > li.current-menu-ancestor > a::after,
.main-nav .menu > li.current_page_item > a::after,
.main-nav .menu > li.current-page-ancestor > a::after { transform: scaleX(1); }
[data-contrast="high"] .main-nav .menu > li > a::after { background: #ffe600; }

.submenu-toggle { position: absolute; right: .15rem; top: 0; bottom: 0; width: 24px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.submenu-toggle::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -5px 0 0 -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s;
}
.menu-item-has-children.is-open > .submenu-toggle::before { transform: rotate(-135deg); margin-top: -1px; }

.main-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; min-width: 290px; background: var(--bg); color: var(--ink);
	position: absolute; left: 0; top: 100%; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius);
	display: none; z-index: 2;
}
.main-nav .sub-menu a { color: var(--ink); font-family: var(--font); font-size: .97rem; padding: .6rem .9rem; white-space: normal; border-radius: 8px; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--tint); color: var(--brand-ink); }
[data-contrast="high"] .main-nav .sub-menu { border: 2px solid #ffe600; }
[data-contrast="high"] .main-nav .sub-menu a { color: #ffe600; }
.main-nav .menu-item-has-children.is-open > .sub-menu,
.main-nav .menu > li.menu-item-has-children:hover > .sub-menu { display: block; }
.main-nav .menu > li:last-child > .sub-menu, .main-nav .menu > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }

/* ---------- Treść ---------- */
.site-main { min-height: 50vh; }
.site-main:focus { outline: none; }

.section { padding-block: 4.5rem; }
.section-title { font-family: var(--head); text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 300; margin-bottom: 2.5rem; position: relative; padding-bottom: 1rem; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 2px; margin-left: -22px; background: var(--brand); border-radius: 2px; }
.section-more { text-align: center; margin: 2.5rem 0 0; }
[data-contrast="high"] .section-title::after { background: #ffe600; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.5rem;
	font: 400 .95rem var(--font); letter-spacing: .01em; text-decoration: none;
	border: 1px solid var(--brand); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); box-shadow: 0 6px 16px rgba(179, 32, 46, .22); }
.btn--outline { background: transparent; color: var(--brand-ink); }
.btn--outline:hover { background: var(--brand); color: var(--on-brand); }
.btn--light { background: var(--bg); color: var(--brand-ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--sm { padding: .45rem 1.1rem; font-size: .88rem; }
.empty { text-align: center; color: var(--muted); }

.meta { margin: 0 0 .4rem; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.meta__date { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.meta .icon { color: var(--brand-ink); }

/* ---------- Nagłówek strony głównej ---------- */
.hero { position: relative; background: var(--hero-bg); padding-block: 4.5rem 5rem; overflow: hidden; }
.hero.has-tiles { padding-bottom: 10rem; }
.hero--photo { background: #f4efe7; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: 0; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 251, 246, .95) 0%, rgba(255, 251, 246, .86) 36%, rgba(255, 251, 246, .35) 60%, rgba(255, 251, 246, 0) 78%); }
.hero--photo .hero__inner { z-index: 2; }
[data-contrast="high"] .hero__img, [data-contrast="high"] .hero--photo::before { display: none; }
.hero__inner { position: relative; }
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 400; line-height: 1.14; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.hero__title span { color: var(--brand-ink); }
.hero__bar { display: block; width: min(330px, 70%); height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) 0 26%, rgba(43, 47, 54, .14) 26%); margin-bottom: 1.5rem; }
.hero__lead { max-width: 560px; font-size: 1.12rem; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------- Kafelki działów (nachodzą na nagłówek) ---------- */
.tiles-wrap { position: relative; z-index: 2; margin-top: -7rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 36px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(120, 50, 40, .35); }
.tile { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 2rem 1.75rem 1.6rem; color: var(--ink); transition: filter .2s; }
.tile:nth-child(4n+1) { background: var(--t1); }
.tile:nth-child(4n+2) { background: var(--t2); }
.tile:nth-child(4n+3) { background: var(--t3); }
.tile:nth-child(4n+4) { background: var(--t4); }
.tile:hover { filter: brightness(1.04) saturate(1.05); }
.tile:focus-within { outline: 3px solid var(--focus); outline-offset: -6px; }
.tile__icon .icon { width: 46px; height: 46px; stroke-width: 1.25; }
.tile__title { font-size: 1.22rem; line-height: 1.3; margin: .4rem 0 0; }
.tile__title a { color: inherit; text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; }
.tile__title a:focus-visible { outline: none; }
.tile__text { margin: 0; font-size: .94rem; line-height: 1.55; }
.tile__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; }
.tile__more .icon { transition: transform .2s; }
.tile:hover .tile__more .icon { transform: translateX(4px); }

/* ---------- Aktualności + kolumna boczna ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding-block: 4rem 5rem; align-items: start; }
.line-title { display: flex; align-items: center; gap: 1.25rem; font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 300; margin-bottom: 1.75rem; }
.line-title::after { content: ""; flex: 1; height: 4px; border-radius: 4px; background: var(--warm); opacity: .85; }

.news-rows { display: flex; flex-direction: column; gap: 1.1rem; }
.row-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: .9rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.row-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.row-card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); }
.row-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row-card__media .thumb-fallback img { width: 30%; height: auto; object-fit: contain; }
.row-card__body { padding-right: .75rem; }
.row-card__title { font-size: 1.12rem; line-height: 1.4; margin: 0 0 .35rem; }
.row-card__title a { color: var(--ink); text-decoration: none; }
.row-card__title a:hover { color: var(--brand-ink); }
.row-card__excerpt { margin: .2rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-news__more { margin: 2rem 0 0; }
.news-rows--page { max-width: 900px; }

.thumb-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--hero-bg); }
.thumb-fallback img { width: 34%; max-width: 120px; height: auto; object-fit: contain; }
[data-contrast="high"] .thumb-fallback { background: #000; }

.meta { margin: 0 0 .4rem; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.meta__date { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.meta .icon { color: var(--brand-ink); }

.home-side { display: flex; flex-direction: column; gap: 1.5rem; }
.side-box { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.side-box__title { font-size: 1.12rem; margin: 0 0 1rem; }
.side-box p { margin: 0 0 .6rem; font-size: .96rem; }
.side-box--contact, .side-box--promo { background: var(--tint); box-shadow: none; }
.side-box--promo .side-box__title { color: var(--brand-ink); }
.side-line { display: flex; gap: .55rem; align-items: center; }
.side-line .icon { color: var(--brand-ink); }

.eservices { list-style: none; margin: 0; padding: 0; }
.eservices li + li { border-top: 1px solid var(--line); }
.eservices a { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.eservices a:hover { color: var(--brand-ink); }
.eservices__badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 36px; padding: 0 .5rem; border-radius: 8px; background: var(--soft); color: var(--brand-ink); font-family: var(--head); font-size: .82rem; }
.eservices__badge--bip { background: var(--brand); color: var(--on-brand); font-size: .95rem; letter-spacing: .02em; }

.side-events { list-style: none; margin: 1rem 0 0; padding: 0; }
.side-events li { padding: .75rem 0; border-top: 1px solid var(--line); }
.side-events a { color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.side-events a:hover { color: var(--brand-ink); text-decoration: underline; }

/* Kalendarz (w kolumnie bocznej) */
.calendar { display: flex; flex-direction: column; gap: .75rem; color: var(--ink); }
.calendar__head { display: flex; align-items: center; justify-content: space-between; }
.calendar__title { text-align: center; line-height: 1.15; }
.calendar__month { display: block; font-family: var(--head); font-size: 1.15rem; font-weight: 300; }
.calendar__year { display: block; font-size: .8rem; color: var(--muted); }
.calendar__nav { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
.calendar__nav:hover { background: var(--tint); color: var(--brand-ink); }
.calendar__table { width: 100%; border-collapse: separate; border-spacing: 2px; text-align: center; font-size: .88rem; table-layout: fixed; }
.calendar__table th { font-size: .75rem; font-weight: 400; color: var(--muted); padding: .25rem 0; }
.calendar__table abbr { text-decoration: none; }
.calendar__table td { border-radius: 8px; padding: .38rem 0; color: var(--ink); }
.calendar__table td.is-weekend { color: var(--muted); }
.calendar__table td.is-today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-ink); }
.calendar__table td.has-event { padding: 0; }
.calendar__table td.has-event a { display: block; padding: .38rem 0; background: var(--brand); color: var(--on-brand); border-radius: 8px; text-decoration: none; }
.calendar__table td.has-event a:hover { background: var(--brand-dark); }
.calendar__all { display: none; }

/* ---------- Programy i projekty ---------- */
.home-programs { background: var(--soft); padding-block: 4rem; }
.programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.program { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.25rem 1.4rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.program:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.program:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.program__logo { display: flex; align-items: center; justify-content: center; height: 120px; padding: .5rem; margin-bottom: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.program__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.program__logo .thumb-fallback { background: none; }
.program__title { font-size: 1.05rem; line-height: 1.4; margin: 0; }
.program__title a { color: var(--ink); text-decoration: none; }
.program__title a::after { content: ""; position: absolute; inset: 0; }
.program__title a:focus-visible { outline: none; }
.program:hover .program__title a { color: var(--brand-ink); }
.program__text { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.program__more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--brand-ink); }
.program__more .icon { transition: transform .2s; }
.program:hover .program__more .icon { transform: translateX(4px); }
.entry__content .programs { margin-top: 1.5rem; }
[data-contrast="high"] .program { border: 1px solid #ffe600; }

/* Rozwijane sekcje i obrazy w treści */
.more-details { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.more-details > summary { cursor: pointer; padding: .9rem 1.2rem; font-family: var(--head); color: var(--ink); list-style-position: inside; }
.more-details > summary:hover { color: var(--brand-ink); }
.more-details[open] > summary { border-bottom: 1px solid var(--line); }
.more-details > :not(summary) { margin-inline: 1.2rem; }
.more-details > :last-child { margin-bottom: 1.2rem; }
.entry__content .wp-block-image { margin: 1.5rem 0; }
.entry__content .wp-block-image img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry__content .wp-block-image:first-child { margin-top: 0; }
.entry__content .wp-block-table td:last-child { white-space: nowrap; }

/* ---------- Podstrony ---------- */
.page-head { background: var(--hero-bg); padding-block: 2rem 2.5rem; margin-bottom: 1rem; }
.page-title { font-family: var(--head); letter-spacing: -.02em; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 300; margin: .6rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

.content-wrap { padding-block: 2rem 5rem; }
.content-wrap.has-sidebar { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 3rem; align-items: start; }
.content-wrap--narrow { max-width: 860px; }

.section-nav { background: var(--soft); border-radius: var(--radius); overflow: hidden; padding: .5rem; }
.section-nav__title { margin: 0; font-size: 1rem; font-weight: 400; }
.section-nav__title a { display: block; padding: .85rem 1rem; color: var(--brand-ink); text-decoration: none; letter-spacing: .01em; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav li ul { padding-left: 1rem; }
.section-nav a { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; font-size: .95rem; border-radius: 8px; }
.section-nav a:hover { background: var(--bg); color: var(--brand-ink); }
.section-nav .current_page_item > a { background: var(--bg); color: var(--brand-ink); box-shadow: var(--shadow-sm); }

.entry__content { font-size: 1.0625rem; }
.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { font-size: 1.6rem; font-weight: 300; margin-top: 2.25rem; }
.entry__content h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.entry__content li { margin-bottom: .4em; }
.entry__content table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; font-size: .95rem; }
.entry__content th, .entry__content td { border-bottom: 1px solid var(--line); padding: .75rem .9rem; text-align: left; vertical-align: top; }
.entry__content th { background: var(--soft); font-weight: 400; color: var(--muted); }
.entry__content blockquote { margin: 1.75rem 0; padding: .75rem 1.5rem; border-left: 3px solid var(--brand); background: var(--soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry__figure { margin: 0 0 2rem; }
.entry__figure img { width: 100%; border-radius: var(--radius); display: block; }
.wp-block-table, .entry__content .alignwide { overflow-x: auto; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; }
.post-nav__next { text-align: right; margin-left: auto; }

.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; }
.page-numbers { min-width: 42px; padding: .55rem .9rem; text-align: center; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--soft); }
a.page-numbers:hover { background: var(--tint); color: var(--brand-ink); }
.page-numbers.current { background: var(--brand); color: var(--on-brand); }

.search-results { list-style: none; margin: 0 0 2rem; padding: 0; }
.search-results li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.search-results h2 { font-size: 1.25rem; margin-bottom: .25rem; }

.tabs { display: flex; gap: .5rem; margin-bottom: 2rem; }
.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.event { display: grid; grid-template-columns: 78px 1fr; gap: 1.4rem; padding: 1.25rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); align-items: center; }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--tint); color: var(--brand-ink); border-radius: var(--radius-sm); padding: .65rem .4rem; line-height: 1; }
.event__day { font-size: 1.9rem; font-weight: 300; }
.event__month { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .3rem; }
.event__body h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.event__body h2 a { text-decoration: none; color: var(--ink); }
.event__body h2 a:hover { color: var(--brand-ink); }
.event__body p:last-child { margin: 0; }
.event-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--soft); border-radius: var(--radius); }
.event-facts dt { font-size: .8rem; letter-spacing: .05em; color: var(--muted); }
.event-facts dt .icon { color: var(--brand-ink); }
.event-facts dd { margin: 0; }

/* ---------- Stopka (jasna, z ciepłym paskiem u góry) ---------- */
.site-footer { position: relative; background: var(--soft); color: var(--ink); margin-top: 2rem; }
.site-footer::before { content: ""; display: block; height: 5px; background: var(--warm); }
.site-footer:focus { outline: none; }
.footer-main { padding-block: 3.5rem 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.35fr; gap: 3rem; align-items: start; }
.footer-title { font-size: 1.05rem; font-weight: 400; margin-bottom: 1.25rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.footer-line { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .75rem; }
.footer-line .icon { margin-top: .3em; color: var(--brand-ink); }
.footer-small { font-size: .94rem; margin-bottom: .6rem; color: var(--muted); }
.footer-strong { color: var(--ink); }
.footer-ids { margin: 1.25rem 0 0; font-size: .9rem; }
.footer-ids div { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.footer-ids dt { color: var(--muted); }
.footer-ids dt::after { content: ":"; }
.footer-ids dd { margin: 0; }
.hours { list-style: none; margin: 0; padding: 0; font-size: .94rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px solid var(--line); }
.hours li span:first-child { color: var(--muted); }
.footer-map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-sm); background: var(--bg); }
.footer-col--about { display: flex; justify-content: flex-end; }
.footer-logo { width: 100%; max-width: 300px; height: auto; }
.footer-bar { background: var(--bg); padding-block: 1.1rem; font-size: .88rem; border-top: 1px solid var(--line); }
.footer-bar__inner { display: flex; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; }
.footer-bar__inner > nav { margin-right: auto; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-menu a { color: var(--muted); text-decoration: none; }
.footer-menu a:hover { color: var(--brand-ink); text-decoration: underline; }
.copyright { margin: 0; color: var(--muted); }
.copyright abbr { text-decoration: none; }
.credit { margin: 0; color: var(--muted); }
.credit a { color: var(--muted); }
.credit a:hover { color: var(--brand-ink); }
[data-contrast="high"] .footer-menu a, [data-contrast="high"] .copyright { color: #ffe600; }

/* ---------- Shortcode’y ---------- */
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 1.75rem; max-width: 560px; }
.contact-card h2 { font-size: 1.3rem; margin-top: 0; }
.contact-card h3 { font-size: 1rem; margin-top: 1.5rem; }
.contact-card address p { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; }
.contact-card .icon { margin-top: .3em; color: var(--brand-ink); }
.hours--light { list-style: none; padding: 0; margin: 0; }
.hours--light li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hours--light li span:first-child { color: var(--muted); }

.subpages { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.subpages a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, color .2s; }
.subpages a:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--brand-ink); }
.subpages .icon { color: var(--brand-ink); }
.sitemap, .sitemap ul { list-style: square; }

.info-note { background: var(--tint); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.info-note strong { font-weight: 400; color: var(--brand-ink); }
[data-contrast="high"] .info-note { background: #000; border: 1px solid #ffe600; }
.draft-note { background: #fffbe6; border-radius: var(--radius-sm); border-left: 3px solid #e2c94a; padding: .9rem 1.2rem; font-size: .95rem; color: #4a4100; }
.draft-note strong { font-weight: 400; }
[data-contrast="high"] .draft-note { background: #000; color: #ffe600; border: 1px solid #ffe600; }

/* ---------- Responsywność ---------- */
@media (max-width: 1240px) {
	.ext-links { display: none; }
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; position: static; border-top: 0; }
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu > li { flex-wrap: wrap; border-top: 1px solid var(--line); }
	.main-nav .menu > li:first-child { border-top: 0; }
	.main-nav .menu > li + li::before { display: none; }
	.main-nav .menu > li > a, .main-nav .menu > li.menu-item-has-children > a { flex: 1; text-align: left; padding: 1rem .25rem; font-size: 1rem; }
	.main-nav .menu > li > a::after { display: none; }
	.submenu-toggle { position: static; width: 52px; }
	.main-nav .sub-menu { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-radius: 0; background: var(--soft); padding: .25rem 0; }
	.main-nav .sub-menu a { padding-left: 1.5rem; }
	.main-nav .menu > li.menu-item-has-children:hover > .sub-menu { display: none; }
	.main-nav .menu > li.menu-item-has-children.is-open > .sub-menu { display: block; }
	[data-contrast="high"] .main-nav .sub-menu { background: #000; border: 0; }
}

@media (max-width: 1100px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 28px; }
	.home-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
}

@media (max-width: 960px) {
	.home-grid { grid-template-columns: 1fr; padding-block: 3rem 4rem; }
	.home-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.content-wrap.has-sidebar { grid-template-columns: 1fr; gap: 2rem; }
	.masthead__inner { padding-block: .9rem; }
	.custom-logo { max-height: 84px; }
	.section { padding-block: 3.25rem; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-col--map, .footer-col--about { grid-column: 1 / -1; justify-content: flex-start; }
	.footer-map { aspect-ratio: 16 / 7; }
}

@media (max-width: 720px) {
	body { font-size: 1rem; }
	.masthead__inner { flex-wrap: wrap; gap: .75rem 1rem; }
	.custom-logo { max-height: 62px; }
	.masthead__side { order: 3; flex-basis: 100%; margin-top: 0; }
	.search-form { width: 100%; }
	.topbar__inner { justify-content: center; }
	.topbar__date { display: none; }
	.hero { padding-block: 2.75rem 3rem; }
	.hero.has-tiles { padding-bottom: 6rem; }
	.hero--photo::before { background: linear-gradient(rgba(255, 251, 246, .88), rgba(255, 251, 246, .8)); }
	.hero__img { object-position: center; }
	.tiles-wrap { margin-top: -4rem; }
	.tiles { grid-template-columns: 1fr; border-radius: 24px; }
	.tile { padding: 1.4rem 1.4rem 1.25rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .3rem; align-items: center; }
	.tile__icon .icon { width: 36px; height: 36px; }
	.tile__title { margin: 0; }
	.tile__text, .tile__more { grid-column: 1 / -1; }
	.tile__more { padding-top: 0; }
	.home-side { grid-template-columns: 1fr; }
	.row-card { grid-template-columns: 104px minmax(0, 1fr); gap: 1rem; padding: .7rem; }
	.row-card__title { font-size: 1rem; }
	.row-card__excerpt { -webkit-line-clamp: 2; font-size: .9rem; }
	.footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
	.event { grid-template-columns: 62px 1fr; gap: .9rem; }
	.subpages { grid-template-columns: 1fr; }
	.footer-menu { flex-direction: column; gap: .15rem; }
	.footer-menu a { display: inline-block; padding: .35rem 0; }
}

@media (max-width: 480px) {
	.container { padding-inline: 16px; }
	.row-card__excerpt { display: none; }
}

@media print {
	.topbar, .main-nav, .nav-toggle, .skip-links, .site-footer .footer-bar, .search-form { display: none !important; }
	a { color: #000; }
}

/* Tabele z edytora: lekkie linie zamiast domyślnych obramowań WordPressa */
.entry__content .wp-block-table table { border-collapse: collapse; border: 0; }
.entry__content .wp-block-table thead { border-bottom: 0; }
.entry__content .wp-block-table th,
.entry__content .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: .75rem .9rem; }
.entry__content .wp-block-table th { background: var(--soft); color: var(--muted); font-weight: 400; text-align: left; }

/* Galeria zdjęć we wpisach i adnotacja o źródle */
.entry__content .wp-block-gallery { margin: 2rem 0; gap: .6rem; }
.entry__content .wp-block-gallery .wp-block-image img { border-radius: var(--radius-sm); }
.entry__content .wp-block-gallery .wp-block-image a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.source-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.entry__content .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.entry__content .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0; aspect-ratio: 4 / 3; }
.entry__content .wp-block-gallery.has-nested-images figure.wp-block-image a,
.entry__content .wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
