/**
 * Custom CSS motywu potomnego: paleta kolorów, typografia (self-hosted fonty)
 * i podstawowe reguły dla elementów GeneratePress bez customowych kolorów.
 *
 * Fonty (Fraunces, Inter) to fonty zmienne (variable fonts) — po jednym pliku
 * na podzbiór (latin / latin-ext z polskimi znakami), obejmującym cały
 * potrzebny zakres wag. Self-hosted, żeby uniknąć blokującego requestu do
 * Google Fonts CDN (cel LCP z sekcji 4.3 CLAUDE.md).
 */

/* --- Fonty: Fraunces (nagłówki) --- */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/fraunces-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: 'Fraunces';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/fraunces-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;
}

/* --- Fonty: Inter (tekst / UI) --- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/inter-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: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/inter-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;
}

/* --- Paleta kolorów (sekcja 3.1 / propozycja zaakceptowana) --- */
:root {
	--bdo-color-accent: #2f5233;    /* zieleń — marka, nawigacja, akcenty sekcji */
	--bdo-color-accent-2: #bf6a3d;  /* terakota — linki, CTA, akcenty w kartach */
	--bdo-color-bg: #faf8f5;        /* ciepłe tło strony */
	--bdo-color-surface: #ffffff;   /* tło kart/boxów (kalkulator, box autora) */
	--bdo-color-text: #26241f;      /* tekst główny */
	--bdo-color-text-muted: #6b6459; /* metadane, podpowiedzi */
	--bdo-color-border: #e4dfd6;    /* obramowania kart/formularzy */

	--bdo-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--bdo-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Podstawowa typografia --- */
body {
	background-color: var(--bdo-color-bg);
	color: var(--bdo-color-text);
	font-family: var(--bdo-font-body);
	font-weight: 400;
	/* Sekcje "pełnej szerokości" (np. .bdo-home-autor) wychodzą poza kontener
	 * przez ujemne marginesy liczone w vw — ta jednostka liczy też szerokość
	 * paska przewijania, więc bez tego strona dostawała dodatkowy, poziomy
	 * suwak o szerokość scrollbara. */
	overflow-x: hidden;
}

/* --- Nagłówek / nawigacja motywu (GeneratePress) --- */
/* Sticky menu: cały pasek nagłówka (logo + nawigacja) zostaje przyklejony do
 * góry przy scrollu. Na tym layoucie (nav-float-right) nawigacja jest
 * wewnątrz .site-header, nie osobnym paskiem pod spodem — sticky na samym
 * #site-navigation nie miałoby się o co "zaczepić" (kontener jest dokładnie
 * tej samej wysokości co menu), dlatego sticky wisi na całym nagłówku. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background-color: var(--bdo-color-surface);
	border-bottom: 1px solid var(--bdo-color-border);
}

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* --- Strona główna / archiwum kategorii: odstęp treści od krawędzi ekranu ---
 * Rdzeń GeneratePress daje kontenerowi #page tylko 10px paddingu, a jego
 * własny, mobilny padding (30px) dotyczy tylko .inside-article/.page-header
 * itp. — czyli pojedynczych wpisów/stron (i samego banera kategorii), nie
 * layoutów budowanych bezpośrednio w .site-main: sekcji strony głównej
 * (hero, statystyki, kafelki...) i siatki kart `.bdo-archiwum-siatka` na
 * stronie kategorii. Bez tego dotykały krawędzi ekranu na mobile. Padding
 * mobile-first: baza dla najwęższych ekranów, więcej oddechu od ~480px.
 * (.bdo-home-autor nadal wychodzi poza ten padding przez własny mechanizm
 * pełnej szerokości — calc(50% - 50vw) liczy się względem viewportu, nie
 * względem paddingu rodzica.) */
/* body.page-template-page-kalkulatory-php — hub kalkulatorów (page-kalkulatory.php)
 * ma tę samą strukturę co front-page.php: sekcje budowane bezpośrednio
 * w .site-main, bez .inside-article, więc potrzebuje tego samego paddingu. */
body.home .site-main,
body.archive .site-main,
body.page-template-page-kalkulatory-php .site-main {
	padding: 0 1.25em;
}

@media (min-width: 480px) {
	body.home .site-main,
	body.archive .site-main,
	body.page-template-page-kalkulatory-php .site-main {
		padding: 0 2em;
	}
}

.site-branding .site-title a,
.site-branding .site-title a:hover,
.site-branding .site-title a:focus {
	font-family: var(--bdo-font-heading);
	color: var(--bdo-color-text);
	text-decoration: none;
}

.site-branding .site-description {
	color: var(--bdo-color-text-muted);
}

.main-navigation a {
	color: var(--bdo-color-text);
	font-weight: 600;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus,
.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--bdo-color-accent-2);
	background-color: transparent;
}

.main-navigation .main-nav ul ul {
	background-color: var(--bdo-color-surface);
	border-top: 2px solid var(--bdo-color-accent-2);
}

.main-navigation .main-nav ul ul a {
	color: var(--bdo-color-text);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bdo-font-heading);
	color: var(--bdo-color-text);
	font-weight: 600;
}

h1 {
	font-weight: 400; /* lżejsza, bardziej "editorial" waga dla największego nagłówka */
}

a {
	color: var(--bdo-color-accent-2);
}

a:hover,
a:focus {
	color: var(--bdo-color-accent);
}

::selection {
	background-color: var(--bdo-color-accent);
	color: #fff;
}

/* --- Strona wpisu i strona statyczna: nagłówek + zdjęcie wyróżniające ---
 * :where(.single-post, .page) — te same reguły dla pojedynczego wpisu i dla
 * zwykłej strony (WP Page: „O nas”, hub kalkulatorów itd.). Bez tego strony
 * (body.page) nie dziedziczyły żadnej z poniższych reguł typografii i
 * wyglądały jak goły, nieostylowany szablon GeneratePress — niespójnie
 * z resztą serwisu. :where() ma zerową specyficzność, więc nie podbija
 * priorytetu względem innych reguł. */
:where(.single-post, .page) .featured-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 20px 40px -24px rgba(38, 36, 31, 0.4);
}

:where(.single-post, .page) .featured-image {
	margin: 0 0 2em;
}

:where(.single-post, .page) .entry-title {
	margin: 0 0 0.375em;
	font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
	line-height: 1.15;
}

/* --- Strona wpisu i strona statyczna: typografia treści --- */
:where(.single-post, .page) .entry-content {
	font-size: 1.0625em;
	line-height: 1.75;
}

:where(.single-post, .page) .entry-content > p,
:where(.single-post, .page) .entry-content > ul,
:where(.single-post, .page) .entry-content > ol {
	margin: 0 0 1.25em;
}

:where(.single-post, .page) .entry-content h2,
:where(.single-post, .page) .entry-content h3,
:where(.single-post, .page) .entry-content h4 {
	margin: 1.75em 0 0.625em;
}

:where(.single-post, .page) .entry-content h2 {
	padding-bottom: 0.375em;
	border-bottom: 2px solid var(--bdo-color-border);
}

:where(.single-post, .page) .entry-content ul,
:where(.single-post, .page) .entry-content ol {
	padding-left: 1.25em;
}

:where(.single-post, .page) .entry-content li + li {
	margin-top: 0.375em;
}

:where(.single-post, .page) .entry-content blockquote {
	margin: 1.75em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 4px solid var(--bdo-color-accent-2);
	color: var(--bdo-color-text-muted);
	font-style: italic;
}

:where(.single-post, .page) .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

:where(.single-post, .page) .entry-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.5em auto;
	border-radius: 8px;
}

:where(.single-post, .page) .entry-content .wp-caption-text {
	margin-top: 0.5em;
	font-size: 0.875em;
	text-align: center;
	color: var(--bdo-color-text-muted);
}

:where(.single-post, .page) .entry-content table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
}

:where(.single-post, .page) .entry-content th,
:where(.single-post, .page) .entry-content td {
	padding: 0.5em 0.75em;
	border: 1px solid var(--bdo-color-border);
	text-align: left;
}

:where(.single-post, .page) .entry-content th {
	background-color: var(--bdo-color-bg);
	font-weight: 600;
}

:where(.single-post, .page) .entry-content hr {
	margin: 2em 0;
	border: none;
	border-top: 1px solid var(--bdo-color-border);
}

/* Linki w treści wpisu/strony podkreślone — rozróżnianie samym kolorem nie
 * spełnia WCAG 1.4.1 (odróżnianie linku od tekstu nie może opierać się tylko
 * na kolorze). Podkreślenie tylko w treści; nawigacja, karty i CTA celowo bez. */
:where(.single-post, .page) .entry-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

:where(.single-post, .page) .entry-content a:hover,
:where(.single-post, .page) .entry-content a:focus {
	color: var(--bdo-color-accent);
}

/* --- Strona wpisu: stopka meta (kategoria/tagi/komentarze) i nawigacja --- */
.single-post footer.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 1em;
	margin: 3em 0 0;
	padding-top: 1.5em;
	border-top: 1px solid var(--bdo-color-border);
	font-size: 0.875em;
	color: var(--bdo-color-text-muted);
}

.single-post footer.entry-meta a {
	color: var(--bdo-color-accent-2);
	text-decoration: none;
}

.single-post footer.entry-meta a:hover,
.single-post footer.entry-meta a:focus {
	text-decoration: underline;
}

.single-post .post-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1em 1.5em;
	flex-basis: 100%;
	margin-top: 1em;
	padding-top: 1.5em;
	border-top: 1px solid var(--bdo-color-border);
}

.single-post .post-navigation .nav-previous,
.single-post .post-navigation .nav-next {
	display: flex;
	align-items: center;
	gap: 0.5em;
	max-width: 48%;
}

.single-post .post-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

.single-post .post-navigation a {
	color: var(--bdo-color-text);
	font-weight: 600;
	text-decoration: none;
}

.single-post .post-navigation a:hover,
.single-post .post-navigation a:focus {
	color: var(--bdo-color-accent-2);
}

.single-post .post-navigation svg {
	fill: var(--bdo-color-accent-2);
	flex-shrink: 0;
}

/* --- Byline (nad treścią wpisu) --- */
.bdo-byline {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin: 0.5em 0 1.5em;
}

.bdo-byline__avatar {
	flex-shrink: 0;
}

.bdo-byline__avatar img {
	display: block;
	width: 56px;
	height: 56px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bdo-byline__info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.bdo-byline__autor a {
	font-weight: 600;
	color: var(--bdo-color-text);
	text-decoration: none;
}

.bdo-byline__autor a:hover,
.bdo-byline__autor a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-byline__meta {
	font-size: 0.875em;
	color: var(--bdo-color-text-muted);
}

.bdo-byline__zaktualizowano {
	font-style: italic;
}

/* --- FAQ pod treścią wpisu --- */
.bdo-faq {
	margin: 2.5em 0;
	padding-top: 2em;
	border-top: 1px solid var(--bdo-color-border);
}

.bdo-faq h2 {
	margin: 0 0 1em;
}

.bdo-faq__lista {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.bdo-faq__pozycja {
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	padding: 0.25em 1.25em;
}

.bdo-faq__pytanie {
	padding: 0.75em 0;
	font-family: var(--bdo-font-heading);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.bdo-faq__pytanie::-webkit-details-marker {
	display: none;
}

.bdo-faq__pytanie::after {
	content: '+';
	float: right;
	color: var(--bdo-color-accent-2);
}

.bdo-faq__pozycja[open] .bdo-faq__pytanie::after {
	content: '\2212';
}

.bdo-faq__odpowiedz {
	padding: 0 0 1em;
	color: var(--bdo-color-text-muted);
}

.bdo-faq__odpowiedz p:last-child {
	margin-bottom: 0;
}

/* --- Rozszerzony box autora (na końcu wpisu) --- */
.bdo-author-box {
	display: flex;
	align-items: flex-start;
	gap: 1.25em;
	margin: 2.5em 0;
	padding: 1.5em;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px -18px rgba(38, 36, 31, 0.25);
}

.bdo-author-box__avatar {
	flex-shrink: 0;
}

.bdo-author-box__avatar img {
	display: block;
	width: 120px;
	height: 120px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.bdo-author-box__avatar img {
		width: 84px;
		height: 84px;
	}
}

.bdo-author-box__imie {
	margin: 0 0 0.25em;
	font-family: var(--bdo-font-heading);
	font-size: 1.125em;
}

.bdo-author-box__imie a {
	color: var(--bdo-color-text);
	text-decoration: none;
}

.bdo-author-box__imie a:hover,
.bdo-author-box__imie a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-author-box__podtytul {
	margin: 0 0 0.75em;
	font-size: 0.875em;
	color: var(--bdo-color-text-muted);
}

.bdo-author-box__bio {
	margin: 0 0 0.75em;
}

.bdo-author-box__linki {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875em;
}

/* --- Hero (strona główna) --- */
.bdo-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
	margin: 2em 0 4.5em;
}

@media (min-width: 600px) {
	.bdo-hero {
		grid-template-columns: 3fr 2fr;
		align-items: center;
		gap: 2em;
	}
}

@media (min-width: 782px) {
	.bdo-hero {
		gap: 3em;
	}
}

.bdo-hero__obraz img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 20px 40px -20px rgba(38, 36, 31, 0.35);
}

.bdo-hero__eyebrow {
	margin: 0 0 0.5em;
	font-size: 0.8125em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bdo-color-accent-2);
}

.bdo-hero__kategoria {
	display: inline-block;
	margin-bottom: 0.75em;
	padding: 0.3em 0.85em;
	font-size: 0.8125em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background-color: var(--bdo-color-accent);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
}

.bdo-hero__kategoria:hover,
.bdo-hero__kategoria:focus {
	background-color: var(--bdo-color-accent-2);
	color: #fff;
}

.bdo-hero__tytul {
	margin: 0 0 0.5em;
	font-size: clamp(1.75rem, 1.375rem + 1.5vw, 2.5rem);
	line-height: 1.15;
}

@media (min-width: 782px) {
	.bdo-hero__tytul {
		line-height: 1.12;
	}
}

.bdo-hero__tytul a {
	color: var(--bdo-color-text);
	text-decoration: none;
}

.bdo-hero__tytul a:hover,
.bdo-hero__tytul a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-hero__lead {
	margin: 0 0 1em;
	color: var(--bdo-color-text-muted);
}

.bdo-hero__cta {
	display: inline-block;
	padding: 0.75em 1.6em;
	background-color: var(--bdo-color-accent-2);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	box-shadow: 0 8px 20px -8px rgba(191, 106, 61, 0.6);
	transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.bdo-hero__cta:hover,
.bdo-hero__cta:focus {
	background-color: var(--bdo-color-accent);
	color: #fff;
	transform: translateY(-2px);
}

/* --- Pasek statystyk (strona główna) ---
 * Mobile-first: na wąskim ekranie elementy stoją w kolumnie, dzielnik to
 * pozioma linia NAD kolejnym elementem (border-top). Od 600px przechodzimy
 * na układ poziomy z pionowym dzielnikiem (border-left) — flex-wrap na
 * szerszych ekranach zwykle nie zawija (3 krótkie pozycje mieszczą się
 * w rzędzie), więc reguła :first-child nadal działa poprawnie. Wcześniej
 * dzielnik był tylko pionowy (border-left) niezależnie od szerokości —
 * przy zawijaniu na mobile zostawało to jako oderwana, nierówna kreska
 * przy środkowej/ostatniej pozycji. */
.bdo-stats {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 4.5em;
	padding: 2em 1.5em;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px -18px rgba(38, 36, 31, 0.25);
	text-align: center;
}

@media (min-width: 600px) {
	.bdo-stats {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
}

.bdo-stats__item {
	display: flex;
	flex-direction: column;
	padding: 1.25em 0;
	border-top: 1px solid var(--bdo-color-border);
}

.bdo-stats__item:first-child {
	padding-top: 0;
	border-top: none;
}

@media (min-width: 600px) {
	.bdo-stats__item {
		padding: 0 1.75em;
		border-top: none;
		border-left: 1px solid var(--bdo-color-border);
	}

	.bdo-stats__item:first-child {
		padding-left: 0;
		border-left: none;
	}

	.bdo-stats__item:last-child {
		padding-right: 0;
	}
}

.bdo-stats__liczba {
	font-family: var(--bdo-font-heading);
	font-size: 2em;
	font-weight: 600;
	color: var(--bdo-color-accent);
}

.bdo-stats__etykieta {
	font-size: 0.875em;
	color: var(--bdo-color-text-muted);
}

/* --- Kafelki "przeglądaj wg tematów" (strona główna) --- */
.bdo-kategorie {
	margin: 0 0 4.5em;
}

.bdo-kategorie__naglowek {
	margin: 0 0 1.25em;
}

.bdo-kategorie__siatka {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25em;
}

.bdo-kategorie__kafelek {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85em;
	padding: 2em 1em;
	background-color: var(--bdo-color-accent);
	background-image: radial-gradient(circle at 85% -15%, rgba(255, 255, 255, 0.18), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 14px);
	color: #fff;
	font-family: var(--bdo-font-heading);
	font-size: 1.125em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	box-shadow: 0 12px 24px -16px rgba(47, 82, 51, 0.6);
	transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bdo-kategorie__kafelek:hover,
.bdo-kategorie__kafelek:focus {
	background-color: var(--bdo-color-accent-2);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 16px 28px -14px rgba(191, 106, 61, 0.55);
}

.bdo-kategorie__ikona {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.16);
}

.bdo-kategorie__ikona svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Sekcja "Poznaj autora" (strona główna) --- */
/* Pełnoszerokościowy pas tła (poza kontener .site-content, technika ujemnych
 * marginesów — bez ruszania hooków, tak jak przy .bdo-stopka niżej), żeby
 * przełamać rytm strony głównej: pozostałe sekcje mają tylko margin-bottom
 * na jednolitym tle, ta ma wyraźnie inną "strefę". Wewnętrzny wrapper pilnuje
 * tej samej szerokości/paddingu co reszta strony. */
.bdo-home-autor {
	margin-right: calc(50% - 50vw);
	margin-bottom: 4.5em;
	margin-left: calc(50% - 50vw);
	padding: 3em 0;
	background-color: color-mix(in srgb, var(--bdo-color-accent) 8%, var(--bdo-color-bg));
	border-top: 1px solid var(--bdo-color-border);
	border-bottom: 1px solid var(--bdo-color-border);
}

.bdo-home-autor__wewnatrz {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.25em;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5em;
}

@media (min-width: 600px) {
	.bdo-home-autor__wewnatrz {
		flex-direction: row;
		text-align: left;
		gap: 2em;
	}
}

.bdo-home-autor__avatar {
	flex-shrink: 0;
}

.bdo-home-autor__avatar img {
	display: block;
	width: 128px;
	height: 128px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bdo-home-autor__naglowek {
	margin: 0 0 0.5em;
	font-size: 0.8125em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bdo-color-accent);
}

.bdo-home-autor__imie {
	margin: 0 0 0.5em;
	font-family: var(--bdo-font-heading);
	font-size: 1.375em;
}

.bdo-home-autor__bio {
	margin: 0 0 1em;
	color: var(--bdo-color-text-muted);
}

.bdo-home-autor__cta {
	font-weight: 600;
	color: var(--bdo-color-accent-2);
	text-decoration: none;
}

.bdo-home-autor__cta:hover,
.bdo-home-autor__cta:focus {
	color: var(--bdo-color-accent);
}

/* --- Karta wpisu (bloki per-kategoria, najnowsze wpisy) --- */
.bdo-post-karta {
	display: flex;
	flex-direction: column;
	padding: 0.75em 0.75em 1.25em;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	box-shadow: 0 10px 24px -18px rgba(38, 36, 31, 0.3);
	transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bdo-post-karta:hover,
.bdo-post-karta:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 16px 28px -16px rgba(38, 36, 31, 0.35);
}

.bdo-post-karta__obraz img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 6px;
	margin: 0 0 0.75em;
}

.bdo-post-karta__obraz--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 2;
	border-radius: 6px;
	margin: 0 0 0.75em;
	background-color: var(--bdo-color-bg);
	border: 1px solid var(--bdo-color-border);
}

.bdo-post-karta__obraz--placeholder svg {
	width: 2.25em;
	height: 2.25em;
	fill: var(--bdo-color-border);
}

.bdo-post-karta__tytul {
	margin: 0 0 0.375em;
	padding: 0 0.25em;
	font-size: 1.0625em;
	line-height: 1.3;
}

.bdo-post-karta__tytul a {
	color: var(--bdo-color-text);
	text-decoration: none;
}

.bdo-post-karta__tytul a:hover,
.bdo-post-karta__tytul a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-post-karta__data {
	padding: 0 0.25em;
	font-size: 0.8125em;
	color: var(--bdo-color-text-muted);
}

/* --- Bloki per-kategoria (strona główna) --- */
.bdo-kategoria-blok {
	margin: 0 0 4.5em;
}

/* Mobile-first: nagłówek + link "Więcej" w kolumnie na wąskim ekranie —
 * w jednym rzędzie (justify-content: space-between) długi tytuł kategorii
 * i link się ściskały/nie mieściły. Od 600px z powrotem w jednym rzędzie. */
.bdo-kategoria-blok__naglowek {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0 0 1.25em;
}

@media (min-width: 600px) {
	.bdo-kategoria-blok__naglowek {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1em;
	}
}

.bdo-kategoria-blok__naglowek h2 {
	margin: 0;
}

.bdo-kategoria-blok__naglowek h2 a {
	color: inherit;
	text-decoration: none;
}

.bdo-kategoria-blok__naglowek h2 a:hover,
.bdo-kategoria-blok__naglowek h2 a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-kategoria-blok__wiecej {
	flex-shrink: 0;
	font-weight: 600;
	font-size: 0.9375em;
	color: var(--bdo-color-accent-2);
	text-decoration: none;
	white-space: nowrap;
}

.bdo-kategoria-blok__wiecej:hover,
.bdo-kategoria-blok__wiecej:focus {
	color: var(--bdo-color-accent);
}

.bdo-kategoria-blok__siatka,
.bdo-najnowsze__siatka,
.bdo-warte-przeczytania__siatka,
.bdo-404__siatka {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5em;
}

/* --- Najnowsze wpisy (strona główna) --- */
.bdo-najnowsze {
	margin: 0 0 4.5em;
}

.bdo-najnowsze h2 {
	margin: 0 0 1.25em;
}

/* --- Warte przeczytania (pod treścią wpisu) --- */
.bdo-warte-przeczytania {
	margin: 3em 0;
	padding-top: 2.5em;
	border-top: 1px solid var(--bdo-color-border);
}

.bdo-warte-przeczytania h2 {
	margin: 0 0 1.25em;
}

/* --- Strona autora (/author/{slug}/) --- */
.bdo-autor-naglowek {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5em;
	margin: 2em 0 3em;
	padding: 2.5em 2em;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px -18px rgba(38, 36, 31, 0.25);
	text-align: center;
}

@media (min-width: 782px) {
	.bdo-autor-naglowek {
		flex-direction: row;
		text-align: left;
	}
}

.bdo-autor-naglowek__avatar {
	flex-shrink: 0;
}

.bdo-autor-naglowek__avatar img {
	display: block;
	width: 160px;
	height: 160px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bdo-autor-naglowek__imie {
	margin: 0 0 0.375em;
	font-size: 1.75em;
}

.bdo-autor-naglowek__podtytul {
	margin: 0 0 0.75em;
	font-size: 0.9375em;
	font-weight: 600;
	color: var(--bdo-color-accent);
}

.bdo-autor-naglowek__bio {
	margin: 0 0 1em;
	color: var(--bdo-color-text-muted);
}

.bdo-autor-naglowek__linki {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em 1.25em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375em;
	font-weight: 600;
}

@media (min-width: 782px) {
	.bdo-autor-naglowek__linki {
		justify-content: flex-start;
	}
}

/* --- Sekcja "Moje realizacje" na stronie autora (portfolio, E-E-A-T) --- */
.bdo-autor-realizacje {
	margin: 0 0 3em;
}

/* Mobile-first: patrz komentarz przy .bdo-kategoria-blok__naglowek. */
.bdo-autor-realizacje__naglowek {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0 0 1.25em;
}

@media (min-width: 600px) {
	.bdo-autor-realizacje__naglowek {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1em;
	}
}

.bdo-autor-realizacje__naglowek h2 {
	margin: 0;
}

.bdo-autor-realizacje__wiecej {
	flex-shrink: 0;
	font-weight: 600;
	font-size: 0.9375em;
	color: var(--bdo-color-accent-2);
	text-decoration: none;
	white-space: nowrap;
}

.bdo-autor-realizacje__wiecej:hover,
.bdo-autor-realizacje__wiecej:focus {
	color: var(--bdo-color-accent);
}

.bdo-autor-realizacje__siatka {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5em;
}

/* Karta realizacji — zdjęcie na całą szerokość + podpis pod spodem (portfolio),
 * w odróżnieniu od .bdo-post-karta (lista artykułów, mniejsza miniatura). */
.bdo-realizacja-karta {
	display: flex;
	flex-direction: column;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 24px -18px rgba(38, 36, 31, 0.3);
	transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bdo-realizacja-karta:hover,
.bdo-realizacja-karta:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 16px 28px -16px rgba(38, 36, 31, 0.35);
}

.bdo-realizacja-karta__obraz {
	display: block;
}

.bdo-realizacja-karta__obraz img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bdo-realizacja-karta__obraz--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background-color: var(--bdo-color-bg);
}

.bdo-realizacja-karta__obraz--placeholder svg {
	width: 2.5em;
	height: 2.5em;
	fill: var(--bdo-color-border);
}

.bdo-realizacja-karta__tresc {
	padding: 1em 1.1em 1.25em;
}

.bdo-realizacja-karta__tytul {
	margin: 0 0 0.25em;
	font-size: 1.0625em;
	line-height: 1.3;
}

.bdo-realizacja-karta__tytul a {
	color: var(--bdo-color-text);
	text-decoration: none;
}

.bdo-realizacja-karta__tytul a:hover,
.bdo-realizacja-karta__tytul a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-realizacja-karta__data {
	display: block;
	margin-bottom: 0.5em;
	font-size: 0.8125em;
	color: var(--bdo-color-text-muted);
}

.bdo-realizacja-karta__zakres {
	margin: 0;
	font-size: 0.9375em;
	color: var(--bdo-color-text-muted);
}

.bdo-autor-wszystkie-wpisy h2 {
	margin: 0 0 1.25em;
}

.bdo-autor-wpisy {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5em;
	margin: 0 0 2em;
}

/* --- Strona kategorii (archiwum): baner nagłówka ---
 * GP dawał tu gołą białą skrzynkę (tło z Customizera) bez własnego
 * paddingu poziomego na desktopie (tylko na mobile, z reguły Customizera
 * ograniczonej do <=768px) — stąd tytuł "przyklejony" do krawędzi na
 * desktopie i niespójny wygląd między breakpointami. Poniżej w pełni
 * własny box: kolor, padding i zaokrąglenie takie same na każdej
 * szerokości ekranu (mobile-first, bez wahań między breakpointami). */
body.archive .page-header {
	margin: 0 0 3em;
	padding: 2.25em 1.5em;
	background-color: color-mix(in srgb, var(--bdo-color-accent) 6%, var(--bdo-color-bg));
	border: 1px solid var(--bdo-color-border);
	border-radius: 14px;
	text-align: center;
}

@media (min-width: 600px) {
	body.archive .page-header {
		padding: 3em 2em;
	}
}

.bdo-archiwum-eyebrow {
	margin: 0 0 0.5em;
	font-size: 0.8125em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bdo-color-accent-2);
}

body.archive .page-title {
	margin: 0 0 0.5em;
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	font-weight: 400;
}

body.archive .taxonomy-description {
	max-width: 65ch;
	margin: 0 auto;
	color: var(--bdo-color-text-muted);
}

.bdo-archiwum-siatka {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.75em;
	margin: 0 0 3em;
}

body.archive .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1em 1em 1.5em;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	box-shadow: 0 10px 24px -18px rgba(38, 36, 31, 0.3);
	transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body.archive article:hover .inside-article,
body.archive article:focus-within .inside-article {
	transform: translateY(-4px);
	box-shadow: 0 16px 28px -16px rgba(38, 36, 31, 0.35);
}

body.archive .entry-header {
	order: 2;
	margin: 0 0 0.375em;
}

body.archive .post-image {
	order: 1;
	margin: 0 0 0.75em;
}

body.archive .post-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 6px;
}

body.archive .entry-title {
	font-size: 1.125em;
	line-height: 1.3;
}

body.archive .entry-title a {
	color: var(--bdo-color-text);
	text-decoration: none;
}

body.archive .entry-title a:hover,
body.archive .entry-title a:focus {
	color: var(--bdo-color-accent-2);
}

body.archive .entry-meta {
	font-size: 0.8125em;
	color: var(--bdo-color-text-muted);
}

body.archive .entry-summary {
	order: 4;
	margin: 0.5em 0 0;
	color: var(--bdo-color-text-muted);
}

/* --- Stopka serwisu --- */
/* Tło ma sięgać całej szerokości viewportu (poza kontenerem GP, hook
   generate_before_footer wypada poza .site-content) — dlatego kolor tła
   jest na pełnoszerokościowym elemencie zewnętrznym, a max-width/siatka
   na wewnętrznym wrapperze, tak samo jak w .site-footer .site-info niżej. */
.bdo-stopka {
	background-color: var(--bdo-color-accent);
}

.bdo-stopka__wewnatrz {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2em;
	max-width: 1200px;
	margin: 0 auto;
	padding: 3em 1.5em;
}

@media (min-width: 782px) {
	.bdo-stopka__wewnatrz {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

.bdo-stopka__nazwa {
	margin: 0 0 0.375em;
	font-family: var(--bdo-font-heading);
	font-size: 1.25em;
	color: #fff;
}

.bdo-stopka__tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.65);
}

.bdo-stopka__naglowek {
	margin: 0 0 0.75em;
	font-size: 0.8125em;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.bdo-stopka__kategorie ul,
.bdo-stopka__informacje ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bdo-stopka__kategorie li + li,
.bdo-stopka__informacje li + li {
	margin-top: 0.5em;
}

.bdo-stopka__kategorie a,
.bdo-stopka__autor a,
.bdo-stopka__informacje a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.bdo-stopka__kategorie a:hover,
.bdo-stopka__kategorie a:focus,
.bdo-stopka__autor a:hover,
.bdo-stopka__autor a:focus,
.bdo-stopka__informacje a:hover,
.bdo-stopka__informacje a:focus {
	color: #fff;
	text-decoration: underline;
}

.site-footer .site-info {
	background-color: var(--bdo-color-accent);
	color: rgba(255, 255, 255, 0.55);
}

.site-footer .inside-site-info {
	max-width: 1200px;
	margin: 0 auto;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer .copyright-bar a {
	color: rgba(255, 255, 255, 0.75);
}

.site-footer .copyright-bar a:hover,
.site-footer .copyright-bar a:focus {
	color: #fff;
}

/* --- Breadcrumbs (nad tytułem wpisu) --- */
.bdo-breadcrumbs {
	margin: 0 0 1.25em;
	font-size: 0.8125em;
	color: var(--bdo-color-text-muted);
}

.bdo-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bdo-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 0.375em;
}

.bdo-breadcrumbs li:not(:last-child)::after {
	content: "/";
	color: var(--bdo-color-border);
}

.bdo-breadcrumbs a {
	color: var(--bdo-color-text-muted);
	text-decoration: none;
}

.bdo-breadcrumbs a:hover,
.bdo-breadcrumbs a:focus {
	color: var(--bdo-color-accent-2);
	text-decoration: underline;
}

/* --- Strona 404 --- */
.bdo-404__kategorie {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 1.5em 0 3em;
}

.bdo-404__kategorie a {
	padding: 0.5em 1.25em;
	background-color: var(--bdo-color-surface);
	border: 1px solid var(--bdo-color-border);
	border-radius: 999px;
	color: var(--bdo-color-text);
	text-decoration: none;
	font-weight: 600;
}

.bdo-404__kategorie a:hover,
.bdo-404__kategorie a:focus {
	border-color: var(--bdo-color-accent-2);
	color: var(--bdo-color-accent-2);
}

.bdo-404__naglowek {
	margin: 0 0 1.25em;
}

/* --- Pasek postępu czytania (wpisy) --- */
.bdo-progres-czytania {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: transparent;
	z-index: 9999;
	pointer-events: none;
	/* Wymusza własną warstwę kompozycji — bez tego niektóre mobilne
	 * przeglądarki (Safari/Chrome na iOS) potrafią przy chowaniu/pokazywaniu
	 * paska adresu "odkleić" element fixed od górnej krawędzi wizualnego
	 * viewportu i na moment renderować go niżej, nad treścią artykułu. */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	will-change: transform;
}

.bdo-progres-czytania__pasek {
	height: 100%;
	width: 0%;
	background-color: var(--bdo-color-accent-2);
	transition: width 0.1s linear;
}

/* Nie zasłaniaj paska narzędzi WP zalogowanym redaktorom. */
body.admin-bar .bdo-progres-czytania {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .bdo-progres-czytania {
		top: 46px;
	}
}

/* --- Sekcja "Kalkulatory budowlane" na stronie głównej ---
 * Karty w tej sekcji (.bdo-kalkulatory-hub__siatka/__karta/__ikona/...)
 * współdzielą styl z hubem /kalkulatory/ niżej w tym pliku — tu tylko
 * nagłówek sekcji (ten sam wzorzec co .bdo-kategoria-blok__naglowek). */
.bdo-home-kalkulatory {
	margin: 0 0 4.5em;
}

/* Mobile-first: patrz komentarz przy .bdo-kategoria-blok__naglowek — ten
 * sam problem był tu wyraźniejszy, bo "Kalkulatory budowlane" + "Wszystkie
 * kalkulatory" to sporo tekstu w jednym rzędzie. */
.bdo-home-kalkulatory__naglowek {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0 0 1.25em;
}

@media (min-width: 600px) {
	.bdo-home-kalkulatory__naglowek {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 1em;
	}
}

.bdo-home-kalkulatory__naglowek h2 {
	margin: 0;
}

.bdo-home-kalkulatory__naglowek h2 a {
	color: inherit;
	text-decoration: none;
}

.bdo-home-kalkulatory__naglowek h2 a:hover,
.bdo-home-kalkulatory__naglowek h2 a:focus {
	color: var(--bdo-color-accent-2);
}

.bdo-home-kalkulatory__wiecej {
	flex-shrink: 0;
	font-weight: 600;
	font-size: 0.9375em;
	color: var(--bdo-color-accent-2);
	text-decoration: none;
	white-space: nowrap;
}

.bdo-home-kalkulatory__wiecej:hover,
.bdo-home-kalkulatory__wiecej:focus {
	color: var(--bdo-color-accent);
}

/* --- Box "Powiązany kalkulator" pod treścią wpisu (automatyczny, wg
 * kategorii — zob. bdo_dopasuj_kalkulator_do_wpisu() w inc/kalkulatory.php).
 * Wyróżnione, zabarwione tło (nie zwykła biała karta), żeby przerywało
 * rytm tekstu i było nie do przeoczenia przy skanowaniu strony. --- */
.bdo-wpis-kalkulator-cta {
	display: flex;
	gap: 1.25em;
	align-items: flex-start;
	margin: 2.5em 0;
	padding: 1.5em;
	background-color: color-mix(in srgb, var(--bdo-color-accent-2) 10%, var(--bdo-color-surface));
	border: 1px solid var(--bdo-color-border);
	border-radius: 10px;
	box-shadow: 0 12px 30px -18px rgba(38, 36, 31, 0.25);
}

.bdo-wpis-kalkulator-cta__ikona {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--bdo-color-accent-2);
}

.bdo-wpis-kalkulator-cta__ikona svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bdo-wpis-kalkulator-cta__eyebrow {
	margin: 0 0 0.375em;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bdo-color-accent-2);
}

.bdo-wpis-kalkulator-cta__tytul {
	margin: 0 0 0.375em;
	font-family: var(--bdo-font-heading);
	font-size: 1.125em;
	font-weight: 600;
}

.bdo-wpis-kalkulator-cta__opis {
	margin: 0 0 1em;
	color: var(--bdo-color-text-muted);
}

.bdo-wpis-kalkulator-cta__przycisk {
	display: inline-block;
	padding: 0.6em 1.4em;
	background-color: var(--bdo-color-accent-2);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.bdo-wpis-kalkulator-cta__przycisk:hover,
.bdo-wpis-kalkulator-cta__przycisk:focus {
	background-color: var(--bdo-color-accent);
	color: #fff;
	transform: translateY(-2px);
}

/* --- Hub kalkulatorów (page-kalkulatory.php) --- */
.bdo-kalkulatory-hub__intro {
	max-width: 65ch;
	margin: 2em 0 2.5em;
}

.bdo-kalkulatory-hub__eyebrow {
	margin: 0 0 0.5em;
	font-size: 0.8125em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bdo-color-accent-2);
}

.bdo-kalkulatory-hub__tytul {
	margin: 0 0 0.5em;
	font-size: clamp(1.75rem, 1.375rem + 1.5vw, 2.5rem);
	line-height: 1.15;
	font-weight: 400;
}

.bdo-kalkulatory-hub__lead {
	margin: 0;
	color: var(--bdo-color-text-muted);
	font-size: 1.0625em;
}

.bdo-kalkulatory-hub__siatka {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25em;
	margin: 0 0 4em;
}

/* Karta narzędzia — ta sama wizualna rodzina co .bdo-kategorie__kafelek
 * (kafelki "przeglądaj wg tematów" na stronie głównej): spójny wzorzec
 * "hub z kartami prowadzącymi dalej" w całym serwisie. Układ poziomy
 * (ikona + tytuł + opis), bo w przeciwieństwie do kafelków kategorii karta
 * narzędzia potrzebuje miejsca na krótki opis pod tytułem. */
.bdo-kalkulatory-hub__karta {
	display: flex;
	align-items: center;
	gap: 1.25em;
	padding: 1.5em;
	background-color: var(--bdo-color-accent);
	background-image: radial-gradient(circle at 85% -15%, rgba(255, 255, 255, 0.18), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 14px);
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
	box-shadow: 0 12px 24px -16px rgba(47, 82, 51, 0.6);
	transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bdo-kalkulatory-hub__karta:hover,
.bdo-kalkulatory-hub__karta:focus {
	background-color: var(--bdo-color-accent-2);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 16px 28px -14px rgba(191, 106, 61, 0.55);
}

.bdo-kalkulatory-hub__ikona {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.16);
}

.bdo-kalkulatory-hub__ikona svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bdo-kalkulatory-hub__karta-tresc {
	display: flex;
	flex-direction: column;
}

.bdo-kalkulatory-hub__karta-tytul {
	margin-bottom: 0.25em;
	font-family: var(--bdo-font-heading);
	font-size: 1.125em;
	font-weight: 600;
}

.bdo-kalkulatory-hub__karta-opis {
	font-size: 0.875em;
	color: rgba(255, 255, 255, 0.85);
}
