/**
Theme Name: TańczakWP
Theme URI: https://tanczak.pl
Author: Tańczak i S-ka
Description: Motyw potomny Astry dla gabinetu stomatologicznego Tańczak i S-ka w Opolu.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tanczakwp
Template: astra
*/

/* ==========================================================================
   Tokeny (spójne z paletą Astry: --ast-global-color-0..8)
   ========================================================================== */
:root {
	--tz-accent: var(--ast-global-color-0);
	--tz-accent-hover: var(--ast-global-color-1);
	--tz-ink: var(--ast-global-color-2);
	--tz-body: var(--ast-global-color-3);
	--tz-surface: var(--ast-global-color-4);
	--tz-white: var(--ast-global-color-5);
	--tz-line: var(--ast-global-color-6);
	--tz-navy: var(--ast-global-color-7);
	--tz-muted: var(--ast-global-color-8);
	--tz-accent-tint: #E6EEFB;
	--tz-accent-on-dark: #9DBDF5;
	--tz-radius-sm: 8px;
	--tz-radius-md: 16px;
	--tz-section: clamp(72px, 9vw, 112px);
	--tz-shadow: 0 12px 32px -16px rgba(14, 27, 52, 0.18);
}

html {
	scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ==========================================================================
   Nagłówek i menu
   ========================================================================== */
.ast-primary-header-bar {
	border-bottom-color: var(--tz-line);
}

.main-header-menu .menu-link,
.ast-builder-menu-mobile .menu-link {
	font-weight: 600 !important;
	letter-spacing: -0.005em;
}

/* Przyklejony nagłówek: granatowy pasek (40 px) odjeżdża, główny pasek zostaje u góry */
#masthead {
	position: sticky;
	top: -40px;
	z-index: 999;
}

.admin-bar #masthead {
	top: -8px;
}

@media (max-width: 921px) {
	#masthead,
	.admin-bar #masthead {
		top: 0;
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar #masthead {
		top: 46px;
	}
}

#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
	background: var(--tz-white);
	transition: box-shadow 0.25s ease;
}

#masthead.tz-scrolled .ast-primary-header-bar {
	box-shadow: 0 8px 24px -14px rgba(14, 27, 52, 0.28);
	border-bottom-color: transparent;
}

#masthead .site-branding {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}

/* Górny pasek informacyjny (treść jest owinięta przez WP w <p>, więc flex na <p>) */
.ast-above-header-bar .site-header-section,
.ast-above-header-bar .ast-header-html,
.ast-above-header-bar .ast-builder-html-element {
	display: flex;
	align-items: center;
	height: 100%;
	line-height: 20px;
}

.ast-above-header-bar .ast-builder-html-element > p {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	margin: 0;
	line-height: 20px;
	white-space: nowrap;
}

.tz-topbar-item {
	display: flex;
	align-items: center;
	gap: 0.3em;
	line-height: 20px;
}

.tz-topbar-item + .tz-topbar-item::before {
	content: '';
	display: block;
	flex: 0 0 1px;
	width: 1px;
	height: 14px;
	margin: 0 calc(16px - 0.3em) 0 16px;
	background: rgba(255, 255, 255, 0.35);
}

.ast-above-header-bar,
.ast-above-header-bar .ast-builder-html-element {
	color: rgba(255, 255, 255, 0.82) !important;
}

.ast-above-header-bar a {
	color: var(--tz-white) !important;
	font-weight: 600;
	text-decoration: none;
}

.ast-above-header-bar a:hover {
	color: var(--tz-accent-on-dark) !important;
}

/* ==========================================================================
   Przyciski: jeden rozmiar dla wszystkich wariantów
   ========================================================================== */
:is(.entry-content, .editor-styles-wrapper) .wp-block-button__link,
.ast-header-button-1 .ast-custom-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px !important;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	border: 1px solid transparent !important;
	border-radius: var(--tz-radius-sm) !important;
	box-sizing: border-box;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ast-header-button-1 .ast-custom-button {
	min-height: 46px;
	padding: 0 22px !important;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-buttons {
	gap: 12px;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important;
	border-color: var(--tz-accent) !important;
	color: var(--tz-accent) !important;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--tz-accent) !important;
	color: var(--tz-white) !important;
}

.tz-dark .wp-block-button__link.has-ast-global-color-5-background-color:hover {
	background: var(--tz-accent-tint) !important;
}

/* ==========================================================================
   Sekcje
   ========================================================================== */
.tz-section {
	padding-top: var(--tz-section) !important;
	padding-bottom: var(--tz-section) !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

.tz-section > * + * {
	margin-block-start: 0;
}

:is(.entry-content, .editor-styles-wrapper) .tz-section h2 {
	margin-bottom: 20px;
}

.tz-lead {
	font-size: 19px;
	line-height: 1.65;
	max-width: 62ch;
}

.tz-eyebrow {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tz-accent);
	margin-bottom: 16px !important;
}

.tz-rounded img,
.tz-gallery img {
	border-radius: var(--tz-radius-md);
}

/* ==========================================================================
   Hero: zdjęcie w tle z limitem powiększenia i płynnym przejściem w lewo
   ========================================================================== */
.tz-hero-cover {
	background-color: var(--tz-surface);
	padding: 80px 24px !important;
	overflow: hidden;
}

/* Zdjęcie przyklejone do prawej, maks. 1500 px szerokości: na szerokich ekranach nie rośnie dalej */
.tz-hero-cover .wp-block-cover__image-background {
	left: auto !important;
	right: 0 !important;
	width: min(100%, 1500px) !important;
	object-fit: cover !important;
	object-position: 70% 28% !important;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.tz-hero-cover .wp-block-cover__inner-container {
	max-width: 1200px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.tz-hero__content {
	max-width: 620px;
}

.tz-hero-cover h1 {
	color: var(--tz-ink) !important;
	font-size: clamp(34px, 4.2vw, 50px) !important;
	margin-bottom: 20px;
}

.tz-hero-cover p {
	color: var(--tz-body) !important;
}

.tz-hero-cover .tz-lead {
	max-width: 540px;
	margin-bottom: 36px;
}

@media (max-width: 921px) {
	.tz-hero-cover {
		min-height: 0 !important;
		padding: 64px 20px !important;
	}

	.tz-hero-cover .wp-block-cover__image-background {
		width: 100% !important;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.tz-hero-cover .wp-block-cover__background {
		background: rgba(243, 247, 252, 0.9) !important;
		opacity: 1 !important;
	}
}

/* ==========================================================================
   Specjalizacje: karty z ikonami
   ========================================================================== */
.tz-spec-grid {
	margin-top: 48px !important;
	gap: 20px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.tz-spec {
	position: relative;
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	border-radius: var(--tz-radius-md);
	padding: 100px 28px 30px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tz-spec::before {
	content: '';
	position: absolute;
	top: 28px;
	left: 28px;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--tz-accent-tint);
	transition: background-color 0.2s ease;
}

.tz-spec::after {
	content: '';
	position: absolute;
	top: 40px;
	left: 40px;
	width: 28px;
	height: 28px;
	background: var(--tz-accent);
	-webkit-mask: var(--tz-icon) center / contain no-repeat;
	mask: var(--tz-icon) center / contain no-repeat;
	transition: background-color 0.2s ease;
}

.tz-spec:hover {
	border-color: #C9D8F2;
	box-shadow: var(--tz-shadow);
}

.tz-spec:hover::before {
	background: var(--tz-accent);
}

.tz-spec:hover::after {
	background: var(--tz-white);
}

@media (prefers-reduced-motion: no-preference) {
	.tz-spec:hover {
		transform: translateY(-3px);
	}
}

.tz-spec h3 {
	margin: 0 0 8px;
}

.tz-spec p {
	margin: 0;
	color: var(--tz-body);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 921px) {
	.tz-spec-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.tz-spec-grid {
		grid-template-columns: 1fr !important;
	}

	.tz-spec {
		padding: 92px 24px 26px !important;
	}

	.tz-spec::before {
		top: 24px;
		left: 24px;
	}

	.tz-spec::after {
		top: 36px;
		left: 36px;
	}
}

/* ==========================================================================
   O nas: zdjęcie dopasowane do wysokości tekstu
   ========================================================================== */
.tz-about {
	align-items: stretch !important;
}

.tz-about__media {
	display: flex;
}

.tz-about__media .wp-block-image,
.tz-about__media figure {
	margin: 0;
	width: 100%;
	display: flex;
}

.tz-about__media img {
	width: 100%;
	height: 100%;
	min-height: 460px;
	object-fit: cover;
	object-position: 50% 50%;
	border-radius: var(--tz-radius-md);
}

.tz-facts {
	margin-top: 40px !important;
	padding-top: 32px;
	border-top: 1px solid var(--tz-line);
	gap: 32px !important;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}

.tz-fact__value {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	font-size: 28px !important;
	line-height: 1.1 !important;
	color: var(--tz-accent);
	margin-bottom: 6px !important;
}

.tz-fact__label {
	font-size: 15px !important;
	line-height: 1.5 !important;
	color: var(--tz-muted);
	margin: 0 !important;
}

@media (max-width: 781px) {
	.tz-about__media img {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

/* ==========================================================================
   Sekcja ciemna (znieczulenie ogólne)
   ========================================================================== */
.tz-dark,
.tz-dark h2,
.tz-dark h3 {
	color: var(--tz-white);
}

.tz-dark p,
.tz-dark li {
	color: rgba(255, 255, 255, 0.82);
}

.tz-dark .tz-eyebrow {
	color: var(--tz-accent-on-dark);
}

.tz-checklist {
	list-style: none;
	padding: 0 !important;
	margin: 28px 0 36px !important;
}

.tz-checklist li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
}

.tz-checklist li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 16px;
	height: 8px;
	border-left: 2px solid var(--tz-accent);
	border-bottom: 2px solid var(--tz-accent);
	transform: rotate(-45deg);
}

.tz-dark .tz-checklist li::before {
	border-color: var(--tz-accent-on-dark);
}

/* ==========================================================================
   Udogodnienia: lista z ikonami (bez kart) + wyróżnione Taxi Dental
   ========================================================================== */
.tz-perks {
	gap: 64px !important;
}

.tz-perk-grid {
	gap: 8px 40px !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tz-perk {
	position: relative;
	padding: 20px 0 20px 64px !important;
	border-bottom: 1px solid var(--tz-line);
}

.tz-perk::before,
.tz-highlight::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	box-sizing: border-box;
}

.tz-perk::after,
.tz-highlight::after {
	content: '';
	position: absolute;
	top: 30px;
	left: 10px;
	width: 24px;
	height: 24px;
	background: var(--tz-accent);
	-webkit-mask: var(--tz-icon) center / contain no-repeat;
	mask: var(--tz-icon) center / contain no-repeat;
}

.tz-perk h3 {
	font-size: 18px !important;
	margin: 0 0 4px;
}

.tz-perk p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.tz-highlight {
	position: relative;
	margin-top: 36px !important;
	padding: 28px 28px 28px 92px !important;
	background: var(--tz-navy);
	border-radius: var(--tz-radius-md);
}

.tz-highlight::before {
	top: 28px;
	left: 28px;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
}

.tz-highlight::after {
	top: 38px;
	left: 38px;
	background: var(--tz-accent-on-dark);
}

.tz-highlight h3 {
	color: var(--tz-white) !important;
	font-size: 20px !important;
	margin: 0 0 6px;
}

.tz-highlight p {
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 8px;
	font-size: 16px;
}

.tz-highlight a {
	color: var(--tz-white);
	font-weight: 600;
}

.tz-highlight p:last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.tz-perks {
		gap: 32px !important;
	}

	.tz-perk-grid {
		grid-template-columns: 1fr !important;
	}

	.tz-highlight {
		padding: 24px 24px 24px 84px !important;
	}

	.tz-highlight::before {
		top: 24px;
		left: 24px;
	}

	.tz-highlight::after {
		top: 34px;
		left: 34px;
	}
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.tz-contact-grid {
	margin-top: 48px !important;
	gap: 24px !important;
}

.tz-card {
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	border-radius: var(--tz-radius-md);
	padding: 32px !important;
	height: 100%;
}

.tz-card h3 {
	margin: 0 0 16px;
	font-size: 20px;
}

.tz-card h4 {
	margin: 20px 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--tz-muted);
}

.tz-card p {
	margin: 0 0 4px;
}

.tz-card a {
	color: var(--tz-ink);
	font-weight: 500;
}

.tz-card a:hover {
	color: var(--tz-accent);
}

.tz-hours table {
	border: 0;
	margin: 0;
	width: 100%;
}

.tz-hours td {
	border: 0;
	border-bottom: 1px solid var(--tz-line);
	padding: 9px 0;
	font-size: 16px;
}

.tz-hours tr:last-child td {
	border-bottom: 0;
}

.tz-hours td:last-child {
	text-align: right;
	font-weight: 500;
	color: var(--tz-ink);
	white-space: nowrap;
}

.tz-account {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.tz-map {
	margin-top: 24px !important;
	border-radius: var(--tz-radius-md);
	overflow: hidden;
	border: 1px solid var(--tz-line);
	line-height: 0;
}

.tz-map iframe {
	width: 100%;
	height: 420px;
	border: 0;
	display: block;
}

@media (max-width: 781px) {
	.tz-map iframe {
		height: 320px;
	}

	.tz-card {
		padding: 24px !important;
	}
}

/* ==========================================================================
   Podstrony: nagłówek strony, okruszki, oś czasu, wartości, wezwanie do działania
   ========================================================================== */
:is(.entry-content, .editor-styles-wrapper) p:empty {
	display: none;
}

.tz-page-hero {
	padding-top: clamp(40px, 5vw, 64px) !important;
	padding-bottom: clamp(56px, 7vw, 88px) !important;
}

.tz-page-hero h1 {
	font-size: clamp(32px, 3.8vw, 46px) !important;
	margin-bottom: 20px;
}

.tz-page-hero .tz-lead {
	margin-bottom: 0;
}

.tz-page-hero__image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: var(--tz-shadow);
}

.tz-breadcrumbs {
	margin-bottom: 20px;
	font-size: 14px;
}

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

.tz-breadcrumbs li {
	display: flex;
	align-items: center;
	color: var(--tz-muted);
}

.tz-breadcrumbs li + li::before {
	content: '';
	width: 6px;
	height: 6px;
	margin: 0 12px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.tz-breadcrumbs a {
	color: var(--tz-accent);
	text-decoration: none;
	font-weight: 500;
}

.tz-breadcrumbs a:hover {
	text-decoration: underline;
}

.tz-prose p {
	max-width: 66ch;
}

.tz-prose p + p {
	margin-top: 0;
}

.tz-link-arrow a {
	font-weight: 600;
	text-decoration: none;
	color: var(--tz-accent);
}

.tz-link-arrow a::after {
	content: ' \2192';
}

.tz-link-arrow a:hover {
	text-decoration: underline;
}

/* Oś czasu */
.tz-timeline {
	position: relative;
	padding-left: 36px !important;
}

.tz-timeline::before {
	content: '';
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 7px;
	width: 2px;
	background: var(--tz-line);
}

.tz-timeline__item {
	position: relative;
	padding-bottom: 32px !important;
}

.tz-timeline__item:last-child {
	padding-bottom: 0 !important;
}

.tz-timeline__item::before {
	content: '';
	position: absolute;
	top: 6px;
	left: -36px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--tz-white);
	border: 3px solid var(--tz-accent);
	box-sizing: border-box;
}

.tz-timeline__year {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	color: var(--tz-accent);
	margin: 0 0 6px !important;
}

.tz-timeline__item p:not(.tz-timeline__year) {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

/* Wartości */
.tz-values {
	margin-top: 48px !important;
	gap: 20px !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.tz-value {
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	border-radius: var(--tz-radius-md);
	padding: 32px !important;
}

.tz-value h3 {
	margin: 0 0 10px;
}

.tz-value p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
}

@media (max-width: 781px) {
	.tz-values {
		grid-template-columns: 1fr !important;
	}

	.tz-value {
		padding: 24px !important;
	}
}

/* Zdjęcie dopasowane do wysokości kolumny tekstu */
.tz-media-fill {
	display: flex;
}

.tz-media-fill .wp-block-image,
.tz-media-fill figure {
	margin: 0;
	width: 100%;
	display: flex;
}

.tz-media-fill img {
	width: 100%;
	height: 100%;
	min-height: 380px;
	object-fit: cover;
	border-radius: var(--tz-radius-md);
}

/* Tablet: kolumna tekstu byłaby za wąska, więc zdjęcie i tekst układają się jeden pod drugim. */
@media (min-width: 782px) and (max-width: 1023px) {
	.wp-block-columns:has(> .tz-media-fill) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns:has(> .tz-media-fill) > .wp-block-column {
		flex-basis: 100% !important;
	}

	.tz-media-fill img {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* Desktop: wysokość wyznacza kolumna tekstu, zdjęcie ją wypełnia (kadrowanie object-fit). */
@media (min-width: 1024px) {
	.wp-block-columns > .tz-media-fill {
		position: relative;
		align-self: stretch;
		min-height: 380px;
	}

	.wp-block-columns > .tz-media-fill > figure {
		position: absolute;
		inset: 0;
	}

	.wp-block-columns > .tz-media-fill img {
		min-height: 0;
	}

	.wp-block-columns:has(> .tz-media-fill) > .wp-block-column > :last-child {
		margin-bottom: 0;
	}
}

@media (max-width: 781px) {
	.tz-media-fill img {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

/* Wezwanie do działania */
.tz-cta {
	text-align: center;
}

.tz-cta .tz-lead {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 32px;
}

.tz-cta .wp-block-buttons {
	justify-content: center;
}

/* ==========================================================================
   Dlaczego my: lista powodów z przyklejonym wstępem, siatka udogodnień 4 kolumny
   ========================================================================== */
.tz-reasons {
	align-items: flex-start !important;
}

@media (min-width: 782px) {
	.tz-reasons__intro {
		position: sticky;
		top: 120px;
	}
}

.tz-reason {
	padding: 28px 0 !important;
	border-top: 1px solid var(--tz-line);
}

.tz-reason:first-child {
	padding-top: 0 !important;
	border-top: 0;
}

.tz-reason h3 {
	margin: 0 0 8px;
}

.tz-reason p {
	margin: 0;
	max-width: 62ch;
}

.tz-perk-grid--4 {
	margin-top: 40px !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* W siatce 4-kolumnowej ikona stoi nad tekstem, żeby tekst miał pełną szerokość */
.tz-perk-grid--4 {
	margin-top: 16px !important;
}

/* Wariant 3 kolumny (6 kafelków = 2 pełne rzędy) */
.tz-perk-grid--4.tz-perk-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 921px) {
	.tz-perk-grid--4.tz-perk-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.tz-perk-grid--4.tz-perk-grid--3 {
		grid-template-columns: 1fr !important;
	}
}

/* Ikona z odstępem od linii oddzielającej poprzedni kafelek */
.tz-perk-grid--4 .tz-perk {
	padding: 92px 0 28px !important;
}

.tz-perk-grid--4 .tz-perk::before {
	top: 28px;
}

.tz-perk-grid--4 .tz-perk::after {
	top: 38px;
}

.tz-perk h3,
.tz-perk p {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

@media (max-width: 1100px) {
	.tz-perk-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.tz-perk-grid--4 {
		grid-template-columns: 1fr !important;
	}
}

/* ==========================================================================
   Usługi: skróty do usług i sekcje usług
   ========================================================================== */
.tz-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 32px 0 0 !important;
	padding: 0 !important;
}

.tz-chips li {
	margin: 0;
}

.tz-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	border-radius: var(--tz-radius-sm);
	color: var(--tz-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.tz-chips a:hover {
	border-color: var(--tz-accent);
	color: var(--tz-accent);
}

.tz-service h3 {
	font-size: 18px !important;
	margin: 28px 0 0;
}

.tz-service .tz-checklist {
	margin: 16px 0 0 !important;
}

.tz-service .tz-checklist li {
	margin-bottom: 8px;
}

html {
	scroll-padding-top: 100px;
}

/* ==========================================================================
   FAQ: rozwijane odpowiedzi (blok Szczegóły / details)
   ========================================================================== */
.tz-faq .wp-block-details {
	border-bottom: 1px solid var(--tz-line);
	padding: 0 !important;
	margin: 0 !important;
}

.tz-faq .wp-block-details:first-child {
	border-top: 1px solid var(--tz-line);
}

.tz-faq .wp-block-details summary {
	position: relative;
	display: block;
	list-style: none;
	cursor: pointer;
	padding: 22px 48px 22px 0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--tz-ink);
	transition: color 0.2s ease;
}

.tz-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.tz-faq .wp-block-details summary::before,
.tz-faq .wp-block-details summary::after {
	content: '';
	position: absolute;
	right: 8px;
	top: 50%;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	background: var(--tz-accent);
	transition: transform 0.2s ease;
}

.tz-faq .wp-block-details summary::after {
	transform: rotate(90deg);
}

.tz-faq .wp-block-details[open] summary::after {
	transform: rotate(0deg);
}

.tz-faq .wp-block-details summary:hover {
	color: var(--tz-accent);
}

.tz-faq .wp-block-details summary:focus-visible {
	outline: 2px solid var(--tz-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.tz-faq .wp-block-details > :not(summary) {
	margin: 0 0 14px !important;
	max-width: 68ch;
}

.tz-faq .wp-block-details > :last-child {
	margin-bottom: 24px !important;
}

.tz-faq .wp-block-details ul {
	padding-left: 20px;
}

.tz-faq .wp-block-details li {
	margin-bottom: 6px;
}

@media (max-width: 600px) {
	.tz-faq .wp-block-details summary {
		font-size: 17px;
		padding: 18px 40px 18px 0;
	}
}

/* ==========================================================================
   Kontakt: przyciski w nagłówku strony, miejsce na formularz
   ========================================================================== */
.tz-page-hero .wp-block-buttons {
	margin-top: 32px !important;
}

.tz-form-placeholder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 320px;
	padding: 40px !important;
	background: var(--tz-white);
	border: 2px dashed #C9D8F2;
	border-radius: var(--tz-radius-md);
	text-align: center;
}

.tz-form-placeholder p {
	margin: 0 auto 8px !important;
	max-width: 46ch;
}

.tz-form-placeholder p:last-child {
	margin-bottom: 0 !important;
}

.tz-form-placeholder--public {
	min-height: 0;
	border-style: solid;
	border-width: 1px;
	border-color: var(--tz-line);
}

.tz-form-placeholder code {
	font-size: 14px;
	background: var(--tz-accent-tint);
	padding: 2px 6px;
	border-radius: 4px;
}

/* ==========================================================================
   Strona 404
   ========================================================================== */
.error404 .site-content {
	background: var(--tz-surface);
}

.tz-404 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
	align-items: center;
	gap: 64px;
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(64px, 9vw, 112px) 0;
}

.tz-404__content {
	grid-column: 1;
	grid-row: 1;
}

.tz-404__art {
	grid-column: 2;
	grid-row: 1;
}

.tz-404__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
	.tz-404__svg .tz-tooth-body {
		animation: tz-tooth-float 3.6s ease-in-out infinite;
	}

	.tz-404__svg .tz-tooth-glass {
		transform-box: fill-box;
		transform-origin: 10% 90%;
		animation: tz-tooth-search 3.6s ease-in-out infinite;
	}

	.tz-404__svg .tz-tooth-q {
		animation: tz-tooth-q 2.4s ease-in-out infinite;
	}
}

@keyframes tz-tooth-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@keyframes tz-tooth-search {
	0%, 100% { transform: rotate(0deg); }
	30% { transform: rotate(-10deg); }
	60% { transform: rotate(6deg); }
}

@keyframes tz-tooth-q {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

@media (max-width: 781px) {
	.tz-404 {
		grid-template-columns: 1fr;
		gap: 8px;
		text-align: center;
		padding-top: 40px;
	}

	.tz-404__art {
		grid-column: 1;
		grid-row: 1;
		max-width: 220px;
		margin: 0 auto;
	}

	.tz-404__content {
		grid-row: 2;
	}
}

.tz-404__code {
	margin: 0 0 8px !important;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--tz-accent);
}

.tz-404 h1 {
	font-size: clamp(32px, 4vw, 44px) !important;
	margin: 0 0 16px;
}

.tz-404__lead {
	max-width: 56ch;
	margin: 0 0 28px !important;
	font-size: 18px;
}

.tz-404__countdown {
	display: inline-block;
	margin: 0 0 28px !important;
	padding: 10px 18px;
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	border-radius: var(--tz-radius-sm);
	font-size: 15px;
	color: var(--tz-body);
}

.tz-404__countdown strong {
	color: var(--tz-accent);
	font-variant-numeric: tabular-nums;
}

.tz-404 .tz-404__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
}

.tz-404 .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	border: 1px solid transparent !important;
	border-radius: var(--tz-radius-sm) !important;
	cursor: pointer;
	text-decoration: none;
}

.tz-404 .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--tz-accent);
	color: var(--tz-white);
}

.tz-404 .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--tz-accent-hover);
}

.tz-404 .is-style-outline .wp-block-button__link {
	background: transparent !important;
	border-color: var(--tz-accent) !important;
	color: var(--tz-accent) !important;
}

.tz-404 .is-style-outline .wp-block-button__link:hover {
	background: var(--tz-accent) !important;
	color: var(--tz-white) !important;
}

.tz-404__links {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--tz-line);
}

.tz-404__links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tz-404__links a {
	font-weight: 600;
	text-decoration: none;
}

.tz-404__links a:hover {
	text-decoration: underline;
}

@media (max-width: 781px) {
	.tz-404__lead {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.tz-404 .tz-404__buttons,
	.tz-404__links ul {
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.tz-404 .tz-404__buttons .wp-block-button,
	.tz-404 .tz-404__buttons .wp-block-button__link {
		width: 100%;
	}
}

/* ==========================================================================
   Stopka
   ========================================================================== */
.site-footer {
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
	line-height: 1.7;
}

.site-primary-footer-wrap {
	padding-top: 72px !important;
	padding-bottom: 56px !important;
}

.site-primary-footer-wrap,
.site-below-footer-wrap {
	padding-left: 24px !important;
	padding-right: 24px !important;
}

.site-footer .footer-widget-area .widget p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.72);
}

.site-primary-footer-wrap .ast-builder-grid-row {
	gap: 48px;
}

.site-footer .ast-builder-html-element p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.72);
}

.site-footer .ast-builder-html-element p:last-child {
	margin-bottom: 0;
}

.site-footer a {
	color: var(--tz-white) !important;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: var(--tz-accent-on-dark) !important;
}

.site-footer .tz-footer-brand {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--tz-white) !important;
	margin-bottom: 12px !important;
}

.site-footer .tz-footer-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tz-white) !important;
	margin-bottom: 16px !important;
}

.site-footer .ast-builder-layout-element + .ast-builder-layout-element {
	margin-top: 0;
}

/* Menu w stopce */
.site-footer .footer-widget-area .ast-builder-menu,
.site-footer .ast-footer-menu {
	width: 100%;
}

.site-footer .footer-nav-wrap .menu-item .menu-link {
	padding: 4px 0 !important;
	color: rgba(255, 255, 255, 0.82) !important;
	font-weight: 500;
	border: 0 !important;
}

.site-footer .footer-nav-wrap .menu-item .menu-link:hover,
.site-footer .footer-nav-wrap .current-menu-item > .menu-link {
	color: var(--tz-white) !important;
}

/* Social media */
.site-footer .ast-footer-social-wrap .footer-social-inner-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 4px;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--tz-white) !important;
	font-weight: 600;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element svg {
	width: 18px;
	height: 18px;
	fill: currentColor !important;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element .social-item-label {
	color: inherit !important;
	font-size: 15px;
	padding-left: 0;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element:hover {
	color: var(--tz-accent-on-dark) !important;
}

/* Dolny pasek */
.site-below-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p {
	color: rgba(255, 255, 255, 0.6) !important;
	font-size: 14px;
	margin: 0;
}

@media (max-width: 921px) {
	.site-primary-footer-wrap {
		padding-top: 56px !important;
		padding-bottom: 40px !important;
	}

	.site-primary-footer-wrap .ast-builder-grid-row {
		gap: 36px;
	}

	.site-footer .site-footer-section {
		justify-content: flex-start !important;
		align-items: flex-start !important;
		text-align: left !important;
	}
}

/* ==========================================================================
   Ikony specjalizacji (maski SVG)
   ========================================================================== */
.tz-ico-narkoza {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8.5 8.5 0 1 1 9.5 4a7 7 0 0 0 10.5 10.5z'/%3E%3Cpath d='M15 3h4l-4 4.5h4'/%3E%3C/svg%3E");
}

.tz-ico-implantologia {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5h8a3 3 0 0 1 0 6H8a3 3 0 0 1 0-6z'/%3E%3Cpath d='M9.5 8.5h5l-.6 11.5L12 22l-1.9-2-.6-11.5z'/%3E%3Cpath d='M9.7 12.5h4.6'/%3E%3Cpath d='M9.9 16h4.2'/%3E%3C/svg%3E");
}

.tz-ico-chirurgia {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l6.8-6.8'/%3E%3Cpath d='M10.3 13.7l9-9.2a1.8 1.8 0 0 1 2.4 2.6l-8.2 9.4z'/%3E%3Cpath d='M8 16l2.5 2.5'/%3E%3C/svg%3E");
}

.tz-ico-endodoncja {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3c-2.2 0-4 1.8-4 4.5 0 2.4 1 4 1.6 6.2.5 2 .8 4.3 1.6 6 .5 1.1 1.8 1.1 2.2-.1l1.1-3.6c.3-1 1.2-1.5 2.5-1.5s2.2.5 2.5 1.5l1.1 3.6c.4 1.2 1.7 1.2 2.2-.1.8-1.7 1.1-4 1.6-6C20 11.5 21 9.9 21 7.5 21 4.8 19.2 3 17 3c-1.9 0-3 1-5 1S8.9 3 7 3z'/%3E%3Cpath d='M10 9.5v6'/%3E%3Cpath d='M14 9.5v6'/%3E%3C/svg%3E");
}

.tz-ico-protetyka {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8l4.5 4 4-7 4 7 4.5-4-2 11h-13z'/%3E%3Cpath d='M6.5 19h11'/%3E%3C/svg%3E");
}

.tz-ico-bizuteria {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h11L21.5 9 12 20.5 2.5 9z'/%3E%3Cpath d='M2.5 9h19'/%3E%3Cpath d='M9 3.5 12 9l3-5.5'/%3E%3Cpath d='M12 20.5 8.5 9'/%3E%3Cpath d='M12 20.5 15.5 9'/%3E%3C/svg%3E");
}

.tz-ico-zachowawcza {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3c-2.2 0-4 1.8-4 4.5 0 2.4 1 4 1.6 6.2.5 2 .8 4.3 1.6 6 .5 1.1 1.8 1.1 2.2-.1l1.1-3.6c.3-1 1.2-1.5 2.5-1.5s2.2.5 2.5 1.5l1.1 3.6c.4 1.2 1.7 1.2 2.2-.1.8-1.7 1.1-4 1.6-6C20 11.5 21 9.9 21 7.5 21 4.8 19.2 3 17 3c-1.9 0-3 1-5 1S8.9 3 7 3z'/%3E%3Cpath d='M12 7.5v5'/%3E%3Cpath d='M9.5 10h5'/%3E%3C/svg%3E");
}

.tz-ico-estetyczna {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3l1.7 4.8 4.8 1.7-4.8 1.7L11 16l-1.7-4.8L4.5 9.5l4.8-1.7z'/%3E%3Cpath d='M18.5 14.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z'/%3E%3C/svg%3E");
}

.tz-ico-dziecieca {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z'/%3E%3Cpath d='M8.5 14c.9 1.3 2.1 2 3.5 2s2.6-.7 3.5-2'/%3E%3Cpath d='M9 9.5h.01'/%3E%3Cpath d='M15 9.5h.01'/%3E%3C/svg%3E");
}

/* Przyciski na telefonie: pełna szerokość, równe rozmiary */
@media (max-width: 600px) {
	:is(.entry-content, .editor-styles-wrapper) .wp-block-buttons > .wp-block-button {
		width: 100%;
	}

	:is(.entry-content, .editor-styles-wrapper) .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
}

.tz-ico-parking {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M9.5 17V7.5H13a3 3 0 0 1 0 6H9.5'/%3E%3C/svg%3E");
}

.tz-ico-dostepnosc {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='4' r='1.2'/%3E%3Cpath d='m18 19 1-7-6 1'/%3E%3Cpath d='m5 8 3-3 5.5 3-2.36 3.5'/%3E%3Cpath d='M4.24 14.5a5 5 0 0 0 6.88 6'/%3E%3Cpath d='M13.76 17.5a5 5 0 0 0-6.88-6'/%3E%3C/svg%3E");
}

.tz-ico-klimatyzacja {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 8h12'/%3E%3Cpath d='M18.3 17.7a2.5 2.5 0 0 1-3.16 3.83 2.53 2.53 0 0 1-1.14-2V12'/%3E%3Cpath d='M6.6 15.6A2 2 0 1 0 10 17v-5'/%3E%3C/svg%3E");
}

.tz-ico-wifi {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9a14 14 0 0 1 19 0'/%3E%3Cpath d='M5.5 12.5a9.5 9.5 0 0 1 13 0'/%3E%3Cpath d='M8.7 16a5 5 0 0 1 6.6 0'/%3E%3Cpath d='M12 19.5h.01'/%3E%3C/svg%3E");
}

.tz-ico-muzyka {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Cpath d='M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3Cpath d='M17 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3C/svg%3E");
}

.tz-ico-dzieci {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14a5 5 0 1 0 0-10 5 5 0 0 0 0 10z'/%3E%3Cpath d='M12 14v7'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M10.5 4.5c-.8 1.4-.8 3.2 0 4.6'/%3E%3C/svg%3E");
}

.tz-ico-taxi {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14v-4.5L17 7H7l-2 5.5z'/%3E%3Cpath d='M3.5 12.5h17'/%3E%3Cpath d='M7.5 20v-3'/%3E%3Cpath d='M16.5 20v-3'/%3E%3Cpath d='M7.5 14.8h.01'/%3E%3Cpath d='M16.5 14.8h.01'/%3E%3Cpath d='M10 4h4l.5 3h-5z'/%3E%3C/svg%3E");
}

/* Przycisk z obrysem na ciemnym tle */
.tz-dark :is(.entry-content, .editor-styles-wrapper) .wp-block-button.is-style-outline > .wp-block-button__link,
.tz-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.6) !important;
	color: var(--tz-white) !important;
}

.tz-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--tz-white) !important;
	border-color: var(--tz-white) !important;
	color: var(--tz-navy) !important;
}

/* Separator między ciemną sekcją strony a stopką */
.site-footer .site-primary-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.tz-ico-poczekalnia {
	--tz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z'/%3E%3Cpath d='M4 18v2'/%3E%3Cpath d='M20 18v2'/%3E%3Cpath d='M12 4v9'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Animacje: pojawianie się treści przy przewijaniu (klasy dodaje skrypt w functions.php)
   ========================================================================== */
.tz-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--tz-reveal-delay, 0ms),
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--tz-reveal-delay, 0ms);
	will-change: opacity, transform;
}

.tz-reveal.tz-reveal--in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.tz-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Delikatne "wciśnięcie" przycisków */
@media (prefers-reduced-motion: no-preference) {
	.wp-block-button__link,
	.ast-custom-button {
		transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
	}

	.wp-block-button__link:active,
	.ast-custom-button:active {
		transform: translateY(1px) scale(0.99);
	}
}

/* ==========================================================================
   Hero w ramce (strona główna): szerokość równa treści strony, zaokrąglone rogi
   ========================================================================== */
.entry-content .tz-hero-cover.alignfull,
.editor-styles-wrapper .tz-hero-cover.alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin: 16px 0 0 !important;
	border-radius: 28px;
	overflow: hidden;
	isolation: isolate;
}

.tz-hero-cover .wp-block-cover__image-background {
	width: min(100%, 1100px) !important;
}

/* Krótkie zachęty pod przyciskami */
.tz-hero-notes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 22px 0 0 !important;
	padding: 0 !important;
}

.tz-hero-notes li {
	position: relative;
	margin: 0;
	padding-left: 24px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--tz-ink);
}

.tz-hero-notes li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.38em;
	width: 12px;
	height: 6px;
	border-left: 2px solid var(--tz-accent);
	border-bottom: 2px solid var(--tz-accent);
	transform: rotate(-45deg);
}

@media (max-width: 921px) {
	/* Te same krawędzie co treść sekcji (24 px od brzegu ekranu) */
	.entry-content .tz-hero-cover.alignfull {
		width: calc(100% - 8px) !important;
		margin: 12px auto 0 !important;
		border-radius: 22px;
	}
}

@media (max-width: 600px) {
	.tz-hero-notes {
		flex-direction: column;
		gap: 6px;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.entry-content .tz-hero-cover.alignfull {
		padding: 44px 18px 24px !important;
	}

	.tz-hero-cover h1 {
		font-size: 29px !important;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: manual;
	}
}

/* ==========================================================================
   Strona główna (komputer): hero prawie na całą szerokość, nagłówek wtopiony w hero,
   menu i przycisk w białej "pigułce". Po przewinięciu nagłówek dostaje białe tło.
   --tz-sbw (szerokość paska przewijania) ustawia skrypt w <head>.
   ========================================================================== */
@media (min-width: 922px) {
	body.home:not(.ast-header-break-point) {
		--tz-hero-gap: 16px;
		--tz-hero-inset: 20px;
		/* Pełna wysokość paska nagłówka; skrypt w <head> nadpisuje ją zmierzoną wartością */
		--tz-header-h: var(--tz-header-h-measured, 119px);
	}

	body.home:not(.ast-header-break-point) .entry-content .tz-hero-cover.alignfull {
		/* Prawie pełna szerokość ekranu, ale najwyżej 1600 px; zawsze wyśrodkowane */
		--tz-hero-w: min(1600px, calc(100vw - var(--tz-sbw, 0px) - 2 * var(--tz-hero-gap)));
		width: var(--tz-hero-w) !important;
		max-width: none !important;
		/* Ramka zaczyna się "gap" pod granatowym paskiem, a nagłówek leży w jej środku */
		margin-top: calc(-1 * (var(--tz-header-h) - var(--tz-hero-gap))) !important;
		margin-left: calc(50% - var(--tz-hero-w) / 2) !important;
		margin-right: 0 !important;
		padding-top: calc(var(--tz-header-h) + 40px) !important;
		min-height: 720px !important;
	}

	/* Nagłówek nad hero: bez tła, z odstępem od górnej krawędzi ramki */
	body.home:not(.ast-header-break-point) #masthead .ast-primary-header-bar {
		background: transparent !important;
		border-bottom-color: transparent !important;
		box-shadow: none !important;
		/* Odstęp od górnej krawędzi ramki = odstęp od jej boku (spójnie) */
		padding-top: calc(var(--tz-hero-gap) + var(--tz-hero-inset));
		padding-bottom: 8px;
		transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
	}

	/* Biała "pigułka" wyłącznie wokół menu (na środku nagłówka) */
	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-builder-menu-1 .main-header-menu {
		gap: 2px;
		padding: 6px;
		background: var(--tz-white);
		border: 1px solid #D6E2F5;
		border-radius: 16px;
		box-shadow: none;
	}

	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding: 10px 18px !important;
		border-radius: 12px;
		line-height: 1.2;
		transition: background-color 0.2s ease, color 0.2s ease;
	}

	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover {
		background: var(--tz-accent-tint);
		color: var(--tz-accent) !important;
	}

	/* Aktywna pozycja: niebieskie tło */
	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link {
		background: var(--tz-accent);
		color: var(--tz-white) !important;
	}

	/* Po przewinięciu: zwykły biały nagłówek */
	body.home:not(.ast-header-break-point) #masthead.tz-scrolled .ast-primary-header-bar {
		background: var(--tz-white) !important;
		padding-top: 0;
		box-shadow: 0 8px 24px -14px rgba(14, 27, 52, 0.28) !important;
	}

	body.home:not(.ast-header-break-point) #masthead.tz-scrolled .ast-builder-menu-1 .main-header-menu {
		box-shadow: none;
		background: transparent;
		border-color: transparent;
	}

	/* Po przewinięciu: czyste menu jak na innych stronach (aktywna pozycja tylko kolorem tekstu) */
	body.home:not(.ast-header-break-point) #masthead.tz-scrolled .ast-builder-menu-1 .main-header-menu > .current-menu-item > .menu-link {
		background: transparent;
		color: var(--tz-accent) !important;
	}
}

@media (min-width: 922px) and (max-width: 1300px) {
	/* Logo i menu w jednej linii z tekstem hero, gdy ekran jest węższy niż kontener */
	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-primary-header-bar .site-primary-header-wrap {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* Bez poziomego przewijania przez sekcje "na pełną szerokość" (100vw zawiera pasek przewijania) */
html,
body {
	overflow-x: clip;
}

/* Hero: mocniejszy, jasnoniebieski kolor po lewej stronie (zamiast prawie białego) */
.tz-hero-cover {
	background-color: #DCE8FB !important;
}

.tz-hero-cover .wp-block-cover__background {
	background: linear-gradient(90deg, #DCE8FB 0%, rgba(220, 232, 251, 0.94) 32%, rgba(220, 232, 251, 0.55) 52%, rgba(220, 232, 251, 0) 70%) !important;
	opacity: 1 !important;
}

@media (max-width: 921px) {
	.tz-hero-cover .wp-block-cover__background {
		background: rgba(220, 232, 251, 0.9) !important;
	}
}

/* Tablet / mały laptop: menu i przycisk w jednej linii, bez łamania tekstu przycisku */
#ast-desktop-header .ast-custom-button {
	white-space: nowrap;
}

@media (min-width: 922px) and (max-width: 1199px) {
	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-builder-menu-1 .main-header-menu {
		gap: 0;
		padding: 5px;
	}

	body.home:not(.ast-header-break-point) #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link,
	#ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding: 9px 11px !important;
		font-size: 15px !important;
	}

	#ast-desktop-header .ast-custom-button {
		padding: 0 16px !important;
		font-size: 15px !important;
	}
}

/* Nagłówek (komputer, wszystkie strony): logo | menu | przycisk z równymi odstępami między nimi */
body:not(.ast-header-break-point) #ast-desktop-header .site-primary-header-wrap .ast-builder-grid-row {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
}

body:not(.ast-header-break-point) #ast-desktop-header .site-primary-header-wrap .site-header-section {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}

/* ==========================================================================
   Formularz kontaktowy (Contact Form 7)
   ========================================================================== */
.wpcf7 {
	background: var(--tz-white);
	border: 1px solid var(--tz-line);
	border-radius: var(--tz-radius-md);
	padding: 32px;
}

.wpcf7 form > p:empty,
.wpcf7 br {
	display: none;
}

.tz-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.tz-field--full {
	grid-column: 1 / -1;
}

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

.tz-req {
	color: var(--tz-accent);
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: var(--tz-ink);
	background: var(--tz-white);
	border: 1px solid #C9D6EA;
	border-radius: var(--tz-radius-sm);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--tz-accent);
	box-shadow: 0 0 0 3px rgba(26, 95, 208, 0.18);
}

.tz-form-note {
	margin: 18px 0 0 !important;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tz-muted);
}

.tz-consent {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.55;
}

.tz-consent .wpcf7-list-item {
	margin: 0;
}

.tz-consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.tz-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--tz-accent);
}

.tz-form-submit {
	margin-top: 24px;
}

.wpcf7 input[type="submit"] {
	min-height: 52px;
	padding: 0 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--tz-white);
	background: var(--tz-accent);
	border: 0;
	border-radius: var(--tz-radius-sm);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--tz-accent-hover);
}

.wpcf7 input[type="submit"]:focus-visible {
	outline: 2px solid var(--tz-accent);
	outline-offset: 3px;
}

.wpcf7 input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wpcf7 .wpcf7-spinner {
	vertical-align: middle;
}

/* Błędy i komunikaty */
.wpcf7 .wpcf7-not-valid {
	border-color: #B42318 !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 14px;
	color: #B42318;
}

.wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: var(--tz-radius-sm);
	font-size: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border: 1px solid #A6D9B8;
	background: #EEF8F1;
	color: #146C3A;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border: 1px solid #F3B8B2;
	background: #FDF1F0;
	color: #B42318;
}

@media (max-width: 600px) {
	.wpcf7 {
		padding: 22px;
	}

	.tz-form-grid {
		grid-template-columns: 1fr;
	}

	.wpcf7 input[type="submit"] {
		width: 100%;
	}
}

/* Formularz: odstępy tylko z ustawień powyżej (bez marginesów dodawanych przez motyw) */
.wpcf7 .tz-form-grid,
.wpcf7 .tz-consent,
.wpcf7 .tz-form-submit {
	margin-bottom: 0 !important;
}

/* ==========================================================================
   Mapa ładowana po kliknięciu
   ========================================================================== */
.tz-map--consent {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 32px 24px;
	line-height: 1.6;
	text-align: center;
	background:
		radial-gradient(circle at 20% 30%, rgba(26, 95, 208, 0.06) 0 120px, transparent 121px),
		radial-gradient(circle at 80% 70%, rgba(26, 95, 208, 0.05) 0 160px, transparent 161px),
		var(--tz-surface);
}

.tz-map__placeholder {
	max-width: 460px;
}

.tz-map__placeholder::before {
	content: '';
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: var(--tz-accent-tint);
	-webkit-mask: none;
}

.tz-map__title {
	position: relative;
	margin: -72px 0 12px !important;
	padding-top: 72px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--tz-ink);
}

.tz-map__title::before {
	content: '';
	position: absolute;
	top: 16px;
	left: 50%;
	width: 26px;
	height: 26px;
	margin-left: -13px;
	background: var(--tz-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tz-map__text {
	margin: 0 0 20px !important;
	font-size: 15px;
	color: var(--tz-body);
}

.tz-map__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 20px;
}

.tz-map__btn {
	min-height: 48px;
	padding: 0 24px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--tz-white);
	background: var(--tz-accent);
	border: 0;
	border-radius: var(--tz-radius-sm);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tz-map__btn:hover {
	background: var(--tz-accent-hover);
}

.tz-map__btn:focus-visible {
	outline: 2px solid var(--tz-accent);
	outline-offset: 3px;
}

.tz-map__link {
	font-weight: 600;
}

/* ==========================================================================
   Dokument prawny (polityka prywatności)
   ========================================================================== */
.tz-legal h2 {
	font-size: 24px !important;
	margin-top: 48px !important;
	margin-bottom: 14px !important;
	scroll-margin-top: 110px;
}

.tz-legal h3 {
	font-size: 19px !important;
	margin-top: 32px !important;
	margin-bottom: 10px !important;
}

.tz-legal p,
.tz-legal li {
	font-size: 17px;
	line-height: 1.7;
}

.tz-legal ul {
	margin-top: 0;
	margin-bottom: 18px;
	padding-left: 22px;
}

.tz-legal li {
	margin-bottom: 6px;
}

.tz-legal .wp-block-table {
	margin-top: 8px;
	margin-bottom: 24px;
	overflow-x: auto;
}

.tz-legal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
}

.tz-legal th,
.tz-legal td {
	padding: 12px 14px;
	border: 1px solid var(--tz-line);
	vertical-align: top;
	text-align: left;
}

.tz-legal thead th {
	background: var(--tz-surface);
	color: var(--tz-ink);
	font-weight: 600;
}

.tz-fill {
	padding: 1px 6px;
	border-radius: 4px;
	background: #FFF4CC;
	color: #7A5A00;
	font-weight: 600;
}

.tz-toc {
	margin-top: 24px !important;
}

/* ==========================================================================
   Pasek informacyjny o plikach cookies
   ========================================================================== */
.tz-cookie-bar {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 460px;
	padding: 16px 16px 16px 20px;
	background: #fff;
	border: 1px solid #D6E2F5;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(11, 35, 80, .14);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s ease;
}
.tz-cookie-bar[hidden] { display: none; }
.tz-cookie-bar.is-visible { opacity: 1; transform: none; }
.tz-cookie-bar__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ast-global-color-3, #3D4B63);
}
.tz-cookie-bar__text a {
	color: var(--ast-global-color-0, #1A5FD0);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.tz-cookie-bar__btn {
	flex: none;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--ast-global-color-0, #1A5FD0);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}
.tz-cookie-bar__btn:hover { background: var(--ast-global-color-1, #134AA6); color: #fff; }
.tz-cookie-bar__btn:focus-visible,
.tz-cookie-bar__text a:focus-visible {
	outline: 2px solid var(--ast-global-color-0, #1A5FD0);
	outline-offset: 3px;
}
@media (max-width: 600px) {
	.tz-cookie-bar {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px;
	}
	.tz-cookie-bar__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tz-cookie-bar { transition: none; transform: none; }
}
@media print {
	.tz-cookie-bar { display: none !important; }
}
