/*
Theme Name: Wieliczka Dentysta
Description: Nowoczesny motyw potomny Shuttle dla gabinetu stomatologicznego. Zoptymalizowany pod Gutenberg, lokalne SEO, GEO, dostępność i Core Web Vitals.
Author: Damian
Version: 1.1.0
Template: shuttle
Text Domain: wieliczka-dentysta
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
	font-family: "Sora";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("assets/fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
	--wdd-ink: #0a1f2d;
	--wdd-navy: #0b3545;
	--wdd-navy-deep: #062632;
	--wdd-teal: #0b827d;
	--wdd-teal-dark: #076861;
	--wdd-mint: #c9eee7;
	--wdd-mint-soft: #eaf8f5;
	--wdd-ice: #f3f8f8;
	--wdd-white: #ffffff;
	--wdd-sand: #f5eee3;
	--wdd-muted: #587079;
	--wdd-line: #d9e5e6;
	--wdd-danger: #9b2c2c;
	--wdd-shadow: 0 24px 70px rgba(5, 47, 61, 0.12);
	--wdd-shadow-soft: 0 12px 36px rgba(5, 47, 61, 0.08);
	--wdd-radius-sm: 12px;
	--wdd-radius: 24px;
	--wdd-radius-lg: 40px;
	--wdd-shell: 1180px;
	--wdd-content: 760px;
	--wdd-display: "Sora", sans-serif;
	--wdd-body: "Source Sans 3", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--wdd-white);
	color: var(--wdd-ink);
	font-family: var(--wdd-body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

a { color: var(--wdd-teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--wdd-navy); }

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

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

:focus-visible {
	outline: 3px solid #f0a53a;
	outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	color: var(--wdd-navy-deep);
	font-family: var(--wdd-display);
	font-weight: 650;
	letter-spacing: -0.035em;
	line-height: 1.13;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1.2em; }

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

.screen-reader-text:focus,
.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 99999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: var(--wdd-white);
	color: var(--wdd-navy);
	border-radius: 8px;
}

.site-frame { min-height: 100vh; }
.site-shell { width: min(calc(100% - 40px), var(--wdd-shell)); margin-inline: auto; }

.utility-bar {
	position: relative;
	z-index: 52;
	background: var(--wdd-navy-deep);
	color: #d9efef;
	font-size: 0.82rem;
	letter-spacing: 0.015em;
}

.utility-bar__inner,
.utility-bar__details,
.utility-bar__actions { display: flex; align-items: center; }
.utility-bar__inner { min-height: 42px; justify-content: space-between; gap: 24px; }
.utility-bar__details,
.utility-bar__actions { gap: 22px; }
.utility-bar span + span { position: relative; }
.utility-bar span + span::before { content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--wdd-mint); }
.utility-bar a { color: inherit; text-decoration: none; }
.utility-phone { font-weight: 700; }
.utility-menu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(217, 229, 230, 0.8);
	backdrop-filter: blur(18px);
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled { box-shadow: 0 8px 32px rgba(6, 38, 50, 0.09); }
.site-header__inner { min-height: 88px; display: flex; align-items: center; gap: 34px; }
.site-branding { position: relative; z-index: 2; flex: 0 0 auto; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: 250px; max-height: 68px; }

.site-title { margin: 0; font-size: 1.15rem; letter-spacing: -0.035em; }
.site-title a { display: flex; flex-direction: column; color: var(--wdd-navy-deep); text-decoration: none; }
.site-title span { margin-top: 2px; color: var(--wdd-teal-dark); font-family: var(--wdd-body); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }

.primary-navigation { margin-left: auto; }
.primary-menu,
.primary-navigation .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-menu li,
.primary-navigation .menu li { position: relative; }
.primary-menu a,
.primary-navigation .menu a { display: flex; min-height: 48px; align-items: center; padding: 10px 13px; border-radius: 10px; color: var(--wdd-ink); font-size: 0.94rem; font-weight: 650; text-decoration: none; }
.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a,
.primary-navigation .menu > li > a:hover,
.primary-navigation .menu > .current_page_item > a { background: var(--wdd-mint-soft); color: var(--wdd-teal-dark); }
.primary-menu .sub-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 235px; margin: 0; padding: 10px; list-style: none; background: var(--wdd-white); border: 1px solid var(--wdd-line); border-radius: 16px; box-shadow: var(--wdd-shadow-soft); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 160ms ease; }
.primary-menu .sub-menu .sub-menu { left: calc(100% + 8px); top: 0; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { min-height: 44px; }

.menu-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 12px; background: var(--wdd-mint-soft); cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--wdd-navy); transition: 180ms ease; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid var(--wdd-teal);
	border-radius: 999px;
	background: var(--wdd-teal);
	color: var(--wdd-white);
	font-family: var(--wdd-display);
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 9px 24px rgba(11, 130, 125, 0.2);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover { background: var(--wdd-teal-dark); border-color: var(--wdd-teal-dark); color: var(--wdd-white); transform: translateY(-2px); box-shadow: 0 13px 28px rgba(11, 130, 125, 0.27); }
.button--header { margin-left: 2px; white-space: nowrap; }
.button--light { background: var(--wdd-white); border-color: var(--wdd-white); color: var(--wdd-navy); box-shadow: none; }
.button--light:hover { background: var(--wdd-mint); border-color: var(--wdd-mint); color: var(--wdd-navy-deep); }
.is-style-outline > .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--wdd-teal-dark); box-shadow: none; }

.eyebrow { margin: 0 0 18px; color: var(--wdd-teal-dark); font-family: var(--wdd-display); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; }

.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--wdd-ice);
	border-bottom: 1px solid var(--wdd-line);
}
.page-hero::before { content: ""; position: absolute; top: -170px; right: -120px; width: 440px; height: 440px; border: 90px solid rgba(201, 238, 231, 0.62); border-radius: 50%; }
.page-hero::after { content: ""; position: absolute; bottom: -110px; left: 8%; width: 180px; height: 180px; border-radius: 48% 52% 68% 32%; background: rgba(245, 238, 227, 0.8); transform: rotate(18deg); }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(70px, 10vw, 130px); }
.page-hero h1 { max-width: 950px; font-size: clamp(2.5rem, 6vw, 5rem); }
.page-hero__description { max-width: 720px; color: var(--wdd-muted); font-size: 1.18rem; }

.breadcrumbs { margin-bottom: 34px; font-size: 0.83rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 9px; color: #94a8ad; }
.breadcrumbs a { color: var(--wdd-muted); text-decoration: none; }
.breadcrumbs span { color: var(--wdd-navy); font-weight: 650; }

.site-main { padding-block: clamp(64px, 9vw, 120px); }
.site-main--front { padding: 0; }
.content-surface { max-width: calc(var(--wdd-content) + 80px); }
.front-page-content > .entry-content > *:first-child { margin-top: 0; }

.prose { color: #29434d; font-size: 1.06rem; }
.prose > * { max-width: var(--wdd-content); margin-left: auto; margin-right: auto; }
.prose > .alignwide { max-width: var(--wdd-shell); }
.prose > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.prose h2,
.prose h3,
.prose h4 { margin-top: 1.65em; }
.prose p,
.prose li { max-width: 72ch; }
.prose a { font-weight: 650; }
.prose blockquote { margin-block: 2.2em; padding: 28px 32px; border-left: 5px solid var(--wdd-teal); background: var(--wdd-mint-soft); border-radius: 0 var(--wdd-radius) var(--wdd-radius) 0; color: var(--wdd-navy); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th,
.prose td { padding: 14px 16px; border: 1px solid var(--wdd-line); text-align: left; }
.prose th { background: var(--wdd-ice); color: var(--wdd-navy); }

.listing-layout { display: grid; gap: 50px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { overflow: hidden; background: var(--wdd-white); border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); box-shadow: 0 4px 0 rgba(6, 38, 50, 0.025); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.post-card:hover { transform: translateY(-7px); border-color: #b8d8d6; box-shadow: var(--wdd-shadow-soft); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wdd-ice); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 70% 20%, var(--wdd-mint), transparent 24%), linear-gradient(145deg, var(--wdd-navy) 0 52%, var(--wdd-teal) 52%); }
.post-card__body { padding: 26px; }
.post-card__meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 15px; color: var(--wdd-muted); font-size: 0.78rem; font-weight: 650; }
.post-card h2 { margin-bottom: 14px; font-size: 1.4rem; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card__excerpt { color: var(--wdd-muted); font-size: 0.96rem; }
.post-card__excerpt p { margin-bottom: 18px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--wdd-teal-dark); font-weight: 750; text-decoration: none; }

.navigation.pagination { grid-column: 1 / -1; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid var(--wdd-line); border-radius: 12px; color: var(--wdd-navy); text-decoration: none; }
.page-numbers.current,
.page-numbers:hover { background: var(--wdd-navy); border-color: var(--wdd-navy); color: var(--wdd-white); }

.article-hero { position: relative; overflow: hidden; background: var(--wdd-navy-deep); color: var(--wdd-white); }
.article-hero::after { content: ""; position: absolute; right: -12%; bottom: -65%; width: 560px; height: 560px; border: 100px solid rgba(201, 238, 231, 0.1); border-radius: 50%; }
.article-hero__inner { position: relative; z-index: 1; padding-block: clamp(70px, 10vw, 125px); }
.article-hero .breadcrumbs a { color: #b9d3d6; }
.article-hero .breadcrumbs span { color: var(--wdd-white); }
.article-category { display: inline-flex; min-height: 38px; align-items: center; margin-bottom: 22px; padding: 5px 14px; border: 1px solid rgba(201, 238, 231, 0.35); border-radius: 999px; color: var(--wdd-mint); font-size: 0.78rem; font-weight: 750; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.article-hero h1 { max-width: 980px; color: var(--wdd-white); font-size: clamp(2.45rem, 6vw, 5rem); }
.article-hero__meta,
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #b9d3d6; font-size: 0.88rem; }
.article-hero__meta > span { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22); }
.article-main { padding-top: 0; }
.article-layout { max-width: 940px; }
.article-cover { position: relative; z-index: 2; overflow: hidden; margin: -58px auto 70px; border: 10px solid var(--wdd-white); border-radius: var(--wdd-radius-lg); background: var(--wdd-ice); box-shadow: var(--wdd-shadow); }
.article-cover img { width: 100%; max-height: 580px; object-fit: cover; }
.article-content { max-width: var(--wdd-content); margin-inline: auto; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; max-width: var(--wdd-content); margin: 45px auto 0; padding-top: 28px; border-top: 1px solid var(--wdd-line); }
.tag-list a { padding: 6px 13px; border-radius: 999px; background: var(--wdd-mint-soft); color: var(--wdd-teal-dark); font-size: 0.82rem; font-weight: 650; text-decoration: none; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 70px; }
.post-navigation > div { padding: 25px; border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation span { display: block; margin-bottom: 7px; color: var(--wdd-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.post-navigation a { color: var(--wdd-navy); font-family: var(--wdd-display); font-weight: 650; text-decoration: none; }

.related-content { margin-top: 78px; padding-top: 64px; border-top: 1px solid var(--wdd-line); }
.related-content__heading { margin-bottom: 30px; }
.related-content__heading h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.related-content__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.related-card { overflow: hidden; border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); background: var(--wdd-white); transition: transform 180ms ease, box-shadow 180ms ease; }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--wdd-shadow-soft); }
.related-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wdd-ice); }
.related-card__media img,
.related-card__media .post-card__placeholder { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 22px; }
.related-card time { display: block; margin-bottom: 9px; color: var(--wdd-muted); font-size: .78rem; font-weight: 650; }
.related-card h3 { margin: 0; font-size: 1.12rem; }
.related-card h3 a { color: inherit; text-decoration: none; }

.after-post-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 50px; }
.wdd-link-widget { padding: 28px; border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); background: var(--wdd-ice); }
.wdd-link-widget .widget-title { margin-bottom: 22px; font-size: 1.25rem; }
.wdd-link-list,
.wdd-ranked-links,
.wdd-topic-map ul { margin: 0; padding: 0; list-style: none; }
.wdd-link-list { display: grid; gap: 0; }
.wdd-link-list li { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--wdd-line); }
.wdd-link-list li:first-child { padding-top: 0; }
.wdd-link-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.wdd-link-list a { color: var(--wdd-navy); font-weight: 700; line-height: 1.35; text-decoration: none; }
.wdd-link-list time { color: var(--wdd-muted); font-size: .76rem; }
.wdd-ranked-links { counter-reset: none; display: grid; }
.wdd-ranked-links li { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--wdd-line); }
.wdd-ranked-links li:last-child { border-bottom: 0; }
.wdd-ranked-links span { color: var(--wdd-teal-dark); font-family: var(--wdd-display); font-size: .72rem; font-weight: 750; }
.wdd-ranked-links a { color: var(--wdd-navy); font-weight: 700; line-height: 1.35; text-decoration: none; }
.wdd-topic-map > ul { display: grid; gap: 16px; }
.wdd-topic-map__category { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 14px; color: var(--wdd-navy); font-family: var(--wdd-display); font-weight: 700; text-decoration: none; }
.wdd-topic-map__category span { display: inline-flex; min-width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: var(--wdd-mint); color: var(--wdd-teal-dark); font-family: var(--wdd-body); font-size: .72rem; }
.wdd-topic-map__posts { display: grid; gap: 7px; margin-top: 5px !important; padding-left: 16px !important; }
.wdd-topic-map__posts a { color: var(--wdd-muted); font-size: .87rem; line-height: 1.35; text-decoration: none; }
.wdd-link-list a:hover,
.wdd-ranked-links a:hover,
.wdd-topic-map a:hover { color: var(--wdd-teal-dark); text-decoration: underline; }

.comments-wrap { max-width: 860px; margin-top: 70px; }
.comments-area { padding: clamp(28px, 6vw, 58px); background: var(--wdd-ice); border-radius: var(--wdd-radius-lg); }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 22px; padding: 22px; background: var(--wdd-white); border-radius: var(--wdd-radius); }
.comment-meta { font-size: 0.86rem; }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }

.search-panel { max-width: 760px; margin: 0 auto 10px; }
.search-form { display: flex; gap: 10px; width: 100%; }
.search-form label { flex: 1; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid #b9cbce;
	border-radius: 12px;
	background: var(--wdd-white);
	color: var(--wdd-ink);
}
textarea { min-height: 160px; resize: vertical; }
label { font-weight: 650; }
.search-submit { min-width: 110px; }

.empty-state { grid-column: 1 / -1; max-width: 760px; margin-inline: auto; padding: clamp(38px, 7vw, 78px); background: var(--wdd-ice); border-radius: var(--wdd-radius-lg); text-align: center; }
.empty-state .search-form { margin-top: 28px; }
.not-found-page { position: relative; display: grid; min-height: 70vh; place-items: center; overflow: hidden; padding-block: 90px; background: var(--wdd-ice); }
.not-found-page__inner { position: relative; z-index: 1; max-width: 720px; text-align: center; }
.not-found-code { color: var(--wdd-mint); font-family: var(--wdd-display); font-size: clamp(7rem, 24vw, 16rem); font-weight: 800; letter-spacing: -0.1em; line-height: 0.7; }
.not-found-page .search-form { margin: 30px 0 20px; }

.site-footer { padding-top: 1px; background: var(--wdd-navy-deep); color: #c6dcde; }
.footer-discovery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 60px 0; }
.footer-discovery .wdd-link-widget { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.055); }
.footer-discovery .widget-title,
.footer-discovery .wdd-link-list a,
.footer-discovery .wdd-ranked-links a,
.footer-discovery .wdd-topic-map__category { color: var(--wdd-white); }
.footer-discovery .wdd-link-list li,
.footer-discovery .wdd-ranked-links li { border-color: rgba(255,255,255,.12); }
.footer-discovery .wdd-link-list time,
.footer-discovery .wdd-topic-map__posts a { color: #a9c3c6; }
.footer-discovery .wdd-ranked-links span { color: var(--wdd-mint); }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: -1px; padding: clamp(34px, 6vw, 62px); background: var(--wdd-teal); border-radius: 0 0 var(--wdd-radius-lg) var(--wdd-radius-lg); }
.footer-cta .eyebrow { color: var(--wdd-mint); }
.footer-cta h2 { max-width: 800px; margin: 0; color: var(--wdd-white); font-size: clamp(1.8rem, 4vw, 3.2rem); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 0.8fr; gap: clamp(28px, 5vw, 66px); padding-block: 76px 62px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 60px 0 0; }
.footer-widget-column { min-width: 0; }
.footer-widget-column .widget { margin: 0; padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--wdd-radius); }
.footer-widget-column .widget-title,
.footer-widget-column .footer-widget-title { color: var(--wdd-white); font-size: 1rem; }
.footer-widget-column ul { margin: 0; padding-left: 20px; }
.footer-logo { margin-bottom: 18px; color: var(--wdd-white); font-family: var(--wdd-display); font-size: 1.35rem; font-weight: 700; }
.footer-brand > p { max-width: 350px; }
.footer-heading { margin-bottom: 22px; color: var(--wdd-white); font-size: 1rem; letter-spacing: 0; }
.site-footer address { display: grid; gap: 10px; font-style: normal; }
.site-footer a { color: #e8f5f4; }
.footer-hours { white-space: normal; }
.footer-menu { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.social-links { display: flex; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.social-links a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: 0.74rem; font-weight: 750; text-decoration: none; text-transform: uppercase; }
.social-links a:hover { background: var(--wdd-mint); border-color: var(--wdd-mint); color: var(--wdd-navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.11); color: #91afb2; font-size: 0.78rem; }
.footer-bottom p { margin: 0; }

/* Gutenberg patterns and reusable visual language. */
.wdd-section { padding-block: clamp(70px, 10vw, 130px); }
.wdd-section--soft { background: var(--wdd-ice); }
.wdd-section--mint { background: var(--wdd-mint-soft); }
.wdd-section--dark { background: var(--wdd-navy-deep); color: var(--wdd-white); }
.wdd-section--dark h2,
.wdd-section--dark h3 { color: var(--wdd-white); }
.wdd-section-title { max-width: 760px; margin-bottom: clamp(35px, 6vw, 62px); }
.wdd-section-title.is-centered { margin-inline: auto; text-align: center; }

.wdd-hero { position: relative; overflow: hidden; min-height: min(780px, calc(100vh - 130px)); padding-block: clamp(70px, 10vw, 130px); background: linear-gradient(108deg, var(--wdd-ice) 0 59%, var(--wdd-mint-soft) 59%); }
.wdd-hero::before { content: ""; position: absolute; left: 48%; bottom: -270px; width: 600px; height: 600px; border: 105px solid rgba(11,130,125,.12); border-radius: 50%; }
.wdd-hero::after { content: "+"; position: absolute; right: 6vw; top: 9%; color: var(--wdd-teal); font-family: var(--wdd-display); font-size: 4rem; font-weight: 300; opacity: .45; }
.wdd-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr); align-items: center; gap: clamp(40px, 7vw, 100px); }
.wdd-hero__content h1 { max-width: 820px; }
.wdd-hero__lead { max-width: 650px; color: var(--wdd-muted); font-size: clamp(1.1rem, 2vw, 1.32rem); }
.wdd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wdd-hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; padding: 0; list-style: none; color: var(--wdd-navy); font-size: .9rem; font-weight: 700; }
.wdd-hero__trust li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--wdd-teal); box-shadow: 0 0 0 5px var(--wdd-mint); }
.wdd-hero__visual { position: relative; min-height: 520px; }
.wdd-hero__visual::before { content: ""; position: absolute; inset: 3% 0 0 8%; border-radius: 48% 48% 24px 24px; background: linear-gradient(155deg, var(--wdd-teal), var(--wdd-navy)); box-shadow: var(--wdd-shadow); }
.wdd-hero__visual::after { content: "Nowoczesna diagnostyka"; position: absolute; left: -22px; bottom: 38px; max-width: 190px; padding: 22px; border-radius: 20px; background: var(--wdd-white); color: var(--wdd-navy); font-family: var(--wdd-display); font-size: 1rem; font-weight: 650; box-shadow: var(--wdd-shadow-soft); }
.wdd-hero__portrait { position: absolute; inset: 10% 8% 0 17%; overflow: hidden; border-radius: 43% 43% 18px 18px; background: radial-gradient(circle at 50% 25%, #f8dcca 0 11%, transparent 11.5%), linear-gradient(150deg, #d6f0eb 0 48%, #74bdb6 48%); }

.wdd-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wdd-card { position: relative; height: 100%; padding: clamp(25px, 4vw, 38px); background: var(--wdd-white); border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); transition: transform 200ms ease, box-shadow 200ms ease; }
.wdd-card:hover { transform: translateY(-6px); box-shadow: var(--wdd-shadow-soft); }
.wdd-card__number { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 26px; border-radius: 14px; background: var(--wdd-mint-soft); color: var(--wdd-teal-dark); font-family: var(--wdd-display); font-size: .86rem; font-weight: 750; }
.wdd-card h3 { margin-bottom: 12px; }
.wdd-card p { color: var(--wdd-muted); }
.wdd-card a { font-weight: 750; text-decoration: none; }

.wdd-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(42px, 8vw, 110px); }
.wdd-media-shape { position: relative; min-height: 520px; border-radius: var(--wdd-radius-lg); background: linear-gradient(145deg, var(--wdd-navy), var(--wdd-teal)); box-shadow: var(--wdd-shadow); }
.wdd-media-shape::before { content: ""; position: absolute; inset: 11% 12%; border: 2px solid rgba(255,255,255,.34); border-radius: 50% 50% 24px 24px; }
.wdd-media-shape::after { content: "+"; position: absolute; right: 28px; bottom: 16px; color: var(--wdd-mint); font-size: 5rem; font-weight: 200; }
.wdd-checklist { display: grid; gap: 13px; padding: 0; list-style: none; }
.wdd-checklist li { position: relative; padding-left: 34px; }
.wdd-checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 19px; height: 19px; border-radius: 50%; background: var(--wdd-teal); box-shadow: inset 0 0 0 6px var(--wdd-mint); }

.wdd-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); background: var(--wdd-line); }
.wdd-stat { padding: 32px; background: var(--wdd-white); text-align: center; }
.wdd-stat strong { display: block; color: var(--wdd-teal-dark); font-family: var(--wdd-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.wdd-stat span { display: block; margin-top: 9px; color: var(--wdd-muted); font-size: .9rem; }

.wdd-testimonial { position: relative; max-width: 850px; margin-inline: auto; padding: clamp(36px, 8vw, 78px); background: var(--wdd-white); border-radius: var(--wdd-radius-lg); box-shadow: var(--wdd-shadow-soft); text-align: center; }
.wdd-testimonial::before { content: "“"; display: block; height: 55px; color: var(--wdd-mint); font-family: Georgia, serif; font-size: 7rem; line-height: .8; }
.wdd-testimonial blockquote { margin: 0 0 25px; color: var(--wdd-navy); font-family: var(--wdd-display); font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.45; }
.wdd-testimonial cite { color: var(--wdd-muted); font-style: normal; font-weight: 700; }

.wdd-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.wdd-person { overflow: hidden; background: var(--wdd-white); border: 1px solid var(--wdd-line); border-radius: var(--wdd-radius); }
.wdd-person__photo { aspect-ratio: 4 / 4.4; background: linear-gradient(155deg, var(--wdd-mint-soft) 0 55%, var(--wdd-teal) 55%); }
.wdd-person__body { padding: 25px; }
.wdd-person__role { color: var(--wdd-teal-dark); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }

.wdd-faq { max-width: 880px; margin-inline: auto; }
.wdd-faq details { padding: 0; border-bottom: 1px solid var(--wdd-line); }
.wdd-faq summary { position: relative; min-height: 70px; padding: 22px 50px 22px 0; color: var(--wdd-navy); font-family: var(--wdd-display); font-weight: 650; cursor: pointer; }
.wdd-faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--wdd-teal); font-size: 1.8rem; font-weight: 300; }
.wdd-faq details[open] summary::after { content: "−"; }
.wdd-faq details p { padding: 0 50px 24px 0; color: var(--wdd-muted); }

.wdd-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.wdd-contact-card { padding: clamp(28px, 5vw, 48px); border-radius: var(--wdd-radius); background: var(--wdd-navy); color: #d7e9ea; }
.wdd-contact-card h2,
.wdd-contact-card h3 { color: var(--wdd-white); }
.wdd-contact-card a { color: var(--wdd-mint); }
.wdd-map-placeholder { display: grid; min-height: 440px; place-items: center; padding: 30px; border-radius: var(--wdd-radius); background: radial-gradient(circle at 25% 25%, var(--wdd-mint), transparent 18%), linear-gradient(145deg, #dfeeed, #b9d9d7); color: var(--wdd-navy); text-align: center; }

.wp-block-group.has-global-padding { padding-left: max(20px, var(--wp--style--root--padding-left)); padding-right: max(20px, var(--wp--style--root--padding-right)); }
.wp-block-columns { gap: clamp(24px, 5vw, 64px); }
.wp-block-image img { border-radius: var(--wdd-radius); }
.wp-block-separator { border-color: var(--wdd-line); }

.js .reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.75,.25,1); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
	.site-header__inner { gap: 18px; }
	.primary-menu a,
	.primary-navigation .menu a { padding-inline: 9px; font-size: .87rem; }
	.button--header { padding-inline: 17px; }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid > :last-child { grid-column: 2 / -1; }
	.wdd-card-grid,
	.wdd-team-grid,
	.post-grid,
	.related-content__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
	body.admin-bar .site-header { top: 46px; }
	.utility-bar__details span:not(:first-child),
	.utility-menu { display: none; }
	.site-header__inner { min-height: 76px; }
	.menu-toggle { display: block; margin-left: auto; }
	.button--header { display: none; }
	.primary-navigation { width: 100%; margin: 0; }
	.js .primary-navigation { position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: calc(100vh - 118px); overflow: auto; padding: 12px 20px 24px; background: var(--wdd-white); border-bottom: 1px solid var(--wdd-line); box-shadow: var(--wdd-shadow-soft); }
	.js .primary-navigation.is-open { display: block; }
	.primary-menu,
	.primary-navigation .menu { display: grid; align-items: stretch; gap: 4px; }
	.primary-menu a,
	.primary-navigation .menu a { min-height: 50px; padding: 12px 14px; }
	.primary-menu .sub-menu { position: static; display: grid; min-width: 0; padding: 3px 0 3px 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.primary-menu .sub-menu .sub-menu { position: static; }
	.wdd-hero { min-height: 0; background: var(--wdd-ice); }
	.wdd-hero__grid,
	.wdd-split,
	.wdd-contact-grid { grid-template-columns: 1fr; }
	.wdd-hero__visual { min-height: 430px; }
	.wdd-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cta { align-items: flex-start; flex-direction: column; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-discovery { grid-template-columns: 1fr; }
	.footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 620px) {
	body { font-size: 17px; }
	.site-shell { width: min(calc(100% - 28px), var(--wdd-shell)); }
	.utility-bar__inner { min-height: 38px; }
	.utility-bar__details { display: none; }
	.utility-bar__actions { width: 100%; justify-content: center; }
	.custom-logo { max-width: 190px; max-height: 58px; }
	.site-title { font-size: .98rem; }
	.site-title span { font-size: .58rem; }
	.page-hero__inner { padding-block: 64px 72px; }
	.breadcrumbs { margin-bottom: 26px; }
	.post-grid,
	.wdd-card-grid,
	.wdd-team-grid,
	.related-content__grid,
	.after-post-widgets { grid-template-columns: 1fr; }
	.wdd-hero__visual { min-height: 350px; }
	.wdd-hero__visual::after { left: 4px; bottom: 20px; }
	.wdd-stat-grid { grid-template-columns: 1fr; }
	.wdd-media-shape { min-height: 360px; }
	.article-hero__meta > span { width: 100%; padding: 0; border: 0; }
	.article-cover { margin-top: -30px; margin-bottom: 45px; border-width: 5px; border-radius: 22px; }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation > div:last-child { text-align: left; }
	.search-form { flex-direction: column; }
	.search-submit { width: 100%; }
	.footer-grid { grid-template-columns: 1fr; padding-block: 58px 44px; }
	.footer-widgets { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.js .reveal-on-scroll { opacity: 1; transform: none; }
}

@media print {
	.utility-bar,
	.site-header,
	.site-footer,
	.post-navigation,
	.comments-wrap { display: none !important; }
	.site-main { padding: 0; }
	body { color: #000; font-size: 12pt; }
	a { color: #000; }
}
