/*
Theme Name: Twój Wenerolog 2026
Theme URI: https://twojwenerolog.pl/
Author: FochAI
Description: Nowoczesny motyw redakcyjny dla portalu TwojWenerolog.pl.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: tw2026
*/

:root {
	--ink: #17212b;
	--ink-soft: #4f5c66;
	--paper: #f6f7f4;
	--white: #ffffff;
	--line: #dfe4e2;
	--navy: #132f38;
	--navy-light: #1b4651;
	--teal: #0d968b;
	--teal-light: #bcece6;
	--coral: #ef745f;
	--coral-light: #ffd8cf;
	--violet: #7956a8;
	--violet-light: #e6daf5;
	--amber: #d79531;
	--amber-light: #ffe4b3;
	--blue: #397da3;
	--blue-light: #d5ebf6;
	--serif: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
	--sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shadow: 0 24px 70px rgba(19, 47, 56, 0.11);
	--radius-sm: 14px;
	--radius-md: 24px;
	--radius-lg: 36px;
	--shell: 1240px;
}

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

html {
	scroll-behavior: smooth;
}

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

body.menu-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

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

.shell {
	width: min(calc(100% - 48px), var(--shell));
	margin-inline: auto;
}

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

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--white);
	color: var(--ink);
}

.site-main {
	min-height: 60vh;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	color: var(--teal);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eyebrow span {
	width: 30px;
	height: 2px;
	background: currentColor;
}

.eyebrow--light {
	color: var(--teal-light);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 22px;
	border: 1px solid var(--navy);
	border-radius: 999px;
	background: var(--navy);
	color: var(--white);
	font-size: 0.92rem;
	font-weight: 750;
	text-decoration: none;
	transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
	background: var(--navy-light);
}

/* Nagłówek */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(23, 33, 43, 0.08);
	background: rgba(246, 247, 244, 0.92);
	backdrop-filter: blur(18px);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: 88px;
	gap: 34px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	min-width: max-content;
	color: var(--ink);
	text-decoration: none;
}

.brand__mark {
	position: relative;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 15px 15px 15px 5px;
	background: var(--navy);
	color: var(--white);
}

.brand__mark::before {
	position: absolute;
	inset: auto -8px -16px auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--teal);
	content: "";
}

.brand__mark span {
	position: relative;
	z-index: 1;
	font-family: var(--serif);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.brand__copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand__copy strong {
	font-family: var(--serif);
	font-size: 1.25rem;
	letter-spacing: -0.025em;
}

.brand__copy small {
	margin-top: 5px;
	color: var(--ink-soft);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.primary-navigation {
	justify-self: center;
}

.menu {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 999px;
	color: var(--ink-soft);
	font-size: 0.84rem;
	font-weight: 750;
	text-decoration: none;
	transition: color 160ms ease, background 160ms ease;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a {
	background: var(--white);
	color: var(--ink);
}

.search-toggle,
.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
}

.search-toggle svg {
	width: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.nav-toggle {
	display: none;
}

.nav-toggle__icon {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	width: 18px;
}

.nav-toggle__icon i {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

.header-search {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	padding: 18px 0 24px;
	border-bottom: 1px solid var(--line);
	background: var(--paper);
	box-shadow: 0 20px 40px rgba(19, 47, 56, 0.1);
}

.header-search[hidden] {
	display: none;
}

/* Wyszukiwarka */
.search-form {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 62px;
	padding: 7px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 12px 40px rgba(19, 47, 56, 0.08);
}

.search-form svg {
	flex: 0 0 auto;
	width: 22px;
	margin-left: 14px;
	fill: none;
	stroke: var(--ink-soft);
	stroke-linecap: round;
	stroke-width: 1.7;
}

.search-form input {
	min-width: 0;
	flex: 1;
	padding: 10px 14px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
}

.search-form input::placeholder {
	color: #889198;
}

.search-form button {
	min-height: 46px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 800;
	cursor: pointer;
}

/* Pierwszy ekran */
.hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 94px;
	background: linear-gradient(145deg, #eff8f5 0%, var(--paper) 48%, #f7ede9 100%);
}

.hero::before {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1px;
	height: 100%;
	background: rgba(23, 33, 43, 0.06);
	content: "";
}

.hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: 0.75;
}

.hero__orb--one {
	top: -170px;
	right: -120px;
	width: 410px;
	height: 410px;
	background: radial-gradient(circle at 35% 35%, var(--teal-light), rgba(188, 236, 230, 0));
}

.hero__orb--two {
	bottom: -220px;
	left: -180px;
	width: 460px;
	height: 460px;
	background: radial-gradient(circle at 60% 40%, var(--coral-light), rgba(255, 216, 207, 0));
}

.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(430px, 0.86fr);
	align-items: center;
	gap: clamp(54px, 8vw, 112px);
}

.hero h1 {
	max-width: 760px;
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(3.5rem, 6.2vw, 6.7rem);
	font-weight: 500;
	letter-spacing: -0.065em;
	line-height: 0.92;
}

.hero h1 em {
	position: relative;
	color: var(--teal);
	font-weight: 500;
}

.hero h1 em::after {
	position: absolute;
	right: 0;
	bottom: -7px;
	left: 0;
	height: 8px;
	border-radius: 50%;
	border-top: 2px solid var(--coral);
	content: "";
	transform: rotate(-2deg);
}

.hero__lead {
	max-width: 640px;
	margin: 34px 0 30px;
	color: var(--ink-soft);
	font-size: clamp(1.04rem, 1.6vw, 1.25rem);
	line-height: 1.7;
}

.hero__search {
	max-width: 650px;
}

.hero__hint {
	margin: 14px 0 0 22px;
	color: #6d777e;
	font-size: 0.76rem;
}

.hero__hint a {
	color: var(--ink);
	font-weight: 700;
}

.hero__topics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.hero-topic {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(23, 33, 43, 0.08);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 20px 60px rgba(19, 47, 56, 0.08);
}

.hero-topic__number {
	color: var(--ink-soft);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.hero-topic small {
	display: block;
	margin-bottom: 8px;
	color: var(--ink-soft);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero-topic h2 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.hero-topic h2 a {
	text-decoration: none;
}

.hero-topic h2 a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.hero-topic--lead {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: 24px;
	min-height: 270px;
	padding: 34px;
	border-radius: var(--radius-lg) var(--radius-lg) 10px var(--radius-lg);
	background: var(--navy);
	color: var(--white);
}

.hero-topic--lead::after {
	position: absolute;
	right: -78px;
	bottom: -135px;
	width: 280px;
	height: 280px;
	border: 40px solid rgba(13, 150, 139, 0.38);
	border-radius: 50%;
	content: "";
}

.hero-topic--lead .hero-topic__number,
.hero-topic--lead small,
.hero-topic--lead p {
	color: rgba(255, 255, 255, 0.7);
}

.hero-topic--lead h2 {
	max-width: 320px;
	font-size: clamp(2rem, 3.4vw, 3rem);
}

.hero-topic--lead p {
	max-width: 340px;
	margin: 16px 0 0;
	font-size: 0.9rem;
}

.circle-link {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	color: var(--white);
	font-size: 1.1rem;
	text-decoration: none;
}

.hero-topic--small {
	min-height: 200px;
	padding: 25px;
	border-radius: var(--radius-md) 8px var(--radius-md) var(--radius-md);
}

.hero-topic--small h2 {
	max-width: 160px;
	font-size: 1.55rem;
}

.hero-topic__shape {
	position: absolute;
	right: -22px;
	bottom: -28px;
	width: 112px;
	height: 112px;
	border: 24px solid currentColor;
	border-radius: 38% 62% 62% 38% / 44% 38% 62% 56%;
	opacity: 0.24;
	transform: rotate(24deg);
}

.hero-topic--small.color-coral {
	background: var(--coral-light);
	color: #9b3f32;
}

.hero-topic--small.color-violet {
	background: var(--violet-light);
	color: #604187;
}

.hero-topic--small.color-coral small,
.hero-topic--small.color-violet small,
.hero-topic--small.color-coral .hero-topic__number,
.hero-topic--small.color-violet .hero-topic__number {
	color: currentColor;
	opacity: 0.74;
}

/* Sekcje i karty */
.section {
	padding: clamp(76px, 9vw, 128px) 0;
}

.section-heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
	align-items: end;
	gap: 40px;
	margin-bottom: 48px;
}

.section-heading h1,
.section-heading h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(2.5rem, 5vw, 4.35rem);
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 1;
}

.section-heading > p {
	margin: 0 0 5px;
	color: var(--ink-soft);
}

.featured-section {
	background: var(--white);
}

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

.articles-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.article-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md) var(--radius-md) 8px var(--radius-md);
	background: var(--white);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.article-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--teal-light);
}

.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 450ms ease;
}

.article-card:hover .article-card__media img {
	transform: scale(1.035);
}

.article-card__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(19, 47, 56, 0.18), transparent 55%);
	content: "";
}

.article-card__media.color-coral,
.article-card__fallback.color-coral {
	background: var(--coral-light);
}

.article-card__media.color-violet {
	background: var(--violet-light);
}

.article-card__media.color-amber {
	background: var(--amber-light);
}

.article-card__media.color-blue {
	background: var(--blue-light);
}

.article-card__fallback {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.article-card__fallback i {
	position: absolute;
	border: 16px solid var(--teal);
	border-radius: 50%;
	opacity: 0.55;
}

.article-card__fallback i:nth-child(1) {
	top: -35px;
	right: -20px;
	width: 130px;
	height: 130px;
}

.article-card__fallback i:nth-child(2) {
	right: 38%;
	bottom: -40px;
	width: 105px;
	height: 105px;
	border-radius: 38% 62% 55% 45%;
}

.article-card__fallback i:nth-child(3) {
	top: 30%;
	left: 14%;
	width: 18px;
	height: 18px;
	border-width: 6px;
}

.article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 24px 25px;
}

.article-card__eyebrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 17px;
	color: #778189;
	font-size: 0.68rem;
	font-weight: 700;
}

.topic-label {
	display: inline-flex;
	align-items: center;
	min-height: 27px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--teal-light);
	color: #126b64;
	font-size: 0.65rem;
	font-weight: 850;
	letter-spacing: 0.05em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.topic-label.color-coral {
	background: var(--coral-light);
	color: #a24537;
}

.topic-label.color-violet {
	background: var(--violet-light);
	color: #61448a;
}

.topic-label.color-amber {
	background: var(--amber-light);
	color: #815315;
}

.topic-label.color-blue {
	background: var(--blue-light);
	color: #236481;
}

.article-card__title {
	margin: 0 0 15px;
	font-family: var(--serif);
	font-size: clamp(1.4rem, 2vw, 1.8rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.13;
}

.article-card__title a {
	text-decoration: none;
}

.article-card__excerpt {
	color: var(--ink-soft);
	font-size: 0.88rem;
}

.article-card__excerpt p {
	margin: 0;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 20px;
	font-size: 0.78rem;
	font-weight: 850;
	text-decoration: none;
}

.text-link span {
	color: var(--teal);
	font-size: 1rem;
	transition: transform 160ms ease;
}

.text-link:hover span {
	transform: translate(2px, -2px);
}

.featured-grid .article-card__excerpt {
	display: none;
}

.featured-grid .article-card__title {
	font-size: 1.48rem;
}

.topic-section {
	background: var(--navy);
	color: var(--white);
}

.topic-grid {
	display: grid;
	grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(60px, 9vw, 130px);
}

.topic-grid__intro {
	align-self: center;
}

.topic-grid__intro h2 {
	margin: 0 0 28px;
	font-family: var(--serif);
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.topic-grid__intro > p:last-child {
	max-width: 450px;
	margin: 0;
	color: rgba(255, 255, 255, 0.67);
}

.topic-grid__cards {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.topic-tile {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 122px;
	padding: 20px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	color: var(--white);
	text-decoration: none;
	transition: padding 180ms ease, background 180ms ease;
}

.topic-tile:hover {
	padding-right: 22px;
	padding-left: 22px;
	background: rgba(255, 255, 255, 0.06);
}

.topic-tile > span {
	color: var(--teal-light);
	font-size: 0.74rem;
	font-weight: 800;
}

.topic-tile h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.topic-tile p {
	margin: 3px 0 0;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.78rem;
}

.topic-tile i {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 50%;
	font-style: normal;
}

.medical-note {
	padding: 46px 0;
	border-bottom: 1px solid var(--line);
	background: #e9f5f2;
}

.medical-note__inner {
	display: grid;
	grid-template-columns: auto minmax(260px, 0.8fr) minmax(320px, 1fr);
	align-items: center;
	gap: 30px;
}

.medical-note__icon,
.medical-disclaimer__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50% 50% 12px 50%;
	background: var(--teal);
	color: var(--white);
	font-family: var(--serif);
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 700;
}

.medical-note .eyebrow {
	margin-bottom: 7px;
}

.medical-note h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.medical-note__inner > p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.92rem;
}

.latest-section {
	background: var(--paper);
}

.navigation.pagination {
	margin-top: 58px;
}

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

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	font-size: 0.8rem;
	font-weight: 800;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--navy);
	background: var(--navy);
	color: var(--white);
}

/* Archiwa i wyszukiwanie */
.archive-hero,
.search-hero,
.page-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(70px, 9vw, 120px) 0;
	background: #eaf4f1;
}

.archive-hero__shape {
	position: absolute;
	top: -150px;
	right: -80px;
	width: 430px;
	height: 430px;
	border: 74px solid var(--teal);
	border-radius: 42% 58% 62% 38% / 47% 38% 62% 53%;
	opacity: 0.15;
	transform: rotate(16deg);
}

.archive-hero__shape.color-coral {
	border-color: var(--coral);
}

.archive-hero__shape.color-violet {
	border-color: var(--violet);
}

.archive-hero__shape.color-amber {
	border-color: var(--amber);
}

.archive-hero__shape.color-blue {
	border-color: var(--blue);
}

.archive-hero__inner,
.search-hero__inner,
.page-hero__inner {
	position: relative;
	z-index: 1;
}

.archive-hero h1,
.search-hero h1,
.page-hero h1 {
	max-width: 880px;
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(3.4rem, 8vw, 7rem);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 0.92;
}

.archive-hero__description {
	max-width: 640px;
	margin: 30px 0 0;
	color: var(--ink-soft);
	font-size: 1.08rem;
}

.archive-hero__meta {
	display: inline-flex;
	margin-top: 28px;
	padding: 7px 13px;
	border: 1px solid rgba(23, 33, 43, 0.14);
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
}

.archive-listing {
	background: var(--paper);
}

.search-hero .search-form {
	max-width: 720px;
	margin-top: 34px;
}

.results-count {
	margin: 0 0 34px;
	color: var(--ink-soft);
	font-size: 0.85rem;
}

.empty-state {
	max-width: 760px;
	padding: 60px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--white);
	text-align: center;
}

.empty-state h2 {
	margin: 0;
	font-family: var(--serif);
	font-size: 2.3rem;
}

.empty-state p {
	color: var(--ink-soft);
}

.empty-state .search-form {
	margin-top: 28px;
}

/* Artykuł */
.article-hero {
	padding: 40px 0 78px;
	background: var(--white);
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 58px;
	color: #7b858c;
	font-size: 0.7rem;
	font-weight: 700;
}

.breadcrumbs a {
	text-decoration: none;
}

.article-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
	align-items: center;
	gap: clamp(50px, 8vw, 110px);
}

.article-hero h1 {
	max-width: 820px;
	margin: 24px 0 0;
	font-family: var(--serif);
	font-size: clamp(3rem, 6vw, 6.1rem);
	font-weight: 500;
	letter-spacing: -0.065em;
	line-height: 0.96;
}

.article-hero__lead {
	max-width: 700px;
	margin: 26px 0 0;
	color: var(--ink-soft);
	font-size: 1.12rem;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
	color: #6e7980;
	font-size: 0.74rem;
	font-weight: 700;
}

.article-hero__media {
	position: relative;
	aspect-ratio: 4 / 4.5;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-lg) var(--radius-lg) 10px var(--radius-lg);
	background: var(--teal-light);
	box-shadow: var(--shadow);
}

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

.article-hero__fallback {
	background: var(--teal-light);
}

.article-hero__fallback.color-coral {
	background: var(--coral-light);
}

.article-hero__fallback.color-violet {
	background: var(--violet-light);
}

.article-hero__fallback.color-amber {
	background: var(--amber-light);
}

.article-hero__fallback.color-blue {
	background: var(--blue-light);
}

.article-hero__fallback i {
	position: absolute;
	border: 48px solid rgba(13, 150, 139, 0.45);
	border-radius: 50%;
}

.article-hero__fallback i:nth-child(1) {
	top: -100px;
	right: -70px;
	width: 300px;
	height: 300px;
}

.article-hero__fallback i:nth-child(2) {
	bottom: -120px;
	left: -70px;
	width: 320px;
	height: 320px;
	border-radius: 40% 60% 55% 45%;
}

.article-hero__fallback i:nth-child(3) {
	top: 42%;
	left: 48%;
	width: 36px;
	height: 36px;
	border-width: 12px;
}

.article-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 790px);
	justify-content: center;
	gap: clamp(60px, 9vw, 130px);
	padding-top: 85px;
	padding-bottom: 100px;
}

.article-aside__sticky {
	position: sticky;
	top: 130px;
}

.article-aside__label {
	padding-bottom: 12px;
	margin: 0 0 15px;
	border-bottom: 1px solid var(--line);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

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

.article-aside li + li {
	margin-top: 4px;
}

.article-aside a {
	display: block;
	padding: 8px 0;
	color: var(--ink-soft);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.article-aside a:hover {
	color: var(--teal);
}

.archive-warning {
	display: flex;
	align-items: flex-start;
	gap: 17px;
	padding: 20px 22px;
	margin-bottom: 38px;
	border: 1px solid #e8ca8d;
	border-radius: var(--radius-sm);
	background: #fff7e5;
}

.archive-warning > span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--amber);
	color: var(--white);
	font-weight: 900;
}

.archive-warning strong,
.medical-disclaimer strong {
	display: block;
	margin-bottom: 3px;
}

.archive-warning p,
.medical-disclaimer p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.84rem;
}

.article-content {
	font-family: var(--serif);
	font-size: clamp(1.1rem, 1.65vw, 1.25rem);
	line-height: 1.85;
}

.article-content > *:first-child {
	margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
	margin: 2em 0 0.75em;
	color: var(--ink);
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.article-content h2 {
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.article-content h3 {
	font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-content p {
	margin: 0 0 1.45em;
	text-align: left !important;
}

.article-content a {
	color: #087a72;
	font-weight: 650;
}

.article-content ul,
.article-content ol {
	padding-left: 1.35em;
	margin: 0 0 1.6em;
}

.article-content li + li {
	margin-top: 0.55em;
}

.article-content blockquote {
	padding: 8px 0 8px 28px;
	margin: 2em 0;
	border-left: 4px solid var(--teal);
	color: var(--navy);
	font-size: 1.2em;
	font-style: italic;
}

.article-content img {
	margin: 2.2em auto;
	border-radius: var(--radius-md);
}

.article-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--sans);
	font-size: 0.88rem;
}

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

.medical-disclaimer {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px;
	margin-top: 48px;
	border-radius: var(--radius-md) var(--radius-md) 8px var(--radius-md);
	background: #e9f5f2;
}

.medical-disclaimer__icon {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	font-size: 1.15rem;
}

.article-share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	margin-top: 34px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-size: 0.83rem;
	font-weight: 800;
}

.article-share button {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	cursor: pointer;
}

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

/* Strony i komentarze */
.page-content {
	max-width: 840px;
	padding-top: 80px;
	padding-bottom: 110px;
	font-family: var(--serif);
	font-size: 1.16rem;
}

.page-content h2 {
	margin-top: 2em;
	font-size: 2.4rem;
	letter-spacing: -0.04em;
}

.page-lead {
	font-size: 1.45rem;
	line-height: 1.65;
}

.comments-area {
	padding-top: 55px;
}

.comments-area > h2,
.comment-reply-title {
	font-family: var(--serif);
	font-size: 2rem;
	letter-spacing: -0.04em;
}

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

.comment-list .comment-body {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
}

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

.comment-metadata {
	margin: 7px 0 14px 58px;
	font-size: 0.7rem;
}

.comment-content {
	font-size: 0.9rem;
}

.comment-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.75rem;
	font-weight: 800;
}

.comment-form textarea,
.comment-form input:not([type="checkbox"]):not([type="submit"]) {
	width: 100%;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
}

.comment-form input[type="submit"] {
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: var(--white);
	font-weight: 800;
	cursor: pointer;
}

.comment-notes {
	color: var(--ink-soft);
	font-size: 0.8rem;
}

.error-page {
	padding: 110px 0;
	background: #eaf4f1;
}

.error-page__inner {
	max-width: 770px;
	text-align: center;
}

.error-page__code {
	margin: 0;
	color: var(--teal);
	font-family: var(--serif);
	font-size: 7rem;
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 0.8;
}

.error-page .eyebrow {
	justify-content: center;
	margin-top: 32px;
}

.error-page h1 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(2.7rem, 6vw, 5rem);
	letter-spacing: -0.06em;
	line-height: 1;
}

.error-page > p,
.error-page__inner > p:not(.eyebrow):not(.error-page__code) {
	color: var(--ink-soft);
}

.error-page .search-form {
	margin: 32px 0 18px;
}

/* Stopka */
.site-footer {
	padding: 80px 0 24px;
	background: #0c252d;
	color: var(--white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(280px, 1.5fr) 1fr 1fr;
	gap: 80px;
}

.brand--footer {
	color: var(--white);
}

.brand--footer .brand__mark {
	background: var(--white);
	color: var(--navy);
}

.brand--footer .brand__copy small,
.site-footer__brand > p {
	color: rgba(255, 255, 255, 0.58);
}

.site-footer__brand > p {
	max-width: 430px;
	margin: 24px 0 0;
	font-size: 0.9rem;
}

.site-footer h2 {
	margin: 0 0 22px;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-links {
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-links li + li {
	margin-top: 10px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.86rem;
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--white);
}

.site-footer__notice {
	padding: 22px 25px;
	margin-top: 64px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.045);
}

.site-footer__notice p {
	margin: 0;
	color: rgba(255, 255, 255, 0.63);
	font-size: 0.78rem;
}

.site-footer__notice strong {
	color: var(--white);
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	margin-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.72rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	text-decoration: none;
}

@media (max-width: 1120px) {
	.site-header__inner {
		grid-template-columns: auto auto 1fr auto;
		gap: 15px;
	}

	.nav-toggle {
		display: inline-flex;
		grid-column: 3;
		justify-self: end;
	}

	.search-toggle {
		grid-column: 4;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		padding: 20px 24px 28px;
		border-bottom: 1px solid var(--line);
		background: var(--paper);
		box-shadow: 0 18px 35px rgba(19, 47, 56, 0.1);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation .menu {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
	}

	.primary-navigation .menu a {
		padding: 12px 15px;
		border-radius: 10px;
	}

	.hero__grid {
		grid-template-columns: 1fr 0.85fr;
		gap: 48px;
	}

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

	.hero-topic--lead {
		grid-column: auto;
		grid-template-columns: auto 1fr;
	}

	.hero-topic--lead .circle-link {
		display: none;
	}

	.hero-topic--small {
		min-height: 145px;
	}

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

@media (max-width: 880px) {
	.hero {
		padding-top: 66px;
	}

	.hero::before {
		display: none;
	}

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

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

	.hero-topic--lead {
		grid-column: 1 / -1;
	}

	.articles-grid,
	.articles-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topic-grid {
		grid-template-columns: 1fr;
		gap: 54px;
	}

	.medical-note__inner {
		grid-template-columns: auto 1fr;
	}

	.medical-note__inner > p {
		grid-column: 2;
	}

	.article-hero__grid {
		grid-template-columns: 1fr;
	}

	.article-hero__media {
		max-height: 590px;
		aspect-ratio: 16 / 10;
	}

	.article-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.article-aside {
		display: none;
	}

	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr;
		gap: 50px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.shell {
		width: min(calc(100% - 30px), var(--shell));
	}

	body {
		font-size: 16px;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto auto;
		min-height: 76px;
	}

	.brand {
		gap: 9px;
	}

	.brand__mark {
		width: 42px;
		height: 42px;
		border-radius: 13px 13px 13px 4px;
	}

	.brand__copy strong {
		font-size: 1rem;
	}

	.brand__copy small,
	.nav-toggle__label,
	.search-toggle span {
		display: none;
	}

	.nav-toggle {
		grid-column: 2;
		padding: 10px 12px;
	}

	.search-toggle {
		grid-column: 3;
		padding: 10px 12px;
	}

	.hero {
		padding: 52px 0 64px;
	}

	.hero h1 {
		font-size: clamp(3.25rem, 17vw, 4.8rem);
	}

	.hero__lead {
		margin-top: 26px;
	}

	.search-form {
		min-height: 56px;
		border-radius: 20px;
	}

	.search-form button {
		padding-inline: 16px;
	}

	.hero__hint {
		margin-left: 5px;
	}

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

	.hero-topic--lead {
		grid-column: auto;
		min-height: 245px;
		padding: 28px 24px;
	}

	.hero-topic--small {
		min-height: 132px;
	}

	.section {
		padding: 76px 0;
	}

	.section-heading {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 34px;
	}

	.section-heading h1,
	.section-heading h2 {
		font-size: 2.75rem;
	}

	.featured-grid,
	.articles-grid,
	.articles-grid--three {
		grid-template-columns: 1fr;
	}

	.article-card {
		border-radius: 20px 20px 6px 20px;
	}

	.featured-grid .article-card {
		display: grid;
		grid-template-columns: 130px 1fr;
	}

	.featured-grid .article-card__media {
		min-height: 100%;
		aspect-ratio: auto;
	}

	.featured-grid .article-card__body {
		padding: 18px;
	}

	.featured-grid .article-card__eyebrow > span,
	.featured-grid .text-link {
		display: none;
	}

	.featured-grid .article-card__title {
		font-size: 1.25rem;
	}

	.topic-grid__intro h2 {
		font-size: 3rem;
	}

	.topic-tile {
		grid-template-columns: 34px 1fr auto;
		gap: 12px;
	}

	.topic-tile h3 {
		font-size: 1.45rem;
	}

	.topic-tile p {
		display: none;
	}

	.medical-note__inner {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.medical-note__inner > p {
		grid-column: auto;
	}

	.medical-note__icon {
		width: 46px;
		height: 46px;
	}

	.archive-hero,
	.search-hero,
	.page-hero {
		padding: 65px 0;
	}

	.archive-hero h1,
	.search-hero h1,
	.page-hero h1 {
		font-size: 3.5rem;
	}

	.article-hero {
		padding-top: 25px;
	}

	.breadcrumbs {
		margin-bottom: 38px;
		overflow: hidden;
		white-space: nowrap;
	}

	.article-hero h1 {
		font-size: 3.25rem;
	}

	.article-hero__media {
		border-radius: 22px 22px 7px 22px;
		aspect-ratio: 4 / 3;
	}

	.article-layout {
		padding-top: 56px;
		padding-bottom: 70px;
	}

	.archive-warning,
	.medical-disclaimer {
		padding: 18px;
	}

	.article-content {
		font-size: 1.08rem;
		line-height: 1.78;
	}

	.article-share {
		align-items: flex-start;
		flex-direction: column;
	}

	.page-content {
		padding-top: 55px;
		padding-bottom: 80px;
	}

	.empty-state {
		padding: 35px 20px;
	}

	.site-footer {
		padding-top: 64px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px 20px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer__notice {
		margin-top: 46px;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
