/* ==========================================================================
   HDK Karczew – style motywu (mobile-first)
   ========================================================================== */

:root {
	--red: #d71f2b;
	--red-600: #b8161f;
	--red-700: #96111a;
	--red-50: #fdecee;
	--ink: #1d2127;
	--text: #3b414a;
	--muted: #6b7280;
	--bg: #ffffff;
	--bg-soft: #f5f5f7;
	--line: #e7e7eb;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px -12px rgba(29, 33, 39, .18);
	--shadow-lg: 0 24px 60px -20px rgba(29, 33, 39, .35);
	--container: 1200px;
	--gutter: 20px;
	--header-h: 72px;
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* zgodność z wtyczką */
	--hdk-red: var(--red);
	--hdk-red-dark: var(--red-600);
	--hdk-ink: var(--ink);
	--hdk-muted: var(--muted);
	--hdk-line: var(--line);
	--hdk-radius: var(--radius-sm);
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.screen-reader-text:not(:focus) {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }
.narrow-wide { max-width: calc(920px + var(--gutter) * 2); }
.center { text-align: center; }
p.center { margin-top: 28px; }

.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1024px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section--muted { background: var(--bg-soft); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 .5rem;
}
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0; }
.section-lead { color: var(--muted); margin: .6rem 0 0; max-width: 640px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .85rem; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(215, 31, 43, .7); }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--red); }
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(3px); }

.pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 3px 10px; border-radius: 99px; background: var(--red-50); color: var(--red-600); }

/* ---------- Nagłówek ---------- */
.site-header {
	/* bez backdrop-filter – tworzyłby kontener dla menu mobilnego (position: fixed) */
	position: sticky; top: 0; z-index: 100; background: #fff;
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.25); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand-mark, .brand-logo { flex: none; width: 44px; height: auto; }
@media (min-width: 768px) { .brand-mark, .brand-logo { width: 52px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 700; font-size: .95rem; color: var(--ink); }
.brand-sub { font-size: .74rem; color: var(--muted); }
@media (min-width: 768px) { .brand-name { font-size: 1.05rem; } .brand-sub { font-size: .8rem; } }
.brand:hover .brand-name { color: var(--red); }

.nav-toggle {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
	border: 0; border-radius: 12px; background: var(--bg-soft); color: var(--ink); cursor: pointer;
}
.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-flex; }

/* Menu mobilne */
.site-nav {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff;
	padding: 12px var(--gutter) 32px; overflow-y: auto;
	opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
@media (min-width: 783px) { .admin-bar .site-nav { top: calc(var(--header-h) + 32px); } }
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }

.site-nav .menu, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { border-bottom: 1px solid var(--line); position: relative; }
.site-nav .menu a {
	display: block; padding: 14px 4px; font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--red); }
.site-nav .sub-menu { display: none; padding: 0 0 10px 14px; }
.site-nav .sub-menu a { font-size: .95rem; font-weight: 500; padding: 8px 4px; color: var(--text); }
.site-nav li.is-open > .sub-menu { display: block; }
.submenu-toggle {
	position: absolute; right: 0; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
}
.submenu-toggle .icon { transition: transform .2s; }
li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
.site-nav .menu li:has(> a[href*="facebook.com"]) { display: none; }

.site-nav__extra { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.social-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
	background: var(--bg-soft); color: var(--ink); text-decoration: none; transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--red); color: #fff; }
.pck-badge img { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; }

@media (min-width: 1200px) {
	.nav-toggle { display: none; }
	.site-nav {
		position: static; inset: auto; padding: 0; overflow: visible; background: transparent;
		opacity: 1; visibility: visible; transform: none; display: flex; align-items: center; gap: 18px;
	}
	.site-nav .menu { display: flex; align-items: center; gap: 2px; }
	.site-nav .menu > li { border: 0; }
	.site-nav .menu > li > a { padding: 10px 10px; font-size: .9rem; font-weight: 500; border-radius: 10px; position: relative; white-space: nowrap; }
	.brand-name, .brand-sub { white-space: nowrap; }
	.site-nav .menu > li > a::after {
		content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px;
		background: var(--red); transform: scaleX(0); transition: transform .2s;
	}
	.site-nav .menu > li > a:hover::after,
	.site-nav .menu > .current-menu-item > a::after,
	.site-nav .menu > .current_page_item > a::after,
	.site-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
	.site-nav .menu-item-has-children > a { padding-right: 28px; }
	.submenu-toggle { top: 50%; right: 4px; width: 24px; height: 24px; transform: translateY(-50%); }
	.site-nav .sub-menu {
		display: block; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: #fff;
		border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
	}
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.site-nav .sub-menu a { padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
	.site-nav .sub-menu a:hover { background: var(--bg-soft); }
	.site-nav__extra { margin: 0; padding-left: 14px; border-left: 1px solid var(--line); }
}

/* ---------- Hero (strona główna) ---------- */
.hero {
	position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden;
	padding: 72px 0 128px;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.14), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(0,0,0,.25), transparent 60%),
		linear-gradient(135deg, #e0313c 0%, var(--red) 45%, var(--red-700) 100%);
}
.hero::before { /* delikatny wzór kropli */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24'%3E%3Cpath d='M12 4s-5 5.6-5 8.9a5 5 0 0 0 10 0C17 9.6 12 4 12 4Z' fill='%23fff'/%3E%3C/svg%3E");
	background-size: 56px 56px;
}
.hero--image { background: #1d2127 var(--hero-img) center / cover no-repeat; }
.hero--image::before {
	opacity: 1; background: linear-gradient(180deg, rgba(20,22,27,.55) 0%, rgba(20,22,27,.7) 100%);
}
@media (min-width: 768px) { .hero { padding: 110px 0 170px; } }
.hero__inner { max-width: 860px; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 99px;
	background: rgba(255,255,255,.16); font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.hero__title { color: #fff; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.12; margin: 0 0 18px; }
.hero__text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); opacity: .92; max-width: 640px; margin: 0 auto 28px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__actions .btn { min-width: 230px; }

/* ---------- Najbliższa akcja ---------- */
.next-event-wrap { position: relative; z-index: 2; margin-top: -88px; }
@media (min-width: 768px) { .next-event-wrap { margin-top: -110px; } }
.next-event {
	display: grid; gap: 20px; padding: 22px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
	grid-template-columns: auto 1fr; align-items: center;
}
.next-event__tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; align-self: start;
	width: 72px; height: 84px; border-radius: 18px; color: #fff; line-height: 1;
	background: linear-gradient(160deg, #e0313c, var(--red-700));
}
.next-event__day { font-size: 1.9rem; font-weight: 700; }
.next-event__mon { font-size: .78rem; margin-top: 6px; font-weight: 600; }
.next-event__year { font-size: .7rem; opacity: .8; margin-top: 3px; }
.next-event__label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.next-event__title { font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem); margin: 0 0 6px; }
.next-event__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.next-event__meta li { display: inline-flex; align-items: flex-start; gap: 6px; }
.next-event__meta .icon { margin-top: 1px; }
@media (max-width: 599px) { .next-event { gap: 16px; padding: 18px; } .next-event__meta { flex-direction: column; } }
.next-event__meta .icon { color: var(--red); flex: none; }
.next-event__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.next-event__actions .btn { flex: 1 1 200px; }
@media (min-width: 900px) {
	.next-event { grid-template-columns: auto 1fr auto; padding: 26px 30px; gap: 28px; }
	.next-event__tile { width: 104px; height: 112px; align-self: center; }
	.next-event__day { font-size: 2.6rem; }
	.next-event__actions { grid-column: auto; flex-direction: column; }
	.next-event__actions .btn { flex: none; }
}

/* ---------- Karty 01/02/03 ---------- */
.info-cards-section { padding-top: 40px; }
.info-cards { display: grid; gap: 52px 24px; padding-top: 30px; }
@media (min-width: 768px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }
.info-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start;
	padding: 40px 26px 28px; border-radius: var(--radius); color: #fff;
	background: linear-gradient(160deg, #dc2a35 0%, var(--red-600) 100%); box-shadow: 0 18px 40px -22px rgba(184, 22, 31, .8);
	transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(184, 22, 31, .9); }
.info-card__num {
	position: absolute; top: 0; left: 22px; transform: translateY(-58%);
	font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--red); letter-spacing: -.01em;
	/* wyraźny biały obrys – liczba nie zlewa się z czerwoną kartą */
	-webkit-text-stroke: 5px #fff; paint-order: stroke fill;
	text-shadow: 0 6px 14px rgba(184, 22, 31, .25);
}
.info-card__title { color: #fff; font-size: 1.3rem; margin: 0 0 10px; }
.info-card__text { opacity: .92; font-size: .95rem; margin: 0 0 22px; }
.info-card__link { margin-top: auto; }

/* ---------- Terminarz (nadpisanie stylów wtyczki) ---------- */
.hdk-events--cards { grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .hdk-events--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .section .hdk-events--cards { grid-template-columns: repeat(3, 1fr); } }
.sidebar .hdk-events--cards { grid-template-columns: 1fr !important; gap: 10px; }
.hdk-event {
	gap: 16px; padding: 14px; margin: 0; border-radius: var(--radius-sm); border-color: var(--line);
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.hdk-event:hover { box-shadow: var(--shadow); border-color: transparent; }
.hdk-events__items { display: grid; gap: 10px; }
.hdk-events__month { margin: 2rem 0 .8rem; color: var(--ink); font-size: .85rem; }
.hdk-date-tile { border-radius: 14px; background: linear-gradient(160deg, #e0313c, var(--red-600)); }
.hdk-event__title { font-size: .98rem; }
.hdk-event__badge { background: var(--red-50); color: var(--red-600); }
.hdk-events--list .hdk-event { padding: 16px 18px; }

.past-events { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; background: #fff; }
.past-events summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
.past-events[open] { padding-bottom: 18px; }
.prepare-box { margin-top: 40px; padding: 26px; background: var(--red-50); border-color: transparent; }
.prepare-box h2 { font-size: 1.25rem; }

/* ---------- Układ z panelem bocznym ---------- */
.layout { display: grid; gap: 40px; }
@media (min-width: 1024px) {
	.layout--sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
	.layout--full .layout__main { max-width: 900px; margin: 0 auto; width: 100%; }
	.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Karty wpisów ---------- */
.post-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.post-list { display: grid; gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--red); }
.post-card.has-image .post-card__body { border-top: 0; }
.post-card__meta { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.post-card__title { font-size: 1.08rem; margin: 0 0 10px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* cała karta klikalna */
.post-card__title a:hover { color: var(--red); }
.post-card__excerpt { font-size: .92rem; color: var(--text); margin: 0 0 14px; }
.post-card .link-more { margin-top: auto; font-size: .9rem; position: relative; z-index: 1; }
@media (min-width: 768px) {
	.post-list .post-card.has-image { flex-direction: row; }
	.post-list .post-card.has-image .post-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
}

/* ---------- Panel boczny / widżety ---------- */
.sidebar { display: grid; gap: 20px; align-content: start; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-size: .94rem; }
.widget-title {
	font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px;
	padding-bottom: 12px; border-bottom: 2px solid var(--red-50); position: relative;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--red); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { border-bottom: 1px solid var(--line); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { display: block; padding: 10px 22px 10px 0; color: var(--text); text-decoration: none; position: relative; line-height: 1.45; }
.widget ul li a::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
	border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .35;
}
.widget ul li a:hover { color: var(--red); }
.widget ul li a:hover::after { opacity: 1; }
.widget img { border-radius: var(--radius-sm); }
.widget_sp_image, .widget_media_image { padding: 0; overflow: hidden; border: 0; background: transparent; }
.widget_sp_image img, .widget_media_image img { display: block; width: 100%; border-radius: var(--radius); }
.widget-more { margin: 14px 0 0; }
.widget .hdk-events__month { margin-top: 1rem; }
.widget ul.hdk-events li, .widget ul.hdk-events__items li { border-bottom: 1px solid var(--line); }
.widget .hdk-event { border: 1px solid var(--line) !important; }
.widget .hdk-event__title a { padding: 0; display: inline; }
.widget .hdk-event__title a::after { display: none; }
.widget-hdk-next { background: var(--bg-soft); border-color: transparent; }

/* ---------- Nagłówek podstron (czerwony, jak baner strony głównej) ---------- */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 320px at 90% -20%, rgba(255,255,255,.14), transparent 60%),
		radial-gradient(700px 300px at -10% 120%, rgba(0,0,0,.22), transparent 60%),
		linear-gradient(135deg, #e0313c 0%, var(--red) 45%, var(--red-700) 100%);
	padding: 34px 0 38px;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24'%3E%3Cpath d='M12 4s-5 5.6-5 8.9a5 5 0 0 0 10 0C17 9.6 12 4 12 4Z' fill='%23fff'/%3E%3C/svg%3E");
	background-size: 56px 56px;
}
@media (min-width: 768px) { .page-hero { padding: 52px 0 56px; } }
.page-hero__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); margin: 0; max-width: 900px; }
.page-hero .eyebrow { color: #fff; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 99px; letter-spacing: .1em; }
.page-hero__meta, .page-hero__lead { color: rgba(255,255,255,.9); margin: 12px 0 0; max-width: 820px; }
.page-hero__search { margin-top: 18px; max-width: 520px; }
.page-hero .search-form { border-color: transparent; }
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .82rem; color: rgba(255,255,255,.75); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Treść wpisów i stron ---------- */
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }
.entry-content { font-size: 1.02rem; overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.55rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.08rem; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content img { border-radius: 10px; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .94rem; display: block; overflow-x: auto; }
@media (min-width: 768px) { .entry-content table { display: table; } }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg-soft); color: var(--ink); }
.entry-content iframe { max-width: 100%; border: 0; }
.entry-content .ead-preview, .entry-content .ead-document { max-width: 100%; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 1em; max-width: 100%; } }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }

/* Galerie (klasyczne i blokowe) */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 0 0 1.5em; }
@media (min-width: 640px) {
	.gallery-columns-3, .gallery-columns-4, .gallery-columns-5, .gallery-columns-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
	.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
	.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
}
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-item { margin: 0; width: auto !important; max-width: none !important; }
.gallery-icon a, .gallery-icon img { display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 0 !important; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.gallery br { display: none; }

/* Albumy (szablon Galeria) */
.album-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 24px; }
.album { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.album:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--red); }
.album__media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); overflow: hidden; }
.album__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.album__title { padding: 14px 16px; font-weight: 600; font-size: .95rem; line-height: 1.35; }

/* Nawigacja wpisów, paginacja */
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: right; } }
.post-navigation a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); height: 100%; }
.post-navigation a:hover { border-color: var(--red); }
.nav-label { display: block; font-size: .78rem; color: var(--muted); }
.nav-title { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* Wyszukiwarka */
.search-form { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.search-field { flex: 1; min-width: 0; border: 0; padding: 12px 18px; background: transparent; outline: none; }
.search-submit { border: 0; background: var(--red); color: #fff; width: 52px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.search-form:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.empty-state { padding: 28px; }

/* Komentarze */
.comments { margin-top: 48px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.comment-form .submit { background: var(--red); color: #fff; border: 0; border-radius: 99px; padding: 12px 24px; font-weight: 600; cursor: pointer; }

/* ---------- Sponsorzy ---------- */
.sponsors-band { padding: 56px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.sponsors-band .section-head { margin-bottom: 26px; }
.sponsors-band .hdk-sponsors--slider { padding: 4px 0; }
.hdk-sponsors--slider .hdk-sponsor { width: 170px; height: 100px; border-color: var(--line); transition: box-shadow .2s; }
.hdk-sponsors--slider .hdk-sponsor:hover { box-shadow: var(--shadow); }
.hdk-sponsor__img { transition: transform .25s; }
.hdk-sponsor:hover .hdk-sponsor__img { transform: scale(1.05); }

/* ---------- Stopka ---------- */
.site-footer { background: #16181d; color: #b8bcc4; font-size: .93rem; }
.site-footer a { color: #e6e7ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr .8fr; gap: 48px; } }
.site-footer .brand { margin: 0 0 16px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #9ba0a9; }
.site-footer .brand-mark path:first-child { stroke: #ff4b55; }
.site-footer .brand-mark path:last-child { fill: #ff4b55; }
.site-footer .brand:hover { text-decoration: none; }
.footer-title { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 16px; }
.footer-menu, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { flex: none; margin-top: 3px; color: #ff4b55; }
.footer-pck img { border-radius: 50%; background: #fff; padding: 2px; }
.footer-small { font-size: .82rem; margin-top: 12px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom p { margin: 0; }

/* Do góry */
.to-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff;
	box-shadow: 0 10px 24px -8px rgba(215,31,43,.7); opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-600); color: #fff; }

/* ---------- Lightbox ---------- */
.hdk-lightbox {
	position: fixed; inset: 0; z-index: 1000; background: rgba(12, 13, 16, .94); display: flex; align-items: center; justify-content: center;
	padding: 56px 12px; opacity: 0; transition: opacity .2s;
}
.hdk-lightbox.is-open { opacity: 1; }
.hdk-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hdk-lightbox button {
	position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%;
	cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1;
}
.hdk-lightbox button:hover { background: rgba(255,255,255,.25); }
.hdk-lightbox__close { top: 12px; right: 12px; }
.hdk-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.hdk-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.hdk-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #c9ccd2; font-size: .85rem; }

/* Druk */
@media print {
	.site-header, .site-footer, .sponsors-band, .sidebar, .to-top, .hero__actions { display: none !important; }
	.layout--sidebar { display: block; }
}

/* ---------- Licznik litrów (baner) ---------- */
.widget-hdk-counter { padding: 0; border: 0; background: transparent; overflow: hidden; }
.widget-hdk-counter .hdk-counter, .widget_hdk_licznik .hdk-counter { border-radius: var(--radius); box-shadow: 0 16px 36px -22px rgba(184, 22, 31, .8); }
.widget_hdk_licznik { padding: 0; border: 0; background: transparent; }

/* Albumy – podpis i liczba zdjęć */
.album__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.album__body .album__title { padding: 0; }
.album__meta { font-size: .8rem; color: var(--muted); font-weight: 500; }
.back-link { margin-top: 32px; }
.terminarz-content { margin-top: 32px; }

/* Galerie blokowe – kursor powiększenia */
.entry-content .wp-block-gallery img, .entry-content .gallery img { cursor: zoom-in; }

/* Telefon: na stronie głównej 4 najnowsze wpisy (krótsza strona, baner bliżej) */
@media (max-width: 639px) { .post-grid .post-card:nth-child(n+5) { display: none; } }


/* ---------- Kotwica „do góry” ---------- */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- Stare treści: wyrównanie stylów wklejonych z Worda ---------- */
.entry-content [style*="font-family"] { font-family: inherit !important; }
.entry-content span[style*="font-size"], .entry-content font[size] { font-size: inherit !important; }
.entry-content span[style*="#ff6600"], .entry-content span[style*="#FF6600"] { color: var(--red) !important; }
.entry-content p[align="CENTER"], .entry-content p[align="center"] { text-align: center; }
@media (max-width: 767px) { .entry-content [style*="justify"] { text-align: left !important; } }
.entry-content h2 { position: relative; padding-top: .2em; }

/* ---------- Karty linków (listy samych linków na stronach) ---------- */
.link-cards { list-style: none !important; padding: 0 !important; margin: 0 0 1.6em; display: grid; gap: 12px; }
@media (min-width: 700px) { .link-cards { grid-template-columns: repeat(2, 1fr); } }
.layout--full .link-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.link-card { margin: 0 !important; }
.link-card > a {
	display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.link-card > a:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.link-card__icon b { font-size: .72rem; letter-spacing: .04em; }
.link-card__icon {
	flex: none; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--red-50); color: var(--red-600); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
}
.link-card--pdf .link-card__icon { background: var(--red); color: #fff; }
.link-card--internal .link-card__icon { background: var(--bg-soft); color: var(--ink); }
.link-card__logo { flex: none; width: 96px; height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.link-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.link-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.link-card__title { font-weight: 600; line-height: 1.35; }
.link-card__desc { font-size: .88rem; color: var(--text); line-height: 1.5; margin-top: 2px; }
.link-card__meta { font-size: .78rem; color: var(--muted); }
.link-card__arrow { flex: none; font-size: 1.2rem; color: var(--red); transition: transform .2s; }
.link-card > a:hover .link-card__arrow { transform: translateX(3px); }

/* ---------- Filmy YouTube ---------- */
.video-grid { list-style: none !important; padding: 0 !important; margin: 0 0 1.6em; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.video-grid li { margin: 0 !important; }
.video-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); height: 100%; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #111; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .35s, opacity .2s; }
.video-card:hover .video-card__thumb img { transform: scale(1.05); opacity: .85; }
.video-card__play {
	position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
	background: var(--red); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
}
.video-card__play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.video-card__title { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.video-card:hover .video-card__title { color: var(--red); }
.hdk-video-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hdk-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hdk-lightbox--video { display: flex; opacity: 1; }

/* ---------- Osadzone dokumenty (Embed Any Document) ---------- */
.entry-content .ead-preview { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.entry-content .ead-document { min-height: 520px; }
.entry-content .ead-document-btn, .entry-content .awsm-ead-btn { display: inline-flex; margin: 12px 0; }

/* ---------- Archiwum akcji ---------- */
.events-archive { margin-top: 48px; }
.events-archive__title { font-size: 1.4rem; margin: 0 0 14px; }
.past-events { margin-top: 10px; }
.past-events summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 6px; transition: transform .2s; }
.past-events[open] summary::after { transform: rotate(-135deg); }
.past-events summary > span:first-child { font-size: 1.05rem; }
.past-events__count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 500; }
.hdk-events--archive .hdk-event.is-past { opacity: 1; }
.hdk-events--archive .hdk-date-tile { background: #8a8f98; }
.hdk-events--archive .hdk-event--inne .hdk-date-tile { background: #4b5058; }

/* Linki – katalog stron (pełna szerokość) */
.layout--full .link-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.link-card.has-logo > a { flex-direction: column; align-items: flex-start; padding: 0; overflow: hidden; }
.link-card.has-logo .link-card__logo { width: 100%; height: 130px; padding: 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.link-card.has-logo .link-card__body { padding: 16px 18px 18px; }
.link-card.has-logo .link-card__arrow { position: absolute; right: 16px; bottom: 16px; }
.link-card.has-logo > a { position: relative; }
.entry-content h2 + .link-cards, .entry-content h3 + .link-cards { margin-top: .4em; }

/* Wyróżniony wstęp i przyciski w treści */
.entry-content p.lead { font-size: 1.12rem; color: var(--ink); }
.entry-content a.btn { text-decoration: none; }
.entry-content a.btn--primary, .entry-content a.btn--primary:hover { color: #fff; }

/* ---------- Terminarz: kalendarz + lista ---------- */
.events-split { display: grid; gap: 22px; }
@media (min-width: 1024px) {
	.events-split { grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
	.events-split .hdk-cal { position: sticky; top: calc(var(--header-h) + 20px); }
	.events-split .hdk-events--cards { grid-template-columns: repeat(2, 1fr) !important; }
}
.section--muted .hdk-cal { border-color: transparent; box-shadow: 0 10px 30px -18px rgba(29,33,39,.25); }
.events-stats { margin-top: 48px; }
.events-stats__title { font-size: 1.4rem; margin: 0 0 6px; }
.events-stats__lead { color: var(--muted); margin: 0 0 18px; }
.past-events__sum { font-size: .78rem; color: var(--muted); font-weight: 500; margin-left: 10px; }
