/* gab-reh templates.css. Układ stron z szablonów (zabieg, metoda, dolegliwość, huby) na klockach z components.css; tylko var(--gr-*). Warstwa sections stoi po components, więc ustawia położenie klocków na stronie. */

@property --gr-fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --gr-draw { syntax: '<percentage>'; inherits: false; initial-value: 0%; }  /* ile obwódki kroku już narysowane */
@property --step { syntax: '<length>'; inherits: true; initial-value: 0px; }

@layer sections {

	.gr-top { padding-top: var(--gr-space-4); }
	.gr-top__inner { display: grid; gap: var(--gr-space-6); align-items: center; }
	.gr-top__inner > * { min-width: 0; }
	.gr-top__text { display: grid; justify-items: start; }
	.gr-top__text .gr-wave { margin-bottom: 0; }
	.gr-top__title { font-size: var(--gr-text-hero); line-height: var(--gr-leading-tight); font-weight: var(--gr-weight-semibold); letter-spacing: var(--gr-tracking-tight); overflow-wrap: anywhere; }
	@media (max-width: 22.49rem) { .gr-top__title { font-size: calc(var(--gr-text-hero) * 0.8); } }  /* 320 px: „Neuromobilizacje” w jednym wierszu */
	@media not (min-width: 40rem) {  /* telefon: H1 najwyżej 2 wiersze */
		.gr-top__title-sub { display: block; font-size: var(--gr-text-lg); line-height: var(--gr-leading-snug); letter-spacing: normal; }
		.gr-top__paren { display: none; }
		.gr-top__title--sm { font-size: calc(var(--gr-text-hero) * 0.85); }
		.gr-top__title { line-height: 1; }
	}

	.gr-price-tag { width: 100%; max-width: var(--gr-measure); }
	.gr-price-tag__variant { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--gr-space-1) var(--gr-space-3); padding-block: var(--gr-space-3); border-block: var(--gr-border) solid var(--gr-color-line); }
	@media (min-width: 56rem) { .gr-price-tag { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--gr-space-7); } }
	.gr-price-tag__variant + .gr-price-tag__variant { border-top: 0; }
	@media (min-width: 56rem) { .gr-price-tag__variant + .gr-price-tag__variant { border-top: var(--gr-border) solid var(--gr-color-line); } }

	.gr-price-tag--top .gr-price-tag__variant { border-block: 0; }

	@media (min-width: 56rem) {
		.gr-price-tag--top { grid-auto-columns: minmax(0, 18.5rem); justify-content: start; column-gap: var(--gr-space-8); }
		.gr-price-tag--top .gr-price-tag__variant { grid-template-columns: auto auto; justify-content: start; column-gap: var(--gr-space-6); }
		.gr-price-tag--top .gr-price-tag__variant + .gr-price-tag__variant { position: relative; }
		.gr-price-tag--top .gr-price-tag__variant + .gr-price-tag__variant::before { content: ""; position: absolute; left: calc(var(--gr-space-8) / -2); top: var(--gr-space-3); bottom: var(--gr-space-3); border-left: var(--gr-border) solid var(--gr-color-accent); }
	}

	@media not (min-width: 56rem) {
		.gr-price-tag--top { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--gr-space-5); }
		.gr-price-tag--top .gr-price-tag__variant { grid-template-columns: auto auto; justify-content: start; }
		.gr-price-tag--top .gr-price-tag__amount { font-size: var(--gr-text-lg); }  /* mniejsza cena na telefonie */
		.gr-price-tag--top .gr-price-tag__suffix { display: none; }  /* „40 min” zamiast „40 minut” */
		.gr-price-tag--top .gr-price-tag__variant + .gr-price-tag__variant { position: relative; }
		.gr-price-tag--top .gr-price-tag__variant + .gr-price-tag__variant::before { content: ""; position: absolute; left: calc(var(--gr-space-5) / -2); top: var(--gr-space-3); bottom: var(--gr-space-3); border-left: var(--gr-border) solid var(--gr-color-accent); }
	}
	@media not (min-width: 40rem) {
		.gr-price-tag--top .gr-price-tag__variant { padding-block: 0; }
		.gr-price-tag--top .gr-price-tag__variant + .gr-price-tag__variant::before { top: 0; bottom: 0; }
	}
	.gr-price-tag__name { font-weight: var(--gr-weight-semibold); line-height: var(--gr-leading-snug); }
	.gr-price-tag__time { display: flex; align-items: center; gap: var(--gr-space-1); margin-top: var(--gr-space-1); font-size: var(--gr-text-sm); font-weight: var(--gr-weight-regular); color: var(--gr-color-text-muted); line-height: 1; }
	.gr-price-tag__time .gr-icon { color: var(--gr-color-accent); width: 1em; height: 1em; flex: none; }
	.gr-price-tag__amount { font-size: var(--gr-text-xl); line-height: var(--gr-leading-tight); font-weight: var(--gr-weight-semibold); color: var(--gr-color-link); font-variant-numeric: tabular-nums; white-space: nowrap; }
	.gr-price-tag__amount small, .gr-price-row__price small { font-size: var(--gr-text-sm); font-weight: var(--gr-weight-semibold); }

	/* hero bez okruszków (główna): odstęp od nagłówka; od 56rem tekst od tytułu do przycisków na środku zdjęcia, fala nad tytułem poza liczeniem */
	.gr-top--home { padding-top: var(--gr-pad-same); }	@media (min-width: 56rem) { .gr-top--home .gr-top__text { margin-top: calc(-1 * (var(--gr-space-4) + var(--gr-space-3))); } }
	@media (min-width: 40rem) {  /* tablet i komputer: tytuł głównej w 2 wierszach, font od szerokości kolumny, może wyjść w prawo o --over (pół odstępu do zdjęcia) */
		.gr-top--home .gr-top__text { container-type: inline-size; }
		.gr-top--home .gr-top__title { --over: var(--gr-space-3); margin-right: calc(-1 * var(--over)); font-size: min(var(--gr-text-hero), (100cqi + var(--over)) / 9.3); }  /* 9.3 = „odzyskasz sprawność” w em; inny tytuł = przeliczyć */
	}
	@media (min-width: 56rem) { .gr-top--home .gr-top__title { --over: var(--gr-space-7); } }
	@media (min-width: 40rem) and (not (min-width: 56rem)) {  /* tablet: hero głównej jak na komputerze, mniejsze zdjęcie (62 : 38), fale w tle */
		.gr-top--home .gr-top__inner:has(.gr-offer) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: var(--gr-space-5); align-items: center; }
		.gr-top--home .gr-top__inner:has(.gr-offer) .gr-top__text { display: grid; }
		.gr-top--home .gr-top__inner:has(.gr-offer) .gr-top__text > .gr-wave { display: block; }
		.gr-top--home .gr-top__inner:has(.gr-offer) .gr-offer { order: 0; }
		.gr-wave-field:has(.gr-top--home) > canvas { display: block; }
	}
	.gr-top .gr-offer { display: grid; max-width: none; }
	.gr-top .gr-offer > * { grid-area: 1 / 1; }
	.gr-top .gr-offer .gr-photo { width: calc(100% - 2 * var(--gr-space-3)); margin: var(--gr-space-3); border-radius: var(--gr-radius-lg); }  /* kształt: zaokrąglony kwadrat zamiast okręgu, reszta jak było; margines = miejsce na obwódkę */
	@media (max-height: 30rem) and (not (min-width: 56rem)) {  /* telefon poziomo: tytuł z lewej, rycina z prawej */
		.gr-top .gr-top__inner:has(.gr-offer) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gr-space-5); row-gap: 0; }  /* pół na pół */
		.gr-top .gr-price-tag__variant { padding-block: var(--gr-space-2); }
		.gr-top .gr-top__inner:has(.gr-offer) .gr-top__text > * { grid-column: 1; }
		.gr-top .gr-top__inner:has(.gr-offer) .gr-offer { grid-column: 2; grid-row: 1 / span 9; align-self: start; }
		.gr-top .gr-offer .gr-photo, .gr-top .gr-offer .gr-photo.gr-photo--overflow { width: min(100%, 70svh); margin-block: 0; }
	}
	@media not (min-width: 40rem) {  /* hero --cover na telefonie (główna, O gabinecie): zdjęcie od krawędzi do krawędzi, dół przechodzi w tło, tytuł zaraz pod nim; „Zadzwoń” w pierwszym ekranie */
		.gr-wave-field:has(> .gr-top--cover) { display: flex; flex-direction: column; min-height: calc(100svh - var(--gr-header-height)); }  /* ekran liczony z okruszkami */
		.gr-section.gr-top--cover { padding-top: 0; flex: 1; display: flex; flex-direction: column; padding-bottom: var(--gr-gutter); }  /* hero na cały ekran pod nagłówkiem, jak hero wpisu; pod faktami tyle co po bokach */
		.gr-top--cover .gr-top__inner { flex: 1; display: flex; flex-direction: column; align-items: stretch; width: 100%; container-type: inline-size; }  /* stretch: baza ma center, który w kolumnie flex zwęża dzieci */  /* kontener: miara dla faktów skalowanych do szerokości kolumny */
		.gr-top--cover .gr-top__inner:has(.gr-offer) > .gr-offer { flex: 1 1 auto; }  /* zdjęcie zabiera całą resztę ekranu nad tekstem */
		.gr-top--cover .gr-top__inner:has(.gr-offer) > .gr-offer { margin-inline: calc(-1 * var(--gr-gutter)); margin-bottom: 0; }  /* tytuł zaraz pod wygaszonym dołem zdjęcia */
		.gr-top--cover .gr-offer .gr-photo { width: 100%; margin: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; min-height: calc(var(--gr-space-8) * 2); }  /* wysokość z wolnego miejsca ekranu, nie z proporcji; min. 192 na niskim ekranie */
		.gr-top--cover .gr-offer .gr-photo { position: relative; }
		.gr-top--cover .gr-offer .gr-photo img { position: absolute; inset: 0; object-position: 50% 20%; }  /* zdjęcie nie narzuca wysokości: kadr bierze tyle, ile zostaje nad tekstem */
		.gr-top--cover .gr-offer::after { content: ""; grid-area: 1 / 1; position: relative; z-index: 1; background: linear-gradient(to bottom, color-mix(in srgb, var(--gr-color-surface-light) 0.0%, transparent) 65.00%, color-mix(in srgb, var(--gr-color-surface-light) 2.0%, transparent) 67.92%, color-mix(in srgb, var(--gr-color-surface-light) 7.4%, transparent) 70.83%, color-mix(in srgb, var(--gr-color-surface-light) 15.6%, transparent) 73.75%, color-mix(in srgb, var(--gr-color-surface-light) 25.9%, transparent) 76.67%, color-mix(in srgb, var(--gr-color-surface-light) 37.6%, transparent) 79.58%, color-mix(in srgb, var(--gr-color-surface-light) 50.0%, transparent) 82.50%, color-mix(in srgb, var(--gr-color-surface-light) 62.4%, transparent) 85.42%, color-mix(in srgb, var(--gr-color-surface-light) 74.1%, transparent) 88.33%, color-mix(in srgb, var(--gr-color-surface-light) 84.4%, transparent) 91.25%, color-mix(in srgb, var(--gr-color-surface-light) 92.6%, transparent) 94.17%, color-mix(in srgb, var(--gr-color-surface-light) 98.0%, transparent) 97.08%, color-mix(in srgb, var(--gr-color-surface-light) 100.0%, transparent) 100.00%); }  /* dół zdjęcia w tło od 65% wysokości, płynnie na obu końcach (smoothstep) */
		.gr-top--cover.gr-top--waves .gr-top__title::before { content: none; }  /* tło pod tytułem daje przejście zdjęcia */
		.gr-top--cover .gr-top__inner:has(.gr-offer) > .gr-top__text > .gr-top__title { margin-top: 0; position: relative; z-index: 2; }  /* silniej niż odstęp kolumny 32 */
		.gr-top--home .gr-top__inner:has(.gr-offer) > .gr-top__text > .gr-top__title { font-size: min(var(--gr-text-hero), calc((100vw - 2 * var(--gr-gutter)) / 10.2)); }  /* 10.2 = tytuł głównej w em */  /* silniej niż odstęp kolumny 32 */
	}

	.gr-top .gr-offer .gr-photo--overflow { position: relative; overflow: visible; box-shadow: none; }
	.gr-photo--overflow::before { content: ""; position: absolute; inset: 6% 0 6% 12%;  /* ramka 1:1 wszędzie */ border-radius: var(--gr-radius-lg); background: var(--gr-color-surface); outline: var(--gr-photo-ring) solid var(--gr-color-accent); }
	.gr-photo--overflow img { position: absolute; top: 0; left: -9%; width: 112%; height: 100%; max-width: none; object-fit: contain; }  /* absolute: inaczej przewijanie w bok na 1440 */

	.gr-wave-field { position: relative; isolation: isolate; overflow: hidden; background: var(--gr-color-surface-light);  /* jaśniej niż mgła */ --fale-kolor: var(--gr-color-accent); --fale-alfa: 0.14; }  /* delikatny błękit na jaśniejszym tle */
	.gr-wave-field:has(+ .gr-section--surface) { --fale-tlo: var(--gr-color-surface); }
	.gr-wave-field:has(+ .gr-section--dark) { --fale-tlo: var(--gr-color-surface-dark); }  /* dolny brzeg fal w kolorze sekcji pod spodem (/zabiegi/, Tomek 30.11 1B) */
	.gr-wave-field > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
	.gr-wave-field .gr-crumbs { background: none; }
	.gr-top--waves .gr-photo--overflow::before { background: var(--gr-color-bg); }

	.gr-top--waves .gr-top__text { text-shadow: 0 0 var(--gr-space-1) var(--gr-color-surface-light), 0 0 var(--gr-space-1) var(--gr-color-surface-light), 0 0 var(--gr-space-2) var(--gr-color-surface-light), 0 0 var(--gr-space-2) var(--gr-color-surface-light); }  /* mocniej: druga warstwa 8 px */
	.gr-top--waves .gr-top__text .gr-btn { text-shadow: none; }
	.gr-wave-field .gr-btn--secondary:not(:hover, .is-hover) { background: var(--gr-color-bg); }  /* fale nie prześwitują pod przyciskiem z obrysem */

	@media not (min-width: 56rem) {
		.gr-top__inner:has(.gr-offer) { gap: 0; }
		.gr-top__inner:has(.gr-offer) .gr-top__text { display: contents; }
		.gr-top__inner:has(.gr-offer) .gr-top__text > * { order: 2; }
		.gr-top__inner:has(.gr-offer) .gr-top__text > .gr-top__title { order: 0; }
		.gr-top__inner:has(.gr-offer) .gr-top__text > .gr-wave { display: none; }  /* na telefonie tytuł pod rysunkiem bez fali nad nim */
		.gr-top__inner:has(.gr-offer) .gr-offer { order: -1; }  /* na telefonie zdjęcie albo rysunek na górze, fala i tytuł pod nim */
		.gr-top .gr-offer .gr-photo--overflow { width: calc((100% + 2 * var(--gr-gutter)) * 0.85); margin: calc(-1 * var(--gr-space-5)) auto calc(var(--gr-space-2) - var(--gr-space-4)); aspect-ratio: 1; }
		.gr-photo--overflow::before { content: none; }  /* bez niebieskiej obwódki i białego tła ramki */
		.gr-photo--overflow img { position: static; width: 100%; height: 100%; }
		.gr-top--waves .gr-top__title { position: relative; z-index: 0; width: fit-content; }
		.gr-top--waves .gr-top__title::before { content: ""; position: absolute; z-index: -1; inset: calc(-1 * var(--gr-space-6)) calc(-1 * var(--gr-space-5)) 0; background: radial-gradient(closest-side, var(--gr-color-surface-light) 70%, transparent); pointer-events: none; }  /* tylko nad i obok napisu: niżej zakrywała cenę */
		.gr-top--waves .gr-top__text > .gr-wave { position: relative; z-index: 1; }  /* fala nad plamą tła tytułu, która sięga 48 w górę */
		.gr-top--home.gr-top--waves .gr-top__title::before { content: none; }  /* główna: tło pod tytułem daje przejście zdjęcia (.gr-offer::after), bez okrągłej plamy */
		.gr-wave-field .gr-crumbs { position: relative; z-index: 1; }  /* okruszki nad rysunkiem */
		.gr-wave-field > canvas { display: none; }  /* bez fal na telefonie; waves.js tu nie rusza */
		.gr-wave-field:has(+ .gr-section--surface) { background: var(--gr-color-surface); }  /* telefon bez fal: pod polem mgła (/zabiegi/#promocje), jeden odcień zamiast dwóch */
	}
	@media not (min-width: 40rem) {  /* nazwa zabiegu i metody w jednym wierszu: font z szerokości ekranu i szerokości nazwy w em (--title-em z gr_title_em w <head>), nie większy niż zwykle */
		.gr-top__title--fit { white-space: nowrap; font-size: min(var(--gr-text-hero), calc((100vw - 2 * var(--gr-gutter)) / var(--title-em))); }
	}
	/* hero zabiegu i metody z faktami, telefon (każda wysokość): przyciski i fakty zawsze przy dole pierwszego ekranu,
	   odstępy jak wyżej, rycina rośnie albo maleje (min. 128) do wolnego miejsca, opis, cena i przyciski co 24 */
	@media not (min-width: 40rem) {
		:where(.single-zabieg, .single-metoda) .gr-wave-field:has(> .gr-top:not(.gr-top--home) .gr-facts) { display: flex; flex-direction: column; height: calc(100svh - var(--gr-header-height)); }
		:where(.single-zabieg, .single-metoda) .gr-wave-field > .gr-top:not(.gr-top--home):has(.gr-facts) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: var(--gr-gutter); }
		:where(.single-zabieg, .single-metoda) .gr-top:not(.gr-top--home):has(.gr-facts) .gr-top__inner:has(.gr-offer) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: stretch; width: 100%; }  /* min-height 0: inaczej treść blokuje kurczenie ryciny */
		:where(.single-zabieg, .single-metoda) .gr-top:not(.gr-top--home):has(.gr-facts) .gr-offer { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; container-type: size; }  /* rycina bierze tyle, ile zostaje: cały hero mieści się w ekranie także na 320×568 (Tomek 30.11) */
		:where(.single-zabieg, .single-metoda) .gr-top:not(.gr-top--home):has(.gr-facts) .gr-offer .gr-photo.gr-photo--overflow { width: calc(100cqw + 2 * var(--gr-gutter)); height: calc(100cqh + var(--gr-space-5) + var(--gr-space-2)); aspect-ratio: auto; margin-inline: calc(-1 * var(--gr-gutter)); }  /* ramka na całą szerokość ekranu i całą wolną wysokość */
		.single-metoda .gr-top:not(.gr-top--home):has(.gr-facts) .gr-offer { padding-top: var(--gr-space-6); }  /* metoda nie ma wiersza z ceną: rycina tej samej wielkości co na zabiegu, różnica jako oddech nad nią (30.11) */
	}
	@media (min-width: 56rem) {
		.gr-top__inner { grid-template-columns: 1fr 1fr; gap: var(--gr-space-columns); }
	}

	/* karta pod nagłówkiem sekcji: wysokość z treści, bo height 100% z karty wystawał o wysokość h2 nad link „Pełny cennik” */
	.gr-grid > div > .gr-menu-card { height: auto; }


	/* pigułki „Pomaga przy”: linki, cel 44 px */
	.gr-chips { display: flex; flex-wrap: wrap; gap: var(--gr-space-2); }
	.gr-chips a { min-height: var(--gr-target); text-decoration: none; }
	.gr-chips a:hover { background: var(--gr-color-pill-hover); color: var(--gr-color-link); }  /* pigułka bez podkreślenia, hover tłem */
	/* .gr-chips--lg: pigułki nawigacji w hero (/zabiegi/, blog): białe, granat na hover, ciemniej przy kliknięciu, od 40rem wielkości .gr-btn--lg */
	.gr-chips--lg .gr-pill { background: var(--gr-color-bg); }
	.gr-chips--lg .gr-pill:hover { background: var(--gr-color-surface-dark); color: var(--gr-color-text-inverse); }
	.gr-chips--lg .gr-pill:active { background: var(--gr-color-link-active); }
	@media (prefers-reduced-motion: no-preference) and (hover: hover) { .gr-chips--lg .gr-pill { transition-property: background-color, color, scale, transform; } .gr-chips--lg .gr-pill:hover { scale: var(--gr-scale-hover); } }  /* powiększenie jak .gr-btn */
	@media (min-width: 40rem) { .gr-chips--lg .gr-pill { min-height: calc(var(--gr-space-6) + var(--gr-space-2)); padding-inline: var(--gr-space-5); font-size: var(--gr-text-md); } }
	@media not (min-width: 40rem) {  /* telefon, /zabiegi/: trzy grupy w jednym rzędzie, bez liczby zabiegów */
		.post-type-archive-zabieg .gr-top .gr-chips { flex-wrap: nowrap; }
		.post-type-archive-zabieg .gr-top .gr-chips > li { flex: 1 1 auto; }
		.post-type-archive-zabieg .gr-top .gr-chips .gr-pill { display: flex; justify-content: center; padding-inline: var(--gr-space-2); }
		.gr-chips__count { display: none; }
	}


	.gr-top__text .gr-btns { justify-self: stretch; }
	@media (min-width: 40rem) {  /* hero bez zdjęcia, tekst na środku ekranu (hub metod) */
		.gr-top--center .gr-top__inner { grid-template-columns: minmax(0, 1fr); }
		.gr-top--center .gr-top__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
		.gr-top--center .gr-top__text > :is(.gr-btns, .gr-facts), .gr-top--center .gr-chips { justify-content: center; }
	}
	.gr-top__text .gr-section__lead { margin-bottom: 0; }
	@media not (min-width: 40rem) { .gr-top__inner:has(.gr-offer) .gr-top__title { text-box: trim-both cap alphabetic; } }  /* text-box: odstępy od liter */

	/* tekst każdego hero: 16 pod falą, 32 między pozycjami, 64 przed faktami; telefon 24 wszędzie */
	.gr-top__text > * + * { margin-top: var(--gr-space-5); }
	.gr-top__text > .gr-top__title { margin-top: var(--gr-space-3); }
	.gr-top__text > .gr-btns + .gr-facts { margin-top: var(--gr-space-7); }
	@media not (min-width: 40rem) {
		.gr-top__text > * + * { margin-top: var(--gr-space-4); }
		.gr-top__text > .gr-btns + .gr-facts { margin-top: var(--gr-space-4); }  /* jak na głównej: 24 */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-facts--strong { font-size: calc((100cqi - 3.5 * var(--gr-space-1)) / 24.3); justify-content: space-between; }  /* zabieg i metoda: ikony bez kółka (węższe), rząd od krawędzi do krawędzi kontenera */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-facts--strong .gr-ring--sm { width: 1.25em; height: 1.25em; padding: 0; background: none; }  /* sama ikona, bez kółka */
		/* cena zabiegu na telefonie: nazwa, czas w pigułce przy cenie, pigułki i ceny w kolumnach */
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top { grid-auto-flow: row; grid-template-columns: 1fr auto auto; row-gap: var(--gr-space-2); }
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__variant { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; column-gap: var(--gr-space-2); }  /* nazwa, czas w pigułce i cena na jednej linii pisma */
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__variant + .gr-price-tag__variant::before { content: none; }
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__name { display: contents; }
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__amount { justify-self: end; font-size: var(--gr-text-md); }
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__time { margin-top: 0; padding: calc(var(--gr-space-1) + (1em - 1cap) / 2) var(--gr-space-2); border-radius: var(--gr-radius-pill); background: var(--gr-color-surface); font-size: var(--gr-text-sm); font-weight: var(--gr-weight-semibold); color: var(--gr-color-text); align-items: baseline; translate: 0 calc((1cap - 1.2cap) / 2); }  /* środek liter pigułki na środku liter nazwy i ceny (tekst 18 = 1,2 × 15); ramka i zegar na środku liter pigułki (30.11) */
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__time > span { text-box: trim-both cap alphabetic; }
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__time > svg { align-self: center; margin-block: calc((1cap - 1em) / 2); }  /* linię pisma pigułki daje tekst; ikona nie powiększa wnętrza ponad litery, więc ramka i zegar na środku liter */
		:where(.single-zabieg, .single-metoda) .gr-top .gr-top__text > .gr-price-tag--top .gr-price-tag__amount small { vertical-align: calc((1.2cap - 1cap) / 2); }  /* „od” i „zł” (15) na połowie wysokości cyfr ceny (18 = 1,2 × 15) */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-top__title + .gr-section__lead { margin-top: var(--gr-space-3); }  /* tytuł → opis 16 (Tomek 30.11) */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-price-tag { margin-top: calc(var(--gr-space-4) * 1.2 + 0.06em); }  /* opis → cena optycznie 28,8 (24 + 20%) */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-section__lead:has(+ .gr-price-tag) { margin-bottom: -0.72em; }  /* od liter opisu do ceny: odjęte puste pola wysokości linii pod opisem i nad ceną */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-price-tag + .gr-btns { margin-top: calc(var(--gr-space-4) * 1.2 - 0.24em); }  /* od dołu ceny do przycisków optycznie 28,8, jak opis → cena */
		:where(.single-zabieg, .single-metoda) .gr-top__text > .gr-section__lead + .gr-btns { margin-top: calc(var(--gr-space-4) * 1.2 - 0.54em); }  /* metoda bez ceny: od liter opisu do przycisków optycznie 28,8, jak w zabiegu */
		.gr-top__inner:has(.gr-offer) > .gr-top__text > .gr-top__title { margin-top: var(--gr-space-4); }  /* pod ryciną 24 */
		:where(.single-zabieg, .single-metoda) .gr-top__inner:has(.gr-offer) > .gr-top__text > .gr-top__title { margin-top: var(--gr-space-3); }  /* zabieg: tytuł pod ryciną 16; po regule bazowej, bo ta sama waga */
		:where(.single-zabieg, .single-metoda) .gr-top .gr-offer .gr-photo--overflow { margin-bottom: calc(-1 * var(--gr-space-2)); }  /* rycina → tytuł 8 (16 − 8) */
		:where(.single-zabieg, .single-metoda) .gr-top { overflow-x: clip; }  /* rysunek szerszy od ekranu bez przewijania w bok */
		:where(.single-zabieg, .single-metoda) .gr-top .gr-offer .gr-photo--overflow img { position: absolute; top: 0; left: 50%; translate: -50% 0; width: auto; max-width: none; height: 100%; }  /* rysunek na pełną wysokość ramki, szerokość z proporcji, wyśrodkowany, może wyjść poza ekran (absolute: nie rozpycha ramki); bez wygaszenia krawędzi (Tomek 30.11) */
	}
	@media (max-height: 30rem) and (not (min-width: 56rem)) {  /* telefon poziomo: ciaśniej */
		.gr-top__inner:has(.gr-offer) > .gr-top__text > .gr-top__title { margin-top: 0; }
		.gr-top__inner:has(.gr-offer) > .gr-top__text > :is(.gr-price-tag, .gr-btns) { margin-top: var(--gr-space-4); }
		.gr-top__inner:has(.gr-offer) > .gr-top__text > .gr-section__lead { margin-top: var(--gr-space-2); }
	}
	.gr-pricing { display: grid; gap: calc(2 * var(--gr-gap-cards)); }  /* między grupami podwójny odstęp kart */
	/* pas pakietów nad cennikiem: odstęp do kart = gap siatki cennika */
	/* promocje: karty na mgle w siatce .gr-grid--3, rabat dużą liczbą */
	.gr-deal-cards { gap: var(--gr-gap-cards); }
	.gr-deal-cards li { display: grid; align-content: start; justify-items: start; }
	.gr-deal-cards .gr-ring { margin-bottom: var(--gr-space-3); background: var(--gr-color-bg); }  /* 16 do nazwy jak w kaflu */
	.gr-deal-cards :is(h2, h3, p) { margin: 0; }
	[data-section="deals"] .gr-card { padding: 0; border-radius: 0; background: none; box-shadow: none; }  /* /zabiegi/#promocje: siatka bez kart, kółko białe na mgle */

	/* /zabiegi/#promocje: kółko, nazwa i rabat w summary; na telefonie akordeon (data-fold), plus przy prawej krawędzi */
	[data-section="deals"] .gr-deal-cards summary { justify-content: flex-start; }
	[data-section="deals"] .gr-deal-cards details summary > .gr-ring { display: grid; flex: none; margin: 0; color: var(--gr-color-link); }  /* od 40rem ikony summary są ukryte, kółko zostaje */
	[data-section="deals"] .gr-deal-cards details[open] summary > .gr-ring { transform: none; }  /* obraca się tylko plus */
	[data-section="deals"] .gr-deal-cards summary > .gr-icon:last-child { margin-inline-start: auto; }
	@media not (min-width: 40rem) {
		[data-section="deals"] .gr-deal-cards { interpolate-size: allow-keywords; }  /* zasada 22: wysokość 0 → auto płynnie */
		[data-section="deals"] .gr-deal-cards details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--gr-duration-move) var(--gr-ease-move), content-visibility var(--gr-duration-move) allow-discrete; }
		[data-section="deals"] .gr-deal-cards details[open]::details-content { block-size: auto; }
		@supports not (interpolate-size: allow-keywords) {  /* Safari: 0 → auto skacze (zasada 22), więc 0 → zmierzona wysokość z faq.js (--h); FAQ i promocje */
			:is(.gr-faq, [data-section="deals"] .gr-deal-cards) details::details-content { block-size: 0; content-visibility: visible; visibility: hidden; transition: block-size var(--gr-duration-move) var(--gr-ease-move), visibility var(--gr-duration-move); }  /* zamknięta treść zostaje w układzie do końca zwijania, potem znika także dla czytnika i Tab */
			:is(.gr-faq, [data-section="deals"] .gr-deal-cards) details[open]::details-content { block-size: var(--h, auto); visibility: visible; }
		}
	}
	.gr-deal-cards__percent { font-size: var(--gr-text-2xl); font-weight: var(--gr-weight-semibold); line-height: 1; color: var(--gr-color-link); }
	/* kółko, nazwa i rabat w jednym wierszu, opis pod spodem */
	.gr-deal-cards li:has(> .gr-ring) { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--gr-space-3); align-items: center; }
	.gr-deal-cards li:has(> .gr-deal-cards__percent) { grid-template-columns: auto auto minmax(0, 1fr); }  /* rabat zaraz za nazwą */
	.gr-deal-cards li:has(> .gr-ring) > * { grid-column: 1 / -1; }
	.gr-deal-cards li:has(> .gr-ring) > :is(.gr-ring, h2, h3, .gr-deal-cards__percent) { grid-column: auto; grid-row: 1; margin: 0; }
	@media (min-width: 56rem) {
		.gr-top__text .gr-btns { justify-self: start; }
		.gr-pricing .gr-price-list { grid-template-columns: 1fr 1fr; }  /* grupy jedna pod drugą, karty w dwóch kolumnach */
	}
	@media (min-width: 75rem) { .gr-pricing .gr-price-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }  /* od 1200: trzy karty w rzędzie */

	/* indeks: ikona metody zamiast numeru; nazwa lg, żeby się nie łamała */
	.gr-index a { grid-template-columns: var(--gr-target) minmax(0, 1fr) auto; }
	.gr-index a::before { content: none; }
	.gr-index__icon { grid-row: 1 / span 3; align-self: center; display: grid; place-items: center; width: var(--gr-target); height: var(--gr-target); color: var(--gr-color-link); }
	.gr-index__icon .gr-icon { width: var(--gr-space-5); height: var(--gr-space-5); transform: none; }
	.gr-index__name { grid-column: 2; font-size: var(--gr-text-lg); }
	.gr-index__desc { grid-column: 2; }
	.gr-index a > .gr-icon { grid-column: 3; grid-row: 1 / span 3; }
	@media (min-width: 56rem) {
		.gr-index a { grid-template-columns: var(--gr-target) minmax(0, 1fr) minmax(0, 1fr) auto; }
		.gr-index__icon { grid-row: auto; }
		.gr-index__desc { grid-column: 3; text-align: left; font-size: var(--gr-text-sm); }
		.gr-index a > .gr-icon { grid-column: 4; grid-row: auto; }
		.gr-index--3 a { grid-template-columns: var(--gr-target) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; }
		.gr-index--3 .gr-index__desc { grid-column: auto; }
		.gr-index--3 a > .gr-icon { grid-column: 5; }
	}

	.gr-pricing .gr-menu-card, .gr-grid > div > .gr-menu-card { padding: 0; border-radius: 0; background: none; }
	@media (min-width: 56rem) {  /* komputer: fala, tytuł i opis grup cennika na środku */
		.gr-pricing .gr-menu-card > :is(.gr-wave, .gr-section__lead) { margin-inline: auto; }
		.gr-pricing .gr-menu-card > :is(.gr-section__title, .gr-section__lead) { text-align: center; }
	}
	[data-section="deals"] > .gr-wrap > :is(.gr-wave, .gr-section__lead) { margin-inline: auto; }  /* promocje: na środku wszędzie */
	[data-section="deals"] > .gr-wrap > :is(.gr-section__title, .gr-section__lead) { text-align: center; }
	/* promocje na granacie (.gr-section--dark w archive-zabieg.php): tekst biały, rabat jasnym błękitem */
		[data-section="deals"] > .gr-wrap > .gr-section__title { color: var(--gr-color-text-inverse); }  /* nazwy kart dziedziczą biel z .gr-card */
		[data-section="deals"] .gr-deal-cards details > p { margin-top: var(--gr-space-heading); font-size: var(--gr-text-body); line-height: var(--gr-leading-body); text-wrap: pretty; }  /* wygląd .gr-card-text bez jej koloru z warstwy utilities */
		[data-section="deals"] .gr-deal-cards__percent { color: var(--gr-color-figure-on-dark); }
		[data-section="deals"] .gr-deal-cards summary > .gr-icon:last-child { color: var(--gr-color-text-inverse); }
		[data-section="deals"] .gr-deal-cards > .gr-card { color: var(--gr-color-text-inverse); }

	.gr-price-row__go { display: none; }


	.gr-prose { overflow-wrap: anywhere; }  /* długi adres albo słowo łamie się zamiast poszerzać stronę na telefonie */
	.gr-prose > * { max-width: var(--gr-measure); }
	.gr-prose :where(p, ul, ol) { margin-block: 0; }
	.gr-prose > * + * { margin-top: var(--gr-space-3); }
	.gr-prose > :first-child { margin-top: 0; }
	.gr-prose :is(h2, h3) { margin-top: var(--gr-space-5); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-semibold); }
	.gr-prose h2 { font-size: var(--gr-text-xl); }
	.gr-prose :is(h2, h3) + p { margin-top: var(--gr-space-heading); }
	.gr-prose h3 { font-size: var(--gr-text-lg); }
	.gr-prose li + li { margin-top: var(--gr-space-2); }
	.gr-prose li p { margin: 0; }

	.gr-checks { display: grid; gap: var(--gr-space-4); }
	@media (min-width: 40rem) { .gr-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gr-gap-items); } }
	@media (min-width: 56rem) { .gr-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
	@media (min-width: 56rem) { :is(.gr-checks, [data-section="deals"] .gr-deal-cards) { column-gap: var(--gr-space-columns); } }  /* komputer: 80 między kolumnami bez kart (punkty z ikoną, promocje) */

	.gr-prose ol.gr-path { padding: 0; list-style: none; }
	.gr-path > li { position: relative; min-height: var(--gr-ring); padding: var(--gr-space-2) 0 var(--gr-space-3) calc(var(--gr-ring) + var(--gr-space-3)); }
	.gr-prose .gr-path > li + li { margin-top: 0; }
	.gr-path > li > .gr-ring { position: absolute; top: 0; left: 0; z-index: 1; }  /* numer kroku: kółko .gr-ring (components.css) */
	@media not (min-width: 64rem) {
		.gr-visit .gr-path > li { padding-top: 0; padding-left: calc(var(--gr-ring) + var(--gr-space-2)); text-align: start; }  /* kółko → nazwa 8 */
		.gr-visit .gr-path > li > .gr-h3 { padding-top: calc((var(--gr-ring) - 1lh) / 2); }
	}
	.gr-path > li:not(:last-child)::after { content: ""; position: absolute; top: var(--gr-ring); bottom: 0; left: calc(var(--gr-ring) / 2 - var(--gr-border)); width: var(--gr-border-strong); background: var(--gr-color-line); }
	@media (min-width: 64rem) {
		.gr-prose > ol.gr-path--horizontal { display: flex; column-gap: var(--gr-space-columns-4); max-width: none; }  /* odstęp kolumn gapem, nie paddingiem kroków */
		.gr-path--horizontal > li { flex: 1; padding: calc(var(--gr-ring) + var(--gr-space-3)) 0 0; text-align: center; }
		.gr-path--horizontal > li > .gr-ring { left: 50%; translate: -50% 0; }
		.gr-path--horizontal > li:not(:last-child)::after { top: calc(var(--gr-ring) / 2 - var(--gr-border)); right: calc(-50% - var(--gr-space-columns-4)); bottom: auto; left: 50%; width: auto; height: var(--gr-border-strong); }
	}

	.gr-how-it-works { display: grid; gap: var(--gr-space-5); }
	.gr-how-it-works > .gr-section__title { margin-bottom: calc(var(--gr-space-4) - var(--gr-space-5)); }
	:is(.gr-how-it-works__text, .gr-description, .gr-visit) > .gr-wave + .gr-section__title { margin-top: 0; }
	.gr-how-it-works > .gr-wave { margin-bottom: calc(var(--gr-space-3) - var(--gr-space-5)); }
	.gr-how-it-works__grid { display: grid; gap: var(--gr-space-5); align-items: start; }
	@media not (min-width: 56rem) { .gr-how-it-works__text > .gr-section__title:last-child { margin-bottom: calc(var(--gr-space-after-h2) - var(--gr-space-5)); } }  /* H2 → kroki 24 mimo odstępu siatki 32 */
	.gr-how-it-works__text > :first-child { margin-top: 0; }
	.gr-how-it-works__text > .gr-section__title + p { margin-top: 0; }  /* odstęp pod tytułem daje sam tytuł */
	:is(.gr-how-it-works__text, .gr-description, .gr-visit) > .gr-section__title { margin-bottom: 0; font-size: var(--gr-text-2xl); line-height: var(--gr-leading-tight); }  /* jak tytuły innych sekcji, mimo stylów .gr-prose */
	.gr-prose .gr-lead { font-size: var(--gr-text-xl); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-semibold); }
	@media not (min-width: 40rem) { .gr-prose .gr-lead { font-size: var(--gr-text-lg); } }  /* telefon: mniejszy wstęp */
	.gr-how-it-works__steps { display: grid; gap: var(--gr-space-3); position: relative; }
	.gr-how-it-works__steps > * { margin: 0; }

	.gr-how-it-works__figure { margin: 0; order: -1; }
	@media (min-width: 40rem) and (not (min-width: 56rem)) { .gr-how-it-works__grid:has(> .gr-how-it-works__figure) { row-gap: var(--gr-space-3); } }  /* telefon: odstęp z .gr-art-bleed */
	.gr-how-it-works__figure img { display: block; width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
	@media (min-width: 40rem) { .gr-how-it-works__figure img { aspect-ratio: 1; } }  /* kwadrat jak hero i „Efekty”; telefon: proporcja pliku (width/height) */
	@media not (min-width: 40rem) { .gr-how-it-works__figure img { mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; } }  /* telefon: rysunek bez pustych pasów kwadratu, krawędzie lekko wygaszone */
	/* kółko .gr-ring obok nagłówka i opisu; --stack: kółko z nagłówkiem w wierszu, opis pod spodem (bez modyfikatora tak samo poniżej 56rem); --center: na środku wysokości; --end: kółko z prawej */
	.gr-icon-item { display: grid; grid-template-columns: var(--gr-ring) minmax(0, 1fr); column-gap: var(--gr-space-3); align-items: start; align-content: start; }
	.gr-icon-item > div > * { margin-block: 0; }
	.gr-icon-item > div > * + * { margin-top: var(--gr-space-heading); }  /* nagłówek i akapit 8 jak wszędzie */
	.gr-icon-item p { max-width: var(--gr-measure); }
	.gr-icon-item--center { align-items: center; }
	.gr-icon-item--stack { align-items: center; }
	.gr-icon-item--stack > div { display: contents; }
	.gr-icon-item--stack > div > :not(h3) { grid-column: 1 / -1; }
	@media not (min-width: 40rem) {  /* telefon: każdy wariant tak samo, kółko z nagłówkiem w wierszu, opis pod spodem; odstęp nagłówek → opis jako row-gap */
		.gr-icon-item { column-gap: var(--gr-space-2); row-gap: var(--gr-space-heading); align-items: center; text-align: start; }
		.gr-icon-item > div { display: contents; }
		.gr-icon-item > div > p { grid-column: 1 / -1; }
		.gr-icon-item > div > :is(.gr-h3, *) + :is(p, *) { margin-top: 0; }  /* mocniej niż .gr-prose h3 + p i .gr-h3 + p */
		.gr-icon-item > .gr-ring { margin-block: calc(var(--gr-ring) / -2); }
	}
	@media (min-width: 40rem) and (not (min-width: 56rem)) {
		.gr-icon-item:not(.gr-icon-item--stack) { column-gap: var(--gr-space-2); align-items: center; text-align: start; }
		.gr-icon-item:not(.gr-icon-item--stack) > div { display: contents; }
		.gr-icon-item:not(.gr-icon-item--stack) > div > p { grid-column: 1 / -1; }
		.gr-icon-item:not(.gr-icon-item--stack) > .gr-ring { margin-block: calc(var(--gr-ring) / -2); }
	}
	@media (min-width: 56rem) { .gr-icon-item--end { grid-template-columns: minmax(0, 1fr) var(--gr-ring); text-align: end; } .gr-icon-item--end > .gr-ring { order: 2; } }
	.gr-visit { --gr-ring: var(--gr-space-7); text-align: center; }
	@media (min-width: 40rem) { .gr-visit { container-type: inline-size; } }  /* telefon: cqw od sekcji, jak inne rzędy .gr-scroll */
	.gr-visit > .gr-wave { margin-inline: auto; }
	.gr-prose > * + .gr-icon-item { margin-top: var(--gr-space-5); }
	@media not (min-width: 40rem) { .gr-prose > .gr-icon-item + .gr-icon-item { margin-top: var(--gr-space-4); } }  /* 32, telefon 24 */
	@media (min-width: 40rem) and (not (min-width: 56rem)) { .gr-how-it-works__text:has(> .gr-icon-item + .gr-icon-item) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gr-space-5) + var(--gr-space-2)); } .gr-how-it-works__text > :not(.gr-icon-item) { grid-column: 1 / -1; } }  /* tablet: dwa bloki obok siebie */

	.gr-effects { text-align: center; }
	.gr-effects > .gr-wave { margin-inline: auto; }
	@media not (min-width: 40rem) { [data-section="conditions"] .gr-effects > :is(.gr-wave, .gr-section__title, .gr-reasons__more) { margin-inline: 0; text-align: start; justify-content: flex-start; } :is(.home, .post-type-archive-zabieg) .gr-contact-band { align-items: flex-start; text-align: start; } :is(.home, .post-type-archive-zabieg) .gr-contact-band > .gr-btns { justify-content: flex-start; } }  /* telefon, główna: wszystko od lewej dla spójności (Tomek 30.11) */
	.gr-effects__atlas { display: grid; gap: var(--gr-space-4); margin-top: var(--gr-space-after-h2); text-align: start; }
	.gr-section:has(.gr-effects__atlas) { overflow-x: clip; }
	/* „Efekty”: ramka ryciny z proporcji pliku (width/height) na każdej szerokości, bez kwadratu (Tomek 30.11: „niech ramka się dopasowuje”) */
	.gr-effects__atlas > img { order: -1; display: block; width: 100%; max-width: calc(var(--gr-space-8) * 3); height: auto; object-fit: contain; margin-inline: auto; mix-blend-mode: multiply; }  /* kwadrat jak hero: rycina cała, na środku */
	.gr-effects__art { order: -1; display: grid; width: 100%; max-width: calc(var(--gr-space-8) * 3); margin-inline: auto; }  /* główna: ryciny jedna na drugiej */
	.gr-effects__art > img { grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: opacity var(--gr-duration-out) var(--gr-ease); }
	.gr-effects__art > img:not(.is-active) { opacity: 0; }  /* widać rycinę aktywnej pozycji (atlas.js) */
	.gr-effects__art > img.is-active { transition-duration: var(--gr-duration-in); }
	@media not (min-width: 40rem) { .gr-effects__art { display: none; } .gr-icon-item[data-art].is-active { scale: none; } }  /* telefon, główna: rycina schowana na razie (Tomek 30.11), zwykły padding sekcji; bez powiększania aktywnej pozycji */
	@media not (min-width: 40rem) { .gr-effects__art > img:not([data-art="0"]) { display: none; } .gr-effects__art > img[data-art="0"] { opacity: 1; } }  /* telefon: jedna stała rycina nad listą, bez podmiany (atlas.js nie startuje) */
	.gr-icon-item[data-art] > .gr-ring { transition: background-color var(--gr-duration-out) var(--gr-ease), color var(--gr-duration-out) var(--gr-ease), scale var(--gr-duration-out) var(--gr-ease); }
	.gr-icon-item.is-active > .gr-ring { background: var(--gr-color-link); color: var(--gr-color-text-inverse); transition-duration: var(--gr-duration-in); }  /* jak .gr-ring--dark */
	.gr-icon-item[data-art] { transform-origin: left center; transition: scale var(--gr-duration-out) var(--gr-ease); }
	.gr-icon-item--end[data-art] { transform-origin: right center; }  /* lewa kolumna rośnie od kółka, nie na rycinę */
	.gr-icon-item[data-art].is-active { scale: var(--gr-scale-hover); transition-duration: var(--gr-duration-in); }  /* aktywna pozycja: najechanie i autoplay */
	/* szeroka rycina w „Efektach”: cała w kwadracie (object-fit: contain z reguły bazowej), bez ucinania boków (Tomek 30.11) */
	@media not (min-width: 40rem) { .gr-engraving--wide { object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); } }
	.gr-effects__list { display: grid; gap: var(--gr-space-5); }  /* 32 między efektami */
	@media not (min-width: 40rem) {  /* telefon: rycina nad falą i tytułem, jak w „Na czym polega” */
		.gr-effects { display: grid; }
		.gr-effects__atlas { display: contents; }
		.gr-effects > .gr-section__title { margin-bottom: 0; }
		.gr-effects__atlas > ul:first-child { margin-top: var(--gr-space-after-h2); }
		.gr-effects__atlas > ul ~ ul { margin-top: var(--gr-space-4); }
		[data-section="conditions"] .gr-effects__atlas > ul ~ ul { margin-top: var(--gr-space-5); }
	}
	@media not (min-width: 40rem) {  /* telefon, główna: 32 między problemami (gr-stack daje 24); nagłówki sekcji od lewej (Tomek 30.11: spójnie na telefonie) */
		[data-section="conditions"] .gr-effects__atlas { row-gap: var(--gr-space-5); }
	}
	@media (min-width: 40rem) and (not (min-width: 56rem)) { .gr-effects__atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gr-space-5) calc(var(--gr-space-5) + var(--gr-space-2)); } .gr-effects__atlas > :is(.gr-engraving, .gr-effects__art) { grid-column: 1 / -1; } .gr-effects__list { display: contents; } }
	@media (min-width: 56rem) {
		.gr-effects__atlas { grid-template-columns: minmax(0, 1fr) min(calc(var(--gr-space-8) * 5), 36%) minmax(0, 1fr); --near: clamp(var(--gr-space-3), calc((100vw - 56rem) / 12 + var(--gr-space-3)), var(--gr-space-6)); column-gap: var(--near);   align-items: center; margin-top: var(--gr-space-after-h2); align-items: stretch; }
		.gr-effects__atlas > img { order: 0; max-width: calc(var(--gr-space-8) * 4); align-self: center; }  /* 384, niżej 288 */
		.gr-effects__art { order: 0; max-width: calc(var(--gr-space-8) * 4); align-self: center; }
		.gr-effects__art > img { padding-inline: var(--gr-space-3); }
		.gr-effects__atlas > .gr-engraving--wide { padding-inline: var(--gr-space-3); }  /* rysunek 16 od kółek łuku */
		.gr-effects__list { align-content: space-evenly; }
		.gr-effects__list--left > li:is(:first-child, :last-child) { translate: var(--near) 0; }  /* łuk wokół ryciny; --near 16 → 48 */
		.gr-effects__list--right > li:is(:first-child, :last-child) { translate: calc(-1 * var(--near)) 0; }
	}
	/* 4a: przekrój tkanek z fal; warstwy gęstnieją od mgły do granatu, nazwy technik wewnątrz, warstwy spływają po kolei */
	.gr-cross-section { position: relative; height: calc(var(--gr-space-8) * 4.5); border-radius: var(--gr-radius-lg); overflow: hidden; --motion: .65s cubic-bezier(.16, 1, .3, 1); }
	.gr-cross-section > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
	.gr-cross-section > svg path:nth-child(1) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 4%, var(--gr-color-surface)); }
	.gr-cross-section > svg path:nth-child(2) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 10%, var(--gr-color-line)); }
	.gr-cross-section > svg path:nth-child(3) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 22%, var(--gr-color-line)); }
	.gr-cross-section > svg path:nth-child(4) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 34%, var(--gr-color-line)); }
	.gr-cross-section > svg path:nth-child(5) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 48%, var(--gr-color-line)); }
	.gr-cross-section > svg path:nth-child(6) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 70%, var(--gr-color-line)); }
	.gr-cross-section > svg path:nth-child(7) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 85%, var(--gr-color-line)); }
	.gr-cross-section > svg path:nth-child(n+8) { fill: color-mix(in srgb, var(--gr-color-surface-dark) 70%, var(--gr-color-text)); }
	.gr-cross-section ol.gr-layers { position: absolute; inset: 0; display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0 var(--gr-space-4); list-style: none; max-width: none; }
	.gr-layers > li { display: flex; align-items: center; gap: var(--gr-space-3); margin: 0; font-size: var(--gr-text-lg); font-weight: var(--gr-weight-semibold);   color: var(--gr-color-text); container-type: inline-size; }  /* cqw dla .gr-layers__desc */
	.gr-layers > li::before { content: attr(data-n); flex: none; min-width: var(--gr-space-3); text-align: end; font-size: var(--gr-text-sm); font-weight: var(--gr-weight-semibold); font-variant-numeric: tabular-nums; }  /* pełny kolor tekstu warstwy: przezroczystość dawała kontrast poniżej 4,5:1 na warstwach 4-7 */
	.gr-layers > li:nth-child(n+6) { color: var(--gr-color-text-inverse); }  /* duży tekst: 3:1 wystarcza */
	@media not (min-width: 40rem) { .gr-cross-section ol.gr-layers { padding-inline: var(--gr-space-3); } .gr-layers > li { font-size: var(--gr-text-md); } }
	/* rozsuwanie warstwy z opisem (assets/js/cross-section.js): układ stoi w miejscu, ruszają się tylko transformacje (fale i wiersze), więc */
	.gr-cross-section > svg path { transform-box: view-box; transition: transform var(--motion); }
	/* numer i nazwa na środku warstwy (align-items: center), w stałym miejscu przy rozsuwaniu */
	.gr-layers > li:has(.gr-layers__desc) { align-items: center; padding-top: 0; cursor: pointer; transition: transform var(--motion); will-change: transform; }
	/* środek optyczny: numer przycięty do wysokości cyfr, nazwa do wysokości małych liter, oba na środku warstwy (bez text-box: środki linii) */
	.gr-layers > li:has(.gr-layers__desc)::before { line-height: 1; text-box: trim-both cap alphabetic; }
	.gr-layers__name { position: relative; line-height: 1; text-box: trim-both ex alphabetic; }
	.gr-layers strong { font-weight: inherit; }

	.gr-layers__desc { position: absolute; top: calc(100% + .25em);  /* .25em = ogonki liter (g, ą) pod linią bazową */ left: 0; width: calc(100cqw - 2 * var(--gr-space-3)); padding-top: var(--gr-space-heading); opacity: 0; transform: translateY(calc(-1 * var(--gr-space-2))); font-size: var(--gr-text-base); font-weight: var(--gr-weight-regular); line-height: var(--gr-leading-body);  /* jak akapit */ pointer-events: none; transition: opacity .25s ease, transform var(--motion); }
	@media not (min-width: 40rem) { .gr-layers__desc { left: calc(-1 * (var(--gr-space-3) + var(--gr-space-2))); width: calc(100cqw - var(--gr-space-2)); } }
	.gr-layers__name .gr-icon { display: inline-block; width: calc(var(--gr-space-4) - var(--gr-space-1)); height: calc(var(--gr-space-4) - var(--gr-space-1)); margin-left: var(--gr-space-2); vertical-align: -0.08em; stroke-width: 2.5; transition: transform var(--gr-duration-in) var(--gr-ease), opacity var(--gr-duration-in) var(--gr-ease); }    /* kolor tekstu warstwy: błękit gubił się na ciemnych warstwach */
	@media not (min-width: 40rem) { .gr-layers__name .gr-icon { vertical-align: middle; } }  /* telefon: środek ikony na środku małych liter */
	.gr-layers > li.is-on .gr-layers__name .gr-icon { transform: rotate(45deg); opacity: 0.5; }  /* „×” po otwarciu słabszy */
	.gr-layers > li.is-on .gr-layers__desc { opacity: 1; transform: none; transition-delay: .1s, 0s; }
	.gr-layers > li:focus-visible { outline-offset: calc(-1 * var(--gr-space-1)); }

	.gr-depth { display: none; }
	@media (prefers-reduced-motion: reduce) { .gr-cross-section > svg path, .gr-layers > li, .gr-layers__desc { transition: none; } }
	@media (min-width: 56rem) {

		.gr-how-it-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gr-space-columns); align-items: center; }
		.gr-how-it-works__steps { order: -1; }  /* przekrój z lewej, tekst z prawej */
		.gr-cross-section { height: calc(var(--gr-space-8) * 6); }
		/* strzałka na prawej krawędzi przekroju w stylu fal: łagodna fala, kreska jak w hero, zaokrąglone końce i grot */
		.gr-depth { position: absolute; z-index: 1; top: var(--gr-space-4); height: calc(var(--gr-space-8) * 6 - 2 * var(--gr-space-4)); right: var(--gr-space-4);   display: block; width: var(--gr-space-4); pointer-events: none; }
		.gr-depth svg { position: absolute; left: 0; width: 100%; overflow: visible; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
		.gr-depth__line { top: 0; height: calc(100% - var(--gr-space-2)); stroke: url(#gr-depth-gradient); }
		.gr-depth__line path { vector-effect: non-scaling-stroke; }
		.gr-depth__line stop:first-child { stop-color: var(--gr-color-surface-dark); }
		.gr-depth__line stop:last-child { stop-color: var(--gr-color-text-inverse); }
		.gr-depth__head { bottom: calc(-1 * var(--gr-space-1)); height: var(--gr-space-4); stroke: var(--gr-color-text-inverse); }
		.gr-depth > span { position: absolute; top: 0; right: 100%; writing-mode: vertical-rl; white-space: nowrap; font-size: var(--gr-text-sm); font-weight: var(--gr-weight-semibold); color: var(--gr-color-text); }
		.gr-cross-section ol.gr-layers { padding-inline: var(--gr-space-5); }
		.gr-how-it-works__figure { align-self: center; }  /* rycina na środku wysokości tekstu (5a) */
		.gr-visit > .gr-path { margin-top: var(--gr-space-6); }
		.gr-visit > .gr-wave-track > li::after { display: none; }  /* łącznik kroków zastępuje fala */
	}


	.gr-section--photo { position: relative; isolation: isolate; overflow: clip; padding-block: var(--gr-pad-edge); }  /* clip, nie hidden: hidden robi kontener przewijania i paralaksa stoi */
	/* zdjęcie ma wysokość sekcji + ekranu, więc przesunięcie o s × własną wysokość = s × droga przewijania */
	.gr-section__photo { --s: 0.3; position: absolute; z-index: -1; top: calc(var(--s) * (-100% - 100vh)); left: 0; width: 100%; max-width: none; height: calc(100% + 100vh); object-fit: cover; object-position: center 40%; }
	@media (min-width: 56rem) { .gr-section__photo { --s: 0.5; } }

	@supports (animation-timeline: view()) {
		@media (prefers-reduced-motion: no-preference) {
			.gr-section--photo { view-timeline: --gr-photo-section; }
			.gr-section__photo { will-change: transform; animation: gr-parallax linear both; animation-timeline: --gr-photo-section; animation-range: cover; }
		}
	}
	@keyframes gr-parallax { from { transform: none; } to { transform: translateY(calc(var(--s) * 100%)); } }
	.gr-section--photo:has(> .gr-contraindications-band) { padding-block: 0; }
	.gr-contraindications-band { padding-block: var(--gr-pad-edge); background: var(--gr-color-surface-veil); }
	.gr-contraindications__head { text-align: center; }  /* tytuł i zdanie na środku karty */
	.gr-contraindications__head > .gr-wave { margin-inline: auto; }
	.gr-contraindications__lead { margin: 0 auto; color: var(--gr-color-text-muted); max-width: var(--gr-measure); }
	.gr-contraindications__list { margin: var(--gr-space-4) 0 0; padding: 0; list-style: none; column-gap: var(--gr-space-5); }
	.gr-contraindications__list li { display: flex; align-items: flex-start; gap: var(--gr-space-3); font-size: var(--gr-text-body); font-weight: var(--gr-weight-medium);  /* 18 px / 500 jak tekst ciągły, kropka zamiast numeru (B) */ padding: var(--gr-space-2) 0; break-inside: avoid; line-height: var(--gr-leading-snug); }

	.gr-contraindications__list li::before { content: ""; flex: none; width: var(--gr-space-3); height: var(--gr-space-3); margin-top: calc((1lh - var(--gr-space-3)) / 2); background: var(--gr-color-accent); mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012a9%209%200%201%200%2018%200a9%209%200%201%200%20-18%200%22/%3E%3Cpath%20d%3D%22M12%208v4%22/%3E%3Cpath%20d%3D%22M12%2016h.01%22/%3E%3C/svg%3E") center / contain no-repeat; }
	@media not (min-width: 40rem) { .gr-contraindications__list li { gap: var(--gr-space-2); } }  /* telefon: ikona 8 od tekstu */
	/* od 40rem dwie kolumny siatką, nie `columns`: WebKit nie rysował ikon (mask) w drugiej kolumnie */
	@media (min-width: 40rem) {
		.gr-contraindications__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(1, auto); }
		.gr-contraindications__list:has(> li:nth-child(3)) { grid-template-rows: repeat(2, auto); }
		.gr-contraindications__list:has(> li:nth-child(5)) { grid-template-rows: repeat(3, auto); }
		.gr-contraindications__list:has(> li:nth-child(7)) { grid-template-rows: repeat(4, auto); }
		.gr-contraindications__list:has(> li:nth-child(9)) { grid-template-rows: repeat(5, auto); }
	}
	@media (min-width: 56rem) {  /* komputer: tytuł i zdanie na środku, lista pod nimi w trzech kolumnach, 80 między kolumnami jak w siatkach bez kart (30.11) */
		.gr-contraindications__list { margin-top: var(--gr-space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(1, auto); column-gap: var(--gr-space-columns); }
		.gr-contraindications__list:has(> li:nth-child(4)) { grid-template-rows: repeat(2, auto); }
		.gr-contraindications__list:has(> li:nth-child(7)) { grid-template-rows: repeat(3, auto); }
		.gr-contraindications__list:has(> li:nth-child(10)) { grid-template-rows: repeat(4, auto); }
		.gr-contraindications__list li::before { width: var(--gr-space-4); height: var(--gr-space-4); margin-top: calc((1lh - var(--gr-space-4)) / 2); }  /* ikona 24 na komputerze */
	}

	.gr-contact-band { display: flex; flex-direction: column; align-items: center; text-align: center; }
	@media (min-width: 56rem) { .gr-section:not(.gr-section--surface)[data-section="content"] .gr-description { display: flex; flex-direction: column; align-items: center; text-align: center; } .gr-section:not(.gr-section--surface)[data-section="content"] .gr-description > p { max-width: var(--gr-measure); } }
	@media (min-width: 56rem) { .gr-section.gr-top--waves:not(.gr-top--home) { padding-top: 0; } }  /* hero na komputerze bez paddingu u góry; na głównej nie ma okruszków, więc odstęp zostaje */
	@media (min-width: 56rem) { .gr-section.gr-top--waves.gr-top--center { padding-top: var(--gr-pad-same); } }  /* huby (metody, zabiegi, blog): góra i dół jak hero głównej (80 / 120) */
	.gr-contact-band > .gr-section__title { max-width: var(--gr-measure-title); text-wrap: balance; }
	@media not (min-width: 40rem) { body:not(.home, .post-type-archive-zabieg) .gr-contact-band > .gr-section__title { font-size: var(--gr-text-xl); } }  /* telefon: długi tytuł pasa zamykającego w zabiegu i metodzie („Nie wiesz, czy…”) i tak nie mieści się w wierszu; na głównej „Jak się umówić” jak inne tytuły */
	.gr-contact-band > p { margin: 0; max-width: var(--gr-measure); }
	.gr-contact-band > .gr-btns { align-self: stretch; margin-top: var(--gr-space-5); justify-content: center; }

	.gr-therapist-section { position: relative; isolation: isolate; overflow: hidden; }  /* rycina pleców w tle sekcji „Kto prowadzi” */
	.gr-therapist { display: grid; gap: var(--gr-space-6); align-items: center; }
	@media not (min-width: 40rem) { .gr-therapist { gap: 0; } .gr-therapist__text { display: contents; } .gr-therapist__text > * { order: 2; } .gr-therapist__text > :is(.gr-wave, .gr-section__title) { order: 0; } .gr-therapist > .gr-therapist__photo { order: 1; } }  /* telefon: zdjęcie pod tytułem, 24 do imienia */  /* telefon: zdjęcie 24 nad tekstem, było 48 */

	.gr-therapist__decoration { position: absolute; z-index: -1; top: 0; right: 0; transform: scaleX(-1); width: auto; max-width: none; height: 100%; mix-blend-mode: multiply; opacity: calc(var(--gr-decoration-opacity) / 2); pointer-events: none; }

	.gr-therapist__photo img { aspect-ratio: 1; object-fit: cover; object-position: center 30%; }  /* zaokrąglenie i cień z .gr-frame */
	.gr-therapist__photo--desk { justify-self: end; align-self: stretch; width: auto; max-width: 100%; aspect-ratio: 1; }  /* kwadrat jak wcześniej: wysokość kolumny tekstu, szerokość równa wysokości, przy prawej krawędzi kolumny */
	@media (min-width: 40rem) { .gr-therapist__photo--desk { position: relative; } .gr-frame.gr-therapist__photo--desk img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; } }  /* pion od góry do dołu tekstu (zdjęcie nie wyznacza wysokości); telefon: kwadrat jak dotąd */
	.gr-therapist__photo--desk img { object-position: 62% center; scale: -1 1; }  /* zdjęcie przy biurku: Marta w kadrze kwadratu, w lustrze patrzy w stronę tekstu */
	.gr-therapist__text > * { margin: 0; }
	.gr-therapist__text > .gr-wave { margin-bottom: var(--gr-space-3); }  /* fala 16 nad tytułem jak w innych sekcjach */
	.gr-therapist__text > .gr-section__title { margin-bottom: var(--gr-space-after-h2); }  /* pod tytułem jak każdy tytuł sekcji */

	.gr-therapist__name { font-size: var(--gr-text-xl); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-regular); }
	.gr-therapist__name strong { font-weight: var(--gr-weight-semibold); }
	.gr-therapist__role { font-size: var(--gr-text-lg); }  /* zawód mniejszy niż imię */

	.gr-therapist__text > .gr-therapist__bio { margin-top: var(--gr-space-3); max-width: var(--gr-measure); }  /* krótki opis pod imieniem */
	.gr-therapist__text > .gr-therapist__course { margin-top: var(--gr-space-3); max-width: var(--gr-measure); }
	.gr-therapist__course b { font-weight: var(--gr-weight-semibold); color: var(--gr-color-text); }
	.gr-therapist__text > .gr-links { margin-top: calc(var(--gr-space-3) - (var(--gr-target) - 1lh) / 2); }  /* link 44 px: tekst 16 pod akapitem jak akapit pod akapitem */



	.gr-therapist__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gr-space-5) var(--gr-space-columns-4); }
	.gr-therapist__facts li { font-size: var(--gr-text-md); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-medium); color: var(--gr-color-text-inverse-muted); text-align: center; text-wrap: balance; display: flex; flex-direction: column; align-items: center; }  /* krótkie podpisy: interlinia ciasna, bez sierotek */
	.gr-therapist__facts strong { display: block; font-size: var(--gr-text-xl); line-height: var(--gr-leading-tight); font-weight: var(--gr-weight-semibold); color: var(--gr-color-figure-on-dark); font-variant-numeric: tabular-nums; }
	@media (min-width: 40rem) { .gr-therapist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gr-space-columns); } }
	@media (min-width: 56rem) { .gr-therapist { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }  /* komputer: zdjęcie mniej dominujące, 2:3 (P317) */
	@media (min-width: 56rem) { .gr-therapist:has(> .gr-therapist__photo--desk) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }  /* główna: zdjęcie i tekst po połowie, granica na środku ekranu */
	@media (min-width: 56rem) {
		.gr-therapist__decoration { opacity: var(--gr-decoration-opacity); }
		.gr-therapist__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
		.gr-therapist__facts strong { font-size: var(--gr-text-hero); letter-spacing: var(--gr-tracking-tight); }
	}
	/* liczby w pasie faktów jak bębenek: każda cyfra przewija się w swoim okienku do wartości, nowa wjeżdża spod maski, zanim stara zniknie */
	@media not (min-width: 40rem) { .gr-therapist__facts strong { font-size: var(--gr-text-2xl); } .gr-therapist__facts li { font-size: var(--gr-text-sm); } .gr-therapist__facts li > span { white-space: nowrap; } }
	.gr-digits { display: inline-flex; }
	.gr-digits__col { display: inline-block; height: 1lh; overflow: clip; mask-image: linear-gradient(transparent, #000 0.2em, #000 calc(100% - 0.2em), transparent); }
	.gr-digits__strip { --cell: 1lh; display: flex; flex-direction: column; transition: translate var(--gr-duration-count) var(--gr-ease-settle); }  /* szybko na początku, długie hamowanie na końcu */
	.gr-digits__strip > span { height: 1lh; }
	.gr-digits__strip[data-d="1"] { translate: 0 calc(var(--cell) * -1); } .gr-digits__strip[data-d="2"] { translate: 0 calc(var(--cell) * -2); } .gr-digits__strip[data-d="3"] { translate: 0 calc(var(--cell) * -3); }
	.gr-digits__strip[data-d="4"] { translate: 0 calc(var(--cell) * -4); } .gr-digits__strip[data-d="5"] { translate: 0 calc(var(--cell) * -5); } .gr-digits__strip[data-d="6"] { translate: 0 calc(var(--cell) * -6); }
	.gr-digits__strip[data-d="7"] { translate: 0 calc(var(--cell) * -7); } .gr-digits__strip[data-d="8"] { translate: 0 calc(var(--cell) * -8); } .gr-digits__strip[data-d="9"] { translate: 0 calc(var(--cell) * -9); }
	.gr-digits__strip[data-d="10"] { translate: 0 calc(var(--cell) * -10); }

	/* wizyta: przy przewijaniu fala idzie od rozmowy do zaleceń */
	.gr-visit .gr-ring--step { --gr-fill: 100%; color: var(--gr-color-surface-dark); background: radial-gradient(circle farthest-corner, var(--gr-color-surface-dark) var(--gr-fill), var(--gr-color-bg) calc(var(--gr-fill) + var(--gr-border))); }
	.gr-visit .gr-ring--step > * { grid-area: 1 / 1; }
	@media not (min-width: 56rem) { .gr-visit { --gr-ring: inherit; } }
	@media not (min-width: 40rem) {  /* telefon: kroki jako karty przewijane w bok (Tomek 26.11, zabieg i metoda) */
		.gr-visit > ol.gr-scroll { display: grid; padding: var(--gr-space-2) var(--gr-bleed-inset); margin-bottom: 0; }  /* rząd .gr-scroll; padding: .gr-prose ol.gr-path go zeruje, mały cień karty nie potrzebuje 56 px */
		.gr-visit > .gr-path > li { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; column-gap: var(--gr-space-2); padding: var(--gr-pad-card); border-radius: var(--gr-radius-lg); background: var(--gr-color-bg); box-shadow: var(--gr-shadow-1); }  /* wygląd .gr-card na bieli */
		.gr-visit > .gr-path > li > .gr-ring { position: static; }
		.gr-visit > .gr-path > li > .gr-h3 { margin-top: 0; padding-top: 0; }  /* kółko i nazwa w jednym wierszu */
		.gr-visit > .gr-path > li > :not(.gr-ring, .gr-h3) { grid-column: 1 / -1; }
		.gr-visit > .gr-path > li::after { display: none; }
	}
	.gr-visit .gr-wave-track { --step: calc((100cqw + var(--gr-space-columns-4)) / 3); }  /* odstęp środków kółek: (szerokość rzędu + gap) / 3 */
	.gr-visit .gr-ring--step .gr-icon { color: var(--gr-color-text-inverse); }
	@media (min-width: 56rem) {
		.gr-visit .gr-wave-track::before { scale: 1 -1; top: calc(var(--gr-ring) / 2 - var(--gr-space-8) * 7 / 24);   mask-size: calc(var(--step) * 8) 100%; mask-position: calc(50% - var(--step)) 0; }
	}
	@supports (animation-timeline: view()) {
		@media (prefers-reduced-motion: no-preference) and (min-width: 56rem) {
			.gr-visit .gr-wave-track { view-timeline: --gr-visit; }
			.gr-visit .gr-wave-track::before { animation: gr-visit-wave linear both; animation-timeline: --gr-visit; animation-range: cover 10% cover 50%; }
			.gr-visit .gr-ring--step { animation: gr-step-fill var(--gr-ease) both; animation-timeline: --gr-visit; }
			.gr-visit .gr-ring--step .gr-icon { animation: gr-step-icon var(--gr-ease) both; animation-timeline: --gr-visit; }

			.gr-visit .gr-ring--step::after { content: ""; position: absolute; inset: 0; border-radius: var(--gr-radius-pill); background: conic-gradient(from 270deg, var(--gr-color-accent) calc(var(--gr-draw) / 2), transparent 0 calc(100% - var(--gr-draw) / 2), var(--gr-color-accent) 0);   mask: radial-gradient(farthest-side, transparent calc(100% - var(--gr-space-1) - var(--gr-border)), #000 calc(100% - var(--gr-space-1)));   animation: gr-step-border linear both; animation-timeline: --gr-visit; }
			.gr-visit li:nth-child(1) .gr-ring--step::after { animation-range: cover 18.2% cover 20.6%; }
			.gr-visit li:nth-child(2) .gr-ring--step::after { animation-range: cover 28.8% cover 31.2%; }
			.gr-visit li:nth-child(3) .gr-ring--step::after { animation-range: cover 39.4% cover 41.8%; }
			.gr-visit li:nth-child(1) :is(.gr-ring--step, .gr-icon) { animation-range: cover 20.6% cover 22.1%; }
			.gr-visit li:nth-child(2) :is(.gr-ring--step, .gr-icon) { animation-range: cover 31.2% cover 32.7%; }
			.gr-visit li:nth-child(3) :is(.gr-ring--step, .gr-icon) { animation-range: cover 41.8% cover 43.3%; }
		}
	}

	@supports (animation-timeline: view()) {
		@media (prefers-reduced-motion: no-preference) and (not (min-width: 56rem)) {
			.gr-visit .gr-ring--step { animation: gr-step-fill var(--gr-ease) both; animation-timeline: view(); animation-range: cover 15% cover 40%; }
			.gr-visit .gr-ring--step .gr-icon { animation: gr-step-icon var(--gr-ease) both; animation-timeline: view(); animation-range: cover 15% cover 32%; }  /* ikona razem z wypełnieniem, nie po nim */
		}
	}
	@keyframes gr-visit-wave {
		0% { clip-path: inset(0 100% 0 0); }
		20.41%, 26.53% { clip-path: inset(0 calc(50% + var(--step)) 0 0); }  /* postój na kółku: rysuje się obwódka */
		46.94%, 53.06% { clip-path: inset(0 50% 0 0); }
		73.47%, 79.59% { clip-path: inset(0 calc(50% - var(--step)) 0 0); }
		100% { clip-path: inset(0); }
	}
	@keyframes gr-step-fill { from { --gr-fill: 0%; } to { --gr-fill: 100%; } }
	@keyframes gr-step-border { from { --gr-draw: 0%; } to { --gr-draw: 100%; } }
	@keyframes gr-step-icon { from { clip-path: circle(0); } to { clip-path: circle(75%); } }  /* ikona odsłania się maską od środka za wypełnieniem */
	@keyframes gr-pop { from { opacity: 0; transform: scale(var(--gr-scale-pop)); } to { opacity: 1; transform: none; } }  /* wejście od 0,95 z wygaszeniem, nie od zera */

	.gr-lightbox { max-width: min(90vw, 60rem); padding: 0; border: 0; background: none; overflow: visible; }
	.gr-lightbox::backdrop { background: color-mix(in srgb, var(--gr-color-text) 80%, transparent); }
	.gr-lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: 85vh; border-radius: var(--gr-radius-sm); }
	.gr-lightbox__close { position: absolute; top: var(--gr-space-2); right: var(--gr-space-2); display: grid; place-items: center; width: var(--gr-target); height: var(--gr-target); border: 0; border-radius: var(--gr-radius-pill); background: var(--gr-color-bg); color: var(--gr-color-text); cursor: pointer; }
	.gr-lightbox__close:hover { background: var(--gr-color-surface); }

	/* karty z rozwijanym opisem (rodzaje masażu sportowego): na telefonie opis pod plusem, od 40rem zawsze otwarty (faq.js) */
	.gr-deal-cards summary { display: flex; align-items: center; justify-content: space-between; gap: var(--gr-space-3); min-height: var(--gr-target); list-style: none; cursor: pointer; }
	.gr-deal-cards details { justify-self: stretch; }  /* plus przy prawej krawędzi karty */
	.gr-deal-cards summary::-webkit-details-marker { display: none; }
	.gr-deal-cards summary > .gr-h3 { margin: 0; }
	.gr-deal-cards summary > .gr-icon { flex: none; color: var(--gr-color-accent); transition: transform var(--gr-duration-in) var(--gr-ease); }
	.gr-deal-cards summary > .gr-icon:last-child { transform: rotate(90deg); }  /* strzałka w dół, po otwarciu w górę (zasada 25) */
	.gr-deal-cards details[open] summary > .gr-icon:last-child { transform: rotate(-90deg); }
	@media (min-width: 40rem) { .gr-deal-cards { grid-auto-rows: 1fr; } .gr-deal-cards summary { pointer-events: none; } .gr-deal-cards summary > .gr-icon { display: none; } }  /* karty równej wysokości */
	.gr-tiles__heading { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gr-space-2) var(--gr-space-3); margin-bottom: var(--gr-space-after-h2); }  /* nad zapasem cienia rzędu .gr-scroll, inaczej rząd zasłania strzałki i pigułki */
	.gr-tiles__heading > * { margin: 0; padding: 0; }
	@media not (min-width: 56rem) { .gr-tiles__heading:has(> .gr-section__lead) { flex-direction: column; align-items: flex-start; row-gap: var(--gr-space-after-h2); } }  /* wstęp pod tytułem, od 56rem po prawej */
	@media (min-width: 40rem) { .gr-tiles__heading > .gr-menu-card__more { margin-block: calc((1lh - var(--gr-target)) / 2); } }
	.gr-tiles { display: grid; gap: var(--gr-space-3); }  /* na telefonie rząd .gr-scroll jak opinie */
	.gr-tile.gr-card--link { box-shadow: var(--gr-shadow-1); }  /* kafle (zabiegi i metody): mały cień w spoczynku jak karty kroków, większy po najechaniu (30.11) */
	.gr-tile.gr-card--link:hover { box-shadow: var(--gr-shadow-2); }
	.gr-tile { display: flex; flex-direction: column; gap: 0; color: var(--gr-color-text); text-decoration: none; }  /* wygląd z .gr-card */
	.gr-section--surface .gr-tile { background: var(--gr-color-bg); }  /* na mgle kafel biały */
	/* kolor grupy i mała nazwa grupy nad nazwą zabiegu */
	.gr-tile--rehab { background: var(--gr-color-group-rehab); }
	.gr-tile--exercise { background: var(--gr-color-group-exercise); }
	.gr-pricing #rehabilitacja .gr-card { background: var(--gr-color-group-rehab); }  /* /zabiegi/: karty w kolorze grupy jak kafle; masaż zostaje błękitny */
	.gr-pricing #cwiczenia .gr-card { background: var(--gr-color-group-exercise); }
	@media not (min-width: 40rem) {  /* telefon: grupa = jedna karta w kolorze grupy, zabiegi oddzielone kreską jak FAQ */
		.gr-pricing .gr-price-list--cards { gap: 0; padding: var(--gr-space-2) var(--gr-pad-card); border-radius: var(--gr-radius-lg); background: var(--gr-color-surface); box-shadow: var(--gr-shadow-1); }
		.gr-pricing #rehabilitacja .gr-price-list--cards { background: var(--gr-color-group-rehab); }
		.gr-pricing #cwiczenia .gr-price-list--cards { background: var(--gr-color-group-exercise); }
		.gr-pricing :is(#masaz, #rehabilitacja, #cwiczenia) .gr-price-list--cards > .gr-card { padding-inline: 0; padding-block: var(--gr-space-3); border-radius: 0; background: none; box-shadow: none; scale: none; }
		.gr-pricing .gr-price-list--cards > .gr-card + .gr-card { border-top: var(--gr-border) solid color-mix(in srgb, var(--gr-color-text) 12%, var(--gr-color-line)); }
		.gr-pricing .gr-price-list--cards > .gr-card::before { content: none; }
	}
	.gr-tile__group + .gr-tile__name { --h3-top: var(--gr-space-1); }
	.gr-tile__group { font-size: var(--gr-text-xs); font-weight: var(--gr-weight-semibold); line-height: var(--gr-leading-snug); letter-spacing: .04em; text-transform: uppercase; color: var(--gr-color-link); }
	.gr-tile__desc { flex: 1; }
	.gr-tile > .gr-menu-card__more, .gr-tile__foot { margin-top: var(--gr-space-3); }  /* 16 od opisu do linku na dole kafla */
	.gr-tile__foot { display: flex; align-items: end; justify-content: space-between; gap: var(--gr-space-3); }  /* link z lewej, etykieta z prawej */
	.gr-tile__foot > .gr-tile__group { line-height: calc(var(--gr-text-body) * var(--gr-leading-body)); }  /* wiersz wysoki jak link obok: środki tekstu w jednej linii */
	.gr-tile__foot > * { margin: 0; }
	.gr-grid > li > .gr-tile { height: 100%; }  /* kafle w siatce (lista metod): równa wysokość w rzędzie */
	@media (min-width: 40rem) { .gr-tile:has(> .gr-ring) { --gr-ring: var(--gr-space-7); --gr-icon: calc(var(--gr-ring) / 2); } }  /* wyjątek: kółko metody 64, ikona w proporcji jak w 48 (połowa) */
	.gr-tile > .gr-ring { position: absolute; top: 0; right: 0; background: var(--gr-color-ring-tile); outline: var(--gr-space-1) solid var(--gr-color-bg); transition: background-color var(--gr-duration-out) var(--gr-ease), color var(--gr-duration-out) var(--gr-ease); }  /* w narożniku karty, obrys w kolorze tła jak strzałka kafla z ryciną */
	.gr-section--surface .gr-tile > .gr-ring { outline-color: var(--gr-color-surface); }
	.gr-tile:has(> .gr-ring) > .gr-tile__name { padding-right: calc(var(--gr-ring) - var(--gr-pad-card) + var(--gr-space-2)); }  /* tekst 8 przed kółkiem */
	.gr-tile:is(:hover, :focus-visible) > .gr-ring { background: var(--gr-color-surface-dark); color: var(--gr-color-text-inverse); }  /* jak strzałka kafla z ryciną */
	@media not (min-width: 56rem) { .gr-tiles { padding-block: var(--gr-space-5); margin-block: calc(-1 * var(--gr-space-5)); } }
	@media not (min-width: 40rem) { .gr-tile { container-type: inline-size; } .gr-tile__name--long { --h3-size: clamp(var(--gr-text-sm), 7cqi, var(--gr-text-md)); } }
	@media not (min-width: 40rem) {  /* telefon: „Pełny cennik” pod kaflami */
		.gr-wrap:has(> .gr-tiles__heading > .gr-menu-card__more) { display: flex; flex-direction: column; }
		.gr-tiles__heading:has(> .gr-menu-card__more) { display: contents; }
		.gr-tiles__heading:has(> .gr-menu-card__more) > .gr-section__title { margin-bottom: var(--gr-space-after-h2); }
		.gr-tiles__heading > .gr-menu-card__more { order: 1; position: relative; z-index: 1; align-self: center; margin-top: var(--gr-space-5); }  /* nad zapasem cienia rzędu; 32 od kart albo kropek (było 8, za blisko) */
		.gr-wrap:has(> .gr-tiles__heading > .gr-menu-card__more) > .gr-tiles ~ * { order: 1; }  /* metody pod linkiem */
		.gr-wrap:has(> .gr-tiles__heading > .gr-menu-card__more) > .gr-slider-dots { order: 0; }  /* kropki zaraz pod kaflami, nad linkiem */
	}
	@media (min-width: 40rem) and (not (min-width: 56rem)) { .gr-tiles.gr-scroll { grid-auto-columns: 42cqw; } }
	@media (min-width: 56rem) { .gr-tiles.gr-scroll { grid-auto-columns: calc(var(--gr-text-lg) * 12.5 + 2 * var(--gr-pad-card)); column-gap: var(--gr-gap-cards); } .gr-tile__name { --h3-wrap: wrap; }   }  /* komputer: trzy kafle, reszta w sliderze */

	.gr-pricing-menu { display: grid; gap: var(--gr-gap-cards); }  /* główna: kafel na grupę */
	.gr-pricing-menu .gr-price-list { column-gap: var(--gr-gap-items); }
	.gr-pricing-menu__group { --scrim: var(--gr-color-scrim); }
	:is(.gr-pricing-menu__group--masaz, .gr-pricing-menu__group--cwiczenia) { --scrim: var(--gr-color-scrim-warm); }  /* osłona w ciemnym tonie zdjęcia */
	.gr-pricing-menu__group:has(> .gr-pricing-menu__toggle:focus-visible) { outline: var(--gr-focus-ring) solid var(--gr-color-focus); outline-offset: var(--gr-focus-ring); }  /* fokus przycisku widać na całej karcie */
	@media (min-width: 40rem) {  /* tablet: masaże na całą szerokość, dwa kafle pod spodem */
		.gr-pricing-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		.gr-pricing-menu__group--masaz { grid-column: 1 / -1; }
		.gr-pricing-menu__group--masaz .gr-price-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	@media (min-width: 56rem) { [data-section="pricing"] .gr-tiles__heading > .gr-section__title { text-box: trim-both cap alphabetic; } [data-section="pricing"] .gr-tiles__heading:has(> .gr-section__lead) { margin-bottom: calc(var(--gr-space-after-h2) + 0.2 * var(--gr-text-2xl)); } }  /* tytuł obok opisu: środek tytułu liczony od liter (wersaliki do linii pisma), więc litery tytułu i opisu stoją na tej samej połowie wysokości; przycięty dół tytułu (linia pisma) oddaje 0,2 em do odstępu, żeby tytuł → karty wyglądał jak 24 w innych sekcjach */
	.gr-pricing-menu__img, .gr-pricing-menu__toggle, .gr-pricing-menu__chevron, .gr-pricing-menu__ring { display: none; }
	/* kolejność wierszy przy otwieraniu (zasada 3, co --gr-stagger) */
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(2) { --row: 1; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(3) { --row: 2; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(4) { --row: 3; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(5) { --row: 4; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(6) { --row: 5; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(7) { --row: 6; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(8) { --row: 7; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(9) { --row: 8; }
	.gr-pricing-menu__group.is-open .gr-price-row:nth-child(n + 10) { --row: 9; }
  /* przycisk tylko przy rozwijanych kartach */
	@media (min-width: 75rem) {  /* komputer od 1200 (niżej układ tabletu, bo pas z pionową nazwą i dwie kolumny masażu się nie mieszczą): rozwijane karty (pricing-menu.js); zamknięta = zdjęcie i nazwa pionowo, otwarta = cennik, szerokość z liczby kolumn (5 zabiegów w kolumnie), zamknięte wypełniają resztę */
		.gr-pricing-menu { display: flex; }
		.gr-pricing-menu__group { --columns: 1; --label-size: calc(var(--gr-text-xl) * 2.25); position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; flex: 1 1 10rem; min-width: 10rem; cursor: pointer; transition: flex calc(var(--gr-duration-move) * 2) var(--gr-ease-move), border-top-right-radius var(--gr-duration-in) var(--gr-ease), box-shadow var(--gr-duration-in) var(--gr-ease); box-shadow: var(--gr-shadow-2); }
		.gr-pricing-menu__toggle { display: block; }
		.gr-pricing-menu__group > .gr-pricing-menu__ring { --gr-ring: calc(var(--gr-space-7) + var(--gr-space-3)); --gr-icon: calc(var(--gr-ring) / 2); display: grid; position: absolute; top: var(--gr-space-1); right: var(--gr-space-1); z-index: 1; background: inherit; outline: var(--gr-space-1) solid var(--gr-color-bg); }  /* tło kółka = kolor karty grupy; 4 od krawędzi, żeby biała obwódka mieściła się w karcie (karta przycina wystające) i dotykała krawędzi */  /* ikona grupy: kółko 80, ikona 40, w prawym górnym rogu, przyklejona do krawędzi, biała obwódka (wzór .gr-tile > .gr-ring) */
		.gr-pricing-menu__group:not(.is-open) > .gr-pricing-menu__ring { opacity: 0; visibility: hidden; transition: opacity var(--gr-duration-out) var(--gr-ease), visibility var(--gr-duration-out); }  /* ikona grupy tylko na otwartej karcie */
		.gr-pricing-menu__group.is-open > .gr-pricing-menu__ring { transition: opacity var(--gr-duration-in) var(--gr-ease) var(--gr-duration-move); }  /* wchodzi z tytułem, po rozciągnięciu */
		.gr-pricing-menu__group.is-open { border-top-right-radius: calc((var(--gr-space-7) + var(--gr-space-3)) / 2 + var(--gr-space-1)); box-shadow: var(--gr-shadow-3); }  /* róg karty idzie po łuku kółka z ikoną (promień 44 = kółko 80 / 2 + obwódka 4), cień idzie za łukiem; cienie jak na telefonie: zamknięta mniejszy, otwarta większy */
		.gr-pricing-menu__group--columns-2 { --columns: 2; }
		.gr-pricing-menu__group--columns-3 { --columns: 3; }
		.gr-pricing-menu__img { display: block; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; filter: grayscale(0) brightness(.85); transition: opacity calc(var(--gr-duration-move) * 2) var(--gr-ease-move), filter calc(var(--gr-duration-move) * 2) var(--gr-ease-move); }  /* zamknięta: zdjęcie lekko przyciemnione pod biały napis */
		/* tytuł i lista zostają w układzie także w zamkniętej (niewidoczne): wysokość rzędu = najwyższa grupa, nie skacze przy przełączaniu */
		.gr-pricing-menu .gr-pricing-menu__group .gr-price-list { display: grid; grid-template-columns: none; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: 20rem; }
		.gr-pricing-menu__group:not(.is-open) :is(.gr-pricing-menu__label, .gr-price-list) { visibility: hidden; }
		/* kreski między zabiegami jak na telefonie: poziome między wierszami (bez pierwszego wiersza), pionowa na środku odstępu między kolumnami, krzyżują się; pod nimi jasny cień 1 px */
		.gr-pricing-menu .gr-price-row:not(:nth-child(5n + 1))::after { content: ""; position: absolute; top: 0; inset-inline: 0; border-top: var(--gr-border) solid color-mix(in srgb, var(--gr-color-text) 12%, var(--gr-color-line)); box-shadow: 0 var(--gr-border) 0 var(--gr-color-bg); pointer-events: none; }
		/* dwie kolumny: poziome dochodzą do środka odstępu i krzyżują się z pionową */
		.gr-pricing-menu__group--columns-2 .gr-price-row:nth-child(-n + 5)::after { right: calc(var(--gr-gap-items) / -2); }
		.gr-pricing-menu__group--columns-2 .gr-price-row:nth-child(n + 6)::after { left: calc(var(--gr-gap-items) / -2); }
		.gr-pricing-menu .gr-price-row:nth-child(n + 6)::before { content: ""; position: absolute; inset-block: 0; left: calc(var(--gr-gap-items) / -2); border-left: var(--gr-border) solid color-mix(in srgb, var(--gr-color-text) 12%, var(--gr-color-line)); box-shadow: var(--gr-border) 0 0 var(--gr-color-bg); pointer-events: none; }
		.gr-pricing-menu__group::before, .gr-pricing-menu__group::after { content: "#" attr(data-name) / ""; position: absolute; right: var(--gr-space-2); bottom: var(--gr-space-3); writing-mode: vertical-rl; rotate: 180deg; font-size: var(--label-size);  /* najdłuższa, #rehabilitacja, mieści się w wysokości karty */ font-weight: var(--gr-weight-semibold); text-transform: lowercase; line-height: var(--gr-leading-tight); color: var(--gr-color-text-inverse); white-space: nowrap; pointer-events: none; transition: opacity var(--gr-duration-in) var(--gr-ease) var(--gr-duration-move); }  /* duża nazwa pionowo na zamkniętej, wraca w połowie zwężania */
		.gr-pricing-menu__group::before { --scrim-end: calc(var(--gr-space-2) + var(--label-size) * var(--gr-leading-tight) / 2); right: 0; bottom: calc(var(--gr-space-3) - var(--gr-space-6)); padding-inline: var(--gr-space-6); padding-block: 0 var(--gr-space-2); color: transparent; background: linear-gradient(to right, color-mix(in srgb, var(--scrim) 70%, transparent) calc(var(--scrim-end) * 0), color-mix(in srgb, var(--scrim) 51.7%, transparent) calc(var(--scrim-end) * 0.19), color-mix(in srgb, var(--scrim) 37.9%, transparent) calc(var(--scrim-end) * 0.34), color-mix(in srgb, var(--scrim) 26.7%, transparent) calc(var(--scrim-end) * 0.47), color-mix(in srgb, var(--scrim) 19.5%, transparent) calc(var(--scrim-end) * 0.565), color-mix(in srgb, var(--scrim) 13.6%, transparent) calc(var(--scrim-end) * 0.65), color-mix(in srgb, var(--scrim) 8.8%, transparent) calc(var(--scrim-end) * 0.73), color-mix(in srgb, var(--scrim) 5.2%, transparent) calc(var(--scrim-end) * 0.802), color-mix(in srgb, var(--scrim) 2.9%, transparent) calc(var(--scrim-end) * 0.861), color-mix(in srgb, var(--scrim) 1.5%, transparent) calc(var(--scrim-end) * 0.91), color-mix(in srgb, var(--scrim) 0.6%, transparent) calc(var(--scrim-end) * 0.952), color-mix(in srgb, var(--scrim) 0.1%, transparent) calc(var(--scrim-end) * 0.982), color-mix(in srgb, var(--scrim) 0%, transparent) calc(var(--scrim-end) * 1)); mask: linear-gradient(to bottom, transparent, #000 var(--gr-space-6), #000 calc(100% - var(--gr-space-6)), transparent); }  /* zasada 51: osłona w ciemnym tonie zdjęcia (--scrim), od prawej krawędzi karty do połowy wysokości liter, wygaszana krzywą; wzdłuż napisu z końcami wygaszonymi 48 px; po obrocie o 180° kierunki odwrócone */
		.gr-pricing-menu__group::after { text-shadow: 0 0 var(--gr-space-2) color-mix(in srgb, var(--scrim) 40%, transparent); }  /* delikatny cień liter w tonie zdjęcia, odcina je od jasnych miejsc tła */
		/* otwarta: szerokość kolumn listy, najmniej jedna trzecia rzędu (mała grupa nie węższa od zamkniętych), najwięcej z miejscem na dwie zamknięte; ta sama postać flex co zamknięta, więc ruch bez drgań */
		.gr-pricing-menu__group.is-open { flex: 0 0 max(calc(var(--columns) * 20rem + (var(--columns) - 1) * var(--gr-gap-items) + 2 * var(--gr-pad-card)), (100% - 2 * var(--gr-gap-cards)) / 3); max-width: calc(100% - 2 * (10rem + var(--gr-gap-cards))); cursor: auto; }
		.gr-pricing-menu__group.is-open::before, .gr-pricing-menu__group.is-open::after { opacity: 0; transition: opacity var(--gr-duration-out) var(--gr-ease); }
		.gr-pricing-menu__group.is-open .gr-pricing-menu__img { opacity: .1; filter: grayscale(1) brightness(1); transition-duration: var(--gr-duration-move); }  /* otwarta: 10 % w szarości na kolorze grupy (filtr się animuje, tryb mieszania nie); zamknięta: zwykłe zdjęcie */
		/* kolejność wejścia: najpierw tło (karta się rozciąga, zdjęcie gaśnie do 10 % w 300 ms, pionowa nazwa gaśnie), potem treść: tytuł po 300 ms, wiersze 50 ms za tytułem (zasada 6) co 30 ms od góry (zasada 3); kolumny stałe, więc karta odsłania listę jak maska (zasada 17) */
		.gr-pricing-menu__group.is-open .gr-pricing-menu__label { animation: gr-pricing-in var(--gr-duration-in) var(--gr-ease) var(--gr-duration-move) backwards; }
		.gr-pricing-menu__group.is-open .gr-price-row { --row: 0; animation: gr-pricing-in var(--gr-duration-in) var(--gr-ease) calc(var(--gr-duration-move) + 50ms + var(--row) * var(--gr-stagger)) backwards; }
	}
	@keyframes gr-pricing-in { from { opacity: 0; translate: 0 var(--gr-space-2); } }



	.gr-pricing-menu__group--masaz { background: color-mix(in srgb, var(--gr-color-surface) 50%, var(--gr-color-bg)); }  /* kolory grup jak dawne karty */
	.gr-pricing-menu__group--rehabilitacja { background: color-mix(in srgb, var(--gr-color-group-rehab) 50%, var(--gr-color-bg)); }
	.gr-pricing-menu__group--cwiczenia { background: color-mix(in srgb, var(--gr-color-group-exercise) 50%, var(--gr-color-bg)); }
	.gr-pricing-menu__group > .gr-h3 + .gr-price-list { margin-top: var(--gr-space-5); }  /* tytuł grupy → pierwszy zabieg 48 (32 + wnętrze wiersza 16), więcej niż między zabiegami (32) */
	.gr-pricing-menu .gr-price-row { border-bottom: 0; }  /* w kaflach bez kresek między wierszami */
	.gr-pricing-menu .gr-price-row__price { font-size: var(--gr-text-sm); }  /* główna: cena tak duża jak czas */
	@media not (min-width: 40rem) {  /* telefon: boxy jeden pod drugim, na starcie zamknięte, u góry pas ze zdjęciem i #nazwą, tapnięcie otwiera albo zamyka box niezależnie od innych (pricing-menu.js) */
		.gr-pricing-menu__group { position: relative; isolation: isolate; overflow: clip; cursor: pointer; }
		.gr-pricing-menu__img { display: block; width: calc(100% + 2 * var(--gr-pad-card)); max-width: none; height: var(--gr-space-8); margin: calc(-1 * var(--gr-pad-card)) calc(-1 * var(--gr-pad-card)) 0; border-radius: var(--gr-radius-lg); object-fit: cover; filter: brightness(.85); transition: border-radius 0s var(--close); }  /* zamknięty: pas zaokrąglony jak box; przy zwijaniu dolne rogi zaokrąglają się w jednej klatce, gdy box jest już zwinięty (wcześniej odsłaniały jasne rogi karty pod spodem) */
		.gr-pricing-menu__group.is-open > .gr-pricing-menu__img { border-radius: var(--gr-radius-lg) var(--gr-radius-lg) 0 0; transition: border-radius 0s; }  /* otwarty: dolne rogi proste od pierwszej klatki, zanim lista zacznie rosnąć (lustro zamykania) */
		.gr-pricing-menu__group:not(:has(> .gr-pricing-menu__img)) { padding-top: var(--gr-space-8); }  /* bez zdjęcia: miejsce na pas */
		.gr-pricing-menu__group::before { content: ""; position: absolute; inset: 0 30% auto 0; height: var(--gr-space-8); background: linear-gradient(to right, color-mix(in srgb, var(--scrim) 70%, transparent) 0%, color-mix(in srgb, var(--scrim) 51.7%, transparent) 19%, color-mix(in srgb, var(--scrim) 37.9%, transparent) 34%, color-mix(in srgb, var(--scrim) 26.7%, transparent) 47%, color-mix(in srgb, var(--scrim) 19.5%, transparent) 56.5%, color-mix(in srgb, var(--scrim) 13.6%, transparent) 65%, color-mix(in srgb, var(--scrim) 8.8%, transparent) 73%, color-mix(in srgb, var(--scrim) 5.2%, transparent) 80.2%, color-mix(in srgb, var(--scrim) 2.9%, transparent) 86.1%, color-mix(in srgb, var(--scrim) 1.5%, transparent) 91%, color-mix(in srgb, var(--scrim) 0.6%, transparent) 95.2%, color-mix(in srgb, var(--scrim) 0.1%, transparent) 98.2%, color-mix(in srgb, var(--scrim) 0%, transparent) 100%); pointer-events: none; }  /* zasada 51 */
		.gr-pricing-menu__group::after { content: "#" attr(data-name) / ""; position: absolute; inset: 0 auto auto 0; display: flex; align-items: center; height: var(--gr-space-8); padding-inline: var(--gr-pad-card); font-size: var(--gr-text-2xl); font-weight: var(--gr-weight-semibold); text-transform: lowercase; line-height: var(--gr-leading-tight); color: var(--gr-color-text-inverse); text-shadow: 0 1px var(--gr-space-1) color-mix(in srgb, var(--scrim) 50%, transparent), 0 0 var(--gr-space-2) color-mix(in srgb, var(--scrim) 40%, transparent); pointer-events: none; }
		.gr-pricing-menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* nazwa jest na pasie, nagłówek zostaje dla czytników */
		.gr-pricing-menu__group { box-shadow: var(--gr-shadow-1); transition: padding-bottom var(--close) var(--gr-ease), box-shadow var(--close) var(--gr-ease); }  /* zamknięty: mniejszy cień */
		.gr-pricing-menu__group.is-open { box-shadow: var(--gr-shadow-3); transition-duration: var(--open); }  /* otwarty: większy cień */
		.gr-pricing-menu__group:not(.is-open) { padding-bottom: 0; }  /* zamknięty box = sam pas */
		.gr-pricing-menu { --open: calc(var(--gr-duration-move) * 8 / 3); --close: calc(var(--open) * 0.8); row-gap: var(--gr-space-3); interpolate-size: allow-keywords; }  /* boxy co 16; rozwijanie spokojne: 800 ms, zwijanie 640 ms (zasada 15) */
		@supports not (interpolate-size: allow-keywords) { html:has(.gr-pricing-menu) { overflow-anchor: none; } }  /* WebKit: wyłączenie kotwiczenia z pricing-menu.js przychodzi za późno, strona podskakiwała o wysokość listy */
		[data-section="pricing"] > .gr-wrap { display: flex; flex-direction: column; }  /* opis pod boxami */
		[data-section="pricing"] .gr-tiles__heading { display: contents; }
		[data-section="pricing"] .gr-tiles__heading > .gr-section__title { margin-bottom: var(--gr-space-after-h2, var(--gr-space-4)); }
		[data-section="pricing"] .gr-tiles__heading > .gr-section__lead { order: 1; margin-top: var(--gr-space-5); }  /* boxy → opis 32 */
		.gr-pricing-menu__group > .gr-h3 + .gr-price-list { height: 0; margin-top: 0; overflow-x: visible; overflow-y: clip; visibility: hidden; opacity: 0; translate: 0 calc(-1 * var(--gr-space-2)); transition: height var(--close) var(--gr-ease-standard), opacity 0s var(--close), translate 0s var(--close), visibility var(--close); }  /* zamykanie 640 ms (zasada 15): treść zostaje i chowa się pod zwijanym boxem, gaśnie dopiero po zwinięciu (bez pustego boxu) */
		.gr-pricing-menu__group.is-open { cursor: auto; }
		.gr-pricing-menu__group.is-open > .gr-h3 + .gr-price-list { height: auto; visibility: visible; opacity: 1; translate: none; transition: height var(--open) var(--gr-ease-standard), opacity var(--open) var(--gr-ease-standard), translate var(--open) var(--gr-ease-standard), visibility 0s; }  /* otwieranie 800 ms: box rośnie z łagodnym startem i hamowaniem (zasada 22), treść wjeżdża 8 px i pojawia się razem z nim, tą samą krzywą (bez opóźnienia, które dawało mignięcie); bez osobnych wierszy, bo dawały pusty box */
		.gr-pricing-menu .gr-price-row { margin-inline: calc(-1 * var(--gr-pad-card)); padding-inline: var(--gr-pad-card); }
		.gr-pricing-menu .gr-price-row:last-child { padding-bottom: 0; }  /* ostatni wiersz bez dolnego paddingu: od tekstu do dołu karty sam padding karty, bez pustego pola */  /* wiersz na całą szerokość boxu, żeby linia sięgała krawędzi */
		.gr-pricing-menu .gr-price-row + .gr-price-row { border-top: var(--gr-border) solid color-mix(in srgb, var(--gr-color-text) 12%, var(--gr-color-line)); box-shadow: inset 0 var(--gr-border) 0 var(--gr-color-bg); }  /* linia między zabiegami, pod nią jasny cień 1 px */
		.gr-pricing-menu__toggle { display: block; }
		.gr-pricing-menu__chevron { display: flex; position: absolute; top: calc(var(--gr-space-8) / 2); right: var(--gr-pad-card); translate: 0 -50%; color: var(--gr-color-text-inverse); filter: drop-shadow(0 0 var(--gr-space-1) color-mix(in srgb, var(--scrim) 60%, transparent)); pointer-events: none; }
		.gr-pricing-menu__chevron .gr-icon { rotate: 90deg; transition: rotate var(--close) var(--gr-ease); }  /* zasada 25: strzałka w dół, po otwarciu w górę, w czasie boxu */
		.gr-pricing-menu__group.is-open .gr-pricing-menu__chevron .gr-icon { rotate: -90deg; transition-duration: var(--open); }
	}
	/* główna, „Z czym przychodzisz?”: telefon do gabinetu pod pozycjami */
	.gr-reasons__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--gr-space-2); margin: var(--gr-space-5) 0 0; }
	@media (min-width: 56rem) { .gr-reasons__more { flex-direction: column; row-gap: 0; } .gr-reasons__more > .gr-link { margin-block: calc((1lh - var(--gr-target)) / 2); } }  /* komputer: pytanie, pod nim link w następnej linii jak w jednym akapicie (pole 44 px nie dokłada odstępu) */
	.gr-reasons__call { font-variant-numeric: tabular-nums; white-space: nowrap; }

	@media (min-width: 40rem) and (not (min-width: 56rem)) { .gr-questions > .gr-section__title { white-space: nowrap; } }
	@media (min-width: 40rem) { .gr-grid--2:has(> .gr-questions) > .gr-hide-sm { gap: 0; } .gr-grid--2:has(> .gr-questions) .gr-review blockquote p { font-size: var(--gr-text-xl); line-height: var(--gr-leading-snug); text-wrap: pretty; } }
	@media (min-width: 40rem) { .gr-grid--2:has(> .gr-questions) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gr-space-columns); } }  /* tablet: jedna opinia z lewej, pytania z prawej */
	@media not (min-width: 40rem) { .gr-section > .gr-grid--2 { row-gap: calc(var(--gr-pad-same) * 2); } }
	.gr-section--dark :is(.gr-section__title, .gr-section__lead a) { color: var(--gr-color-text-inverse); }  /* sekcja na granacie: tytuł i link białe, wstęp przygaszony */
	.gr-section--dark .gr-section__lead { color: var(--gr-color-text-inverse-muted); }
	.gr-reviews--on-surface .gr-review { background: var(--gr-color-bg); }
	.gr-reviews--on-surface .gr-review .gr-ring { background: var(--gr-color-surface); }  /* biała karta: kółko z mgły jak bazowe .gr-ring */
	.gr-wrap > .gr-questions { max-width: var(--gr-measure); }
	.gr-section:has(.gr-scroll) { overflow-x: clip; container-type: inline-size; }  /* cqw = szerokość sekcji bez paska przewijania (vw go wlicza: 7,5 px w porównywarce i na Windowsie) */

	.gr-reviews--scroll { grid-auto-columns: 85cqw; }
	.gr-scroll { grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(50% - 50cqw); padding-inline: var(--gr-bleed-inset); padding-block: var(--gr-space-7); margin-block: calc(-1 * var(--gr-space-7));  /* miejsce na cień karty po najechaniu (ok. 54 px), odstępy jak bez niego */ scroll-padding-inline: var(--gr-bleed-inset); scrollbar-width: none; translate: var(--pull, 0px) 0; transition: translate var(--gr-duration-move) var(--gr-ease); }
	.gr-scroll:is(.is-held, .is-dragging) :is(.gr-card--link, .gr-post-row) { scale: 1; }  /* przeciąganie rzędu to nie klik: bez powiększenia i wciśnięcia */
	/* klikalna karta: wejście 250, wyjście 200 (w regułach bazowych), wciśnięcie 150; zasady 1, 2, 4, 15 */
	.gr-card--link:is(:hover, :focus-visible), .gr-card--link:is(:hover, :focus-visible)::before, .gr-card--link:is(:hover, :focus-visible) :is(.gr-menu-card__more, .gr-ring) { transition-duration: var(--gr-duration-in); }
	.gr-card--link:active { transition-duration: var(--gr-duration-fast); }
	.gr-card--link:is(:hover, :focus-visible) .gr-menu-card__more { transition-delay: var(--gr-duration-fast); }  /* kreska pod linkiem chwilę po karcie; chowa się bez opóźnienia */
	/* peek: --peek kart od krawędzi treści do krawędzi ekranu, ostatnia w połowie */
	@media (min-width: 40rem) { .gr-reviews--scroll { --peek: 1.5; grid-auto-columns: calc((100cqw - var(--gr-bleed-inset) - (var(--peek) - 0.5) * var(--gr-space-4)) / var(--peek)); } }
	@media (min-width: 56rem) { .gr-reviews--scroll { grid-auto-columns: calc((100cqw - var(--gr-bleed-inset) - (var(--peek) - 0.5) * var(--gr-space-5)) / var(--peek)); } }
	@media (min-width: 64rem) { .gr-reviews--scroll { --peek: 2.5; } }
	@media (min-width: 88rem) { .gr-reviews--scroll { --peek: 3.5; } }  /* więcej = za wąskie i za wysokie karty */
	@media (min-width: 112rem) { .gr-reviews--scroll { --peek: 4.5; } }  /* rząd na cały ekran: karta ok. 360-480 px na każdej szerokości */
	@media (min-width: 136rem) { .gr-reviews--scroll { --peek: 5.5; } }
	@media (min-width: 160rem) { .gr-reviews--scroll { --peek: 6.5; } }
	.gr-scroll::-webkit-scrollbar { display: none; }
	.gr-scroll > * { scroll-snap-align: start; scroll-snap-stop: always; }  /* jeden swipe = jedna karta */
	@media not (min-width: 40rem) { .gr-scroll { grid-auto-columns: 75cqw; column-gap: var(--gr-space-4); } }  /* telefon: kolejna karta wystaje ok. 25% */
	.gr-slider-dots { display: flex; justify-content: center; gap: var(--gr-space-2); margin-top: var(--gr-space-5); }  /* kropki: która opinia na ekranie (slider.js) */
	.gr-slider-dots > * { position: relative; padding: 0; border: 0; cursor: pointer; }
	.gr-slider-dots > *::before { content: ""; position: absolute; inset: calc(-1 * var(--gr-space-2)) calc(-1 * var(--gr-space-1)); }  /* pole kliknięcia 24 px wysokości (WCAG 2.5.8) przy kropce 8 */
	.gr-slider-dots > * { width: var(--gr-space-2); height: var(--gr-space-2); border-radius: var(--gr-radius-pill); background: var(--gr-color-link); opacity: .65; transition: width var(--gr-duration-move) var(--gr-ease-move), opacity var(--gr-duration-move) var(--gr-ease-move); }  /* granat .65: min. 3:1 na białym i mgle (WCAG 1.4.11) */
	.gr-slider-dots > .is-active { width: var(--gr-space-4); opacity: 1; }
	.gr-slider-dots > :hover { opacity: .85; }
	[data-section="reviews"] .gr-slider-nav { display: none; }  /* opinie: bez strzałek, sterowanie kropkami i gestem */
	[data-slider].is-static .gr-scroll { padding-inline-end: var(--gr-gutter); }  /* rząd mieści się na ekranie: bez przewijania */
	[data-slider].is-static :is(.gr-slider-dots, .gr-slider-nav) { display: none; }
	[data-slider]:not(.is-static) .gr-scroll { mask-image: linear-gradient(to right, transparent, #000 var(--gr-gutter), #000 calc(100% - var(--gr-gutter)), transparent); }  /* wygaszone krawędzie: rząd wychodzi poza ekran */
	@media (min-width: 75rem) { .gr-tiles.gr-scroll:not(:has(> :nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; cursor: auto; } }  /* do 4 kart: ściśnięte w szerokości treści, bez slidera */
	.gr-scroll.is-nudge > * { animation: gr-nudge calc(var(--gr-duration-move) * 3) var(--gr-ease-move); }
	@keyframes gr-nudge { 40% { translate: calc(-1 * var(--gr-space-2)) 0; } }  /* 8 px */
	.gr-scroll.is-dragging { scroll-snap-type: none; }
	.gr-scroll.is-held { transition: none; }  /* trzymana karta jedzie za kursorem bez wygładzania */
	@media (pointer: fine) { .gr-scroll { cursor: grab; } .gr-scroll.is-dragging { cursor: grabbing; } }  /* slider.js */
	.gr-slider-nav { display: flex; gap: var(--gr-space-2); height: 0; align-items: center; }
	@media not (min-width: 40rem) { [data-section="reviews"] .gr-slider-nav { display: none; } }
	@media not (min-width: 40rem) { .gr-review blockquote p { hyphens: auto; hyphenate-limit-chars: 6 3 3; } }  /* zasada 49, próba: telefon, treść opinii dzielona po polsku (lang="pl-PL"), słowa od 6 liter, min. 3 litery przy łączniku */  /* telefon: opinie przesuwa palec (natywne przewijanie, WCAG 2.5.7 go nie obejmuje), kropki i wystająca karta zostają */
	.gr-tiles__heading:not(:has(> .gr-section__title)) { margin-bottom: var(--gr-space-5); }  /* wiersz wstępu albo pigułek ze strzałkami: tekst → karty 32, jak karty → kropki */
	.gr-slider-nav > button { --gr-ring: var(--gr-target); }  /* strzałki 44 px: pole dotyku z listy kontrolnej (zasady slidera, 4) */
	.gr-slider-nav > button { border: 0; cursor: pointer; transition: scale var(--gr-duration-fast) var(--gr-ease), background-color var(--gr-duration-fast) var(--gr-ease), color var(--gr-duration-fast) var(--gr-ease); }
	.gr-slider-nav > button:active { scale: var(--gr-scale-press); }  /* wciśnięcie 0,97 jak przyciski */
	.gr-slider-nav > button[data-dir="-1"] .gr-icon { rotate: 180deg; }
	.gr-slider-nav .gr-icon { width: var(--gr-space-3); height: var(--gr-space-3); }  /* 16 równe, było 1,25em = 16,7 */
	@media not (min-width: 40rem) {
		.gr-tiles__heading:has(.gr-slider-nav) { flex-wrap: nowrap; }
		.gr-slider-nav > button { position: relative; }
		.gr-slider-nav > button::before { content: ""; position: absolute; inset: calc((var(--gr-space-5) - var(--gr-target)) / 2); }
	}
	@media (hover: hover) { .gr-slider-nav > button:hover:not([aria-disabled="true"]) { background: var(--gr-color-surface-dark); color: var(--gr-color-text-inverse); } }
	@media (hover: hover) { .gr-section--dark .gr-slider-nav > button:hover:not([aria-disabled="true"]) { background: var(--gr-color-accent); } }  /* na granacie granat by znikł */
	.gr-slider-nav > button[aria-disabled="true"] { opacity: 0.4; cursor: default; scale: none; }  /* koniec rzędu: strzałka bez celu */
	@media (min-width: 40rem) {  /* 2-3 opinie: slider tylko na telefonie */
		.gr-reviews--scroll.gr-reviews--row { grid-auto-flow: row; overflow-x: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; cursor: auto; }
		[data-slider]:has(.gr-reviews--row) :is(.gr-slider-nav, .gr-slider-dots) { display: none; }
	}
	@media (min-width: 56rem) {
		.gr-reviews--scroll.gr-reviews--row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
		.gr-faq-photo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gr-space-columns); align-items: start; }
	}
	.gr-frame { position: relative; isolation: isolate; margin: 0 0 var(--gr-space-4); }
	.gr-frame img { display: block; width: 100%; height: auto; border-radius: var(--gr-radius-lg); box-shadow: var(--gr-shadow-1); }  /* bez niebieskiej ramki, cień jak karty */
	@media (min-width: 40rem) { .gr-therapist > .gr-frame { margin-bottom: 0; } }
	@media (min-width: 56rem) { .gr-faq-photo > .gr-frame { margin-bottom: 0; } }  /* na komputerze bez marginesu: pytania obok zdjęcia */
}

@layer sections {
	@media (min-width: 40rem) { #posts { scroll-margin-top: 100vh; } }  /* komputer: paginacja zostaje u góry strony; telefon: skok do listy (scroll-padding w base.css) */
	.gr-post-row { position: relative; display: grid; grid-template-columns: var(--gr-space-8) 1fr; gap: var(--gr-space-3); align-items: start; padding-block: var(--gr-space-4); }  /* bez kresek między wpisami */
	.gr-post-row { transition: scale var(--gr-duration-out) var(--gr-ease); }  /* jak klikalna karta, bez pudełka: tylko powiększenie i wciśnięcie */
	@media (prefers-reduced-motion: no-preference) { @media (hover: hover) { .gr-post-row:is(:hover, :focus-within) { scale: var(--gr-scale-hover); transition-duration: var(--gr-duration-in); } } .gr-post-row:active { scale: var(--gr-scale-press); transition-duration: var(--gr-duration-fast); } }
	.gr-post-row:first-child { padding-top: 0; }
	.gr-post-row__photo { aspect-ratio: 1; border-radius: var(--gr-radius-sm); overflow: hidden; background: var(--gr-color-surface); box-shadow: var(--gr-shadow-2); }
	.gr-post-row__photo img { width: 100%; height: 100%; object-fit: cover; }
	.gr-post-row__text { grid-column: 2; display: flex; flex-direction: column; gap: var(--gr-space-2); max-width: var(--gr-measure); }
	.gr-post-row__text > * { margin: 0; }
	.gr-post-row__title { font-size: var(--gr-text-lg); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-semibold); text-wrap: pretty; }  /* własna reguła zamiast .gr-h3: tytuł zmienia rozmiar z szerokością (telefon i wpis 26), a wzory z warstwy utilities wygrywają z regułami */
	.gr-post-row__title { --link-color: var(--gr-color-text); }
	.gr-post-row__title a { -webkit-tap-highlight-color: transparent; }  /* iPhone: bez szarej plamy przy dotknięciu (wyglądała jak czarne podkreślenie) */
	.gr-post-row__title a::after { content: ""; position: absolute; inset: 0; }  /* cały wiersz klikalny, w czytniku jeden link z tytułem */
	.gr-post-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gr-space-2) var(--gr-space-3); }  /* data, potem temat, w jednym rzędzie nad tytułem (kolejność z HTML) */
	.gr-post-row time { font-size: var(--gr-text-sm); color: var(--gr-color-text-muted); }
	.gr-post-row p { color: var(--gr-color-text-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
	.gr-post-row__topic { position: relative; z-index: 1; }
	.gr-post-row__topic::before { content: ""; position: absolute; inset: calc((var(--gr-space-5) - var(--gr-target)) / 2) 0; }
	.gr-post-row__topic { font-size: var(--gr-text-base); }  /* temat: pogrubiony link (.gr-link--reveal) zamiast pigułki, rozmiar jak data */
	.gr-post-row__title a:focus-visible { color: var(--gr-color-link); outline: 0; }  /* obwódkę dostaje cały wiersz */
	@media (hover: hover) { .gr-post-row:hover .gr-post-row__title a { color: var(--gr-color-link); } }  /* najechanie na wiersz: tytuł zmienia kolor, bez kreski */
	.gr-post-row__title a.is-tapped { color: var(--gr-color-link); }
	.gr-post-row:has(:focus-visible) { outline: var(--gr-focus-ring) solid var(--gr-color-focus); outline-offset: var(--gr-space-1); }

	@media not (min-width: 40rem) {
		.gr-post-row { grid-template-columns: 1fr; row-gap: var(--gr-space-2); padding-block: var(--gr-space-5); }  /* zdjęcie → data i temat 8 */
		.gr-post-row__photo { aspect-ratio: 16 / 9; border-radius: var(--gr-radius-lg); }
		.gr-post-row__text { grid-column: 1; }  /* pod zdjęciem: data i temat, tytuł, zajawka */
		.gr-post-row__title { font-size: var(--gr-text-xl); line-height: var(--gr-leading-tight); letter-spacing: var(--gr-tracking-tight); }
	}
	@media (min-width: 56rem) {
		.gr-post-row { grid-template-columns: calc(var(--gr-space-8) * 2 + var(--gr-space-6)) 1fr; gap: var(--gr-space-5); align-items: center; padding-block: var(--gr-space-5); }
		.gr-post-row__photo { aspect-ratio: 4 / 3; border-radius: var(--gr-radius-lg); }
		.gr-post-row__title { font-size: var(--gr-text-xl); }

		:is(.blog, .category) .gr-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gr-space-columns); }
		:is(.blog, .category) .gr-post-row:nth-child(2) { padding-top: 0; }
		:is(.blog, .category, .gr-post__recent) .gr-post-row { grid-template-columns: calc(var(--gr-space-8) * 2) 1fr; gap: var(--gr-space-4); }
		:is(.blog, .category, .gr-post__recent) .gr-post-row__title { font-size: var(--gr-text-lg); }
		:is(.blog, .category, .gr-post__recent) .gr-post-row__photo { aspect-ratio: 1; }  /* zdjęcia 1:1 w liście (4:5 za wysokie) */
	}

	.gr-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gr-space-2); margin: var(--gr-space-6) 0 0; padding: 0; list-style: none; }  /* na środku */

	/* telefon: tematy jako lista rozwijana zamiast pigułek, bez JS */
	.gr-topic-menu { display: none; }
	@media not (min-width: 40rem) {
		.gr-topics { width: 100%; }
		.gr-topics .gr-chips { display: none; }
		.gr-topic-menu { display: block; overflow: clip; border-radius: var(--gr-radius-lg); background: var(--gr-color-surface); text-align: left; }
		.gr-topic-menu summary { background: var(--gr-color-bg); display: flex; align-items: center; justify-content: space-between; gap: var(--gr-space-3); min-height: var(--gr-target); padding: var(--gr-space-2) var(--gr-space-3); font-weight: var(--gr-weight-semibold); list-style: none; cursor: pointer; }  /* odstępy jak pigułki: 8 / 16 */
		:is(.blog, .category) main > .gr-section { background: var(--gr-color-surface-light); }  /* telefon: cały blog na jasnym błękicie jak hero */
		:is(.blog, .category) .gr-wave-field > .gr-top { padding-bottom: var(--gr-pad-same); } :is(.blog, .category) main > .gr-section { padding-top: var(--gr-pad-same); }  /* hero i lista w tym samym kolorze: odstęp jak przy sąsiadce w tym samym kolorze */
		.gr-topic-menu summary::-webkit-details-marker { display: none; }
		.gr-topic-menu__label { font-weight: var(--gr-weight-regular); }  /* „Temat:” zwykłą czcionką, nazwa tematu pogrubiona */
		.gr-topic-menu summary .gr-icon { color: var(--gr-color-accent); transform: rotate(90deg); transition: transform var(--gr-duration-in) var(--gr-ease); }
		.gr-topic-menu[open] summary .gr-icon { transform: rotate(-90deg); }
		.gr-topic-menu ul { margin: 0; padding: 0; list-style: none; }  /* ostatni temat do dolnej krawędzi, róg z zaokrąglenia menu (overflow: clip) */
		.gr-topic-menu :focus-visible { outline-offset: calc(-1 * var(--gr-focus-ring)); }  /* fokus w środku, bo menu ucina wystające (overflow: clip) */
		.gr-topic-menu a { display: flex; align-items: center; min-height: var(--gr-target); padding: var(--gr-space-2) var(--gr-space-3); color: var(--gr-color-text); font-weight: var(--gr-weight-semibold); text-decoration: none; }
		.gr-topic-menu a:hover { background: var(--gr-color-pill-hover); }
		.gr-topic-menu a[aria-current] { background: var(--gr-color-surface-dark); color: var(--gr-color-text-inverse); }
	}
	.gr-pagination .gr-pill { justify-content: center; min-width: var(--gr-target); text-decoration: none; }
	.gr-pagination a.gr-pill:hover { background: var(--gr-color-pill-hover); color: var(--gr-color-link); }  /* bez podkreślenia, hover tłem */
	:is(.gr-pagination, .gr-chips) .gr-pill[aria-current] { background: var(--gr-color-surface-dark); color: var(--gr-color-text-inverse); }

	.gr-post__hero { padding-block: 0 var(--gr-space-8); }  /* wyższe hero */
	/* telefon: hero kończy się na dole ekranu (100svh bez przyklejonego nagłówka), podpis autorki stoi przy dolnej krawędzi hero */
	@media not (min-width: 40rem) {
		.gr-post__hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--gr-header-height)); padding-bottom: var(--gr-gutter); }  /* pod podpisem tyle samo co po bokach */
		.gr-post__hero > .gr-wrap { flex: 1; display: grid; width: 100%; }
	}
	.gr-post__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--gr-color-surface) 80%, transparent); }  /* po zdjęciu w kolejności, więc nad nim; 80%, dolna granica AA dla szarego tekstu to 75% */
	.gr-post__hero .gr-crumbs { background: none; margin-bottom: var(--gr-space-7); }
	.gr-post__summary { display: flex; flex-direction: column; max-width: var(--gr-measure); margin-inline: auto; }  /* 65ch na środku, tekst od lewej, jak treść */
	.gr-post__summary > * { margin: 0; }
	.gr-post__summary > * + * { margin-top: var(--gr-space-4); }
	.gr-post__summary .gr-post-row__meta > time + span { padding-left: var(--gr-space-3); border-left: var(--gr-border) solid var(--gr-color-text-muted); }  /* delikatna kreska między datą a czasem czytania */

	.gr-post__summary .gr-byline { display: flex; align-items: center; gap: var(--gr-space-2); margin: var(--gr-space-6) 0 0; font-size: var(--gr-text-sm); }
	.gr-post__summary .gr-byline > span { flex: 1; min-width: 0; }
	.gr-post__summary .gr-byline img { width: var(--gr-space-5); height: var(--gr-space-5); border-radius: var(--gr-radius-pill); object-fit: cover; }
	.gr-byline__line:nth-child(3)::before { content: "· "; }
	@media not (min-width: 40rem) {
		.gr-post__summary .gr-byline { column-gap: var(--gr-space-3); margin-top: auto; padding-top: var(--gr-space-6); }
		.gr-byline__line { display: block; }
		.gr-byline__line:nth-child(3)::before { content: none; }
		.gr-post__summary .gr-byline img { width: var(--gr-space-7); height: var(--gr-space-7); }  /* na wysokość trzech linii */
	}
	.gr-post__title { max-width: 20ch; font-size: var(--gr-text-2xl); line-height: var(--gr-leading-tight); font-weight: var(--gr-weight-semibold); letter-spacing: var(--gr-tracking-tight); text-wrap: balance; overflow-wrap: break-word; }
	.gr-post__lead { font-size: var(--gr-text-lg); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-semibold); }  /* wstęp pogrubiony, w kolorze tekstu */
	@media not (min-width: 40rem) { .gr-post__lead { font-size: var(--gr-text-md); } }  /* telefon: wstęp 18 px */
	.gr-post__body, .gr-contents ol { font-size: var(--gr-text-md); }
	.gr-post__body img { height: auto; border-radius: var(--gr-radius-lg); }

	.gr-contents { max-width: var(--gr-measure); margin: 0 auto; border: 0; }  /* bez ramki i tła */
	.gr-contents details { border: 0; }  /* bez kresek FAQ między pozycjami */
	.gr-contents summary { font-size: var(--gr-text-lg); }  /* „Spis treści” 24 px */
	.gr-contents summary .gr-icon { transform: rotate(90deg); }  /* chevron w dół, po otwarciu w górę (zamiast plusa FAQ) */
	.gr-contents details[open] summary .gr-icon { transform: rotate(-90deg); }
	.gr-contents ol { margin: 0 0 var(--gr-space-4); padding-left: var(--gr-space-4); }
	.gr-contents li + li { margin-top: var(--gr-space-2); }
	@media not (min-width: 40rem) {
		.gr-contents li + li { margin-top: 0; }
		.gr-contents a { display: block; padding-block: var(--gr-space-1); }
	}
	.gr-post__body h2[id] { scroll-margin-top: max(var(--gr-space-1), 25svh - var(--gr-header-height) - var(--gr-space-3)); }
	.gr-post__body, .gr-author { max-width: var(--gr-measure); margin-inline: auto; }
	.gr-contents + .gr-post__body { margin-top: var(--gr-space-6); }
	.single-post main { --gr-measure: var(--gr-measure-post); }
	.single-post main .gr-wrap { max-width: calc(var(--gr-measure) + var(--gr-gutter) * 2); }  /* cały wpis w 65ch, także „Ostatnie wpisy” */
	.single-post .gr-crumbs ol { font-size: var(--gr-text-base); }  /* 65ch liczone z 16 px jak treść, inaczej okruszki (15 px) mają węższą kolumnę i odjeżdżają w prawo */
	.single-post .gr-crumbs li { font-size: var(--gr-text-sm); }
	.single-post .gr-crumbs li:last-child a { font-weight: var(--gr-weight-semibold); }
	.gr-crumbs [aria-current="page"] { font-weight: var(--gr-weight-semibold); color: var(--gr-color-link); }

	.gr-author { --author-photo: calc(var(--gr-space-8) * 2); --author-top: calc(var(--gr-text-xl) * var(--gr-leading-tight) / 2 + var(--gr-space-4)); position: relative; display: flow-root; margin-top: calc(var(--gr-space-8) + var(--gr-space-6)); padding: var(--author-top) var(--gr-space-5) var(--gr-space-5); border-radius: var(--gr-radius-lg); background: var(--gr-color-surface); }
	.gr-author > * { margin: 0; }
	.gr-author > * + :not(.gr-author__photo, .gr-author__head) { margin-top: var(--gr-space-3); }
	.gr-author__photo { position: absolute; top: calc(var(--author-top) + var(--gr-text-lg) * var(--gr-leading-snug) - var(--author-photo)); right: var(--gr-space-5); width: var(--author-photo); aspect-ratio: 1; border-radius: var(--gr-radius-pill); object-fit: cover; outline: calc(var(--gr-space-8) * 5 / 120) solid var(--gr-color-accent); outline-offset: calc(var(--gr-space-8) * -5 / 120); }
	@media not (min-width: 40rem) { .gr-author { --author-photo: var(--gr-space-8); } .gr-author__photo { top: calc(var(--author-top) - var(--author-photo) - var(--gr-space-3)); } }
	.gr-author__head { position: absolute; left: var(--gr-space-5); bottom: calc(100% - var(--gr-text-xl) * var(--gr-leading-tight) / 2); display: flex; flex-direction: column; gap: var(--gr-space-3); }
	.gr-author__title { font-size: var(--gr-text-xl); line-height: var(--gr-leading-tight); font-weight: var(--gr-weight-semibold); }
	.gr-author .gr-wave { margin: 0; }
	.gr-author .gr-author__text { margin-top: 0; }
	@media (min-width: 40rem) { .gr-author__text > .gr-h3 { max-width: calc(100% - var(--author-photo) - var(--gr-space-3)); } }
	.gr-author__text > * { margin: 0; }
	.gr-author__text > * + * { margin-top: var(--gr-space-3); }
	:is(.gr-author p, .gr-therapist__course) .gr-link { display: inline; min-height: 0; }  /* link w akapicie opisu; w tekście bez wymogu 44 px (WCAG 2.5.8, wyjątek dla linków w zdaniu) */
	:is(.gr-author p, .gr-therapist__course) .gr-link .gr-icon { display: inline-block; vertical-align: middle; margin-inline-end: var(--gr-space-2); }  /* 8 od tekstu jak gap w linku flex */
	.gr-post .gr-author .gr-btns { margin-top: var(--gr-space-5); }
	.gr-posts__all { margin-top: var(--gr-space-4); }
	/* główna, „Z bloga”: trzy wpisy w rzędzie, karta wpisu w pionie (zdjęcie 16:9 nad tekstem); telefon: rząd przewijany */
	.gr-posts--row { display: grid; }
	.gr-posts--row .gr-post-row { grid-template-columns: 1fr; row-gap: var(--gr-space-2); padding-block: 0; align-content: start; }  /* krótsza karta: tekst zaraz pod zdjęciem */
	.gr-posts--row .gr-post-row__photo { aspect-ratio: 16 / 9; border-radius: var(--gr-radius-lg); }
	.gr-posts--row .gr-post-row__text { grid-column: 1; }
	.gr-posts--row .gr-post-row__title { font-size: var(--gr-text-lg); line-height: var(--gr-leading-snug); letter-spacing: var(--gr-tracking-snug); }  /* tytuł karty jak .gr-h3 (interlinia 1,3), nie 1,1 z dużego tytułu listy bloga na telefonie */
	@media (min-width: 40rem) { [data-slider].gr-visit > .gr-scroll { overflow: visible; margin-inline: 0; margin-bottom: 0; padding-inline: 0; padding-block: 0; scroll-snap-type: none; cursor: auto; translate: none; } }  /* oś kroków: rząd przewijany tylko na telefonie */
	@media (min-width: 40rem) { [data-slider] .gr-posts--row.gr-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gr-gap-items); overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; cursor: auto; } }  /* karty bez pudełka: 40 jak siatka pozycji */  /* [data-slider]: wygrywa z wcięciem .is-static (siatka, nie slider) */
}

/* blog: przełączanie tematów (docs/animacje-ui-20-zasad-26-11-07.md): View Transitions między stronami, bez JS */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:is(.blog, .category) .gr-chips li:nth-child(1) .gr-pill { view-transition-name: gr-chip-1; }
:is(.blog, .category) .gr-chips li:nth-child(2) .gr-pill { view-transition-name: gr-chip-2; }
:is(.blog, .category) .gr-chips li:nth-child(3) .gr-pill { view-transition-name: gr-chip-3; }
:is(.blog, .category) .gr-chips li:nth-child(4) .gr-pill { view-transition-name: gr-chip-4; }
:is(.blog, .category) .gr-chips li:nth-child(5) .gr-pill { view-transition-name: gr-chip-5; }
:is(.blog, .category) .gr-chips li:nth-child(6) .gr-pill { view-transition-name: gr-chip-6; }

::view-transition-group(*) { animation-duration: var(--gr-duration-in); animation-timing-function: var(--gr-ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; width: auto; left: 50%; translate: -50% 0; animation-duration: var(--gr-duration-in); animation-timing-function: var(--gr-ease); }

/* strony zwykłe: O gabinecie */
@layer sections {
	.gr-courses-band { padding-block: var(--gr-space-5); }  /* wąski pas, nie pełna sekcja */
	.gr-more-courses { max-width: calc(var(--gr-measure) * 1.4); margin-inline: auto; text-align: center; color: var(--gr-color-text-inverse-muted); }
	.gr-more-courses b { color: var(--gr-color-text-inverse); font-weight: var(--gr-weight-semibold); }
	.gr-scans { --scan-h: calc(var(--gr-space-8) * 4); display: flex; gap: var(--gr-space-5); }
	@media not (min-width: 40rem) { .gr-scans { --scan-h: calc(var(--gr-space-8) * 2); gap: var(--gr-space-3); } }
	.gr-scan { all: unset; cursor: zoom-in; display: grid; align-content: start; flex: none; inline-size: min-content; font-size: var(--gr-text-sm); }
	.gr-scan img { block-size: var(--scan-h); inline-size: auto; max-inline-size: none; border-radius: var(--gr-radius-sm); box-shadow: var(--gr-shadow-2); background: var(--gr-color-bg); }  /* klikalny: cień jak .gr-card--link */
	.gr-scan:hover img { box-shadow: var(--gr-shadow-3); }
	.gr-scan__name { font-size: var(--gr-text-base); font-weight: var(--gr-weight-semibold); }
	.gr-scan > * + * { margin-top: var(--gr-space-2); }
	.gr-scan__meta { color: var(--gr-color-text-muted); }
	.gr-scan > .gr-scan__meta { margin-top: var(--gr-space-1); }  /* nazwa i wystawca blisko siebie */
	.gr-lightbox__caption { display: grid; gap: var(--gr-space-1); margin-top: var(--gr-space-3); text-align: center; color: var(--gr-color-text-inverse); }  /* ten sam podpis co pod miniaturą, na ciemnym tle okienka */
	.gr-lightbox__caption .gr-scan__meta { margin: 0; font-size: var(--gr-text-sm); color: var(--gr-color-text-inverse-muted); }
	@media (min-width: 56rem) { .gr-help > .gr-wrap > :is(.gr-wave, .gr-section__title) { margin-inline: auto; text-align: center; } }
	@media (min-width: 56rem) { [data-section="conditions"] > .gr-wrap > :is(.gr-wave, .gr-section__title) { margin-inline: auto; text-align: center; } }  /* komputer: fala i tytuł „Kiedy stosuję” na środku */  /* komputer: fala i tytuł „W czym pomagam” na środku */
	.gr-quote { font-size: var(--gr-text-xl); line-height: var(--gr-leading-snug); font-weight: var(--gr-weight-semibold); }
	.gr-quote ~ p { margin-top: var(--gr-space-3); }  /* pas kontaktu zeruje marginesy akapitów */

	.gr-facts-band { padding-block: var(--gr-pad-same); }  /* niższy pas faktów na O gabinecie */
	.gr-room { padding-bottom: 0; }
	@media (min-width: 56rem) {  /* o-gabinecie, komputer: fala i tytuł dyplomów oraz gabinetu na środku; strzałki dyplomów zostają po prawej */
		:is([aria-labelledby="gr-diplomas"], .gr-room) > .gr-wrap > .gr-wave { margin-inline: auto; }
		.gr-room > .gr-wrap > .gr-section__title { text-align: center; }
		[aria-labelledby="gr-diplomas"] > .gr-wrap > .gr-tiles__heading { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
		[aria-labelledby="gr-diplomas"] .gr-tiles__heading > .gr-section__title { grid-column: 2; text-align: center; }
		[aria-labelledby="gr-diplomas"] .gr-tiles__heading > .gr-slider-nav { grid-column: 3; justify-self: end; }
	}
	@media (min-width: 56rem) and (not (min-width: 75rem)) { .gr-room .gr-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }  /* cztery punkty: 2 × 2, od 1200 w jednym rzędzie */
	@media (min-width: 75rem) { .gr-room .gr-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }  /* pas zdjęć domyka sekcję, pod nim tylko jego własny odstęp */
	/* pas zdjęć gabinetu na pełną szerokość, przesuwa się bez końca; najechanie zatrzymuje */
	.gr-gallery { --gallery-h: calc(var(--gr-space-8) * 3); overflow: hidden; margin-top: var(--gr-space-6); padding-block: var(--gr-space-4); }
	.gr-room:has(+ .gr-section--surface) .gr-gallery { background: linear-gradient(var(--gr-color-bg) 50%, var(--gr-color-surface) 50%); }  /* pas zdjęć na styku sekcji: górna połowa na bieli, dolna na błękicie sekcji niżej (odstęp góra = dół, więc 50% to środek zdjęć) */
	.gr-room:has(+ .gr-section--surface) .gr-gallery { margin-top: calc(var(--gr-pad-same) * 2 - var(--gr-space-4)); }  /* pas zdjęć jak osobna sekcja: od treści do zdjęć dół sekcji + góra następnej w tym samym kolorze (2 × pad-same), licząc odstęp 24 pasa */
	.gr-room + .gr-section--surface { padding-top: calc(var(--gr-pad-same) * 2 - var(--gr-space-4)); }  /* od zdjęć do treści niżej jak góra sekcji */
	@media not (min-width: 40rem) { .gr-gallery { --gallery-h: calc(var(--gr-space-8) * 2); } }
	.gr-gallery__track { display: flex; width: max-content; }
	.gr-gallery ul { display: flex; gap: var(--gr-space-3); padding-inline-end: var(--gr-space-3); }
	.gr-gallery img { display: block; block-size: var(--gallery-h); inline-size: auto; border-radius: var(--gr-radius-sm); }
	.gr-gallery button { all: unset; display: block; cursor: zoom-in; border-radius: var(--gr-radius-sm); }
	:is(.gr-scan, .gr-gallery button):focus-visible { outline: var(--gr-border-strong) solid var(--gr-color-focus); outline-offset: var(--gr-space-1); }
	@media (prefers-reduced-motion: no-preference) {
		.gr-gallery__track { animation: gr-marquee 60s linear infinite; }
		.gr-gallery:is(:hover, :has(:focus-visible)) .gr-gallery__track { animation-play-state: paused; }  /* mysz albo fokus na zdjęciu: pas stoi */
		@keyframes gr-marquee { to { transform: translateX(-50%); } }
	}
	@media (prefers-reduced-motion: reduce) { .gr-gallery { overflow-x: auto; } .gr-gallery ul[aria-hidden] { display: none; } }
}

/* strony zwykłe: page.php (polityka) */
@layer sections {
	.gr-wave-field + .gr-post > .gr-section:first-child { padding-top: var(--gr-pad-same); }  /* treść bliżej hero, wyjątek od pad-edge przy innym kolorze (Tomek 22.11, picker) */
}


/* metoda, „Kiedy stosuję” na telefonie i jeden kafel zabiegu na komputerze (picker 27.11, P290) */
@layer sections {
	@media not (min-width: 40rem) {
		[data-section="conditions"] .gr-prose .gr-stack > li + li { margin-top: var(--gr-space-3); }  /* 16 między hasłami */
		[data-section="conditions"] .gr-how-it-works__figure img:not(.gr-engraving--wide) { aspect-ratio: 1; object-fit: cover; object-position: top; mask-image: linear-gradient(to bottom, #000 70%, transparent), linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }  /* pionowa rycina w kwadracie, dół wygaszony */
	}
	@media not (min-width: 40rem) {  /* telefon, jeden zabieg: fala i tytuł na środku (P305) */
		[data-section="related"]:not([data-slider]) > .gr-wrap > .gr-wave { margin-inline: auto; }
		[data-section="related"]:not([data-slider]) .gr-section__title { align-self: center; text-align: center; }
	}
	@media (min-width: 56rem) {  /* komputer, główna: nagłówek opinii na środku, strzałki zostają z prawej */
		[data-section="reviews"] > .gr-wrap > .gr-wave { margin-inline: auto; }
		[data-section="reviews"] > .gr-wrap > .gr-tiles__heading:has(> .gr-section__title) { justify-content: center; text-align: center; }
		[data-section="reviews"] > .gr-wrap > .gr-tiles__heading:has(> .gr-section__lead) { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
		[data-section="reviews"] .gr-tiles__heading > .gr-section__lead { grid-column: 2; text-align: center; }
		[data-section="reviews"] .gr-tiles__heading > .gr-slider-nav { grid-column: 3; justify-self: end; }
	}
	@media (min-width: 56rem) {
		[data-section="related"].is-few > .gr-wrap > .gr-wave { margin-inline: auto; }
		[data-section="related"].is-few .gr-tiles__heading { flex-direction: column; align-items: center; text-align: center; }
		[data-section="related"]:not([data-slider]) .gr-tiles { max-width: calc(var(--gr-space-8) * 5); margin-inline: auto; }  /* jeden zabieg: kafel 480 na środku */
	}
}

/* „Kto prowadzi”: imię w granatowym narożniku lewego dolnego rogu zdjęcia, połowa imienia nad krawędzią z obrysem jak kreska fali (picker 27.11, P292-P307; od P307 też komputer) */
@layer sections {
	@media (min-width: 40rem) {  /* tablet i komputer: granatowy narożnik */
		.gr-therapist__photo > .gr-therapist__name { position: absolute; z-index: 2; left: 0; bottom: 0; --r: var(--gr-radius-lg); margin: 0; padding: 0 var(--gr-space-3) var(--gr-space-2); border-radius: 0 var(--r) 0 var(--r); background: var(--gr-color-surface-dark); }
		.gr-therapist__name .gr-mark { padding: 0; }
		.gr-therapist__name strong { display: block; font-size: var(--gr-text-xl); translate: 0 -50%; margin-bottom: -0.5lh; --o: var(--gr-space-1); --d: calc(var(--o) * .7071); --a: calc(var(--o) * .9239); --b: calc(var(--o) * .3827); --c: var(--gr-color-surface-dark); text-shadow: var(--o) 0 var(--c), calc(-1 * var(--o)) 0 var(--c), 0 var(--o) var(--c), 0 calc(-1 * var(--o)) var(--c), var(--d) var(--d) var(--c), calc(-1 * var(--d)) var(--d) var(--c), var(--d) calc(-1 * var(--d)) var(--c), calc(-1 * var(--d)) calc(-1 * var(--d)) var(--c), var(--a) var(--b) var(--c), calc(-1 * var(--a)) var(--b) var(--c), var(--a) calc(-1 * var(--b)) var(--c), calc(-1 * var(--a)) calc(-1 * var(--b)) var(--c), var(--b) var(--a) var(--c), calc(-1 * var(--b)) var(--a) var(--c), var(--b) calc(-1 * var(--a)) var(--c), calc(-1 * var(--b)) calc(-1 * var(--a)) var(--c); }  /* okrągły obrys 4 (grubość kreski fali) */
		.gr-therapist__name .gr-therapist__role { display: block; margin-top: var(--gr-space-3); font-size: var(--gr-text-body); }  /* 16 pod imieniem */
		/* styki ze zdjęciem: zaokrąglone wcięcie o promieniu narożnika, sam granat */
		.gr-therapist__name::before, .gr-therapist__name::after { content: ""; position: absolute; width: var(--r); aspect-ratio: 1; background: radial-gradient(circle at 100% 0, transparent var(--r), var(--gr-color-surface-dark) var(--r)); }
		.gr-therapist__name::before { left: 0; bottom: 100%; }
		.gr-therapist__name::after { left: 100%; bottom: 0; }
	}
	@media not (min-width: 40rem) {  /* telefon: podpis pod zdjęciem, bez bloku (wariant A z kanwy, 30.11) */
		.gr-therapist__photo > .gr-therapist__name { margin-top: var(--gr-space-3); }
		.gr-therapist__name .gr-mark { padding: 0; background: none; color: inherit; }
		.gr-therapist__name strong { display: block; font-size: var(--gr-text-lg); }
		.gr-therapist__name .gr-therapist__role { display: block; margin-top: var(--gr-space-1); font-size: var(--gr-text-body); color: var(--gr-color-text-muted); }
	}
	.gr-therapist__text > .gr-therapist__name br { display: none; }  /* <br> między imieniem a zawodem robił pustą linię (każda szerokość) */
	@media not (min-width: 40rem) { .gr-therapist__text > .gr-therapist__name strong { font-size: var(--gr-text-xl); } .gr-therapist__text > .gr-therapist__name .gr-therapist__role { margin-top: 0; } }  /* telefon, główna: imię większe, zawód tuż pod nim jak na komputerze */
	@media (min-width: 56rem) {  /* komputer, imię w tekście (bez zdjęcia, główna): imię bez przesunięcia w górę (nie wchodzi na tytuł), cały podpis na granacie, zawód 8 pod imieniem */
		.gr-therapist__text > .gr-therapist__name strong { translate: none; margin-bottom: 0; }
		.gr-therapist__text > .gr-therapist__name .gr-therapist__role { margin-top: 0; color: var(--gr-color-text-muted); }  /* zawód ciemnoszary na tle strony (granat .gr-mark nie leży pod blokami), tuż pod imieniem */
	}
	@media (min-width: 75rem) {  /* komputer: imię i zawód 1,5 raza większe (P309); od 1200, bo na węższym zdjęciu imię łamało się na dwa wiersze */
		.gr-therapist__name strong { font-size: calc(var(--gr-text-xl) * 1.5); }
		.gr-therapist__name .gr-therapist__role { margin-top: var(--gr-space-2); font-size: calc(var(--gr-text-body) * 1.5); }  /* 8 pod imieniem (P312) */
	}
	.gr-therapist__text > .gr-section__title + * { margin-top: 0; }
	/* podpis w tekście (każda strona: główna, O gabinecie, „Kto prowadzi”): na każdej szerokości jak na telefonie, bez granatu i obrysu, imię ciemne, zawód szary tuż pod nim; rozmiary rosną z szerokością (30.11) */
	.gr-therapist__text > .gr-therapist__name .gr-mark { padding: 0; background: none; color: inherit; }
	.gr-therapist__text > .gr-therapist__name strong { display: block; translate: none; margin-bottom: 0; text-shadow: none; }
	.gr-therapist__text > .gr-therapist__name .gr-therapist__role { display: block; margin-top: 0; color: var(--gr-color-text-muted); }
	@media (min-width: 56rem) {  /* „Kto prowadzi”, komputer: „mgr Marta Sasin, fizjoterapeutka” w jednej linii */
		[data-section="therapist"] .gr-therapist__text > .gr-therapist__name :is(strong, .gr-therapist__role) { display: inline; }
		[data-section="therapist"] .gr-therapist__text > .gr-therapist__name strong::after { content: ", "; }
	}  /* imię przeszło na zdjęcie: opis 24 pod tytułem (komputer) i pod zdjęciem (telefon) */
}

/* metoda, „Kiedy stosuję” na komputerze: tekst z lewej, rycina z prawej (picker 27.11, P306); rycina w kolumnie 1fr, bez dociągania do krawędzi ekranu (Tomek 30.11: „wrócić do obrazków, jeden fr”) */
@layer sections {
	@media (min-width: 56rem) {
		.single-metoda [data-section="conditions"] .gr-how-it-works__figure { order: 1; }
		/* wysokość sekcji wyznacza tekst; rycina na środku jego wysokości może wejść w odstęp sekcji nad i pod nim (najwyżej pad-same z każdej strony) */
		.single-metoda :is([data-section="conditions"], [data-section="description"]):not(.gr-section--figure-fill) .gr-how-it-works__figure { align-self: stretch; position: relative; }
		.single-metoda :is([data-section="conditions"], [data-section="description"]):not(.gr-section--figure-fill) .gr-how-it-works__figure img { position: absolute; top: 50%; left: 0; translate: 0 -50%; max-height: calc(100% + 2 * var(--gr-pad-same)); object-fit: contain; }
		/* tryb fill („Kiedy stosuję”, conditions_fit: fill w method-content.json): rycina na całą wysokość sekcji w prawej kolumnie, do krawędzi ekranu albo kontenera, miękkie brzegi (Tomek 30.11) */
		.single-metoda .gr-section--figure-fill[data-section="conditions"] { position: relative; overflow: hidden; }
		.single-metoda .gr-section--figure-fill[data-section="conditions"] .gr-how-it-works__figure { position: absolute; inset: 0 max(0px, (100% - var(--gr-container)) / 2) 0 calc(50% + var(--gr-space-columns) / 2); }
		.single-metoda .gr-section--figure-fill[data-section="conditions"] .gr-how-it-works__figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 15%); }  /* miękki brzeg tylko od strony tekstu, góra i dół bez gradientu */
		.single-metoda .gr-section--figure-fill[data-section="conditions"] .gr-how-it-works__figure--mirror img { mask-image: linear-gradient(to left, transparent, #000 15%); }  /* odbicie (scale -1 1) odwraca też maskę: miękki brzeg zostaje od strony tekstu */
	}
}

/* odbicie lustrzane ryciny w sekcji (P307), mniej niż 4 zabiegi na komputerze: kafle na środku */
@layer sections {
	.gr-how-it-works__figure--mirror img { scale: -1 1; }
	@media (min-width: 56rem) { [data-section="methods"]:not(:has(.gr-grid > li:nth-child(4))) > .gr-wrap > .gr-wave { margin-inline: auto; } [data-section="methods"]:not(:has(.gr-grid > li:nth-child(4))) > .gr-wrap > .gr-section__title { text-align: center; } [data-section="methods"]:not(:has(.gr-grid > li:nth-child(4))) > .gr-wrap > .gr-grid--3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gr-gap-cards)) / 3); justify-content: center; } }  /* komputer, mniej niż 4 metody: fala, tytuł i kafle na środku, kafel szerokości jak przy trzech */
	@media (min-width: 75rem) { [data-section="related"].is-few .gr-tiles.gr-scroll { grid-template-columns: none; grid-auto-columns: calc((100% - 3 * var(--gr-gap-cards)) / 4); justify-content: center; } }  /* kafel szerokości jak przy czterech, rząd na środku */
}

/* hero zabiegu i metody od tabletu: rycina z uciętymi krawędziami pliku wygaszona gradientem na wszystkich bokach (Tomek 27.11: „odcięty chamsko”, P316) */
@layer sections {
	/* każda szerokość (od 30.11 też telefon): ryciny metod są rysowane do krawędzi pliku i bez wygaszenia kończyły się ostrym cięciem */
	:where(.single-zabieg, .single-metoda) .gr-top .gr-offer .gr-photo--overflow img { mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
}
