/* ==========================================================================
   Wśród Nas 2026 — style główne
   1. Zmienne i palety
   2. Reset i podstawy
   3. Dostępność
   4. Układ i komponenty
   5. Nagłówek
   6. Hero
   7. Aktualności / karty
   8. O nas
   9. Co robimy
   10. 1,5%
   11. Kontakt
   12. Stopka
   13. Wpisy i podstrony
   14. Archiwa, wyszukiwarka, paginacja
   15. Komentarze
   16. Widgety i wtyczki
   17. Responsywność
   ========================================================================== */

/* --- 1. Zmienne i palety ------------------------------------------------ */

:root {
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Source Serif 4", Georgia, serif;
	--r: 14px;
	--r-lg: 20px;
	--r-btn: 999px;
}

body.palette-a {
	--brand: #14523b;
	--brand-2: #2e8b6e;
	--brand-tint: #e8f1ec;
	--accent: #e9a23b;
	--accent-ink: #2b1c05;
	--accent-soft: #f2c078;

	--bg: #fbf9f4;
	--surface: #ffffff;
	--ink: #16211c;
	--muted: #56645c;
	--line: #e5dfd3;
	--line-strong: #cfc7b7;
	--field-bg: #fdfcf9;

	--header-bg: rgba(251, 249, 244, 0.88);
	--hero-bg: linear-gradient(180deg, #f7f4ec 0%, #fbf9f4 100%);
	--hero-glow: radial-gradient(900px 420px at 78% -10%, rgba(233, 162, 59, 0.14), transparent 62%);
	--footer-bg: #0f231b;

	--font-head: "Source Serif 4", Georgia, serif;

	--shadow-sm: 0 1px 2px rgba(22, 33, 28, 0.05), 0 8px 24px -18px rgba(22, 33, 28, 0.35);
	--shadow-md: 0 2px 6px rgba(22, 33, 28, 0.06), 0 22px 44px -28px rgba(22, 33, 28, 0.45);
	--shadow-lg: 0 4px 10px rgba(22, 33, 28, 0.06), 0 40px 70px -40px rgba(22, 33, 28, 0.55);
	--shadow-btn: 0 10px 24px -14px rgba(20, 82, 59, 0.9);
}

body.palette-b {
	--brand: #123a5e;
	--brand-2: #2c6e96;
	--brand-tint: #e6eff5;
	--accent: #f2c14e;
	--accent-ink: #1a2637;
	--accent-soft: #f7d98c;

	--bg: #f6f9fb;
	--surface: #ffffff;
	--ink: #10202b;
	--muted: #50646f;
	--line: #dde7ed;
	--line-strong: #c2d2dc;
	--field-bg: #fbfdfe;

	--header-bg: rgba(246, 249, 251, 0.9);
	--hero-bg: linear-gradient(180deg, #eef4f8 0%, #f6f9fb 100%);
	--hero-glow: radial-gradient(820px 400px at 82% -16%, rgba(59, 126, 161, 0.18), transparent 60%);
	--footer-bg: #0c2336;

	--font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r: 12px;
	--r-lg: 16px;
	--r-btn: 8px;

	--shadow-sm: 0 1px 2px rgba(16, 32, 43, 0.05), 0 8px 22px -18px rgba(16, 32, 43, 0.35);
	--shadow-md: 0 2px 6px rgba(16, 32, 43, 0.06), 0 20px 40px -28px rgba(16, 32, 43, 0.45);
	--shadow-lg: 0 4px 10px rgba(16, 32, 43, 0.06), 0 38px 66px -40px rgba(16, 32, 43, 0.55);
	--shadow-btn: 0 10px 22px -14px rgba(18, 58, 94, 0.85);
}

body.palette-c {
	--brand: #8c3b2e;
	--brand-2: #a9553f;
	--brand-tint: #f7e8df;
	--accent: #2e7d5b;
	--accent-ink: #ffffff;
	--accent-soft: #f3c89a;

	--bg: #fcf6ef;
	--surface: #fffdfb;
	--ink: #2e2724;
	--muted: #6b5b51;
	--line: #eee1d3;
	--line-strong: #d9c6b4;
	--field-bg: #fdf9f5;

	--header-bg: rgba(252, 246, 239, 0.9);
	--hero-bg: linear-gradient(180deg, #f9efe4 0%, #fcf6ef 100%);
	--hero-glow: radial-gradient(880px 420px at 80% -12%, rgba(169, 85, 63, 0.16), transparent 62%);
	--footer-bg: #38231f;

	--font-head: "Fraunces", Georgia, serif;

	--r: 18px;
	--r-lg: 26px;
	--r-btn: 12px;

	--shadow-sm: 0 1px 2px rgba(46, 39, 36, 0.05), 0 10px 26px -20px rgba(46, 39, 36, 0.35);
	--shadow-md: 0 2px 6px rgba(46, 39, 36, 0.06), 0 24px 46px -30px rgba(46, 39, 36, 0.45);
	--shadow-lg: 0 4px 10px rgba(46, 39, 36, 0.06), 0 42px 72px -42px rgba(46, 39, 36, 0.5);
	--shadow-btn: 0 10px 24px -14px rgba(140, 59, 46, 0.85);
}

/* --- 2. Reset i podstawy ------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	line-height: 1.14;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--ink);
	font-weight: 600;
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --- 3. Dostępność ----------------------------------------------------- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 12px 20px;
	background: var(--brand);
	color: #fff;
	border-radius: 0 0 10px 0;
}

.skip-link:focus {
	left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.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;
}

/* --- 4. Układ i komponenty --------------------------------------------- */

.wrap {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 88px 0;
}

.section--tight {
	padding: 56px 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.section-head h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--brand-2);
	margin-bottom: 14px;
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--accent);
	border-radius: 2px;
}

.lead {
	font-size: 1.09rem;
	color: var(--muted);
	max-width: 56ch;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: var(--r-btn);
	font-family: var(--font-body);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1;
	border: 1.6px solid transparent;
	cursor: pointer;
	transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--brand);
	color: #fff;
	box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
	background: var(--brand-2);
	color: #fff;
}

.btn--accent {
	background: var(--accent);
	color: var(--accent-ink);
}

.btn--accent:hover {
	filter: brightness(0.95);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.btn--light {
	background: #fff;
	color: var(--brand);
}

.btn--sm {
	padding: 11px 20px;
	font-size: 14.5px;
}

.btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

/* --- 5. Nagłówek ------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 88px;
}

.brand,
.footer-brand__logo {
	flex: none;
	display: block;
	position: relative;
}

.brand img {
	width: 184px;
	height: auto;
}

.nav {
	margin-left: auto;
}

.nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav li {
	position: relative;
}

.nav a {
	display: block;
	padding: 10px 14px;
	font-size: 15.5px;
	font-weight: 600;
	border-radius: 8px;
	color: var(--ink);
	position: relative;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}

.nav a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after,
.nav .current-menu-parent > a::after {
	transform: scaleX(1);
}

/* Podmenu */
.nav ul ul {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow-md);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav li:hover > ul,
.nav li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav ul ul a::after {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: transparent;
	border: 1.6px solid var(--line-strong);
	border-radius: 10px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle svg {
	width: 18px;
	height: 18px;
}

/* --- 6. Hero ----------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--hero-bg);
	border-bottom: 1px solid var(--line);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hero-glow);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 56px;
	align-items: center;
	padding: 76px 0 84px;
}

.hero h1 {
	font-size: clamp(2.2rem, 4.1vw, 3.5rem);
	margin-bottom: 20px;
}

.hero h1 em {
	font-style: normal;
	color: var(--brand-2);
	white-space: nowrap;
}

.hero__lead {
	font-size: 1.16rem;
	color: var(--muted);
	max-width: 50ch;
	margin-bottom: 30px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	font-size: 14.5px;
	color: var(--muted);
}

.hero__facts li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero__facts svg {
	width: 17px;
	height: 17px;
	color: var(--brand-2);
	flex: none;
}

.hero__media {
	position: relative;
}

.hero__photo {
	position: relative;
	margin: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	aspect-ratio: 4 / 3.15;
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__badge {
	position: absolute;
	left: -18px;
	bottom: 26px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	background: var(--surface);
	border-radius: var(--r);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--line);
	max-width: 320px;
}

.hero__badge strong {
	display: block;
	font-family: var(--font-head);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--brand);
}

.hero__badge span span {
	font-size: 13.5px;
	color: var(--muted);
	line-height: 1.4;
	display: block;
	margin-top: 5px;
}

.hero__badge-mark {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--brand-tint);
	color: var(--brand);
	display: grid;
	place-items: center;
	flex: none;
}

.hero__badge-mark svg {
	width: 24px;
	height: 24px;
}

/* --- 7. Aktualności / karty -------------------------------------------- */

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--brand-tint);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__media img {
	transform: scale(1.04);
}

.card__body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
}

.chip {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--brand-tint);
	color: var(--brand);
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.card h3 {
	font-size: 1.19rem;
}

.card h3 a:hover {
	color: var(--brand-2);
}

.card p {
	font-size: 15px;
	color: var(--muted);
}

.card__more {
	margin-top: auto;
	padding-top: 6px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--brand-2);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.card__more svg {
	width: 16px;
	height: 16px;
	transition: transform 0.18s ease;
}

.card:hover .card__more svg {
	transform: translateX(3px);
}

/* --- 8. O nas ---------------------------------------------------------- */

.about {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.about__grid {
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	gap: 60px;
	align-items: center;
}

.about__media {
	position: relative;
}

.about__media img {
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.about__stamp {
	position: absolute;
	right: -14px;
	top: -14px;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	display: grid;
	place-content: center;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: var(--shadow-md);
	transform: rotate(-6deg);
	padding: 12px;
}

.about__stamp b {
	display: block;
	font-family: var(--font-head);
	font-size: 1.5rem;
	letter-spacing: 0;
	margin-bottom: 2px;
}

.about h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	margin-bottom: 18px;
}

.about p + p {
	margin-top: 14px;
}

.about .lead {
	margin-bottom: 18px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}

.stats strong {
	display: block;
	font-family: var(--font-head);
	font-size: 1.9rem;
	color: var(--brand);
	line-height: 1;
}

.stats span {
	display: block;
	font-size: 13.5px;
	color: var(--muted);
	margin-top: 7px;
}

/* --- 9. Co robimy ------------------------------------------------------ */

.areas-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.area {
	padding: 26px 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.area:hover {
	border-color: var(--brand-2);
	transform: translateY(-3px);
}

.area__icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--brand-tint);
	color: var(--brand);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}

.area__icon svg {
	width: 24px;
	height: 24px;
}

.area h3 {
	font-size: 1.08rem;
	margin-bottom: 8px;
}

.area p {
	font-size: 14.5px;
	color: var(--muted);
}

/* --- 10. 1,5% ---------------------------------------------------------- */

.tax {
	background: var(--brand);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.tax::after {
	content: "1,5%";
	position: absolute;
	right: -10px;
	bottom: -60px;
	font-family: var(--font-head);
	font-size: 17rem;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.tax__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: center;
	z-index: 1;
}

.tax h2 {
	color: #fff;
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	margin-bottom: 16px;
}

.tax p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.02rem;
}

.tax .eyebrow {
	color: var(--accent-soft);
}

.tax .eyebrow::before {
	background: var(--accent-soft);
}

.tax__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.krs-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--r-lg);
	padding: 28px;
	backdrop-filter: blur(4px);
}

.krs-card dl {
	margin: 0;
	display: grid;
	gap: 18px;
}

.krs-card dt {
	font-size: 12.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
	margin-bottom: 4px;
}

.krs-card dd {
	margin: 0;
	font-family: var(--font-head);
	font-size: 1.28rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

/* --- 11. Kontakt ------------------------------------------------------- */

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.contact__list {
	display: grid;
	gap: 18px;
	margin-top: 26px;
}

.contact__list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.contact__list svg {
	width: 20px;
	height: 20px;
	color: var(--brand-2);
	flex: none;
	margin-top: 3px;
}

.contact__list b {
	display: block;
	font-size: 14px;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 2px;
}

.contact__box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 30px;
	box-shadow: var(--shadow-sm);
}

.contact__box h3 {
	font-size: 1.2rem;
	margin-bottom: 8px;
}

.contact__box > p {
	font-size: 15px;
	color: var(--muted);
	margin-bottom: 20px;
}

.field {
	margin-bottom: 14px;
}

.field label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 6px;
}

.field input,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--field-bg);
	border: 1.5px solid var(--line-strong);
	border-radius: 10px;
}

.field textarea {
	min-height: 104px;
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--brand-2);
	box-shadow: 0 0 0 3px var(--brand-tint);
}

/* --- 12. Stopka -------------------------------------------------------- */

.site-footer {
	background: var(--footer-bg);
	color: rgba(255, 255, 255, 0.78);
	padding: 64px 0 0;
	font-size: 15px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
	gap: 40px;
	padding-bottom: 48px;
}

.site-footer h3,
.widget-title {
	color: #fff;
	font-family: var(--font-body);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 16px;
	font-weight: 700;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-brand__logo img {
	width: 176px;
	margin-bottom: 16px;
	padding: 10px;
	background: #fff;
	border-radius: 12px;
}

.footer-brand p {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.66);
	max-width: 34ch;
}

.footer-links,
.footer-grid .menu {
	display: grid;
	gap: 10px;
}

.footer-links a,
.footer-grid .menu a {
	font-size: 14.5px;
}

.social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.social a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: grid;
	place-items: center;
	transition: background 0.18s ease;
}

.social a:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

.social svg {
	width: 18px;
	height: 18px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
	color: rgba(255, 255, 255, 0.7);
}

/* --- 13. Wpisy i podstrony --------------------------------------------- */

.page-hero {
	background: var(--hero-bg);
	border-bottom: 1px solid var(--line);
	padding: 64px 0 48px;
}

.page-hero h1 {
	font-size: clamp(1.9rem, 3.4vw, 2.8rem);
	max-width: 22ch;
}

.page-hero .lead {
	margin-top: 14px;
}

.page-hero__search {
	margin-top: 24px;
	max-width: 560px;
}

.entry__header {
	padding: 56px 0 30px;
	background: var(--hero-bg);
	border-bottom: 1px solid var(--line);
}

.entry__header h1 {
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	max-width: 26ch;
	margin-top: 14px;
}

.entry__media {
	margin-top: 36px;
}

.entry__media img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
}

.entry__body {
	max-width: 860px;
	padding-top: 40px;
	padding-bottom: 40px;
}

.entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

/* Wyśrodkowany tekst utrudnia czytanie — wyrównujemy do lewej,
   zostawiając wyśrodkowanie dla obrazów i podpisów. */
.entry-content p[class*="has-text-align-"],
.entry-content h1[class*="has-text-align-"],
.entry-content h2[class*="has-text-align-"],
.entry-content h3[class*="has-text-align-"],
.entry-content h4[class*="has-text-align-"],
.entry-content ul[class*="has-text-align-"],
.entry-content ol[class*="has-text-align-"],
.entry-content blockquote[class*="has-text-align-"] {
	text-align: left;
}

.entry-content h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.entry-content h3 {
	font-size: 1.25rem;
	margin-top: 1.8em;
	margin-bottom: 0.45em;
}

.entry-content h4 {
	font-size: 1.08rem;
	margin-top: 1.6em;
	margin-bottom: 0.4em;
}

.entry-content a {
	color: var(--brand-2);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	text-decoration-thickness: 2px;
}

.entry-content img,
.entry-content iframe,
.entry-content video {
	max-width: 100%;
	height: auto;
	border-radius: var(--r);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 0.5em;
	text-align: center;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 22px;
	border-left: 4px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	font-weight: 600;
	color: var(--brand);
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2em 0;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text {
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
	margin-top: 0.5em;
}

.entry-content .alignleft {
	float: left;
	margin: 0.4em 1.4em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.4em;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignwide {
	width: min(1100px, 92vw);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.entry-content .gallery-item {
	margin: 0;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 36px;
}

.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	transition: border-color 0.18s ease;
}

.post-nav__item:hover {
	border-color: var(--brand-2);
}

.post-nav__item--next {
	text-align: right;
	grid-column: 2;
}

.post-nav__label {
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.post-nav__title {
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 600;
}

.related {
	border-top: 1px solid var(--line);
	background: var(--surface);
}

.page-links {
	margin-top: 24px;
	font-size: 14px;
}

.page-links a,
.page-links > span {
	display: inline-block;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	margin-right: 4px;
}

/* --- 14. Archiwa, wyszukiwarka, paginacja ------------------------------ */

.search-form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.search-field {
	flex: 1 1 240px;
	padding: 13px 16px;
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: 10px;
}

.search-submit {
	flex: none;
}

.pagination {
	margin-top: 44px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 10px 12px;
	text-align: center;
	font-size: 15px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.pagination .page-numbers:hover {
	border-color: var(--brand-2);
	color: var(--brand-2);
}

.pagination .page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.pagination .dots {
	border: 0;
	background: transparent;
}

.no-results {
	max-width: 620px;
}

.no-results h2 {
	font-size: 1.6rem;
	margin-bottom: 10px;
}

.no-results p {
	color: var(--muted);
	margin-bottom: 22px;
}

/* --- 15. Komentarze ---------------------------------------------------- */

.entry__comments {
	max-width: 860px;
	padding-bottom: 60px;
}

.comments-title {
	font-size: 1.35rem;
	margin-bottom: 22px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list ol {
	list-style: none;
	padding-left: 24px;
}

.comment-body {
	padding: 18px 0;
	border-top: 1px solid var(--line);
	font-size: 15px;
}

.comment-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 8px;
	font-size: 13.5px;
	color: var(--muted);
}

.comment-author img {
	border-radius: 50%;
}

.comment-form label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	background: var(--field-bg);
	border: 1.5px solid var(--line-strong);
	border-radius: 10px;
}

.comment-form p {
	margin-bottom: 14px;
}

/* --- 16. Widgety i wtyczki --------------------------------------------- */

.widget {
	margin-bottom: 26px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14.5px;
}

.widget ul {
	display: grid;
	gap: 8px;
}

.widget a:hover {
	color: #fff;
}

/* Contact Form 7 */
.wpcf7 p {
	margin: 0 0 14px;
}

.wpcf7 label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--ink);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--ink);
	background: var(--field-bg);
	border: 1.5px solid var(--line-strong);
	border-radius: 10px;
}

.wpcf7 textarea {
	min-height: 104px;
	resize: vertical;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	font: inherit;
	font-size: 15.5px;
	font-weight: 600;
	color: #fff;
	background: var(--brand);
	border: 0;
	border-radius: var(--r-btn);
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	background: var(--brand-2);
}

.wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1.5px solid var(--line-strong);
	font-size: 14.5px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--brand-2);
	background: var(--brand-tint);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: #c0392b;
	background: #fdecea;
	color: #7a1f16;
}

.wpcf7-not-valid-tip {
	display: block;
	font-size: 13px;
	color: #b3261e;
	margin-top: 5px;
}

.wpcf7-spinner {
	margin-left: 10px;
}

/* CookieYes / Cookie Law Info — kompaktowy baner w narożniku */
#cookie-law-info-bar {
	position: fixed !important;
	left: auto !important;
	right: 20px !important;
	bottom: 20px !important;
	top: auto !important;
	width: min(430px, calc(100vw - 40px)) !important;
	background: var(--footer-bg) !important;
	color: #fff !important;
	border-radius: 16px !important;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55) !important;
	padding: 20px 22px !important;
	font-family: var(--font-body);
	font-size: 13.5px !important;
	line-height: 1.6 !important;
	z-index: 999 !important;
}

#cookie-law-info-bar .cli-bar-container {
	display: block !important;
}

#cookie-law-info-bar .cli-bar-message {
	width: auto !important;
	max-height: 132px;
	overflow-y: auto;
	color: rgba(255, 255, 255, 0.78) !important;
	margin: 0 0 16px !important;
	padding-right: 6px;
}

#cookie-law-info-bar .cli-bar-btn_container {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	margin: 0 !important;
}

#cookie-law-info-bar .cli_settings_button {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	font-size: 13.5px !important;
}

#cookie-law-info-bar .cli-plugin-main-button {
	background: var(--accent) !important;
	color: var(--accent-ink) !important;
	border-radius: 999px !important;
	padding: 10px 18px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	border: 0 !important;
}

#cookie-law-info-bar .cli-plugin-main-button:hover {
	filter: brightness(0.95);
}

@media (max-width: 620px) {
	#cookie-law-info-bar {
		right: 12px !important;
		bottom: 12px !important;
		width: calc(100vw - 24px) !important;
		padding: 16px 18px !important;
	}

	#cookie-law-info-bar .cli-bar-message {
		max-height: 104px;
		font-size: 12.5px !important;
	}
}

/* --- 17. Responsywność ------------------------------------------------- */

@media (max-width: 1080px) {
	.brand img {
		width: 168px;
	}

	.nav a {
		padding: 10px 10px;
		font-size: 15px;
	}
}

@media (max-width: 960px) {
	.nav,
	.header-actions .btn {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.site-header.is-open .nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		padding: 10px 16px 18px;
		box-shadow: var(--shadow-md);
		max-height: calc(100vh - 78px);
		overflow-y: auto;
	}

	.site-header.is-open .nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.site-header.is-open .nav a {
		padding: 13px 12px;
		border-radius: 10px;
		font-size: 16px;
	}

	.site-header.is-open .nav a::after {
		display: none;
	}

	.site-header.is-open .nav ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 12px;
		background: transparent;
	}

	.hero__inner {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 52px 0 60px;
	}

	.hero__media {
		order: -1;
	}

	.hero__badge {
		position: relative;
		left: auto;
		bottom: auto;
		margin: -34px auto 0;
		max-width: 330px;
		padding: 14px 18px;
	}

	.about__grid,
	.tax__inner,
	.contact__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.areas-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.section {
		padding: 64px 0;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav__item--next {
		grid-column: 1;
		text-align: left;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 17px;
	}

	.wrap {
		padding: 0 18px;
	}

	.brand img {
		width: 140px;
	}

	.hero__photo {
		aspect-ratio: 4 / 3;
	}

	.hero h1 {
		font-size: clamp(1.95rem, 8vw, 2.5rem);
	}

	.eyebrow {
		font-size: 12px;
		letter-spacing: 0.07em;
	}

	.news-grid,
	.areas-grid,
	.stats {
		grid-template-columns: 1fr;
	}

	.stats {
		gap: 20px;
	}

	.section {
		padding: 52px 0;
	}

	.section-head {
		margin-bottom: 26px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.about__stamp {
		width: 88px;
		height: 88px;
		font-size: 10.5px;
	}

	.tax::after {
		font-size: 9rem;
		bottom: -20px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 1em 0;
	}
}

/* --- Lightbox ---------------------------------------------------------- */

.entry-content img.is-zoomable,
.entry__media img.is-zoomable,
.gallery-item img.is-zoomable {
	cursor: zoom-in;
	transition: filter 0.18s ease;
}

.entry-content img.is-zoomable:hover,
.entry__media img.is-zoomable:hover,
.gallery-item img.is-zoomable:hover {
	filter: brightness(0.96);
}

.entry-content img.is-zoomable:focus-visible,
.entry__media img.is-zoomable:focus-visible,
.gallery-item img.is-zoomable:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: var(--r);
}

.wn-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	place-items: center;
	padding: 24px;
	background: rgba(10, 14, 17, 0.92);
}

.wn-lightbox.is-open {
	display: grid;
}

.wn-lightbox img {
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.wn-lightbox__close {
	position: absolute;
	right: 20px;
	top: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.wn-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.26);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}

	.card:hover,
	.area:hover {
		transform: none;
	}
}
