/*
 * grzegorzek-child — strony sekcyjne: Kontakt, Cennik, O mnie, strona główna.
 * Ładowany z functions.php (ostatni: global → blog → zabieg → wzorce → strony).
 * Zasady: builder first (global.css). Wygląd sekcji, kart i pigułek jest
 * w atrybutach bloków; tu tylko ikony (wp:html / maski), stany, progi
 * starej strony spoza viewportów WP i markup spoza bloków (CF7, mapa).
 */

/* --- 1. Nagłówek strony (.tg-phero) -------------------------------------- */
/* Etykieta „Kontakt” — ikona telefonu (grupa .tg-pill-label, blog.css) */
.tg-pill-phone::before {
	-webkit-mask-image: var(--tg-ic-phone);
	mask-image: var(--tg-ic-phone);
}

/* H1 łamany równo (jak na starej: „Umów wizytę / u laryngologa…”);
   szerokość tytułu = „Szerokość treści” grupy „Tytuł” w edytorze */
.tg-phero h1 {
	text-wrap: balance;
}

/* --- 2. Kontakt ----------------------------------------------------------- */
/* Kolumny 5:7 (dane | formularz, tekst | mapa): wp:columns z
   isStackedOnMobile:false — składanie ≤820 px jak na starej stronie */
@media (max-width: 820px) {
	.tg-kcols.wp-block-columns {
		flex-direction: column;
	}

	.tg-kcols > .wp-block-column {
		flex: 0 0 auto !important;
		width: 100%;
	}
}

/* Ikona wiersza danych (wp:html): kwadrat 34 px z ikoną 17 px */
.tg-kico {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent-1);
}

.tg-kico svg {
	display: block;
	width: 17px;
	height: 17px;
}

/* Linki w danych kontaktowych (pogrubienie = format w akapicie) */
.tg-kdane a {
	text-decoration: none;
}

.tg-kdane strong {
	font-weight: 600;
}

.tg-kdane a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent-1) !important;
	text-decoration: underline;
}

/* Social (core/social-links .tg-social-ramka): kółka 38 px z obwódką */
.wp-block-social-links.tg-social-ramka .wp-social-link {
	border: 1px solid var(--wp--preset--color--line);
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wp-block-social-links.tg-social-ramka .wp-block-social-link.wp-social-link .wp-block-social-link-anchor {
	padding: 9.5px;
}

.wp-block-social-links.tg-social-ramka .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg {
	width: 17px;
	height: 17px;
}

.wp-block-social-links.tg-social-ramka .wp-social-link:is(:hover, :focus-within) {
	border-color: var(--wp--preset--color--accent-1);
	background-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--white) !important;
}

/* Mapa po kliknięciu (wp:html .tg-mapa + assets/js/tg-ui.js §3):
   do kliknięcia zaślepka bez połączenia z Google */
.tg-mapa {
	position: relative;
	display: grid;
	box-sizing: border-box;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background:
		radial-gradient(circle at 62% 44%, color-mix(in srgb, var(--wp--preset--color--accent-1) 16%, transparent) 0, color-mix(in srgb, var(--wp--preset--color--accent-1) 16%, transparent) 12px, transparent 13px),
		linear-gradient(135deg, #efe9e0, #e3dace 55%, #ede6db);
}

.tg-mapa__siatka {
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(90deg, transparent 0, transparent 62px, color-mix(in srgb, var(--wp--preset--color--accent-3) 7%, transparent) 62px, color-mix(in srgb, var(--wp--preset--color--accent-3) 7%, transparent) 64px),
		repeating-linear-gradient(0deg, transparent 0, transparent 48px, color-mix(in srgb, var(--wp--preset--color--accent-3) 7%, transparent) 48px, color-mix(in srgb, var(--wp--preset--color--accent-3) 7%, transparent) 50px);
}

.tg-mapa__pin {
	position: absolute;
	top: 44%;
	left: 62%;
	z-index: 2;
	color: var(--wp--preset--color--accent-1);
	transform: translate(-50%, -100%);
}

.tg-mapa__pin svg {
	width: 30px;
	height: 30px;
	filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--wp--preset--color--accent-3) 35%, transparent));
}

.tg-mapa__btn {
	position: relative;
	z-index: 3;
	padding: 0.7rem 1.3rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--page) 96%, transparent);
	box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--wp--preset--color--accent-3) 70%, transparent);
	color: var(--wp--preset--color--accent-3);
	font-family: var(--wp--preset--font-family--niramit);
	font-size: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.tg-mapa__btn:is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-1);
}

.tg-mapa__nota {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	padding: 0.5rem 0.8rem;
	background: color-mix(in srgb, var(--wp--preset--color--accent-3) 72%, transparent);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	line-height: 1.35;
}

.tg-mapa iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* --- 3. Formularz kontaktowy (Contact Form 7 — markup formularza w CF7, ---- */
/* szablon: projects/grzegorzek/build/strony/kontakt-cf7.json)                 */
.tg-cf7 {
	--tg-cf7-small: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
}

.tg-cf7__pole {
	margin: 0 0 0.7rem;
}

.tg-cf7__et {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
	margin: 0 0 calc(0.28rem + 5px);
	padding-left: 0.9rem;
	color: var(--wp--preset--color--accent-3);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.65;
}

.tg-cf7__req {
	margin-left: -0.3rem;
	padding-left: 3px;
	color: var(--wp--preset--color--accent-1);
}

.tg-cf7__info {
	--tg-ic-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm.9 12H7.1V6.9h1.8zM8 5.6a1.05 1.05 0 1 1 0-2.1 1.05 1.05 0 0 1 0 2.1z'/%3E%3C/svg%3E");
	flex: 0 0 13px;
	width: 13px;
	height: 13px;
	background-color: var(--wp--preset--color--body);
	opacity: 0.5;
	cursor: help;
	-webkit-mask: var(--tg-ic-info) center / contain no-repeat;
	mask: var(--tg-ic-info) center / contain no-repeat;
}

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

.tg-cf7 input:is([type="text"], [type="tel"], [type="email"]) {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent-3);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tg-cf7 input::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--body) 60%, var(--wp--preset--color--surface));
	opacity: 1;
}

.tg-cf7 input:is([type="text"], [type="tel"], [type="email"]):focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-1);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent-1) 12%, transparent);
}

/* Dni konsultacji — pigułki (checkbox CF7, use_label_element) */
.tg-cf7 .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tg-cf7 .wpcf7-checkbox .wpcf7-list-item {
	margin: 0;
}

.tg-cf7 .wpcf7-checkbox label {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent-3);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--tg-cf7-small);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* pole wyboru ukryte, ale w układzie (1 px + odstęp — szerokość pigułek jak na starej) */
.tg-cf7 .wpcf7-checkbox input {
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.tg-cf7 .wpcf7-checkbox label:hover {
	border-color: var(--wp--preset--color--accent-1);
}

.tg-cf7 .wpcf7-checkbox label:has(input:checked) {
	border-color: var(--wp--preset--color--accent-1);
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
}

.tg-cf7 .wpcf7-checkbox label:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: 2px;
}

/* Zgoda RODO (acceptance; walidacja przy wysłaniu — acceptance_as_validation) */
.tg-cf7__zgoda {
	margin: 0 0 1.6rem;
}

.tg-cf7__zgoda .wpcf7-list-item {
	margin: 0;
}

.tg-cf7__zgoda label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.6rem;
	align-items: start;
	color: var(--wp--preset--color--body);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.tg-cf7__zgoda input {
	width: 16px;
	height: 16px;
	margin: 9px 4px 0 0;
	accent-color: var(--wp--preset--color--accent-1);
	cursor: pointer;
}

.tg-cf7__zgoda a {
	color: var(--wp--preset--color--accent-1);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Wyślij — jak przycisk marki (theme.json), radius i padding jak na starej */
.tg-cf7 .wpcf7-submit {
	margin: 0;
	padding: 0.8rem 1.8rem;
	border: 0;
	border-radius: 12px;
	background-color: var(--wp--preset--color--accent-1); /* bez skrótu background — hover B (global.css §6b) */
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
}

.tg-cf7 .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Komunikaty CF7: błąd pola, wynik wysyłki (zielony = sukces jak na starej) */
.tg-cf7 .wpcf7-not-valid-tip {
	margin: 0.35rem 0 0 0.9rem;
	color: var(--wp--preset--color--accent-1);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.tg-cf7 input.wpcf7-not-valid {
	border-color: var(--wp--preset--color--accent-1);
}

/* (form[class] — mocniej niż kolory stanów z CSS wtyczki) */
.tg-kformularz .wpcf7 form[class] .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.9rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-1) 35%, transparent);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent-3);
	font-size: var(--tg-cf7-small, 0.9375rem);
	line-height: 1.5;
}

.tg-kformularz .wpcf7 form.sent .wpcf7-response-output {
	border-color: #bfd9c4;
	background: #edf5ee;
	color: #2b6a38;
}

/* --- 4. Cennik ---------------------------------------------------------- */
/* Przycisk z telefonem w nagłówku strony: ikona 16 px (jak na starej) */
.tg-phero .tg-ic-phone .wp-block-button__link::before {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -0.15em;
}

/* Ikona ramki „Ceny orientacyjne” (wp:html; svg — mocniej niż zerowanie marginesów układu flex) */
svg.tg-cinfo {
	display: block;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--wp--preset--color--accent-1);
}

/* Karty: wiersze siatki tej samej wysokości (grid-auto-rows — poza edytorem);
   na wąskim ekranie karty mają własną wysokość (stara rozciągała je do
   najwyższej — osobliwość, INWENTARZ §10) */
@media (min-width: 821px) {
	.tg-cgrid {
		grid-auto-rows: 1fr;
	}
}

/* Ikona karty (wp:html): kwadrat 46 px, bordo, biała ikona 24 px */
.tg-cico {
	display: flex;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
}

.tg-cico svg {
	display: block;
	width: 24px;
	height: 24px;
}

.tg-ckarta a {
	text-decoration: none;
}

/* „Zobacz wszystkie zabiegi z obszaru: … →” — strzałka (klasa tg-strzalka) tej samej
   szerokości co znak „ →” w tekście na starej (0,82 em) — wiersze łamią się jak na starej */
.tg-ckarta .tg-strzalka {
	--tg-strzalka-ikona: var(--tg-ic-strzalka);
	--tg-strzalka-rozmiar: 0.62em;
	--tg-strzalka-odstep: 0.2em;
	--tg-strzalka-va: -0.05em;
}

/* Wiersz: nazwa | cena na wspólnej linii bazowej (układ flex nie ma
   „baseline” w edytorze); link zabiegu z kreską przy najechaniu */
.tg-cwiersz.is-layout-flex {
	align-items: baseline;
}

.tg-cwiersz a {
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tg-cwiersz a:is(:hover, :focus-visible) {
	border-bottom-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-1) !important;
}

.tg-cena {
	flex: 0 0 auto;
	white-space: nowrap;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ruch pigułki przy najechaniu — jak na starej */
.tg-cena:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 30%, transparent) !important;
	box-shadow: var(--wp--preset--shadow--md) !important;
	transform: translateY(-3px);
}

@media (max-width: 820px) {
	.tg-cwiersz.is-layout-flex {
		flex-wrap: wrap;
		gap: 4px 12px;
	}

	.tg-cena {
		white-space: normal;
	}
}

/* --- 5. O mnie ---------------------------------------------------------- */
/* Etykieta „O mnie” — ikona osoby */
.tg-pill-user::before {
	--tg-ic-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
	-webkit-mask-image: var(--tg-ic-user);
	mask-image: var(--tg-ic-user);
}

/* Wstęp z portretem: kolumny tekst | zdjęcie 27 % (isStackedOnMobile:false);
   ≤900 px zdjęcie nad tekstem (60 % szerokości — bez sztywnych szerokości), tekst na środku */
@media (max-width: 900px) {
	.tg-ohero.wp-block-columns {
		flex-direction: column;
		align-items: center !important;
		text-align: center;
	}

	.tg-ohero > .wp-block-column {
		flex: 0 0 auto !important;
		width: 100%;
	}

	.tg-ohero > .tg-ohero__foto {
		order: -1;
		max-width: 60%;
	}

	.tg-ohero .is-content-justification-left > * {
		margin-inline: auto !important;
	}

	.tg-ohero .wp-block-buttons {
		justify-content: center;
	}
}

/* Odstęp zdjęcie–tekst po złożeniu: 32 px (blockGap) do 768 px, 24 px niżej — jak na starej */
@media (max-width: 767px) {
	.tg-ohero.wp-block-columns {
		row-gap: 24px;
	}
}

/* Kilka słów o sobie: tekst | kolumna boczna 25 %; ≤980 px jedna kolumna */
@media (max-width: 980px) {
	.tg-okol.wp-block-columns {
		flex-direction: column;
	}

	.tg-okol > .wp-block-column {
		flex: 0 0 auto !important;
		width: 100%;
	}
}

/* Główne obszary (core/list .tg-otematy): wiersze z linią i strzałką ↗ */
.tg-otematy {
	list-style: none;
}

.tg-otematy li + li {
	border-top: 1px solid var(--wp--preset--color--line);
}

.tg-otematy a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	color: var(--wp--preset--color--accent-3);
	text-decoration: none;
}

.tg-otematy a::after {
	content: "↗";
	display: inline-block;
	color: var(--wp--preset--color--accent-1);
	transition: transform var(--tg-strzalka-czas); /* ruch strzałki: global.css §6a */
}

.tg-otematy a:is(:hover, :focus-visible)::after {
	transform: translate(calc(var(--tg-strzalka-ruch) * 0.75), calc(var(--tg-strzalka-ruch) * -0.75));
}

.tg-otematy a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent-1);
}

.tg-opanel a {
	text-decoration: none;
}

/* Przycisk „Umów konsultację →” — strzałka tekstowa jak na starej */
.tg-ostrzalka .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: 16px;
	transition: transform var(--tg-strzalka-czas); /* ruch strzałki: global.css §6a */
}

.tg-ostrzalka .wp-block-button__link:is(:hover, :focus-visible)::after {
	transform: translateX(var(--tg-strzalka-ruch));
}

/* Kariera zawodowa (core/list .tg-os): oś czasu — linia i kropki */
.tg-os {
	list-style: none;
}

.tg-os li {
	position: relative;
	margin-left: 6px;
	padding: 0 0 30px 34px;
	border-left: 2px solid var(--wp--preset--color--line);
}

.tg-os li:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

.tg-os li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: -8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
}

.tg-os strong {
	display: block;
	margin-bottom: 4px;
	color: var(--wp--preset--color--accent-1);
	font-size: 15px;
}

/* Pełna lista kursów (core/details .tg-okursy): nagłówek z „+” / „–”,
   lista w 2 kolumnach (≤900 px jedna) */
.tg-okursy summary {
	padding: 18px 24px;
	line-height: 1.65;
	color: var(--wp--preset--color--accent-3);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.tg-okursy summary::-webkit-details-marker {
	display: none;
}

.tg-okursy summary::after {
	content: "+";
	float: right;
	color: var(--wp--preset--color--accent-1);
	font-size: 22px;
	line-height: 1;
}

.tg-okursy[open] summary::after {
	content: "–";
}

.tg-okursy ul {
	columns: 2;
	column-gap: 40px;
}

.tg-okursy li {
	margin-bottom: 8px;
	break-inside: avoid;
}

/* Odstępy pozycji list (core/list nie ma odstępu między pozycjami) */
.tg-olista li {
	margin-bottom: 9px;
}

.tg-owybrane li {
	margin-bottom: 12px;
}

@media (max-width: 900px) {
	.tg-okursy ul {
		columns: 1;
	}
}

/* Galeria dyplomów (core/gallery .tg-dyplomy): podpis z interlinią tekstu strony (jak na starej) */
.tg-dyplomy figcaption {
	line-height: 1.65;
}

/* Cele zawodowe (.tg-ocele): od 901 px wiersze siatki równej wysokości
   (na wąskim ekranie karty mają własną wysokość — osobliwość starej, §10);
   numer i tekst karty: odstęp blockGap karty (bez kolumny o stałej szerokości) */
@media (min-width: 901px) {
	.tg-ocele {
		grid-auto-rows: 1fr;
	}
}

/* --- 6. Strona główna ---------------------------------------------------- */
/* Treść: projects/grzegorzek/build/strony/home.html (gen-home.js). Wygląd sekcji, kart  */
/* i pigułek w atrybutach bloków; tu ikony (maski, wp:html), stany i progi starej strony  */
/* spoza widoków WP: 1024 px (O mnie, siatki 3 → 2) i 767 px (składanie, 1 kolumna).     */
:root {
	--tg-ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32z'/%3E%3C/svg%3E");
}

/* Etykieta bez ikony (grupa .tg-pill-label, blog.css) */
.tg-pill-bez::before {
	content: none;
}

/* Wstęp: przycisk z telefonem — ikona 16 px w miejscu „☎ ” starej strony */
.tg-hhero .tg-ic-phone .wp-block-button__link::before {
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: -0.15em;
}

/* Wstęp ≤767: zdjęcie nad tekstem (4:3, maks. 320 px), przyciski na całą szerokość — jak na starej */
@media (max-width: 767px) {
	.tg-hhero.wp-block-columns {
		flex-direction: column-reverse;
	}

	.tg-hhero .wp-block-image img {
		width: 100%;
		aspect-ratio: 4 / 3;
		max-height: 320px;
		object-fit: cover;
		object-position: 50% 25%;
	}

	.tg-hbtns .wp-block-button {
		width: 100%;
	}

	.tg-hbtns .wp-block-button__link {
		display: block;
	}
}

/* O mnie: tekst | wyróżniki; ≤1024 jedno pod drugim (odstęp 40 px), wyróżniki ≤767 w 1 kolumnie */
@media (max-width: 1024px) {
	.tg-homnie.wp-block-columns {
		flex-direction: column;
		align-items: stretch !important;
	}

	.tg-homnie > .wp-block-column {
		flex-basis: auto !important;
	}
}

@media (max-width: 767px) {
	.tg-hcechy.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Wyróżniki: ikona (wp:html, 24 px) bordo, wyrównana optycznie do środka wersalików
   pierwszego wiersza nagłówka (przy złamanym nagłówku zostaje przy 1. wierszu).
   Grupa „Tytuł z ikoną” ma rozmiar fontu nagłówka, nagłówek interlinię 1.3 →
   środek wersalików Sory = 0.627 em od góry wiersza; ikona od góry wiersza
   przesunięta o 0.627 em − 12 px (top — bez zmiany wysokości wiersza). */
.tg-hcechy svg {
	position: relative;
	top: calc(0.627em - 12px);
	align-self: flex-start;
	flex: 0 0 auto;
	fill: currentColor;
	color: var(--wp--preset--color--accent-1);
}

/* „Poznaj mnie →” — link w kroju Niramit (akapit w kroju tekstu — wysokość wiersza jak na starej),
   strzałka 1 em za tekstem, odstęp 1 em */
.tg-hlink a {
	display: inline-flex;
	font-family: var(--wp--preset--font-family--niramit);
	align-items: center;
	gap: 1em;
	text-decoration: none;
}

.tg-hlink a::after {
	content: "";
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: var(--tg-ic-strzalka) center / contain no-repeat;
	mask: var(--tg-ic-strzalka) center / contain no-repeat;
	transition: transform var(--tg-strzalka-czas); /* ruch strzałki: global.css §6a */
}

.tg-hlink a:is(:hover, :focus-visible)::after {
	transform: translateX(var(--tg-strzalka-ruch));
}

/* Nagłówki z podkreślonym słowem (format „Wyróżnienie” = <mark>) */
.tg-podkr mark {
	border-bottom: 2px solid var(--wp--preset--color--accent-3);
}

/* Wstępy sekcji z wcięciem jak na starej (padding akapitu 300 / 250 px): ≤1024 — 100 px, ≤767 — 0 */
@media (max-width: 1024px) {
	.tg-hlead {
		padding-right: 100px !important;
		padding-left: 100px !important;
	}
}

@media (max-width: 767px) {
	.tg-hlead {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.tg-hlead--op {
		margin-bottom: 40px !important;
	}
}

/* Obszary leczenia: cała karta klikalna (link w tytule), ikona w kwadracie, stany jak na starej */
.tg-hokarta {
	position: relative;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.tg-hokarta:is(:hover, :focus-within) {
	border-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 35%, transparent) !important;
	box-shadow: var(--wp--preset--shadow--lg);
	transform: translateY(-3px);
}

.tg-hokarta .tg-hoico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin-bottom: 0.6em;
	border-radius: 11px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent-1);
	transition: background-color 0.25s, color 0.25s;
}

.tg-hokarta:is(:hover, :focus-within) .tg-hoico {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--surface);
}

.tg-hokarta h3 a {
	text-decoration: none;
	transition: color 0.25s;
}

.tg-hokarta h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tg-hokarta:is(:hover, :focus-within) h3 a {
	color: var(--wp--preset--color--accent-1);
}

.tg-hokarta .tg-strzalka {
	--tg-strzalka-ikona: var(--tg-ic-strzalka);
}

@media (max-width: 1024px) {
	.tg-hobsz.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tg-hobsz.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tg-hokarta {
		text-align: center;
	}

	.tg-hokarta__opis {
		font-size: 0.9375rem !important;
		line-height: 1.5 !important;
	}
}

/* Lekarz: zdjęcie 4:5 (maks. 520 px wys., kadr 50% 18%), ≤767 odstęp pod zdjęciem; lista ze znacznikiem › */
.tg-hprofil .wp-block-image img {
	max-height: 520px;
	object-position: 50% 18%;
}

@media (max-width: 767px) {
	.tg-hprofil .wp-block-image {
		margin-bottom: 1.25rem !important;
	}
}

.tg-hchev {
	position: relative;
}

.tg-hchev::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--accent-1);
	-webkit-mask: var(--tg-ic-chev) center / contain no-repeat;
	mask: var(--tg-ic-chev) center / contain no-repeat;
}

/* Poznaj ważne liczby (2026-12-04): ikona = wp:html (obrys SVG 16 × 16) w pudełku 42 px;
   na tle piasku pudełko białe. Kolumny 38 / 62 z isStackedOnMobile:false — ≤1024 jedno pod
   drugim (jak O mnie), doświadczenie w 2 kolumnach; ≤480 liczba pod nazwą zabiegu
   (atrybut layoutu nie ma flexWrap ani wyrównania per viewport dla tej pary). */
.tg-hlico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--accent-1);
}

.tg-hlico--jasne {
	background: var(--wp--preset--color--white);
}

/* liczba z „rocznie” nie zwęża się obok nazwy „Wypełnij” (LEKCJE §35) */
.tg-hlwiersz__liczba {
	flex-shrink: 0;
}

@media (max-width: 1024px) {
	.tg-hliczby__kol.wp-block-columns {
		flex-direction: column;
		align-items: stretch !important;
	}

	.tg-hliczby__kol > .wp-block-column {
		flex-basis: auto !important;
	}

	.tg-hliczby__staze.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.tg-hlwiersz.is-layout-flex {
		flex-wrap: wrap;
		row-gap: 0.4rem;
	}

	.tg-hlwiersz > p {
		flex-basis: 100%;
	}

	.tg-hlwiersz__liczba.is-layout-flex {
		align-items: flex-start;
	}
}

/* Wybrane zabiegi: karty .tg-zcard (zabieg.css §6) ze zdjęciem i opisem w treści;
   zdjęcie jak na starej — 16:10 z szerokości karty + 60 px, przycięte z prawej */
.tg-hzab .tg-zcard__media .wp-block-image {
	overflow: hidden;
}

.tg-hzab .tg-zcard__media img {
	width: calc(100% + 60px);
	max-width: none;
}

.tg-hzab .tg-zcard__t a {
	text-decoration: none;
}

.tg-hzab .tg-zcard__t a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.tg-hzab .tg-zcard__t a:focus-visible {
	outline: none;
}

.tg-hzab .tg-zcard:has(.tg-zcard__t a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--accent-2);
	outline-offset: 4px;
}

.tg-hzab-go {
	width: fit-content;
}

.tg-hzab-go::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 0.4rem;
	vertical-align: -0.2em;
	background-color: currentColor;
	-webkit-mask: var(--tg-ic-arrow) center / contain no-repeat;
	mask: var(--tg-ic-arrow) center / contain no-repeat;
	transition: transform var(--tg-strzalka-czas); /* ruch strzałki: global.css §6a */
}

.tg-zcard:is(:hover, :focus-within) .tg-hzab-go::after {
	transform: translateX(var(--tg-strzalka-ruch));
}

@media (max-width: 1024px) {
	.tg-hzab.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tg-hzab.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* „Dlaczego małoinwazyjnie”: kolumny 1 : 1,35; ≤767 jedna pod drugą */
@media (max-width: 767px) {
	.tg-hdlaczego .wp-block-columns {
		flex-direction: column;
	}

	.tg-hdlaczego .wp-block-column {
		flex-basis: auto !important;
	}
}

/* Opinie: gwiazdki (wp:html), logo Google; siatka 2 → 1 kolumna (≤767) */
.tg-hgw {
	display: flex;
	gap: 3px;
	margin-bottom: 16px;
}

.tg-hgw svg {
	flex: 0 0 auto;
	fill: var(--wp--preset--color--accent-2);
}

/* gwiazdki w karcie opinii — karta to grupa flex (WP zeruje marginesy dzieci, stąd 0,2,0): 16 px do treści jak na starej */
.tg-hopinia .tg-hgw {
	margin-bottom: 16px;
}

.tg-hgw--sm {
	gap: 2px;
	margin-bottom: 0;
}

.tg-hg {
	flex: 0 0 auto;
}

/* Karuzela opinii (base-block/content-carousel .tg-hopinie): kolory nawigacji jak na starej —
   strzałki białe z linią i cieniem, kropki bordo; „Czytaj więcej” 14 px, odstęp do autora 18 px */
.tg-hopinie {
	--bb-cc-accent: var(--wp--preset--color--accent-1);
	--bb-cc-arrow-bg: var(--wp--preset--color--white);
	--bb-cc-nav-gap: 32px;
	--bb-cc-track-pad: 4px 8px;
}

.tg-hopinie .base-block-content-carousel__arrow {
	border-color: var(--wp--preset--color--line);
	box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--wp--preset--color--accent-3) 60%, transparent);
}

/* podpis opinii bez łamania („Opinia z Google”): inaczej Chrome liczy wysokość wiersza autora
   z wersji złamanej (flex w flexie — 55 px zamiast 44 px, autor niżej niż na starej) */
.tg-hopinia .is-nowrap p {
	white-space: nowrap;
}

.tg-hopinie .base-block-content-carousel__more {
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.2;
}
