/**
 * Design System – PoradnikMedyczny.pl
 *
 * WCAG 2.1 AA, mobile-first, startup-premium, neutralny medyczny.
 *
 * @package VisioLab_Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@600;700&display=swap');

/* ===== 1.1 Zmienne CSS i typografia ===== */
:root {
	/* Brand */
	--color-brand-900: #064467;
	--color-brand-700: #0b5a86;
	--color-brand-500: #5caddc;
	--color-brand-200: #d7ecf8;
	--color-brand-100: #eef6fb;

	/* CTA */
	--color-cta: var(--color-brand-500);
	--color-cta-hover: #4697c8;
	--color-cta-focus: rgba(92, 173, 220, 0.35);

	/* Surfaces */
	--color-bg: #ffffff;
	--color-bg-muted: #f5f9fc;
	--color-border: #e3edf5;

	/* Text */
	--color-text: #0b2230;
	--color-text-muted: #55636d;

	/* Typography */
	--font-family-base: 'Manrope', 'Helvetica Neue', sans-serif;
	--font-family-display: 'Sora', 'Helvetica Neue', sans-serif;
	--font-size-base: 1rem;
	--line-height-base: 1.65;
	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-bold: 700;

	/* Radius + shadow */
	--radius-sm: 0.5rem;
	--radius-md: 0.75rem;
	--radius-lg: 1rem;
	--shadow-soft: 0 10px 30px rgba(6, 68, 103, 0.08);

	/* Spacing */
	--spacing-xs: 0.25rem;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-2xl: 3rem;
	--spacing-3xl: 4rem;

	/* Section spacing */
	--section-padding-y: 3.5rem;
	--section-padding-y-md: 4.5rem;
}

/* Typografia globalna */
body {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-display);
	color: var(--color-brand-900);
	letter-spacing: -0.01em;
}

/* ===== 1.2 Komponenty CTA ===== */
.btn-cta-primary,
.btn-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.75rem 1.6rem;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background-color: var(--color-brand-900);
	background-image: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-700) 100%);
	border: 1px solid rgba(6, 68, 103, 0.35);
	border-radius: var(--radius-md);
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(6, 68, 103, 0.18);
	width: auto;
	max-width: none;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-cta-primary:visited,
.btn-search:visited {
	color: #fff;
}

.btn-cta-primary:hover,
.btn-search:hover,
button[type=submit].btn-cta-primary:hover,
button[type=submit].btn-search:hover {
	background-color: var(--color-brand-700);
	background-image: linear-gradient(135deg, var(--color-brand-700) 0%, #0f6ea6 100%);
	border-color: rgba(6, 68, 103, 0.55);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 16px 28px rgba(6, 68, 103, 0.24);
}

.btn-cta-primary:focus-visible,
.btn-search:focus-visible {
	outline: 2px solid var(--color-brand-500);
	outline-offset: 2px;
	box-shadow: 0 0 0 0.2rem var(--color-cta-focus);
}

.btn-cta-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.6rem 1.5rem;
	font-size: 0.95rem;
	font-weight: var(--font-weight-medium);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--color-brand-900);
	background-color: transparent;
	border: 1px solid var(--color-brand-200);
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cta-secondary:hover {
	background-color: var(--color-brand-200);
	color: var(--color-brand-900);
	text-decoration: none;
	border-color: var(--color-brand-200);
}

.btn-cta-secondary:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

.link-cta {
	color: var(--color-cta);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.link-cta:hover {
	color: var(--color-cta-hover);
	text-decoration: underline;
}

.link-cta:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Reset dla przycisku hamburgera (zachowuje wygląd) */
#hamburger {
	font: inherit;
	color: inherit;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

#hamburger:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

/* ===== Site Topbar ===== */
.site-topbar {
	display: none; /* hidden on mobile */
	background: var(--color-brand-900);
	border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 992px) {
	.site-topbar { display: block; }
}
.site-topbar__inner {
	display: flex;
	align-items: center;
	height: 38px;
	gap: 0.5rem;
}
.site-topbar__left {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.775rem;
	color: rgba(255,255,255,.42);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.site-topbar__right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}
.site-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.65rem;
	color: rgba(255,255,255,.72);
	text-decoration: none;
	font-size: 0.8rem;
	border-radius: 4px;
	transition: color .15s, background .15s;
	white-space: nowrap;
	line-height: 1;
}
.site-topbar__link:hover {
	color: #fff;
	background: rgba(255,255,255,.1);
	text-decoration: none;
}
.site-topbar__divider {
	display: inline-block;
	width: 1px;
	height: 14px;
	background: rgba(255,255,255,.18);
	margin: 0 0.15rem;
	flex-shrink: 0;
}
/* Rejestracja — mały biały przycisk */
.site-topbar__register {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.75rem;
	margin-left: 0.3rem;
	font-size: 0.775rem;
	font-weight: 600;
	color: var(--color-brand-900) !important;
	background: #fff;
	border-radius: 4px;
	text-decoration: none !important;
	transition: opacity .15s;
	white-space: nowrap;
	line-height: 1.3;
}
.site-topbar__register:hover { opacity: .9; }
/* Avatar z inicjałami */
.site-topbar__avatar {
	width: 22px;
	height: 22px;
	background: var(--color-brand-500);
	color: #fff;
	border-radius: 50%;
	font-size: 0.62rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-transform: uppercase;
	letter-spacing: 0;
}
/* User dropdown */
.site-topbar__user .dropdown-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.28rem 0.65rem;
	color: rgba(255,255,255,.72);
	font-size: 0.8rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 4px;
	transition: color .15s, background .15s;
	line-height: 1;
}
.site-topbar__user .dropdown-toggle:hover,
.site-topbar__user.show .dropdown-toggle {
	color: #fff;
	background: rgba(255,255,255,.1);
	box-shadow: none;
	outline: none;
}
.site-topbar__user .dropdown-toggle::after { display: none; }
.site-topbar__user .dropdown-menu {
	min-width: 200px;
	margin-top: 6px !important;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 8px 24px rgba(6,68,103,.13);
	padding: 0.35rem 0;
}
.site-topbar__user .dropdown-item {
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	color: var(--color-text);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}
.site-topbar__user .dropdown-item:hover,
.site-topbar__user .dropdown-item:focus {
	background: var(--color-brand-100);
	color: var(--color-brand-900);
}
.site-topbar__user .dropdown-item.item-danger { color: #dc2626; }
.site-topbar__user .dropdown-item.item-danger:hover {
	background: #fef2f2;
	color: #dc2626;
}
.site-topbar__user .dropdown-item svg { flex-shrink: 0; opacity: .7; }
.site-topbar__user .dropdown-header {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-text-muted);
	padding: 0.5rem 1rem 0.25rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}
/* Logout form inside dropdown */
.site-topbar__user .dropdown-item-form {
	padding: 0;
}
.site-topbar__user .dropdown-item-form button {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
}

/* ===== Mobile nav — auth links ===== */
.nav-auth-mobile {
	border-top: 1px solid var(--color-border);
	margin-top: 0.5rem;
	padding-top: 0.5rem;
}

/* Footer – Design System */
/* ── Footer ── */
.site-footer {
	background: #f4f8ff;
	border-top: 1px solid var(--color-border);
}

/* Row 1 — main widgets */
.footer-top {
	padding: 3rem 0 2rem;
}

/* Brand column */
.footer-brand .footer-brand-desc {
	font-size: .875rem;
	color: var(--color-text-muted);
	line-height: 1.65;
	margin-top: .75rem;
	margin-bottom: 1rem;
}

/* Social icons */
.footer-social {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .25rem;
}
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #e8eef8;
	color: var(--color-brand-700);
	text-decoration: none;
	transition: background .18s, color .18s;
	font-size: 16px;
}
.footer-social a:hover {
	background: var(--color-brand-600);
	color: #fff;
}
.footer-social a:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

/* Nav columns */
.site-footer .footer-col .widget-title {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--color-brand-900);
	margin-bottom: .85rem;
}

.site-footer .footer-col a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.site-footer .footer-col a:hover {
	color: var(--color-brand-700);
	text-decoration: underline;
}

.site-footer .footer-nav li {
	margin-bottom: .45rem;
}

.site-footer .footer-nav a {
	font-size: .875rem;
	color: var(--color-text);
	text-decoration: none;
}

.site-footer .footer-nav a:hover {
	color: var(--color-cta);
	text-decoration: underline;
}

.site-footer .footer-nav a:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

/* Row 2 — bottom bar */
.footer-bottom {
	border-top: 1px solid var(--color-border);
	padding: .9rem 0;
	font-size: .8rem;
	color: var(--color-text-muted);
}

.footer-bottom a {
	color: var(--color-text-muted);
	text-decoration: none;
}
.footer-bottom a:hover {
	color: var(--color-brand-700);
	text-decoration: underline;
}

.footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	justify-content: center;
}

.footer-nfz-badge {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .75rem;
	color: var(--color-text-muted);
}

/* Legacy compat — kept so nothing breaks */
.site-footer .footer-links {
	padding-top: var(--spacing-xl);
	padding-bottom: var(--spacing-lg);
	border-bottom: 1px solid var(--color-border);
}
.site-footer .footer-widgets {
	padding: var(--spacing-xl) 0;
}

/* ===== FAZA 2: Strona główna ===== */
.home-main {
	padding-bottom: var(--spacing-3xl);
}

/* Hero */
.home-hero {
	padding: var(--section-padding-y) 0 var(--section-padding-y-md);
	background: radial-gradient(1200px 420px at 85% -10%, rgba(92, 173, 220, 0.28), transparent 60%),
		linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
	position: relative;
	overflow: hidden;
}

.home-hero::after {
	content: '';
	position: absolute;
	right: -120px;
	top: 40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(6, 68, 103, 0.08);
	filter: blur(0);
}

.home-hero .container {
	position: relative;
	z-index: 1;
}

.home-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-md);
}

.home-hero__desc {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xl);
}

.home-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-md);
}

.home-hero__btn {
	padding: 0.75rem 1.75rem;
}

.home-hero__image img {
	max-width: 100%;
	height: auto;
}

/* 3 Kroki */
.home-steps {
	padding: var(--section-padding-y) 0;
	background: var(--color-bg);
}

.home-steps__title {
	font-size: 1.5rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-xl);
}

.home-steps__card {
	background: var(--color-bg);
	padding: var(--spacing-lg);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft);
	height: 100%;
}

.home-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: var(--color-brand-900);
	color: #fff;
	font-weight: var(--font-weight-bold);
	border-radius: 50%;
	font-size: 0.875rem;
	margin-bottom: var(--spacing-sm);
}

.home-steps__card-title {
	font-size: 1.125rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-sm);
}

.home-steps__card-desc {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	margin-bottom: 0;
}

.home-steps__cta {
	text-align: center;
}

/* Sekcja nagłówka */
.home-section-head {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: var(--spacing-xl);
}

.home-section-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-brand-700);
	font-weight: 600;
}

/* Specjaliści wg miasta */
.home-city-links {
	padding: var(--section-padding-y) 0;
	background: var(--color-bg-muted);
	position: relative;
	overflow: hidden;
}

.home-city-links::before {
	content: '';
	position: absolute;
	left: -160px;
	bottom: -120px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(92, 173, 220, 0.18);
}

.home-city-links .container {
	position: relative;
	z-index: 1;
}

.home-city-links__title {
	font-size: 1.75rem;
}

.home-city-links__desc {
	color: var(--color-text-muted);
	max-width: 680px;
}

.home-city-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	height: 100%;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.home-city-card__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--spacing-sm);
}

.home-city-card__title {
	font-size: 1.2rem;
	margin: 0;
}

.home-city-card__meta {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-brand-700);
	text-decoration: none;
	font-weight: 600;
}

.home-city-card__meta:hover {
	color: var(--color-brand-700);
}

.home-city-card__meta:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.home-city-card__details {
	border-top: 1px solid var(--color-border);
	padding-top: var(--spacing-sm);
}

.home-city-card__details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: var(--color-brand-900);
	padding: 0.35rem 0;
}

.home-city-card__details summary::-webkit-details-marker {
	display: none;
}

.home-city-card__details summary::after {
	content: '>';
	font-size: 1rem;
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.home-city-card__details[open] summary::after {
	transform: rotate(-90deg);
}

.home-city-card__details summary:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.home-city-card__links {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4rem 0.75rem;
	margin: 0;
	padding: 0;
	margin-top: var(--spacing-sm);
}

.home-city-card__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.6rem;
	border-radius: 999px;
	background: var(--color-brand-100);
	color: var(--color-brand-900);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	border: 1px solid var(--color-brand-200);
}

.home-city-card__links a:hover {
	background: var(--color-brand-200);
}

.home-city-card__links a:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
}

.home-city-card__more {
	margin-top: auto;
	font-weight: 600;
	color: var(--color-brand-700);
	text-decoration: none;
}

.home-city-card__more:hover {
	text-decoration: underline;
}

@media (min-width: 768px) {
	.home-city-card__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Najczęściej wyszukiwane */
.home-popular {
	padding: var(--section-padding-y) 0;
}

.home-popular__title {
	font-size: 1.5rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-lg);
}

.home-popular__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm) var(--spacing-lg);
	list-style: none;
	padding: 0;
	margin: 0;
}

.home-popular__list a {
	color: var(--color-brand-700);
	text-decoration: none;
	font-weight: 600;
}

.home-popular__list a:hover {
	text-decoration: underline;
}

.home-popular__list a:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
}

/* Dlaczego warto */
.home-why {
	padding: var(--section-padding-y) 0;
	background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.home-why__title {
	font-size: 1.5rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-xl);
}

.home-why__card {
	background: var(--color-bg);
	padding: var(--spacing-lg);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft);
	height: 100%;
}

.home-why__icon {
	font-size: 1.5rem;
	display: block;
	margin-bottom: var(--spacing-sm);
}

.home-why__card-title {
	font-size: 1rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-xs);
}

.home-why__card-desc {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-bottom: 0;
}

@keyframes pm-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.home-steps__card,
	.home-city-card,
	.home-why__card,
	.home-blog__card {
		animation: pm-fade-up 0.6s ease both;
	}

	.home-steps .col-md-4:nth-child(2) .home-steps__card,
	.home-why .col-md-6:nth-child(2) .home-why__card,
	.home-city-grid .col-md-6:nth-child(2) .home-city-card {
		animation-delay: 0.1s;
	}

	.home-steps .col-md-4:nth-child(3) .home-steps__card,
	.home-why .col-md-6:nth-child(3) .home-why__card,
	.home-city-grid .col-md-6:nth-child(3) .home-city-card {
		animation-delay: 0.2s;
	}
}

/* FAQ */
.home-faq {
	padding: var(--section-padding-y) 0;
}

.home-faq__title {
	font-size: 1.5rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-lg);
}

.home-faq__accordion .accordion-button {
	font-weight: var(--font-weight-medium);
}

.home-faq__accordion .accordion-button:not(.collapsed) {
	background: var(--color-bg-muted);
	color: var(--color-cta);
}

.home-faq__accordion .accordion-button:focus {
	box-shadow: 0 0 0 0.2rem var(--color-cta-focus);
}

/* Blog */
.home-blog {
	padding: var(--spacing-3xl) 0;
	background: var(--color-bg-muted);
}

.home-blog__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-lg);
}

.home-blog__title {
	font-size: 1.5rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin: 0;
}

.home-blog__card {
	background: var(--color-bg);
	border-radius: 0.25rem;
	overflow: hidden;
	height: 100%;
}

.home-blog__thumb {
	display: block;
	aspect-ratio: 16/10;
	overflow: hidden;
}

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

.home-blog__body {
	padding: var(--spacing-md);
}

.home-blog__date {
	display: block;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xs);
}

.home-blog__card-title {
	font-size: 1rem;
	font-weight: var(--font-weight-medium);
	margin: 0;
}

.home-blog__card-title a {
	color: var(--color-text);
	text-decoration: none;
}

.home-blog__card-title a:hover {
	color: var(--color-cta);
	text-decoration: underline;
}

.home-blog__card-title a:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

/* ===== Home — nowe sekcje katalogowe ===== */

/* ── Wspólne nagłówki sekcji ── */
.home-section-head {
	text-align: center;
	margin-bottom: var(--spacing-xl);
}

.home-section-head--row {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: space-between;
	text-align: left;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.home-section-eyebrow {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-brand-700);
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.home-section-eyebrow--light {
	color: rgba(255,255,255,.75);
}

.home-section-head__link {
	color: var(--color-brand-700);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.home-section-head__link:hover {
	color: var(--color-brand-500);
	text-decoration: underline;
}

/* ── 3. Wejście do katalogu ── */
.home-catalog-entry {
	padding: var(--section-padding-y) 0;
	background: var(--color-bg-muted);
}

.home-catalog-entry__title {
	font-family: var(--font-family-display);
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	color: var(--color-brand-900);
	margin: 0 0 var(--spacing-sm);
}

.home-catalog-entry__desc {
	color: var(--color-text-muted);
	max-width: 44rem;
	margin: 0 auto;
	font-size: 1.05rem;
}

/* Wyszukiwarka katalogu */
.home-catalog-search {
	margin: var(--spacing-xl) 0 var(--spacing-lg);
}

.home-catalog-search__inner {
	display: flex;
	gap: var(--spacing-sm);
	background: #fff;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 0.5rem;
	box-shadow: var(--shadow-soft);
	flex-wrap: wrap;
}

.home-catalog-search__field {
	display: flex;
	align-items: center;
	flex: 1 1 200px;
	border-right: 1px solid var(--color-border);
	padding: 0 var(--spacing-sm);
	gap: 0.5rem;
	min-width: 0;
}

.home-catalog-search__field--city {
	flex: 0 1 180px;
}

.home-catalog-search__field:last-of-type {
	border-right: none;
}

.home-catalog-search__icon {
	color: var(--color-text-muted);
	flex-shrink: 0;
}

.home-catalog-search__input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 0.95rem;
	color: var(--color-text);
	width: 100%;
	padding: 0.6rem 0;
}

.home-catalog-search__input::placeholder {
	color: var(--color-text-muted);
}

.home-catalog-search__btn {
	flex-shrink: 0;
	white-space: nowrap;
	padding: 0.65rem 1.4rem;
	font-size: 0.9rem;
}

@media (max-width: 600px) {
	.home-catalog-search__inner { flex-direction: column; }
	.home-catalog-search__field { border-right: none; border-bottom: 1px solid var(--color-border); }
	.home-catalog-search__btn { width: 100%; }
}

/* Tagi specjalizacji */
.home-spec-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.5rem;
}

.home-spec-tags__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-text-muted);
	margin-right: 0.25rem;
}

.home-spec-tag {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--color-text);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.home-spec-tag:hover,
.home-spec-tag--all:hover {
	background: var(--color-brand-100);
	border-color: var(--color-brand-200);
	color: var(--color-brand-900);
}

.home-spec-tag--all {
	background: var(--color-brand-100);
	border-color: var(--color-brand-200);
	color: var(--color-brand-700);
	font-weight: 600;
}

/* Ścieżki — przychodnie / lekarze / katalog */
.home-catalog-path {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	padding: var(--spacing-md) var(--spacing-lg);
	background: #fff;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-brand-900);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.home-catalog-path:hover {
	border-color: var(--color-brand-500);
	box-shadow: var(--shadow-soft);
	transform: translateY(-2px);
	color: var(--color-brand-700);
}

.home-catalog-path--all {
	background: var(--color-brand-100);
	border-color: var(--color-brand-200);
}

.home-catalog-path__icon {
	font-size: 1.3rem;
}

.home-catalog-path__label {
	flex: 1;
}

.home-catalog-path__arrow {
	color: var(--color-brand-500);
	font-weight: 700;
	transition: transform 0.15s;
}

.home-catalog-path:hover .home-catalog-path__arrow {
	transform: translateX(3px);
}

/* ── 4. Promowane placówki ── */
.home-promoted {
	padding: var(--section-padding-y) 0;
}

.home-promoted__title {
	font-family: var(--font-family-display);
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	color: var(--color-brand-900);
	margin: 0;
}

/* Karta placówki */
.home-facility-card {
	background: #fff;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-facility-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(6, 68, 103, 0.13);
	border-color: var(--color-brand-500);
}

.home-facility-card__media {
	position: relative;
	height: 110px;
	background: var(--color-brand-100);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.home-facility-card__logo {
	max-width: 70%;
	max-height: 70px;
	object-fit: contain;
}

.home-facility-card__placeholder {
	font-family: var(--font-family-display);
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-brand-500);
	letter-spacing: -0.05em;
}

.home-facility-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--color-brand-900);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 2px 8px;
	border-radius: 999px;
}

.home-facility-card__body {
	padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.home-facility-card__type {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-brand-700);
	margin: 0;
}

.home-facility-card__name {
	font-family: var(--font-family-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-brand-900);
	margin: 0;
	line-height: 1.3;
}

.home-facility-card:hover .home-facility-card__name {
	color: var(--color-brand-700);
}

.home-facility-card__city {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.82rem;
	color: var(--color-text-muted);
	margin: 2px 0 4px;
}

.home-facility-card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-bottom: 6px;
}

.home-facility-card__spec-tag {
	background: var(--color-brand-100);
	border: 1px solid var(--color-brand-200);
	border-radius: 999px;
	color: var(--color-brand-900);
	font-size: 0.72rem;
	font-weight: 600;
	padding: 1px 8px;
}

.home-facility-card__spec-tag--more {
	background: var(--color-bg-muted);
	border-color: var(--color-border);
	color: var(--color-text-muted);
}

.home-facility-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: auto;
	padding-top: var(--spacing-sm);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--color-brand-700);
	transition: gap 0.15s;
}

.home-facility-card:hover .home-facility-card__cta {
	gap: 0.5rem;
	color: var(--color-brand-500);
}

/* ── 5. Specjalizacje — grid kafli ── */
.home-specializations {
	padding: var(--section-padding-y) 0;
	background: var(--color-bg-muted);
}

.home-specializations__title {
	font-family: var(--font-family-display);
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	color: var(--color-brand-900);
	margin: 0;
}

.home-spec-card {
	background: #fff;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--spacing-md);
	text-align: center;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.home-spec-card:hover {
	border-color: var(--color-brand-500);
	box-shadow: var(--shadow-soft);
	transform: translateY(-3px);
}

.home-spec-card__icon {
	display: block;
	font-size: 1.75rem;
	margin-bottom: 0.4rem;
	line-height: 1;
}

.home-spec-card__name {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--color-brand-900);
	line-height: 1.3;
}

/* ── 8. Artykuły — wrapper ── */
.home-articles {
	padding: var(--section-padding-y) 0;
}

.home-articles__title {
	font-family: var(--font-family-display);
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	color: var(--color-brand-900);
	margin: 0;
}

/* ── 9. Kalkulatory — ciemny baner ── */
.home-calculators {
	padding: var(--section-padding-y) 0;
	background: linear-gradient(135deg, var(--color-brand-900) 0%, var(--color-brand-700) 100%);
}

.home-calculators__inner {
	display: grid;
	gap: var(--spacing-2xl);
	align-items: center;
}

@media (min-width: 768px) {
	.home-calculators__inner {
		grid-template-columns: 1fr 1fr;
	}
}

.home-calculators__title {
	font-family: var(--font-family-display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: #fff;
	margin: var(--spacing-xs) 0 var(--spacing-sm);
}

.home-calculators__desc {
	color: rgba(255,255,255,.82);
	font-size: 0.95rem;
	line-height: 1.65;
	max-width: 400px;
}

.home-calculators__btn {
	display: inline-block;
	margin-top: var(--spacing-md);
	background: #fff;
	color: var(--color-brand-900);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.home-calculators__btn:hover {
	background: var(--color-brand-100);
	transform: translateY(-2px);
}

.home-calculators__tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-sm);
}

.home-calc-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: var(--spacing-md) var(--spacing-sm);
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: var(--radius-md);
	font-size: 1.5rem;
	cursor: default;
}

.home-calc-tile span {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255,255,255,.85);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ── 12. Dolny CTA właściciele + newsletter ── */
.home-bottom-cta {
	padding: var(--section-padding-y) 0;
	background: linear-gradient(135deg, #0f766e 0%, #0e5c54 100%);
}

.home-bottom-cta .home-newsletter__title,
.home-bottom-cta .home-newsletter__desc {
	color: #fff;
}

.home-bottom-cta .home-newsletter__desc {
	opacity: .85;
}

.home-bottom-cta .home-newsletter__form .form-control {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.3);
	color: #fff;
}

.home-bottom-cta .home-newsletter__form .form-control::placeholder {
	color: rgba(255,255,255,.55);
}

.home-bottom-cta .form-check-label {
	color: rgba(255,255,255,.7);
}

/* Przycisk secondary na ciemnym tle sekcji CTA */
.home-bottom-cta .btn-cta-secondary {
	color: #fff;
	border-color: rgba(255,255,255,.55);
	background-color: rgba(255,255,255,.1);
}
.home-bottom-cta .btn-cta-secondary:hover {
	color: #fff;
	border-color: rgba(255,255,255,.85);
	background-color: rgba(255,255,255,.2);
}

.home-owners-cta__title {
	font-family: var(--font-family-display);
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	color: #fff;
	margin: var(--spacing-xs) 0 var(--spacing-sm);
}

.home-owners-cta__desc {
	color: rgba(255,255,255,.85);
	font-size: 0.95rem;
	line-height: 1.65;
	max-width: 420px;
}

/* ===== FAZA 3: Blog ===== */
/* Breadcrumbs */
.breadcrumbs-wrap {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.breadcrumbs {
	padding: var(--spacing-md) 0;
	font-size: 0.875rem;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.breadcrumbs__item:not(:last-child)::after {
	content: '›';
	margin-left: 0.5rem;
	color: var(--color-text-muted);
}

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

.breadcrumbs__item a:hover {
	color: var(--color-cta);
}

.breadcrumbs__item [aria-current] {
	color: var(--color-text);
}

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

.breadcrumbs a:hover {
	color: var(--color-brand-700);
}

.breadcrumbs .breadcrumb_last {
	color: var(--color-text);
}

/* Blog listing */
.blog-main {
	padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.blog-header {
	margin-bottom: var(--spacing-xl);
}

.blog-title {
	font-size: 1.75rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin-bottom: var(--spacing-sm);
}

.blog-desc {
	color: var(--color-text-muted);
	margin-bottom: 0;
}

/* ===== Baza wiedzy ===== */
.knowledge-main {
	padding: var(--spacing-xl) 0 var(--spacing-3xl);
}

.knowledge-hero {
	display: grid;
	gap: var(--spacing-2xl);
	margin-bottom: var(--spacing-2xl);
	padding: var(--spacing-2xl);
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, #f6fbff 0%, #ffffff 70%);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-soft);
}

@media (min-width: 992px) {
	.knowledge-hero {
		grid-template-columns: 2fr 1fr;
		align-items: center;
	}
}

.knowledge-hero__eyebrow {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-brand-700);
	font-weight: 700;
}

.knowledge-hero__title {
	font-size: clamp(2rem, 3.2vw, 2.6rem);
	margin: var(--spacing-sm) 0;
}

.knowledge-hero__desc {
	color: var(--color-text-muted);
	max-width: 40rem;
}

.knowledge-search__row {
	display: flex;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
	margin-top: var(--spacing-lg);
}

.knowledge-search__row .form-control {
	flex: 1 1 14rem;
}

.knowledge-hero__panel {
	background: #fff;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-soft);
}

.knowledge-hero__panel-title {
	font-weight: 700;
	color: var(--color-brand-900);
	margin-bottom: var(--spacing-xs);
}

.knowledge-hero__panel-desc {
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-md);
}

.knowledge-featured__title {
	font-size: 1.25rem;
	margin-bottom: var(--spacing-md);
}

.kb-card {
	display: flex;
}

.kb-card__inner {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.kb-card__media {
	display: block;
}

.kb-card__media img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.kb-card__media:hover img {
	transform: scale(1.03);
}

.kb-card__body {
	padding: var(--spacing-lg);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	height: 100%;
}

.kb-card__meta {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
}

.kb-card__pill {
	background: var(--color-brand-100);
	color: var(--color-brand-900);
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--color-brand-200);
}

.kb-card__pill:hover {
	background: var(--color-brand-200);
}

.kb-card__time {
	font-size: 0.75rem;
	color: var(--color-text-muted);
}

.kb-card__title {
	font-size: 1.2rem;
	margin: 0;
}

.kb-card__title a {
	color: var(--color-brand-900);
	text-decoration: none;
}

.kb-card__title a:hover {
	color: var(--color-brand-700);
}

.kb-card__title a:focus-visible,
.kb-card__pill:focus-visible,
.kb-card__media:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.kb-card__excerpt {
	color: var(--color-text-muted);
	font-size: 0.95rem;
}

.kb-card__date {
	margin-top: auto;
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.knowledge-sidebar__block {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-soft);
	margin-bottom: var(--spacing-lg);
}

.knowledge-sidebar__title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: var(--spacing-md);
	color: var(--color-brand-900);
}

.knowledge-sidebar__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.knowledge-sidebar__list li {
	margin-bottom: 0.5rem;
}

.knowledge-sidebar__list a {
	color: var(--color-text);
	text-decoration: none;
}

.knowledge-sidebar__list a:hover {
	color: var(--color-brand-700);
}

.knowledge-sidebar__list a:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

.knowledge-sidebar__tags a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--color-bg-muted);
	color: var(--color-brand-900);
	border: 1px solid var(--color-border);
	font-size: 0.85rem !important;
	text-decoration: none;
	margin: 0 0.35rem 0.35rem 0;
}

.knowledge-sidebar__tags a:hover {
	background: var(--color-brand-100);
	border-color: var(--color-brand-200);
}

.knowledge-archive {
	margin-bottom: var(--spacing-lg);
}

.knowledge-archive__title {
	font-size: 1.75rem;
	margin-bottom: var(--spacing-sm);
}

.knowledge-archive__desc {
	color: var(--color-text-muted);
}

/* Paginacja */
.navigation.pagination {
	display: flex;
	justify-content: center;
	margin-top: var(--spacing-xl);
}

.navigation.pagination .nav-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: #fff;
	color: var(--color-brand-900);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: var(--shadow-soft);
}

.navigation.pagination .page-numbers:hover {
	border-color: var(--color-brand-200);
	background: var(--color-brand-100);
	color: var(--color-brand-900);
}

.navigation.pagination .page-numbers:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 2px;
}

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

.navigation.pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev {
	padding: 0.5rem 1.1rem;
}

.blog-search {
	display: flex;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-xl);
	flex-wrap: wrap;
}

.blog-search .form-control {
	flex: 1;
	min-width: 200px;
}

.blog-featured__title {
	font-size: 1.25rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin-bottom: var(--spacing-md);
}

.blog-list {
	margin-bottom: var(--spacing-xl);
}

.blog-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--color-bg);
	border-radius: 0.25rem;
	overflow: hidden;
	height: 100%;
}

.blog-card__link:hover {
	color: inherit;
}

.blog-card__thumb {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.blog-card__link:hover .blog-card__thumb img {
	transform: scale(1.03);
}

.blog-card__body {
	padding: var(--spacing-md);
}

.blog-card__date {
	display: block;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xs);
}

.blog-card__title {
	font-size: 1.125rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin: 0 0 var(--spacing-xs);
}

.blog-card__link:hover .blog-card__title {
	color: var(--color-cta);
}

.blog-card__link:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

.blog-card__excerpt {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* Single post */
.single-post__header {
	margin-bottom: var(--spacing-lg);
}

.single-post__thumb {
	margin-bottom: var(--spacing-md);
	border-radius: 0.25rem;
	overflow: hidden;
}

.single-post__thumb img {
	width: 100%;
	height: auto;
}

.single-post__meta {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xs);
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
}

.single-post__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--color-brand-100);
	color: var(--color-brand-900);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	border: 1px solid var(--color-brand-200);
}

.single-post__pill:hover {
	background: var(--color-brand-200);
}

.single-post__read-time {
	font-size: 0.75rem;
	color: var(--color-text-muted);
}

.single-post__title {
	font-size: 1.75rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin: 0;
}

.single-post__content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--color-text);
}

.single-post__content p {
	margin-bottom: 1.4em;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
	font-family: var(--font-family-display);
	color: var(--color-brand-900);
	margin-top: var(--spacing-xl);
	margin-bottom: var(--spacing-sm);
	line-height: 1.3;
}

.single-post__content h2 { font-size: 1.55rem; }
.single-post__content h3 { font-size: 1.25rem; }
.single-post__content h4 { font-size: 1.1rem; }

.single-post__content ul,
.single-post__content ol {
	margin: 0 0 1.4em 1.5em;
	padding: 0;
}

.single-post__content ul { list-style: disc; }
.single-post__content ol { list-style: decimal; }

.single-post__content li {
	margin-bottom: 0.4em;
	line-height: 1.6;
}

.single-post__content a {
	color: var(--color-brand-700);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-post__content a:hover {
	color: var(--color-brand-900);
}

.single-post__content strong,
.single-post__content b {
	font-weight: 700;
	color: var(--color-text);
}

.single-post__content blockquote {
	margin: var(--spacing-lg) 0;
	padding: var(--spacing-md) var(--spacing-lg);
	border-left: 4px solid var(--color-brand-500);
	background: var(--color-brand-50, #f0f7ff);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--color-text-muted);
	font-style: italic;
}

.single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	margin: var(--spacing-md) 0;
}

.single-post__content figure {
	margin: var(--spacing-lg) 0;
}

.single-post__content figcaption {
	text-align: center;
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-top: var(--spacing-xs);
}

.single-post__content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.4em;
	font-size: 0.95rem;
}

.single-post__content th,
.single-post__content td {
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--color-border);
	text-align: left;
}

.single-post__content th {
	background: var(--color-bg-muted);
	font-weight: 700;
	color: var(--color-brand-900);
}

.single-post__content hr {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: var(--spacing-xl) 0;
}

.single-post__content pre {
	background: var(--color-bg-muted);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--spacing-md);
	overflow-x: auto;
	font-size: 0.9rem;
}

.single-post__content code {
	background: var(--color-bg-muted);
	padding: 0.1em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
	font-family: monospace;
}

.single-post__tax {
	margin-top: var(--spacing-xl);
	display: grid;
	gap: var(--spacing-md);
}

.single-post__tax-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-text-muted);
	font-weight: 700;
	display: block;
	margin-bottom: var(--spacing-xs);
}

.single-post__tax-links a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--color-bg-muted);
	border: 1px solid var(--color-border);
	color: var(--color-brand-900);
	text-decoration: none;
	font-size: 0.85rem;
	margin: 0 0.35rem 0.35rem 0;
}

.single-post__tax-links a:hover {
	background: var(--color-brand-100);
	border-color: var(--color-brand-200);
}

.single-post__info-box,
.single-post__cta-box {
	background: var(--color-bg-muted);
	padding: var(--spacing-lg);
	border-radius: 0.25rem;
	margin-top: var(--spacing-xl);
}

.single-post__info-title,
.single-post__cta-title {
	font-size: 1.125rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin: 0 0 var(--spacing-sm);
}

.single-post__cta-box .btn-cta-primary {
	margin-top: var(--spacing-md);
}

.single-post__related {
	margin-top: var(--spacing-2xl);
	padding-top: var(--spacing-xl);
	border-top: 1px solid var(--color-border);
}

.single-post__related-title {
	font-size: 1.25rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin-bottom: var(--spacing-md);
}

.single-post__related-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.single-post__related-list li {
	margin-bottom: var(--spacing-sm);
}

.single-post__related-list a {
	color: var(--color-cta);
	text-decoration: none;
}

.single-post__related-list a:hover {
	text-decoration: underline;
}

/* ===== Kalkulatory medyczne ===== */

/* ── Indeks: boksy rozsyłające ── */
.calc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg) var(--spacing-lg) calc(var(--spacing-lg) + 0.25rem);
	box-shadow: var(--shadow-soft);
	color: var(--color-text);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	height: 100%;
}

.calc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(6, 68, 103, 0.13);
	border-color: var(--color-brand-500);
}

.calc-card:focus-visible {
	outline: 2px solid var(--color-brand-700);
	outline-offset: 3px;
}

.calc-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	font-size: 1.75rem;
	background: var(--color-brand-100);
	border: 1px solid var(--color-brand-200);
	border-radius: var(--radius-md);
	margin-bottom: var(--spacing-md);
	flex-shrink: 0;
	line-height: 1;
}

.calc-card__title {
	font-family: var(--font-family-display);
	font-size: 1.15rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-brand-900);
	margin: 0 0 var(--spacing-sm);
	line-height: 1.3;
}

.calc-card__desc {
	color: var(--color-text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0 0 auto;
	padding-bottom: var(--spacing-md);
}

.calc-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	margin-top: var(--spacing-md);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--color-brand-700);
	letter-spacing: 0.01em;
	transition: gap 0.2s ease, color 0.2s ease;
}

.calc-card:hover .calc-card__cta {
	color: var(--color-brand-500);
	gap: 0.55em;
}

/* ── Strona kalkulatora: interaktywny widget ── */
.calc-box {
	background: var(--color-bg);
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--spacing-xl);
	box-shadow: var(--shadow-soft);
}

.calc-label {
	display: block;
	font-size: 0.875rem;
	font-weight: var(--font-weight-medium);
	color: var(--color-brand-900);
	margin-bottom: 0.4rem;
	letter-spacing: 0.01em;
}

.calc-input {
	height: 2.75rem;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: 1rem;
	color: var(--color-text);
	background: var(--color-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-input:focus {
	border-color: var(--color-brand-500);
	box-shadow: 0 0 0 3px rgba(92, 173, 220, 0.2);
	outline: none;
}

/* Wynik kalkulatora */
.calc-result {
	background: var(--color-brand-100);
	border: 1.5px solid var(--color-brand-200);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg) var(--spacing-xl);
	text-align: center;
}

.calc-result__value {
	font-family: var(--font-family-display);
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	font-weight: 700;
	color: var(--color-brand-900);
	line-height: 1.1;
}

.calc-result__label {
	font-size: 1.1rem;
	font-weight: var(--font-weight-medium);
	color: var(--color-brand-700);
	margin-top: 0.35rem;
}

/* Skala BMI */
.bmi-scale {
	display: flex;
	height: 10px;
	border-radius: 999px;
	overflow: hidden;
	gap: 2px;
	margin-bottom: 6px;
}

.bmi-scale__seg {
	border-radius: 3px;
	transition: opacity 0.2s;
}

.bmi-scale__marker {
	position: relative;
	height: 16px;
}

/* Kategorie wyniku (kolorowe panele) */
.calc-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--spacing-sm);
	margin-top: var(--spacing-md);
}

.calc-category-item {
	border-radius: var(--radius-md);
	padding: 0.6rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	border: 1px solid transparent;
}

.calc-category-item.active {
	outline: 2px solid var(--color-brand-900);
	outline-offset: 1px;
}

/* Informacje / ostrzeżenia */
.calc-info-box {
	background: var(--color-bg-muted);
	border-left: 3px solid var(--color-brand-500);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	padding: var(--spacing-md) var(--spacing-lg);
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

/* Odpowiednio dla mobile */
@media (max-width: 575px) {
	.calc-box { padding: var(--spacing-lg); }
	.calc-result { padding: var(--spacing-md) var(--spacing-lg); }
	.calc-result__value { font-size: 2.25rem; }
}

/* ===== FAZA 4: Kontakt ===== */
.page-kontakt {
	padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.contact-header {
	margin-bottom: var(--spacing-lg);
}

.contact-title {
	font-size: 1.75rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin-bottom: var(--spacing-md);
}

.contact-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* Contact Form 7 – spójność z design systemem */
.page-kontakt .wpcf7 input[type="text"],
.page-kontakt .wpcf7 input[type="email"],
.page-kontakt .wpcf7 textarea {
	border: 1px solid var(--color-border);
	border-radius: 0.25rem;
	padding: 0.5rem 0.75rem;
}

.page-kontakt .wpcf7 input:focus-visible,
.page-kontakt .wpcf7 textarea:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

.page-kontakt .wpcf7 input[type="submit"] {
	/* CF7 uses inline styles; override with CTA class if needed */
}

/* ===== FAZA 5: 404 ===== */
.error-404-main {
	padding: var(--spacing-3xl) 0;
}

.error-404 {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.error-404__title {
	font-size: 1.75rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin-bottom: var(--spacing-md);
}

.error-404__desc {
	color: var(--color-text-muted);
	margin-bottom: var(--spacing-xl);
}

.error-404__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-md);
	justify-content: center;
	margin-bottom: var(--spacing-2xl);
}

.error-404__search {
	background: var(--color-bg-muted);
	padding: var(--spacing-xl);
	border-radius: 0.25rem;
	text-align: left;
}

.error-404__search-title {
	font-size: 1.125rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-text);
	margin-bottom: var(--spacing-md);
}

.error-404__search-hint {
	margin-top: var(--spacing-md);
	margin-bottom: 0;
}

.error-404__search-hint a {
	color: var(--color-cta);
	text-decoration: none;
}

.error-404__search-hint a:hover {
	text-decoration: underline;
}

/* ===== FAZA 6: Strony tekstowe ===== */
.page-text {
	padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.page-text .entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.page-text .entry-content h2 {
	margin-top: var(--spacing-xl);
	margin-bottom: var(--spacing-sm);
}

.page-text__cta {
	margin-top: var(--spacing-xl);
}

/* ===== FAZA 7: WCAG – focus visibility ===== */
.skip-link:focus {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100000;
	padding: 1rem 1.5rem;
	background: var(--color-cta);
	color: #fff;
	text-decoration: none;
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

.form-control:focus-visible,
.form-select:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
	box-shadow: 0 0 0 0.2rem var(--color-cta-focus);
}

/* ===== Pasek dostępności WCAG ===== */
.a11y-toolbar {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 99999;
}

.a11y-trigger {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--color-cta);
	color: #fff;
	border: none;
	border-radius: 0.25rem;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.a11y-trigger:hover {
	background: var(--color-cta-hover);
	color: #fff;
}

.a11y-trigger:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.a11y-trigger__text {
	display: none;
}

@media (min-width: 480px) {
	.a11y-trigger__text {
		display: inline;
	}
}

.a11y-panel {
	position: absolute;
	bottom: 100%;
	right: 0;
	margin-bottom: 0.5rem;
	width: 280px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 0.25rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	padding: 1rem;
}

.a11y-panel[hidden] {
	display: none !important;
}

.a11y-group {
	margin-bottom: 1rem;
}

.a11y-group:last-of-type {
	margin-bottom: 0.75rem;
}

.a11y-group__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-text-muted);
	margin-bottom: 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.a11y-group__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.a11y-btn {
	padding: 0.4rem 0.65rem;
	background: var(--color-bg-muted);
	border: 1px solid var(--color-border);
	border-radius: 0.2rem;
	cursor: pointer;
	font-size: 0.875rem;
}

.a11y-btn:hover {
	background: var(--color-border);
}

.a11y-btn[aria-pressed="true"] {
	background: var(--color-cta);
	color: #fff;
	border-color: var(--color-cta);
}

.a11y-btn:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

.a11y-reset {
	display: block;
	width: 100%;
	padding: 0.5rem;
	margin-top: 0.5rem;
	background: transparent;
	border: 1px dashed var(--color-border);
	border-radius: 0.2rem;
	cursor: pointer;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.a11y-reset:hover {
	background: var(--color-bg-muted);
}

.a11y-reset:focus-visible {
	outline: 2px solid var(--color-cta);
	outline-offset: 2px;
}

/* Tryby dostępności – rozmiar fontu (skalowanie u nasady) */
html.font-size-m {
	font-size: 110%;
}

html.font-size-s {
	font-size: 95%;
}

html.font-size-l {
	font-size: 120%;
}

html.font-size-xl {
	font-size: 130%;
}

/* Wysoki kontrast */
html.a11y-high-contrast {
	--color-bg: #000;
	--color-bg-muted: #1a1a1a;
	--color-text: #fff;
	--color-text-muted: #ccc;
	--color-border: #444;
	--color-cta: #ff0;
	--color-cta-hover: #ffeb3b;
	--color-brand-900: #fff;
	--color-brand-700: #ff0;
	--color-brand-500: #ff0;
	--color-brand-200: #333;
	--color-brand-100: #222;
}

html.a11y-high-contrast body,
html.a11y-high-contrast .site-header,
html.a11y-high-contrast #masthead {
	background: #000 !important;
	color: #fff !important;
}

html.a11y-high-contrast .site-footer {
	background: #000 !important;
	color: #fff !important;
	border-color: #444 !important;
}

html.a11y-high-contrast .home-hero {
	background: #000 !important;
}

html.a11y-high-contrast .home-hero::after,
html.a11y-high-contrast .home-city-links::before {
	display: none !important;
}

html.a11y-high-contrast a,
html.a11y-high-contrast .site-title a {
	color: #ff0 !important;
}

html.a11y-high-contrast .btn-cta-primary {
	background: #ff0 !important;
	color: #000 !important;
	border-color: #ff0 !important;
}

html.a11y-high-contrast .btn-cta-primary:hover {
	background: #ffeb3b !important;
	color: #000 !important;
}

/* Zwiększone odstępy (WCAG 2.1 – odstępy w tekście) */
html.a11y-spacing .entry-content p,
html.a11y-spacing .entry-content li,
html.a11y-spacing .contact-content p,
html.a11y-spacing .single-post__content p {
	line-height: 1.9 !important;
}

html.a11y-spacing .home-main p,
html.a11y-spacing .home-main li {
	line-height: 1.9 !important;
}

html.a11y-spacing .entry-content p + p,
html.a11y-spacing .entry-content li + li {
	margin-top: 1.25em !important;
}

html.a11y-spacing .home-main p + p,
html.a11y-spacing .home-main li + li {
	margin-top: 1.1em !important;
}

html.a11y-spacing .entry-content h2,
html.a11y-spacing .entry-content h3 {
	margin-top: 2em !important;
	margin-bottom: 0.75em !important;
}


/* ===== Home Hero Search (skopiowane z WP visiolab_theme/style.css) ===== */
.home-hero-search {
	background-color: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	padding: 24px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.home-hero-search .form-label {
	font-size: 0.85rem;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.home-hero-search .input-group {
	flex-wrap: nowrap;
}

.home-hero-search .input-group-text {
	border: 1px solid #ced4da;
	border-right: none;
	background-color: #fff;
	color: #666;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

.home-hero-search .form-control {
	border: 1px solid #ced4da;
	border-left: none;
	height: 50px;
	box-shadow: none;
	color: #333;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.home-hero-search .form-control:focus {
	box-shadow: none;
	border-color: var(--color-brand-700);
	outline: none;
}

.home-hero-search .input-group:focus-within .input-group-text,
.home-hero-search .input-group:focus-within .form-control {
	border-color: var(--color-brand-700);
}

.home-hero-search .btn-cta-primary {
	height: 50px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: none !important;
	width: 100%;
	background: #0056b3 !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: none;
	transition: background-color 0.2s ease;
}

.home-hero-search .btn-cta-primary:hover {
	background: #004494 !important;
}

.home-hero-search .form-check-label {
	color: #555;
	font-weight: 500;
}

.home-hero-search .form-check-input {
	border: 1px solid #adb5bd;
}

.home-hero-search .form-check-input:checked {
	background-color: #0056b3;
	border-color: #0056b3;
}

@media (max-width: 767px) {
	.home-hero-search {
		padding: 20px;
	}
	.home-hero-search .col-md-5,
	.home-hero-search .col-md-4,
	.home-hero-search .col-md-3 {
		margin-bottom: 16px;
	}
	.home-hero-search .btn-cta-primary {
		margin-top: 8px;
	}
}

/* ===== Home Newsletter (skopiowane z WP visiolab_theme/style.css) ===== */
.home-newsletter {
	background-color: #0073aa;
	background-image: linear-gradient(135deg, #0073aa 0%, #005177 100%);
	padding: 80px 0;
	color: #fff;
	margin-top: 60px;
}

.home-newsletter__eyebrow {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
	margin-bottom: 10px;
	opacity: 0.9;
}

.home-newsletter__title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: #fff;
}

.home-newsletter__desc {
	font-size: 1.1rem;
	opacity: 0.9;
	margin-bottom: 0;
	max-width: 500px;
}

.home-newsletter__form-wrapper {
	background-color: rgba(255, 255, 255, 0.1);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-newsletter__form .input-group {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	overflow: hidden;
}

.home-newsletter__form .form-control {
	border: none;
	height: 50px;
	padding-left: 20px;
	font-size: 1rem;
}

.home-newsletter__form .form-control:focus {
	box-shadow: none;
}

.home-newsletter__form .btn-cta-primary {
	border-radius: 0;
	padding-left: 25px;
	padding-right: 25px;
	background-color: #333 !important;
	background-image: none !important;
	border-color: #333;
	color: #fff !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.home-newsletter__form .btn-cta-primary:hover {
	background-color: #000 !important;
	border-color: #000;
}

.home-newsletter__form .form-text {
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 0.75rem;
	margin-top: 10px;
}

@media (max-width: 767px) {
	.home-newsletter { padding: 50px 0; }
	.home-newsletter__desc { max-width: 100%; }
	.home-newsletter__form-wrapper { margin-top: 30px; }
}
