/*
Theme Name: Generation 22
Description: Кастомна тема для приватної школи Generation 22. Редагування контенту через нативні Gutenberg-блоки (без Elementor).
Author: Julia
Version: 0.2.0
Text Domain: generation22
*/

/* ==========================================================================
   Design tokens — Generation 22
   --------------------------------------------------------------------------
   System adapted from the ElevenLabs design system (spacing rhythm, type
   scale ratios, radius scale, hairline-over-shadow restraint, one-accent +
   pill-CTA discipline). Colour palette and fonts are re-mapped from
   ElevenLabs' cold near-black-on-grey + thin serif toward a WARM, human,
   trustworthy palette appropriate for a children's / parents' school:
   warm brown-charcoal ink on a cream canvas, one friendly terracotta accent,
   heavier (more legible) display weights. See CLAUDE task notes for rationale.
   ========================================================================== */

:root {
	/* --- Colour: ink & text (warm off-black — never pure #000) --------- */
	--g22-color-ink:            #111111;
	--g22-color-body:           #787774;
	--g22-color-body-strong:    #111111;
	--g22-color-muted:          #787774;
	--g22-color-muted-soft:     #a8a29e;

	/* --- Colour: surfaces (warm bone/off-white — editorial paper) ------ */
	--g22-color-canvas:         #fbfbfa;
	--g22-color-canvas-soft:    #f7f6f3;
	--g22-color-canvas-deep:    #111111;
	--g22-color-surface-card:   #f9f9f8;
	--g22-color-surface-strong: #f0efec;

	/* --- Colour: hairlines (neutral dividers) --------------------------- */
	--g22-color-hairline:        #eaeaea;
	--g22-color-hairline-soft:   #f2f1ee;
	--g22-color-hairline-strong: #d8d6d2;

	/* --- Colour: accent (solid ink — no colour, no pill; see radius) --- */
	--g22-color-accent:         #111111; /* ink — CTAs, highlights            */
	--g22-color-accent-hover:   #333333; /* CTA hover                        */
	--g22-color-accent-active:  #000000; /* CTA press                        */
	--g22-color-accent-soft:    #f7f6f3; /* accent-tinted surface            */

	/* --- Gradient / glow (neutral grayscale mesh, no colour) ------------ */
	--g22-gradient-accent:      linear-gradient(120deg, #333333 0%, #111111 100%);
	--g22-glow:                 radial-gradient(60% 60% at 50% 45%, rgba(17, 17, 17, 0.06) 0%, transparent 70%);
	--g22-mesh-blue:            radial-gradient(65% 70% at 50% 20%, #333333 0%, #1a1a1a 38%, rgba(17, 17, 17, 0.85) 68%, var(--g22-color-canvas-deep) 100%);
	--g22-mesh-blue-soft:       radial-gradient(60% 65% at 50% 15%, rgba(70, 70, 68, 0.4) 0%, rgba(17, 17, 17, 0.2) 45%, transparent 75%);

	/* --- Colour: supporting (links / semantic only, used sparingly) ---- */
	--g22-color-link:           var(--g22-ink);
	--g22-color-link-hover:     var(--g22-purple);
	--g22-color-success:        var(--g22-success);
	--g22-color-error:          var(--g22-error);

	/* --- Colour: on-dark / on-accent ----------------------------------- */
	--g22-color-on-accent:      var(--g22-on-purple);
	--g22-color-on-dark:        var(--g22-on-dark);
	--g22-color-on-dark-soft:   rgba(255, 255, 255, 0.72);

	/* --- Typography: font stacks --------------------------------------- */
	/* Tight bold grotesk (Manrope) — premium, Cyrillic-safe */
	--g22-font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--g22-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	/* Editorial serif — hero/display moments only (Cyrillic-safe, Google Fonts) */
	--g22-font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

	/* --- Typography: scale (px sizes, ElevenLabs ratios preserved) ----- */
	--g22-text-display-mega: 4rem;    /* 64px */
	--g22-text-display-xl:   3rem;    /* 48px */
	--g22-text-display-lg:   2.25rem; /* 36px */
	--g22-text-display-md:   2rem;    /* 32px */
	--g22-text-display-sm:   1.5rem;  /* 24px */
	--g22-text-title-md:     1.25rem; /* 20px */
	--g22-text-title-sm:     1.125rem;/* 18px */
	--g22-text-body-md:      1rem;    /* 16px */
	--g22-text-body-sm:      0.9375rem;/*15px */
	--g22-text-caption:      0.875rem;/* 14px */
	--g22-text-overline:     0.75rem; /* 12px */

	/* --- Typography: weights (bold rounded display like the reference) -- */
	--g22-weight-display:  800; /* heavy rounded headline */
	--g22-weight-title:    700;
	--g22-weight-body:     400;
	--g22-weight-strong:   700;

	/* --- Typography: line-heights (from ElevenLabs) -------------------- */
	--g22-leading-display: 1.1;
	--g22-leading-heading: 1.2;
	--g22-leading-body:    1.55;

	/* --- Typography: tracking ------------------------------------------ */
	--g22-tracking-display:  -0.03em; /* tighten heavy rounded display */
	--g22-tracking-body:      0em;
	--g22-tracking-overline:  0.08em; /* uppercase eyebrows    */

	/* --- Spacing: 4px base scale (ElevenLabs, unchanged) --------------- */
	--g22-space-xxs:     0.25rem; /* 4px  */
	--g22-space-xs:      0.5rem;  /* 8px  */
	--g22-space-sm:      0.75rem; /* 12px */
	--g22-space-base:    1rem;    /* 16px */
	--g22-space-md:      1.25rem; /* 20px */
	--g22-space-lg:      1.5rem;  /* 24px */
	--g22-space-xl:      2rem;    /* 32px */
	--g22-space-xxl:     2.5rem;  /* 40px */
	--g22-space-section: 4.5rem;  /* 72px */

	/* --- Radius scale (moderate — premium, not bubbly) ----------------- */
	--g22-radius-xs:   6px;
	--g22-radius-sm:   10px;
	--g22-radius-md:   12px;
	--g22-radius-lg:   16px;
	--g22-radius-xl:   20px;   /* feature cards */
	--g22-radius-xxl:  28px;
	--g22-radius-pill: 9999px; /* CTAs, badges  */

	/* --- Elevation (ElevenLabs restraint: hairline first, soft lift) --- */
	--g22-shadow-none: none;
	--g22-shadow-card:  0 1px 2px rgba(43, 35, 32, 0.04);
	--g22-shadow-lift:  0 4px 16px rgba(43, 35, 32, 0.08);
	--g22-shadow-float: 0 12px 32px rgba(43, 35, 32, 0.10);

	/* --- Motion (ElevenLabs left this out of scope; defined warmly) ---- */
	--g22-ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
	--g22-ease-out:      cubic-bezier(0.2, 0.0, 0.0, 1);
	--g22-ease-spring:   cubic-bezier(0.34, 1.4, 0.64, 1); /* gentle overshoot */
	--g22-duration-fast:  120ms;
	--g22-duration-base:  200ms;
	--g22-duration-slow:  320ms;
	--g22-duration-enter: 460ms;
	--g22-duration-ambient: 12s;
	--g22-stagger-step: 70ms;
	--g22-distance-reveal: 12px;
	--g22-ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
	--g22-ease-ambient: cubic-bezier(0.45, 0, 0.55, 1);

	/* --- Layout -------------------------------------------------------- */
	--g22-container: 1120px;
}

/* ==========================================================================
   Variant D tokens — editorial system shared by header/footer sitewide.
   Canonical names as authored in design-variant-d.html. Homepage-only
   scoped copies live in assets/css/home-design.css (which references
   these same values); header/footer use them directly here so the chrome
   matches the homepage on every page. Clay ember is reserved for exactly
   one background use on the front page (triptych panel) — never here.
   ========================================================================== */
:root {
	--color-deep-ink:       #111111;
	--color-pure-white:     #fbfbfa; /* warm bone, not stark white */
	--color-cool-ash:       #787774;
	--color-pebble:         #eaeaea;
	--color-midnight-hull:  #1a1a1a;
	--color-charcoal-deck:  #262625;
	--color-clay-ember:     #262625; /* монохром: темна панель, без кольору */

	--border-dark:          rgba(255, 255, 255, .12);
	--text-on-dark-strong:  #ffffff;
	--text-on-dark-muted:   rgba(255, 255, 255, .72);
	--text-on-dark-caption: rgba(255, 255, 255, .6);
	--text-on-dark-faint:   rgba(255, 255, 255, .4);

	--radius-pill: 999px; /* all CTAs are pills */

	--fs-caption: 17px;
	--fs-nav: 20px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--g22-font-body);
	font-size: var(--g22-text-body-md);
	line-height: var(--g22-leading-body);
	letter-spacing: var(--g22-tracking-body);
	color: var(--g22-color-body);
	background: var(--g22-color-canvas);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

.g22-skip-link {
	position: fixed;
	left: var(--g22-space-base);
	top: var(--g22-space-base);
	z-index: 100;
	transform: translateY(-160%);
	border-radius: var(--g22-radius-sm);
	background: var(--g22-color-surface-card);
	color: var(--g22-color-ink);
	padding: var(--g22-space-sm) var(--g22-space-base);
	font-weight: var(--g22-weight-title);
	text-decoration: none;
	transition: transform var(--g22-duration-fast) var(--g22-ease-out);
}

.g22-skip-link:focus { transform: translateY(0); }

/* "Generation 22" must never line-break between the two words. */
.nowrap { white-space: nowrap; }

h1, h2, h3, h4 {
	font-family: var(--g22-font-display);
	font-weight: var(--g22-weight-display);
	line-height: var(--g22-leading-heading);
	letter-spacing: var(--g22-tracking-display);
	color: var(--g22-color-ink);
}

/* emphasis word inside a display heading — accent colour */
.g22-em {
	color: var(--g22-color-accent);
}

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

a {
	color: var(--g22-color-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--g22-duration-fast) var(--g22-ease-standard);
	touch-action: manipulation;
}

a:hover {
	color: var(--g22-color-link-hover);
}

.g22-form__website {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.g22-form__notice {
	margin: 0 0 var(--g22-space-base);
	border-radius: var(--g22-radius-sm);
	padding: var(--g22-space-sm) var(--g22-space-base);
	font-size: var(--g22-text-body-sm);
}

.g22-form__notice--success { background: rgba(47, 143, 78, 0.12); color: var(--g22-success); }
.g22-form__notice--error { background: rgba(212, 24, 61, 0.1); color: var(--g22-error); }

/* Fade-in on the success/error notice (motion polish 4e) — server-rendered
   on the redirect back from admin-post.php, so it's already in the DOM at
   first paint (no layout jump, only opacity animates). */
@media (prefers-reduced-motion: no-preference) {
	.g22-form__notice {
		animation: g22FormNoticeIn 0.15s var(--g22h-ease, cubic-bezier(0.2, 0.7, 0.2, 1)) both;
	}

	@keyframes g22FormNoticeIn {
		from { opacity: 0; }
		to { opacity: 1; }
	}
}

.g22-form {
	display: grid;
	gap: var(--g22-space-xs);
}

.g22-form label {
	font-family: var(--g22-font-label);
	font-size: var(--g22-fs-label);
	font-weight: 500;
	letter-spacing: var(--g22-tracking-label);
	text-transform: uppercase;
	color: var(--g22-color-muted);
}

.g22-form input,
.g22-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--g22-line);
	border-radius: var(--g22-r-md);
	background: var(--g22-card);
	color: var(--g22-color-ink);
	padding: 0.75rem 0.875rem;
	font: inherit;
	font-size: 0.9375rem;
}

.g22-form textarea { min-height: 96px; resize: vertical; }
.g22-form input:focus-visible,
.g22-form textarea:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px var(--g22-purple-14);
	border-color: var(--g22-color-accent);
}

.g22-form button {
	min-height: 44px;
	border: 0;
	border-radius: var(--g22-r-pill);
	background: var(--g22-yellow);
	color: var(--g22-on-yellow);
	padding: 0.75rem 1.25rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color var(--g22-duration-base) var(--g22-ease-standard), transform var(--g22-duration-base) var(--g22-ease-out);
}

.g22-form button:hover { background: var(--g22-yellow-hot); }
.g22-form button:active { transform: translateY(1px); }
.g22-form button:focus-visible { outline: 3px solid var(--g22-color-accent); outline-offset: 3px; }

@media (max-width: 600px) {
	.g22-form input,
	.g22-form textarea { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Layout — constrain native flow content (headings/paragraphs/lists/buttons
   authored with core blocks). Custom generation22/* blocks manage their own
   width (hero is full-bleed; cards/faq self-center), so exclude them here.
   -------------------------------------------------------------------------- */

.g22-main > *:not([class*="wp-block-generation22-"]):not(.g22-henna):not(.g22-page-shell):not(.g22-studio) {
	max-width: var(--g22-container);
	margin-inline: auto;
	padding-inline: var(--g22-space-xl);
	box-sizing: border-box;
}

/* vertical rhythm for stacked native content */
.g22-main > *:not([class*="wp-block-generation22-"]):not(.g22-henna):not(.g22-page-shell):not(.g22-studio) + *:not([class*="wp-block-generation22-"]):not(.g22-henna):not(.g22-page-shell):not(.g22-studio) {
	margin-top: var(--g22-space-base);
}

.g22-main > h2:not([class*="wp-block-generation22-"]),
.g22-main > h3:not([class*="wp-block-generation22-"]) {
	margin-top: var(--g22-space-xxl);
	font-size: var(--g22-text-display-md);
}

/* Henna / page-shell wrappers manage their own inner shell (.g22-henna__shell,
   .g22-page-content max-width) — the generic native-content constraint above
   was double-boxing them (1120px card centered inside body's own canvas),
   producing a visible gray frame on both sides. Let them run full-bleed. */
.g22-main > .g22-henna,
.g22-main > .g22-page-shell,
.g22-main > .g22-studio {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	padding-inline: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.g22-header:not(.g22-header--taste) {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--g22-space-lg);
	max-width: none;
	margin: 0;
	padding: 18px var(--g22-space-xl);
	background: var(--color-pure-white);
}

.g22-header:not(.g22-header--taste)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--color-pebble);
}

.g22-header:not(.g22-header--taste) .g22-header__logo {
	display: inline-flex;
	align-items: center;
	font-family: var(--g22-font-body);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.02em;
	color: var(--color-deep-ink);
	text-decoration: none;
	white-space: nowrap;
}

.g22-header:not(.g22-header--taste) .g22-header__logo-image,
.g22-footer__logo-image{
	display: block;
	width: auto;
	height: auto;
	max-height: 40px;
}

.g22-header:not(.g22-header--taste) .g22-header__logo:hover {
	color: var(--color-deep-ink);
}

.g22-header:not(.g22-header--taste) .g22-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-deep-ink);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--color-deep-ink);
	cursor: pointer;
	touch-action: manipulation;
}

.g22-header:not(.g22-header--taste) .g22-header__nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--g22-space-lg);
	margin: 0;
	padding: 0;
}

.g22-header:not(.g22-header--taste) .g22-header__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--g22-font-body);
	font-size: var(--fs-nav);
	font-weight: 400;
	color: var(--color-deep-ink);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	transition: border-color var(--g22-duration-fast) var(--g22-ease-standard);
}

.g22-header:not(.g22-header--taste) .g22-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: var(--radius-pill);
	background: var(--color-deep-ink);
	color: var(--color-pure-white) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity var(--g22-duration-fast) var(--g22-ease-standard);
}

.g22-header:not(.g22-header--taste) .g22-header__cta:hover {
	opacity: .82;
	color: var(--color-pure-white) !important;
}

body.admin-bar .g22-header:not(.g22-header--taste) {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .g22-header:not(.g22-header--taste) {
		top: 46px;
	}
}

.g22-header:not(.g22-header--taste) .g22-header__nav a:hover {
	border-bottom-color: var(--color-deep-ink);
}

.g22-header:not(.g22-header--taste) .g22-header__nav .current-menu-item > a {
	border-bottom-color: var(--color-deep-ink);
}

.g22-header:not(.g22-header--taste) a:focus-visible,
.g22-header:not(.g22-header--taste) button:focus-visible,
.g22-footer a:focus-visible{
	outline: 3px solid var(--color-deep-ink);
	outline-offset: 3px;
}

@media (max-width: 820px) {
	.g22-header:not(.g22-header--taste) {
		padding: var(--g22-space-xs) var(--g22-space-sm);
	}

	.g22-header:not(.g22-header--taste) .g22-header__cta {
		padding: 10px 16px;
		font-size: 14px;
	}

	.g22-header:not(.g22-header--taste) .g22-header__toggle { display: inline-flex; }
	.g22-header:not(.g22-header--taste) .g22-header__nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		max-height: calc(100dvh - 88px);
		overflow-y: auto;
		border-bottom: 1px solid var(--color-pebble);
		background: var(--color-pure-white);
		padding: var(--g22-space-sm);
	}

	.g22-header:not(.g22-header--taste).is-menu-open .g22-header__nav { display: block; }
	.g22-header:not(.g22-header--taste) .g22-header__nav ul { display: grid; gap: var(--g22-space-xs); }
	.g22-header:not(.g22-header--taste) .g22-header__nav a {
		box-sizing: border-box;
		display: flex;
		width: 100%;
		border-radius: var(--g22-radius-sm);
		padding-inline: var(--g22-space-sm);
		font-size: var(--g22-text-body-md);
		border-bottom: 0;
	}
	.g22-header:not(.g22-header--taste) .g22-header__nav a:hover { background: var(--color-pebble); }
	body.g22-menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Google reviews band (above footer)
   -------------------------------------------------------------------------- */

.g22-google-reviews {
	max-width: var(--g22-container);
	margin: 0 auto;
	padding: var(--g22-space-xxl) var(--g22-space-xl);
	text-align: center;
	border-top: 1px solid var(--g22-color-hairline);
}

.g22-google-reviews .g22-google-reviews__summary {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, .08);
	background: #fff;
	box-shadow: 0 6px 18px rgba(17, 17, 17, .06);
	font-family: var(--g22-font-display);
	color: var(--g22-color-ink);
	text-decoration: none;
	max-width: 100%;
}

/* Google-branded review badge (progresivo-style) — multicolor "G" +
   numeric rating + gold stars, no review-count text. */
.g22-google-reviews__glogo {
	display: inline-flex;
	flex: none;
	width: 20px;
	height: 20px;
}

.g22-google-reviews__glogo svg { display: block; width: 100%; height: 100%; }

.g22-google-reviews .g22-google-reviews__summary strong {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--g22-color-ink);
	line-height: 1;
}

.g22-google-reviews .g22-google-reviews__stars {
	flex: none;
	color: #fbbc05;
	letter-spacing: 1px;
	line-height: 1;
}

.g22-google-reviews__gsource {
	flex: none;
	font-size: .8rem;
	font-weight: 500;
	color: #5f6368;
}

/* --------------------------------------------------------------------------
   Page Shells
   -------------------------------------------------------------------------- */

.g22-page-shell {
	padding-bottom: var(--g22-space-section);
}

.g22-page-intro {
	padding: var(--g22-space-xxl) var(--g22-space-xl) var(--g22-space-xl);
}

.g22-page-intro__inner,
.g22-page-content {
	width: min(1120px, calc(100% - 2 * var(--g22-space-xl)));
	max-width: none;
	margin: 0 auto;
}

.g22-page-content > p,
.g22-page-content > ul,
.g22-page-content > ol,
.g22-page-content > blockquote {
	max-width: 70ch;
}

.g22-page-content > * + * {
	margin-top: 0.875rem;
}

.g22-page-section {
	padding-block: 2rem;
}

.g22-page-kicker {
	margin: 0;
	font-size: var(--g22-text-overline);
	font-weight: var(--g22-weight-title);
	letter-spacing: var(--g22-tracking-overline);
	text-transform: uppercase;
	color: var(--g22-color-muted);
}

.g22-page-title {
	margin: var(--g22-space-base) 0 0;
	font-size: clamp(2rem, 3.8vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.g22-page-summary {
	max-width: 54ch;
	margin: 1rem 0 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--g22-color-body);
	text-wrap: pretty;
}

@media (max-width: 640px) {
	.g22-page-intro__inner,
	.g22-page-content {
		width: min(100% - 2rem, 1120px);
	}
}

.g22-page-content .wp-block-columns {
	margin-top: var(--g22-space-lg);
	gap: var(--g22-space-lg);
}

.g22-content-grid {
	align-items: stretch;
	gap: 1rem;
	margin-top: 1.5rem;
}

.g22-page-content .g22-cards {
	padding: 1.5rem 0;
}

.g22-page-content .g22-cards__head {
	max-width: 40rem;
	margin: 0 0 1.5rem;
	text-align: left;
}

.g22-page-content .g22-cards__eyebrow {
	margin-bottom: 0.75rem;
}

.g22-page-content .g22-cards h2 {
	font-size: clamp(1.75rem, 2.8vw, 2.35rem);
	line-height: 1.08;
}

.g22-page-content .g22-cards__intro {
	max-width: 44ch;
	margin-top: 0.875rem;
	font-size: 0.9375rem;
}

.g22-page-content .g22-cards__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.g22-page-content .g22-card {
	min-height: 0;
	padding: 1.125rem 1rem;
	border-radius: 16px;
	box-shadow: 0 12px 24px -18px rgba(24, 23, 26, 0.18);
}

.g22-page-content .g22-card::before {
	margin-bottom: 0.75rem;
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	line-height: 0.9;
}

.g22-page-content .g22-card h3 {
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
	line-height: 1.35;
}

.g22-page-content .g22-card p {
	margin-top: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
}

@media (min-width: 901px) {
	.g22-page-content .g22-cards__grid .g22-card:nth-child(odd) {
		margin-top: 0;
	}
}

@media (max-width: 640px) {
	.g22-page-content .g22-cards__grid {
		grid-template-columns: 1fr;
	}
}

.g22-surface-panel {
	border: 1px solid var(--g22-color-hairline);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84));
	box-shadow: var(--g22-shadow-card);
	padding: clamp(1rem, 2vw, 1.5rem);
}

.g22-surface-panel > :first-child {
	margin-top: 0;
}

.g22-surface-panel > :last-child {
	margin-bottom: 0;
}

.g22-checklist {
	margin: 1rem 0 0;
	padding-left: 1.1rem;
}

.g22-checklist li + li {
	margin-top: var(--g22-space-xs);
}

.g22-cta-panel {
	max-width: min(640px, calc(100% - 2 * var(--g22-space-xl)));
	margin: 2rem auto 0;
	border-radius: 18px;
	background:
		radial-gradient(circle at top right, rgba(47, 107, 255, 0.12), transparent 30%),
		linear-gradient(135deg, rgba(24, 23, 26, 0.98), rgba(31, 34, 48, 0.96));
	color: var(--g22-color-on-dark);
	padding: clamp(1rem, 2.2vw, 1.5rem);
	box-shadow: var(--g22-shadow-float);
}

.g22-cta-panel h2,
.g22-cta-panel p,
.g22-cta-panel label {
	color: var(--g22-color-on-dark);
}

.g22-cta-panel .g22-form input,
.g22-cta-panel .g22-form textarea {
	border-color: rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.08);
	color: var(--g22-color-on-dark);
}

.g22-price-card {
	min-height: 100%;
}

.g22-price-card__label {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: var(--g22-weight-title);
	letter-spacing: var(--g22-tracking-overline);
	text-transform: uppercase;
	color: var(--g22-color-muted);
}

.g22-price-card__value {
	margin: 0.75rem 0 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.g22-page-content .wp-block-button__link {
	border-radius: var(--g22-radius-pill);
	padding: 0.9rem 1.5rem;
}

.g22-page-content .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100%;
}

.g22-editor-note {
	border: 1px solid color-mix(in srgb, var(--g22-color-accent) 18%, var(--g22-color-hairline));
	border-radius: var(--g22-radius-lg);
	background: color-mix(in srgb, var(--g22-color-accent-soft) 46%, white);
	padding: var(--g22-space-lg);
	box-shadow: var(--g22-shadow-card);
}

.g22-editor-note p {
	margin: 0;
}

.g22-editor-note p + p {
	margin-top: var(--g22-space-xs);
}

.g22-editor-note--floating {
	max-width: var(--g22-container);
	margin: var(--g22-space-xl) auto 0;
	padding-inline: var(--g22-space-xl);
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.g22-page-intro {
		padding-inline: var(--g22-space-base);
	}

	.g22-page-intro__inner,
	.g22-page-content {
		max-width: calc(100% - 2 * var(--g22-space-base));
	}

	.g22-page-title {
		font-size: clamp(2rem, 9vw, 2.8rem);
	}

	.g22-page-summary {
		font-size: 1rem;
	}

	.g22-editor-note--floating {
		margin-top: var(--g22-space-base);
		padding-inline: var(--g22-space-base);
	}

	.g22-cta-panel {
		max-width: calc(100% - 2 * var(--g22-space-base));
	}
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.g22-footer {
	background: var(--g22-color-canvas-deep);
	color: var(--g22-color-on-dark);
}

.g22-footer > * {
	max-width: var(--g22-container);
	margin-inline: auto;
	padding-inline: var(--g22-space-xl);
}

.g22-footer {
	padding-block: var(--g22-space-section) var(--g22-space-xl);
	display: grid;
	gap: var(--g22-space-xl);
	grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
	align-items: start;
}

@media (max-width: 768px) {
	.g22-footer {
		grid-template-columns: 1fr;
		gap: var(--g22-space-lg);
		padding-block: var(--g22-space-xxl) var(--g22-space-lg);
	}
}

.g22-footer a {
	color: var(--g22-color-on-dark);
	text-decoration: none;
	transition: color var(--g22-duration-fast) var(--g22-ease-standard);
}

.g22-footer a:hover {
	color: var(--g22-color-accent);
}

.g22-footer__brand-link {
	display: inline-flex;
	align-items: center;
}

.g22-footer__sitemap ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--g22-space-sm);
}

.g22-footer__sitemap a {
	font-size: var(--g22-text-body-sm);
	color: var(--g22-color-on-dark-soft);
}

.g22-footer__sitemap a:hover {
	color: var(--g22-color-on-accent);
}

.g22-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--g22-space-base);
}

.g22-footer__social {
	font-size: var(--g22-text-body-sm);
	font-weight: var(--g22-weight-title);
}

.g22-footer__contacts {
	display: grid;
	gap: var(--g22-space-xs);
}

.g22-footer__contacts p {
	margin: 0;
	font-size: var(--g22-text-body-sm);
	color: var(--g22-color-on-dark-soft);
}

.g22-footer__map {
	grid-column: 1 / -1;
	padding-top: var(--g22-space-lg);
	border-top: 1px solid color-mix(in srgb, var(--g22-color-on-dark) 15%, transparent);
}

/* --------------------------------------------------------------------------
   Scroll reveal — staggered section + child entrance. JS adds .g22-reveal to
   sections and .g22-reveal--in when they enter the viewport; children carry
   --g22-i for a cascade delay. Entirely suppressed under reduced-motion.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.g22-reveal > h2,
	.g22-reveal > .g22-vt__heading,
	.g22-reveal > .g22-vt__subtitle {
		opacity: 0;
		transform: translateY(14px);
		filter: blur(4px);
		transition:
			opacity var(--g22-duration-slow) var(--g22-ease-out),
			transform var(--g22-duration-slow) var(--g22-ease-out),
			filter var(--g22-duration-slow) var(--g22-ease-out);
	}

	.g22-reveal .g22-card,
	.g22-reveal .g22-vt-item,
	.g22-reveal .g22-cta__panel,
	.g22-reveal .g22-intro__body,
	.g22-reveal .g22-intro__media,
	.g22-reveal .g22-news__item,
	.g22-reveal .g22-henna__card {
		opacity: 0;
		transform: translateY(20px);
		filter: blur(4px);
		transition:
			opacity 0.55s var(--g22-ease-out),
			transform 0.55s var(--g22-ease-out),
			filter 0.55s var(--g22-ease-out);
		transition-delay: calc(var(--g22-i, 0) * 70ms);
	}

	.g22-reveal.g22-reveal--in > h2,
	.g22-reveal.g22-reveal--in > .g22-vt__heading,
	.g22-reveal.g22-reveal--in > .g22-vt__subtitle,
	.g22-reveal.g22-reveal--in .g22-card,
	.g22-reveal.g22-reveal--in .g22-vt-item,
	.g22-reveal.g22-reveal--in .g22-cta__panel,
	.g22-reveal.g22-reveal--in .g22-intro__body,
	.g22-reveal.g22-reveal--in .g22-intro__media,
	.g22-reveal.g22-reveal--in .g22-news__item,
	.g22-reveal.g22-reveal--in .g22-henna__card {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}

	/*
	 * "Leaf" sections (no staggered kids of their own) fade/rise as a whole:
	 * homepage prose/CTA sections, the reviews footer, and every direct
	 * child of an inner page's .g22-page-content. Progressive enhancement:
	 * the hidden state only exists once JS has added .g22-reveal, so content
	 * stays fully visible without JS (mirrors the pattern documented in
	 * assets/js/home-design.js).
	 */
	.g22-henna__about.g22-reveal,
	.g22-henna__news.g22-reveal,
	.g22-henna__cta-section.g22-reveal,
	.g22-google-reviews.g22-reveal,
	.g22-page-content > .g22-reveal {
		opacity: 0;
		transform: translateY(24px);
		filter: blur(4px);
		transition:
			opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
			transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
			filter 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	.g22-henna__about.g22-reveal.g22-reveal--in,
	.g22-henna__news.g22-reveal.g22-reveal--in,
	.g22-henna__cta-section.g22-reveal.g22-reveal--in,
	.g22-google-reviews.g22-reveal.g22-reveal--in,
	.g22-page-content > .g22-reveal.g22-reveal--in {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

/* --------------------------------------------------------------------------
   Footer v2 — editorial, compact and aligned with the homepage system
   -------------------------------------------------------------------------- */

.g22-google-reviews {
	max-width: none;
	margin: 0;
	padding: 0 24px;
	background: var(--color-pure-white);
	text-align: left;
	border: 0;
}

.g22-google-reviews:empty { display: none; }

.g22-google-reviews__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 48px clamp(28px, 5vw, 72px);
	display: grid;
	grid-template-columns: .7fr 1.5fr auto;
	align-items: center;
	gap: 32px;
	border-top: 1px solid var(--color-pebble);
}

.g22-google-reviews__kicker,
.g22-footer__label {
	margin: 0;
	font-size: var(--fs-caption);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.g22-google-reviews__kicker { color: var(--color-cool-ash); }

.g22-google-reviews__rating {
	display: flex;
	align-items: center;
	gap: 18px;
}

.g22-google-reviews__rating strong {
	font-family: var(--g22-font-display);
	font-size: clamp(42px, 5vw, 64px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--color-deep-ink);
}

.g22-google-reviews__rating p {
	margin: 5px 0 0;
	font-size: 13px;
	color: var(--color-cool-ash);
}

.g22-google-reviews__stars {
	display: block;
	font-size: 14px;
	letter-spacing: .08em;
	color: var(--color-deep-ink);
}

.g22-google-reviews__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--color-deep-ink);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.g22-footer {
	display: block;
	padding: 0;
	background: var(--color-deep-ink);
	color: var(--color-pure-white);
}

.g22-footer > .g22-footer__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(72px, 8vw, 112px) clamp(28px, 5vw, 72px) 32px;
}

.g22-footer__top {
	display: block;
	padding-bottom: clamp(40px, 5vw, 64px);
}

.g22-footer__brand {
	max-width: none;
}

.g22-footer__brand-link {
	display: inline-flex;
	font-family: var(--g22-font-body);
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.g22-footer__logo-image { max-height: 52px; }

.g22-footer__brand-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 28px clamp(32px, 5vw, 64px);
	margin-top: clamp(28px, 3.5vw, 40px);
}

.g22-footer__tagline,
.g22-footer__brand-row p {
	max-width: 34ch;
	margin: 0;
	font-size: clamp(16px, 1.7vw, 20px);
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: -.02em;
	color: rgba(255, 255, 255, 0.72);
	text-wrap: pretty;
}

.g22-footer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.g22-footer__cta {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	background: var(--color-pure-white);
	color: var(--color-deep-ink) !important;
	font-size: 13px;
	font-weight: 700;
}

.g22-footer__content {
	display: grid;
	grid-template-columns: 1.45fr 1fr .78fr;
	gap: clamp(40px, 6vw, 88px);
	padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.g22-footer__label {
	margin-bottom: 22px;
	color: rgba(255, 255, 255, 0.55);
	font-family: var(--g22-font-label);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
}

.g22-footer__sitemap ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.g22-footer__sitemap a,
.g22-footer__contacts a,
.g22-footer__social,
.g22-footer__map {
	color: rgba(255, 255, 255, 0.78);
}

.g22-footer__sitemap a {
	position: relative;
	display: inline-flex;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: -0.01em;
	transition: color 160ms var(--g22-ease-standard, ease);
}
/* A11y: enlarge tap target to 44px min-height without altering the visible
   link box or grid rhythm — invisible hit-area layer, meets the adjacent
   row's hit area edge-to-edge inside the existing row-gap. */
.g22-footer__sitemap a::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 44px;
	transform: translateY(-50%);
}

.g22-footer__contacts {
	display: grid;
	gap: 20px;
	align-content: start;
}

.g22-footer__contacts .g22-footer__label { margin-bottom: 4px; }

.g22-footer__contacts > div > span {
	display: block;
	margin-bottom: 6px;
	font-family: var(--g22-font-label);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.42);
}

.g22-footer__contacts p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

.g22-footer__map {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: fit-content;
	min-height: 42px;
	margin-top: 4px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius-pill);
	font-size: 12px;
}

.g22-footer__socials {
	display: grid;
	align-content: start;
	gap: 0;
}

.g22-footer__socials .g22-footer__label { margin-bottom: 10px; }

.g22-footer__social-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0;
}

.g22-footer__social {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.g22-footer__social-list li:last-child .g22-footer__social {
	border-bottom-color: transparent;
}

.g22-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.g22-footer__bottom p,
.g22-footer__legal a {
	margin: 0;
	font-family: var(--g22-font-label);
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.42);
}

.g22-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.g22-footer__legal a:hover,
.g22-footer__legal a:focus-visible {
	color: rgba(255, 255, 255, 0.82);
}

/* Decorative geometry — low-opacity white/yellow on purple field. */
.g22-footer .g22-orbit--footer,
.g22-footer .g22-frame-mark--footer {
	position: absolute;
	z-index: 0;
	pointer-events: none;
}

.g22-footer .g22-orbit--footer {
	right: clamp(-120px, -6vw, -40px);
	bottom: clamp(-80px, -4vw, -24px);
	width: clamp(220px, 28vw, 420px);
	aspect-ratio: 1;
	color: #fff;
	opacity: 0.14;
}

.g22-footer .g22-orbit--footer svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.g22-footer .g22-orbit--footer .g22-orbit__halo,
.g22-footer .g22-orbit--footer .g22-orbit__ring {
	fill: none;
	stroke: currentColor;
	vector-effect: non-scaling-stroke;
}

.g22-footer .g22-orbit--footer .g22-orbit__halo {
	stroke-width: 0.55;
	stroke-dasharray: 1.25 9;
	opacity: 0.35;
	transform-origin: 120px 120px;
	transform-box: view-box;
}

.g22-footer .g22-orbit--footer .g22-orbit__spin {
	transform-origin: 120px 120px;
	transform-box: view-box;
}

.g22-footer .g22-orbit--footer .g22-orbit__ring {
	stroke-width: 0.9;
	opacity: 0.4;
}

.g22-footer .g22-orbit--footer .g22-orbit__satellite,
.g22-footer .g22-orbit--footer .g22-orbit__core {
	fill: #ffd141;
}

.g22-footer .g22-orbit--footer .g22-orbit__nucleus {
	fill: #fff;
	opacity: 0.12;
}

.g22-footer .g22-orbit--footer .g22-orbit__heart {
	transform-origin: 120px 120px;
	transform-box: view-box;
}

.g22-footer .g22-frame-mark--footer {
	top: clamp(28px, 4vw, 48px);
	right: clamp(24px, 4vw, 56px);
	width: clamp(64px, 7vw, 96px);
	aspect-ratio: 1;
	color: #fff;
	opacity: 0.38;
}

.g22-footer .g22-frame-mark--footer svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.g22-footer .g22-frame-mark--footer .g22-frame-mark__line {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.1;
	stroke-linecap: square;
	vector-effect: non-scaling-stroke;
	opacity: 0.55;
}

.g22-footer .g22-frame-mark--footer .g22-frame-mark__dot {
	fill: #ffd141;
	opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
	.g22-footer__cta,
	.g22-footer__consult,
	.g22-footer__map,
	.g22-footer__social,
	.g22-google-reviews__link {
		transition:
			transform var(--g22-duration-base) var(--g22-ease-enter),
			color var(--g22-duration-base) var(--g22-ease-standard),
			background-color var(--g22-duration-base) var(--g22-ease-standard),
			border-color var(--g22-duration-base) var(--g22-ease-standard),
			box-shadow var(--g22-duration-base) var(--g22-ease-standard);
	}

	.g22-footer__cta:hover,
	.g22-footer__consult:hover,
	.g22-footer__map:hover,
	.g22-google-reviews__link:hover { transform: translateY(-2px); }

	.g22-footer__social:hover span:last-child,
	.g22-google-reviews__link:hover span { transform: translate(2px, -2px); }

	.g22-footer__social span:last-child,
	.g22-google-reviews__link span {
		transition: transform var(--g22-duration-base) var(--g22-ease-enter);
	}

	.g22-footer .g22-orbit--footer .g22-orbit__spin {
		animation: g22-footer-orbit-spin 48s linear infinite;
	}

	.g22-footer .g22-orbit--footer .g22-orbit__halo {
		animation: g22-footer-orbit-spin 72s linear infinite reverse;
	}
}

@keyframes g22-footer-orbit-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.g22-footer .g22-orbit--footer .g22-orbit__spin,
	.g22-footer .g22-orbit--footer .g22-orbit__halo {
		animation: none !important;
	}
}

@media (max-width: 860px) {
	.g22-google-reviews { padding-inline: 12px; }
	.g22-google-reviews__inner { grid-template-columns: 1fr; gap: 20px; padding-block: 40px; }
	.g22-footer__top { display: grid; }
	.g22-footer__brand-row { align-items: flex-start; }
	.g22-footer__content { grid-template-columns: 1fr 1fr; }
	.g22-footer__socials { grid-column: 1 / -1; }
	.g22-footer__socials { grid-template-columns: 1fr; column-gap: 24px; }
	.g22-footer__social-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
	}
	.g22-footer__socials .g22-footer__label { grid-column: 1 / -1; }
	.g22-footer .g22-orbit--footer { opacity: 0.1; width: clamp(180px, 42vw, 280px); }
	.g22-footer .g22-frame-mark--footer { opacity: 0.28; }
}

@media (max-width: 560px) {
	.g22-footer > .g22-footer__inner { padding: 56px 24px 28px; }
	.g22-footer__top { padding-bottom: 40px; }
	.g22-footer__brand-row { gap: 24px; margin-top: 24px; }
	.g22-footer__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}
	.g22-footer__content {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-bottom: 40px;
	}
	.g22-footer__socials { grid-column: auto; }
	.g22-footer__social-list { grid-template-columns: 1fr; }
	.g22-footer__sitemap ul { grid-template-columns: 1fr; }
	.g22-footer__bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
	.g22-footer__cta,
	.g22-footer__consult { width: 100%; }
	.g22-footer .g22-orbit--footer,
	.g22-footer .g22-frame-mark--footer { display: none; }
}

/* Impeccable hardening: shared accessibility and editorial news templates. */
.g22-form__field-error {
	margin: 0 0 var(--g22-space-xs);
	font-size: var(--g22-text-caption);
	font-weight: 600;
	line-height: 1.45;
	color: var(--g22-color-error);
}

.g22-form [aria-invalid="true"] { border-color: var(--g22-color-error); }

.g22-form button:disabled {
	opacity: .7;
	cursor: wait;
}

.g22-faq-item__question:focus-visible,
.g22-news-list a:focus-visible,
.g22-news-single a:focus-visible {
	outline: 3px solid var(--g22-color-accent);
	outline-offset: 3px;
}

.g22-footer__label { color: var(--text-on-dark-faint); }
.g22-footer__contacts > div > span { color: var(--text-on-dark-faint); }
.g22-footer__bottom p,
.g22-footer__legal a { color: var(--text-on-dark-faint); }
.g22-footer__map { min-height: 44px; }

/* WCAG AA contrast fix: this rule's own .g22-footer background above is
   dead in practice — home-henna.css's `body .g22-footer` (higher
   specificity, loads after style.css) actually paints the footer flat
   var(--g22h-purple, #3F2780) with background-image:none, site-wide.
   var(--color-cool-ash) measured ~2.6:1 and var(--text-on-dark-faint)
   ~3.2:1 against that purple — both fail the 4.5:1 minimum.
   .g22-footer__label itself is already overridden to var(--g22-color-on-dark)
   further down (line ~1961) and passes, so it's intentionally left out below;
   .g22-footer__contacts a is likewise already superseded by the more specific
   .g22-footer__contacts p a rule (line ~1965, rgba(255,255,255,.82)) and left
   untouched. Only the genuinely-failing selectors are overridden here,
   scoped to the footer only — the shared tokens keep their original values
   for reuse elsewhere (e.g. .g22-google-reviews__*). */
.g22-footer__sitemap a,
.g22-footer__social,
.g22-footer__map {
	color: rgba(248, 250, 244, 0.65); /* ~5.57:1 on the actual purple (#3F2780) footer bg */
}
.g22-footer__contacts > div > span,
.g22-footer__bottom p,
.g22-footer__legal a {
	color: rgba(248, 250, 244, 0.65); /* ~5.57:1 on the actual purple (#3F2780) footer bg */
}
.g22-google-reviews__kicker { color: var(--color-cool-ash); }
.g22-google-reviews__rating p { color: var(--color-cool-ash); }

.g22-news-list,
.g22-news-single,
.g22-news-single__more {
	box-sizing: border-box;
	width: min(calc(100% - 48px), 1320px);
	margin-inline: auto;
}

.g22-news-list { padding: clamp(56px, 8vw, 104px) 0; }

.g22-news-list > h1,
.g22-news-single > h1 {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.75rem, 6vw, 5.25rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.055em;
}

.g22-news-list__filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--g22-space-xs);
	margin-top: var(--g22-space-xl);
	padding-bottom: var(--g22-space-xl);
	border-bottom: 1px solid var(--g22-color-hairline);
}

.g22-news-list__filter a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--g22-color-hairline-strong);
	border-radius: var(--g22-radius-pill);
	color: var(--g22-color-ink);
	font-size: var(--g22-text-caption);
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--g22-duration-base) var(--g22-ease-enter), color var(--g22-duration-base) var(--g22-ease-enter), border-color var(--g22-duration-base) var(--g22-ease-enter);
}

.g22-news-list__filter a:hover,
.g22-news-list__filter a.is-active {
	border-color: var(--g22-color-ink);
	background: var(--g22-color-ink);
	color: var(--g22-color-on-dark);
}

.g22-news-list__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 48px) 24px;
	margin-top: clamp(40px, 6vw, 72px);
}

.g22-news-list__item {
	display: grid;
	min-width: 0;
	align-content: start;
	color: var(--g22-color-ink);
	text-decoration: none;
}

.g22-news-list__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--g22-radius-md);
	object-fit: cover;
}

.g22-news-list__item h3 {
	margin: var(--g22-space-base) 0 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 500;
	line-height: 1.25;
}

.g22-news-list__date,
.g22-news-single__date {
	margin: var(--g22-space-sm) 0 0;
	font-size: var(--g22-text-caption);
	color: var(--g22-color-muted);
}

.g22-news-list__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--g22-space-xs);
	margin-top: clamp(48px, 7vw, 80px);
}

.g22-news-list__pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--g22-color-hairline-strong);
	border-radius: 50%;
	color: var(--g22-color-ink);
	text-decoration: none;
}

.g22-news-list__pagination .current {
	border-color: var(--g22-color-ink);
	background: var(--g22-color-ink);
	color: var(--g22-color-on-dark);
}

.g22-news-single { padding: clamp(56px, 8vw, 104px) 0; }

.g22-news-single__cover {
	margin-bottom: clamp(40px, 6vw, 72px);
	border-radius: var(--g22-radius-lg);
	overflow: hidden;
}

.g22-news-single__cover img {
	width: 100%;
	max-height: 720px;
	object-fit: cover;
}

.g22-news-single__body {
	max-width: 760px;
	margin-top: clamp(32px, 5vw, 56px);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.g22-news-single__body > * { max-width: 70ch; }
.g22-news-single__body img { border-radius: var(--g22-radius-md); }

.g22-news-single__share {
	display: flex;
	flex-wrap: wrap;
	gap: var(--g22-space-xs);
	margin-top: var(--g22-space-xl);
}

.g22-news-single__share a,
.g22-news-single__more-item {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}

.g22-news-single__share a {
	padding: 10px 16px;
	border: 1px solid var(--g22-color-hairline-strong);
	border-radius: var(--g22-radius-pill);
	text-decoration: none;
}

.g22-news-single__more {
	padding: 0 0 clamp(64px, 8vw, 112px);
	border-top: 1px solid var(--g22-color-hairline);
}

.g22-news-single__more h2 {
	margin: 0 0 var(--g22-space-lg);
	padding-top: var(--g22-space-xl);
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 400;
}

.g22-news-single__more-item {
	max-width: 70ch;
	border-bottom: 1px solid var(--g22-color-hairline);
	color: var(--g22-color-ink);
	text-decoration: none;
}

@media (max-width: 860px) {
	.g22-news-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.g22-news-list,
	.g22-news-single,
	.g22-news-single__more { width: min(calc(100% - 32px), 1320px); }
	.g22-news-list__grid { grid-template-columns: 1fr; }
	.g22-news-list__filter a { flex: 1 1 auto; }
}

@media (forced-colors: active) {
	.g22-news-list__filter a,
	.g22-news-list__pagination .page-numbers,
	.g22-form input,
	.g22-form textarea { border: 1px solid ButtonText; }
}

/* ─── Google-відгуки (автостічка Places API) ──────────────────────── */
#reviews { padding-block: var(--g22-space-section); }
.g22-greviews__intro { max-width: 46rem; margin: 0 0 var(--g22-space-xl); }
.g22-greviews__intro h2 { margin: 0 0 var(--g22-space-sm); }
.g22-greviews__intro p { color: var(--g22-color-body); margin: 0; }
.g22-greviews__head {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--g22-space-sm) var(--g22-space-md);
	margin-bottom: var(--g22-space-xl);
}
.g22-greviews__score { font-size: var(--g22-text-display-md); line-height: 1; color: var(--g22-color-ink); }
.g22-greviews__meta { color: var(--g22-color-body); }
.g22-greviews__link { margin-inline-start: auto; color: var(--g22-color-link); font-weight: 600; }
.g22-greviews__list {
	list-style: none; margin: 0; padding: 0; display: grid; gap: var(--g22-space-lg);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.g22-greviews__item {
	background: var(--g22-color-surface-card); border: 1px solid var(--g22-color-hairline-soft);
	border-radius: var(--g22-radius-lg); padding: var(--g22-space-lg);
	display: flex; flex-direction: column; gap: var(--g22-space-sm);
}
.g22-greviews__text { margin: 0; color: var(--g22-color-body-strong); line-height: 1.65; }
.g22-greviews__author { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: var(--g22-space-sm); }
.g22-greviews__author span { color: var(--g22-color-ink); letter-spacing: 0.05em; }

/* ─── Вбудовані стрічки соцмереж (embed-віджети) ──────────────────── */
.g22-social__feeds {
	display: grid; gap: var(--g22-space-xl);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.g22-social__feed { min-width: 0; }
.g22-social__feed :where(iframe, img, video) { max-width: 100%; }

/* ─── View Transitions API — плавні cross-document переходи (1) ────── */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }

	/* Хедер/лого/футер зберігаються між сторінками — не блимають */
	.g22-header:not(.g22-header--taste) { view-transition-name: g22-header; }
	.g22-header:not(.g22-header--taste) .g22-header__logo { view-transition-name: g22-logo; }
	.g22-footer { view-transition-name: g22-footer; }

	/* Контент: старий гасне, новий підіймається */
	::view-transition-old(root) {
		animation: g22-vt-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
	}
	::view-transition-new(root) {
		animation: g22-vt-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}
}
@keyframes g22-vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes g22-vt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===========================================================================
   Botanical precision visual language
   ---------------------------------------------------------------------------
   A shared finish for the site: warm laboratory surfaces, deep sage ink,
   signal-lime only for decisive actions, and mono labels for navigation/data.
   It intentionally restyles the existing templates and blocks without
   changing their markup, editing controls or form behaviour.
   =========================================================================== */

/* This block used to fork the entire color system to a green "botanical"
   palette (#213634 ink, #cafd84 lime signal, #1d3230 canvas-deep…),
   completely shadowing the canon tokens for every page that falls through
   to these generic selectors. tokens.css is the single source of truth —
   every name below now resolves to a canon --g22-* value instead of a
   duplicated, off-palette hex fork. */
:root {
	--g22-color-ink: var(--g22-ink);
	--g22-color-body: var(--g22-ink-soft);
	--g22-color-body-strong: var(--g22-ink);
	--g22-color-muted: var(--g22-ink-mute);
	--g22-color-muted-soft: var(--g22-ink-mute);
	--g22-color-canvas: var(--g22-canvas);
	--g22-color-canvas-soft: var(--g22-paper);
	--g22-color-canvas-deep: var(--g22-purple-deep);
	--g22-color-surface-card: var(--g22-card);
	--g22-color-surface-strong: var(--g22-paper);
	--g22-color-hairline: var(--g22-line);
	--g22-color-hairline-soft: var(--g22-line-soft);
	--g22-color-hairline-strong: var(--g22-line);
	--g22-color-accent: var(--g22-purple);
	--g22-color-accent-hover: var(--g22-purple-hot);
	--g22-color-accent-active: var(--g22-purple-deep);
	--g22-color-accent-soft: var(--g22-purple-08);
	--g22-color-signal: var(--g22-yellow);
	--g22-color-signal-hover: var(--g22-yellow-hot);
	--g22-color-on-accent: var(--g22-on-purple);
	--g22-color-on-dark: var(--g22-on-dark);
	--g22-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--g22-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--g22-font-serif: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--g22-font-label: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
	--g22-shadow-card: var(--g22-shadow-none);
	--g22-shadow-lift: var(--g22-shadow-md);
	--g22-shadow-float: var(--g22-shadow-lg);
	--color-deep-ink: var(--g22-ink);
	--color-pure-white: var(--g22-card);
	--color-cool-ash: var(--g22-ink-mute);
	--color-pebble: var(--g22-line);
	--color-midnight-hull: var(--g22-purple-deep);
	--color-charcoal-deck: var(--g22-purple-deep);
	--color-clay-ember: var(--g22-yellow);
	--border-dark: rgba(248, 250, 244, .17);
	--text-on-dark-strong: var(--g22-on-dark);
	--text-on-dark-muted: rgba(248, 250, 244, .74);
	--text-on-dark-caption: rgba(248, 250, 244, .58);
	--text-on-dark-faint: rgba(248, 250, 244, .42);
	--radius-pill: var(--g22-r-pill);
	--fs-nav: 13px;
}

body {
	background: var(--g22-color-canvas);
	color: var(--g22-color-body);
}

/* Floating, contained masthead: the page remains a calm field behind it. */
.g22-header:not(.g22-header--taste) {
	top: 12px;
	width: min(calc(100% - 48px), 1440px);
	min-height: 64px;
	margin: 16px auto 0;
	padding: 7px 8px 7px 20px;
	border: 1px solid var(--g22-color-hairline);
	border-radius: 18px;
	background: rgba(252, 253, 249, .94);
	box-shadow: 0 10px 32px rgba(29, 50, 48, .05);
	backdrop-filter: blur(16px) saturate(1.08);
}

.g22-header:not(.g22-header--taste)::after { display: none; }
.g22-header:not(.g22-header--taste) .g22-header__logo { color: var(--g22-color-ink); font-size: 19px; }
.g22-header:not(.g22-header--taste) .g22-header__nav ul {
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--g22-color-hairline-soft);
	border-radius: 12px;
	background: rgba(246, 247, 243, .92);
}
.g22-header:not(.g22-header--taste) .g22-header__nav a {
	position: relative;
	min-height: 38px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	font-family: var(--g22-font-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--g22-color-ink);
	transition: background-color 180ms ease, color 180ms ease;
}
/* A11y: enlarge tap target to 44px min-height without altering the visible
   pill size — invisible hit-area layer, doesn't affect layout/hover box. */
.g22-header:not(.g22-header--taste) .g22-header__nav a::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 44px;
	transform: translateY(-50%);
}
.g22-header:not(.g22-header--taste) .g22-header__nav a:hover,
.g22-header:not(.g22-header--taste) .g22-header__nav .current-menu-item > a{
	border: 0;
	background: var(--g22-color-surface-strong);
	color: var(--g22-color-ink);
}
.g22-header:not(.g22-header--taste) .g22-header__cta {
	min-height: 48px;
	padding: 0 11px 0 17px;
	gap: 12px;
	border-radius: 10px;
	background: var(--g22-color-canvas-deep);
	font-family: var(--g22-font-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .01em;
	transition: background-color 180ms ease, transform 180ms ease;
}
.g22-header:not(.g22-header--taste) .g22-header__cta::after {
	content: '→';
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: 7px;
	background: var(--g22-color-signal);
	color: var(--g22-color-ink);
	font-family: var(--g22-font-body);
	font-size: 16px;
	line-height: 1;
}
.g22-header:not(.g22-header--taste) .g22-header__cta:hover { background: var(--g22-color-accent-hover); transform: translateY(-1px); }
.g22-header:not(.g22-header--taste) .g22-header__cta:active { transform: translateY(0); }

/* Inner pages inherit the editorial hierarchy rather than a generic CMS look. */
.g22-page-intro {
	min-height: min(53vw, 620px);
	display: grid;
	align-items: end;
	padding-block: clamp(110px, 14vw, 178px) clamp(56px, 7vw, 96px);
	background:
		radial-gradient(40rem 30rem at 93% 5%, rgba(202, 253, 132, .24), transparent 65%),
		linear-gradient(180deg, #f3f5ef 0%, #eaeee7 100%);
}
.g22-page-kicker,
.g22-page-content .g22-cards__eyebrow,
.g22-price-card__label,
.g22-footer__label {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--g22-font-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .035em;
	text-transform: uppercase;
	color: var(--g22-color-ink);
}
.g22-page-kicker::before,
.g22-page-content .g22-cards__eyebrow::before,
.g22-price-card__label::before,
.g22-footer__label::before {
	content: '';
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	background: var(--g22-color-signal);
}
.g22-page-title {
	max-width: 18ch;
	font-family: var(--g22-font-display);
	font-size: clamp(48px, 7vw, 104px);
	font-weight: 500;
	line-height: .98;
	letter-spacing: -.065em;
	color: var(--g22-color-ink);
}
.g22-page-summary {
	max-width: 60ch;
	font-size: clamp(16px, 1.35vw, 20px);
	line-height: 1.55;
	color: var(--g22-color-body);
}

/* Components: airy white material, soft geometric corners and one lime cue. */
.g22-card,
.g22-pricing-tier,
.g22-teacher,
.g22-news-list__item,
.g22-surface-panel {
	border: 1px solid rgba(219, 224, 215, .82);
	border-radius: 22px 22px 22px 8px;
	background: rgba(252, 253, 249, .94);
	box-shadow: none;
}
.g22-card,
.g22-pricing-tier,
.g22-teacher,
.g22-news-list__item {
	position: relative;
	overflow: hidden;
	transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.g22-card::after,
.g22-pricing-tier::after,
.g22-teacher::after {
	content: '→';
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 9px;
	background: var(--g22-color-signal);
	color: var(--g22-color-ink);
	font-size: 18px;
	line-height: 1;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 220ms ease;
}
.g22-card:hover,
.g22-pricing-tier:hover,
.g22-teacher:hover,
.g22-news-list__item:hover {
	border-color: #b8c6b6;
	box-shadow: var(--g22-shadow-lift);
	transform: translateY(-3px);
}
.g22-card:hover::after,
.g22-pricing-tier:hover::after,
.g22-teacher:hover::after { opacity: 1; transform: translateY(0); }
.g22-surface-panel { padding: clamp(24px, 3vw, 40px); }

.g22-button,
.g22-btn,
.g22-cta a,
.g22-form button,
.wp-element-button {
	border-radius: 10px;
	background: var(--g22-color-canvas-deep);
	color: var(--g22-color-on-dark);
	font-family: var(--g22-font-label);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .015em;
	transition: background-color 180ms ease, transform 180ms ease;
}
.g22-button:hover,
.g22-btn:hover,
.g22-cta a:hover,
.g22-form button:hover,
.wp-element-button:hover {
	background: var(--g22-color-accent-hover);
	transform: translateY(-1px);
}
.g22-button:active,
.g22-btn:active,
.g22-cta a:active,
.g22-form button:active,
.wp-element-button:active { transform: translateY(0); }

.g22-form input,
.g22-form select,
.g22-form textarea {
	border-color: var(--g22-line);
	border-radius: var(--g22-r-md);
	background: var(--g22-card);
	color: var(--g22-color-ink);
}
.g22-cta-panel {
	border: 1px solid rgba(202, 253, 132, .25);
	border-radius: 26px;
	background:
		radial-gradient(34rem 20rem at 100% 0, rgba(202, 253, 132, .17), transparent 64%),
		var(--g22-color-canvas-deep);
	box-shadow: none;
}
.g22-cta-panel .g22-form input,
.g22-cta-panel .g22-form textarea { background: rgba(248, 250, 244, .08); }

/* Footer: single purple-deep closing field, with an oversized mark.
   (Was a green-tinted radial glow — off-palette; locked palette has no
   green/teal, so the field is flat --g22-purple-deep now.) */
.g22-footer {
	position: relative;
	overflow: hidden;
	margin-top: clamp(48px, 8vw, 112px);
	border-radius: var(--g22-r-xl) var(--g22-r-xl) 0 0;
	background: var(--g22-color-canvas-deep);
	color: var(--g22-color-on-dark);
}
.g22-footer__wordmark {
	max-width: 1440px;
	margin: 0 auto;
	/* Fix 9 (design audit): the oversized mark's own top padding + huge
	   font-size were the main source of the "empty top third" of the
	   footer — trimmed both so .g22-footer__brand-row appears sooner. */
	padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px) clamp(16px, 2vw, 28px);
	font-family: var(--g22-font-display);
	font-size: clamp(48px, 9vw, 140px);
	font-weight: 500;
	line-height: .78;
	letter-spacing: -.085em;
	color: var(--g22-color-on-dark);
	white-space: nowrap;
	/*
	 * Design audit phase 3, item 3: scroll-linked parallax, written by
	 * home-why-scroll.js's existing rAF loop (--g22-footer-parallax, 0..1
	 * across the mark's own scroll-through). translateY only, transform is
	 * cheap/compositor-only. The 0.5 fallback keeps this at rest (dead
	 * center of its own -30px..+30px swing) on any page that renders this
	 * markup but doesn't load that script — a plain, static wordmark, same
	 * as if the property were never touched.
	 */
	transform: translateY(calc((0.5 - var(--g22-footer-parallax, 0.5)) * 60px));
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.g22-footer__wordmark {
		transform: none !important;
	}
}
.g22-footer__inner { position: relative; z-index: 1; }
/* Design audit phase 2, item 5: this was the mono eyebrow-label face on an
   actual button — buttons are Manrope only now, mono stays reserved for
   eyebrow/technical labels. Yellow-on-dark-footer was already the correct
   "accent" placement per the unified button system, so only the typeface
   changes here, not the color. */
.g22-footer__cta {
	border-radius: var(--g22-r-pill);
	background: var(--g22-yellow);
	color: var(--g22-on-yellow) !important;
	font-family: var(--g22-font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.g22-footer__cta:hover { background: var(--g22-yellow-hot); color: var(--g22-on-yellow) !important; }

/* Consult trigger — complementary ghost pill next to the solid yellow CTA. */
.g22-footer__consult {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--g22-r-pill);
	background: transparent;
	color: var(--g22-on-dark);
	font-family: var(--g22-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.01em;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color var(--g22-duration-base) var(--g22-ease-standard), color var(--g22-duration-base) var(--g22-ease-standard), border-color var(--g22-duration-base) var(--g22-ease-standard);
}

.g22-footer__consult:hover,
.g22-footer__consult:focus-visible {
	background: var(--g22-card);
	color: var(--g22-ink);
	border-color: var(--g22-card);
}

.g22-footer__consult:focus-visible { outline: 3px solid var(--g22-yellow); outline-offset: 3px; }

.g22-footer__label { color: var(--g22-color-on-dark); }
/* Brand-yellow bullet + higher-contrast address/phone copy inside the footer. */
.g22-footer__label::before { background: var(--g22-yellow); }
.g22-footer__contacts p,
.g22-footer__contacts p a { color: rgba(255, 255, 255, .82); }

/* Every footer link (nav sitemap, socials, contacts, map) hovers to yellow —
   one consistent on-dark link language, not a per-group mix of purple/white. */
.g22-footer__sitemap a:hover,
.g22-footer__sitemap a:focus-visible,
.g22-footer__map:hover,
.g22-footer__map:focus-visible {
	color: var(--g22-yellow) !important;
}

/* Client review: footer actions must stay readable in every hover state. */
@media (hover: hover) and (pointer: fine) {
	.g22-footer .g22-footer__social span {
		transition:
			transform var(--g22-duration-base) var(--g22-ease-enter),
			color var(--g22-duration-base) var(--g22-ease-standard);
	}
	.g22-footer .g22-footer__social:hover,
	.g22-footer .g22-footer__social:focus-visible {
		color: var(--g22-yellow) !important;
		background: transparent;
		border-bottom-color: var(--g22-yellow);
	}
	.g22-footer .g22-footer__social:hover span:first-child,
	.g22-footer .g22-footer__social:focus-visible span:first-child { transform: translateX(4px); }
	.g22-footer .g22-footer__social:hover span:last-child,
	.g22-footer .g22-footer__social:focus-visible span:last-child { color: var(--g22-yellow); }

	.g22-footer .g22-footer__contacts p a:hover,
	.g22-footer .g22-footer__contacts p a:focus-visible {
		color: var(--g22-yellow) !important;
	}
}

@media (max-width: 560px) {
	.g22-footer .g22-footer__contacts p a[data-g22-contact="phone"] {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		font-size: 1.05rem;
		font-weight: 700;
		color: #fff;
	}
}

@media (max-width: 820px) {
	.g22-header:not(.g22-header--taste) {
		top: 6px;
		width: calc(100% - 24px);
		margin-top: 8px;
		padding: 6px 7px 6px 14px;
		border-radius: 14px;
	}
	.g22-header:not(.g22-header--taste) .g22-header__nav {
		border-radius: 0 0 14px 14px;
		background: var(--g22-color-surface-card);
	}
	.g22-header:not(.g22-header--taste) .g22-header__nav ul { border: 0; background: transparent; }
	.g22-header:not(.g22-header--taste) .g22-header__nav a { min-height: 44px; font-family: var(--g22-font-body); font-size: 16px; }
	.g22-header:not(.g22-header--taste) .g22-header__cta { min-height: 42px; padding-left: 13px; }
	.g22-header:not(.g22-header--taste) .g22-header__cta::after { width: 26px; height: 26px; }
	.g22-page-intro { min-height: 0; padding-top: 112px; }
	.g22-footer { border-radius: var(--g22-r-lg) var(--g22-r-lg) 0 0; }
	.g22-footer__wordmark { font-size: clamp(48px, 14vw, 84px); letter-spacing: -.075em; }
}

@media (prefers-reduced-motion: reduce) {
	.g22-card,
	.g22-pricing-tier,
	.g22-teacher,
	.g22-news-list__item,
	.g22-header:not(.g22-header--taste) .g22-header__cta,
	.g22-button,
	.g22-btn,
	.g22-cta a,
	.g22-form button,
	.wp-element-button{ transition: none; }
}

/* ===========================================================================
   Editorial page composition — structure before decoration
   =========================================================================== */

body {
	font-feature-settings: 'kern' 1, 'liga' 1;
	line-height: 1.62;
}

.g22-page-intro__inner {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: clamp(16px, 2.4vw, 40px);
	align-items: end;
}
.g22-page-kicker { grid-column: 1 / -1; margin-bottom: clamp(32px, 4vw, 56px); }
.g22-page-title {
	grid-column: 1 / span 8;
	max-width: 13ch;
	margin: 0;
	font-size: clamp(50px, 7.4vw, 116px);
	font-weight: 500;
	letter-spacing: -.078em;
	line-height: .93;
}
.g22-page-summary {
	grid-column: 9 / -1;
	align-self: end;
	max-width: 31ch;
	margin: 0 0 .3em;
	font-size: clamp(16px, 1.25vw, 19px);
	line-height: 1.55;
}
.g22-page-content {
	width: min(1320px, calc(100% - 2 * clamp(20px, 4vw, 64px)));
	padding-top: clamp(72px, 10vw, 150px);
}
.g22-page-content > p,
.g22-page-content > ul,
.g22-page-content > ol,
.g22-page-content > blockquote { max-width: 62ch; }

/* Recast custom Gutenberg cards as an indexed content field. */
.g22-page-content .g22-cards {
	padding: clamp(32px, 5vw, 72px) 0;
}
.g22-page-content .g22-cards__head {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px clamp(16px, 2.4vw, 40px);
	max-width: none;
	margin: 0 0 clamp(44px, 6vw, 88px);
}
.g22-page-content .g22-cards__eyebrow { grid-column: 1 / span 3; margin: 0; align-self: start; }
.g22-page-content .g22-cards h2 {
	grid-column: 4 / -1;
	max-width: 15ch;
	margin: 0;
	font-family: var(--g22-font-display);
	font-size: clamp(38px, 5vw, 76px);
	font-weight: 500;
	line-height: .97;
	letter-spacing: -.07em;
}
.g22-page-content .g22-cards__intro {
	grid-column: 4 / span 5;
	max-width: 39ch;
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}
.g22-page-content .g22-cards__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 52px);
	border-top: 1px solid var(--g22-color-hairline);
	counter-reset: page-card;
}
.g22-page-content .g22-card {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	column-gap: 18px;
	grid-column: span 6;
	min-height: 0;
	padding: clamp(26px, 3vw, 42px) 0;
	border: 0;
	border-bottom: 1px solid var(--g22-color-hairline);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: transform 220ms cubic-bezier(.16, 1, .3, 1), color 180ms cubic-bezier(.16, 1, .3, 1);
}
.g22-page-content .g22-card::before {
	counter-increment: page-card;
	content: '0' counter(page-card);
	grid-column: 1;
	grid-row: 1 / span 2;
	margin: .45em 0 0;
	font-family: var(--g22-font-label);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .04em;
	color: var(--g22-color-muted);
}
.g22-page-content .g22-card::after,
.g22-pricing-tier::after,
.g22-teacher::after { content: none; }
.g22-page-content .g22-card h3 {
	grid-column: 2;
	margin: 0;
	font-family: var(--g22-font-display);
	font-size: clamp(22px, 2.05vw, 31px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -.05em;
}
.g22-page-content .g22-card p {
	grid-column: 2;
	max-width: 34ch;
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.58;
}
.g22-page-content .g22-card:hover {
	border-color: var(--g22-color-hairline);
	box-shadow: none;
	transform: translateX(8px);
}

/* Contained information keeps a quiet material contrast without a toy-card look. */
.g22-surface-panel {
	border: 0;
	border-radius: 28px 28px 8px 28px;
	background:
		linear-gradient(135deg, rgba(252, 253, 249, .96), rgba(235, 240, 231, .84));
	box-shadow: 0 1px 0 rgba(33, 54, 52, .08), 0 20px 44px rgba(33, 54, 52, .05);
}
.g22-page-section.g22-surface-panel { padding: clamp(32px, 5vw, 76px); }
.g22-price-card { position: relative; overflow: hidden; }
.g22-price-card::after {
	content: '';
	position: absolute;
	right: -12%;
	bottom: -38%;
	width: 52%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(202, 253, 132, .38);
	pointer-events: none;
}
.g22-price-card > * { position: relative; z-index: 1; }
.g22-price-card__value {
	font-family: var(--g22-font-display);
	font-size: clamp(42px, 4.5vw, 72px);
	font-weight: 500;
	letter-spacing: -.07em;
}

/* Interactive elements remain quick and physical, never bouncy. */
.g22-button:active,
.g22-btn:active,
.g22-cta a:active,
.g22-form button:active,
.wp-element-button:active { transform: scale(.975); }
.g22-header:not(.g22-header--taste) .g22-header__nav a:focus-visible,
.g22-header:not(.g22-header--taste) .g22-header__cta:focus-visible,
.g22-page-content a:focus-visible,
.g22-form input:focus-visible,
.g22-form textarea:focus-visible{
	outline: 3px solid rgba(202, 253, 132, .9);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.g22-page-intro__inner { grid-template-columns: 1fr; row-gap: 24px; }
	.g22-page-kicker,
	.g22-page-title,
	.g22-page-summary { grid-column: auto; }
	.g22-page-kicker { margin-bottom: 8px; }
	.g22-page-title { max-width: 12ch; }
	.g22-page-summary { max-width: 48ch; margin: 0; }
	.g22-page-content .g22-cards__head { grid-template-columns: 1fr; }
	.g22-page-content .g22-cards__eyebrow,
	.g22-page-content .g22-cards h2,
	.g22-page-content .g22-cards__intro { grid-column: auto; }
	.g22-page-content .g22-cards h2 { max-width: 14ch; }
	.g22-page-content .g22-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g22-page-content .g22-card { grid-column: span 1; }
}

@media (max-width: 600px) {
	.g22-page-content { width: min(100% - 32px, 1320px); }
	.g22-page-title { font-size: clamp(46px, 13vw, 74px); }
	.g22-page-content .g22-cards__grid { grid-template-columns: 1fr; }
	.g22-page-content .g22-card { grid-column: auto; }
}


/* Google reviews block — base structural reset. Full "phone" design lives in
   assets/css/home-henna.css (loaded site-wide); this stays generic so it
   never fights that layer. */
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
#reviews { scroll-margin-top: 96px; }
.g22-google-reviews--mosaic { padding: clamp(64px, 8vw, 104px) 0; background: #fff; }
.g22-google-reviews--mosaic .g22-google-reviews__mosaic-shell { width: min(100% - 48px, 1400px); margin: 0 auto; }

/* Contrast fix (2026-07-20): .g22-footer__map keeps resolving to
   var(--color-cool-ash) (2.57:1 on the purple footer bg) despite the
   sitemap/social fix above — a rule elsewhere in the cascade out-specifies
   both the .g22-footer a default and the new override, source not found
   after tracing every matching CSSOM rule live (incl. @media-nested ones).
   Pinning it directly here, at max practical specificity, closes it out. */
.g22-footer .g22-footer__contacts a.g22-footer__map {
	color: rgba(248, 250, 244, 0.78) !important;
}

/* Client review: "ховер на соцмережі і на номер мобільного нечитабельний" —
   same class of bug as .g22-footer__map above (something elsewhere in the
   cascade out-specifies the hover fix already declared near line ~2096).
   Pinning hover color at max practical specificity, same technique, so
   .g22-footer__social and the contact links (incl. the phone number) can
   never resolve back to a dark color on the dark purple footer. */
@media (hover: hover) and (pointer: fine) {
	.g22-footer .g22-footer__social:hover,
	.g22-footer .g22-footer__social:focus-visible,
	.g22-footer .g22-footer__social:hover span,
	.g22-footer .g22-footer__social:focus-visible span,
	.g22-footer .g22-footer__contacts a:hover,
	.g22-footer .g22-footer__contacts a:focus-visible,
	.g22-footer .g22-footer__contacts p a:hover,
	.g22-footer .g22-footer__contacts p a:focus-visible,
	.g22-footer .g22-footer__contacts a[data-g22-contact="phone"]:hover,
	.g22-footer .g22-footer__contacts a[data-g22-contact="phone"]:focus-visible {
		color: #ffd141 !important;
	}
}

/* ==========================================================================
   Consultation booking modal — [g22_form type="external_consult"] in a
   dialog, triggered by [data-g22-consult-open] (header + footer buttons).
   assets/js/consultation-modal.js owns hidden/open state + focus trap.
   ========================================================================== */

.g22-modal[hidden] { display: none; }

.g22-modal {
	position: fixed;
	inset: 0;
	z-index: 300; /* above .g22-header--taste (z-index: 100) */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--g22-space-base);
}

.g22-modal__backdrop{
	position: absolute;
	inset: 0;
	background: rgba(23, 21, 29, .6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.g22-modal__panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	padding: var(--g22-space-xl);
	border-radius: 18px;
	background: var(--g22-color-canvas);
	box-shadow: 0 30px 70px rgba(17, 17, 17, .3);
	opacity: 0;
	transform: translateY(12px) scale(.98);
}

@media (prefers-reduced-motion: no-preference) {
	.g22-modal__panel {
		transition: opacity var(--g22-duration-base) var(--g22-ease-out), transform var(--g22-duration-base) var(--g22-ease-out);
	}
}

.g22-modal--open .g22-modal__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.g22-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--g22-color-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color var(--g22-duration-fast) var(--g22-ease-standard), color var(--g22-duration-fast) var(--g22-ease-standard);
}

.g22-modal__close:hover,
.g22-modal__close:focus-visible {
	background: var(--g22-color-surface-strong);
	color: var(--g22-color-ink);
}

.g22-modal__close:focus-visible {
	outline: 3px solid var(--g22-color-accent);
	outline-offset: 2px;
}

.g22-modal__title {
	margin: 0 40px .5rem 0;
	font-size: var(--g22-text-display-sm);
}

.g22-modal__lead {
	margin: 0 0 var(--g22-space-base);
	color: var(--g22-color-muted);
	font-size: var(--g22-text-body-sm);
	line-height: var(--g22-leading-body);
}

.g22-modal .g22-form input,
.g22-modal .g22-form textarea {
	width: 100%;
}

.g22-modal .g22-form button {
	width: 100%;
	margin-top: var(--g22-space-xs);
	background: var(--g22-purple);
	color: var(--g22-on-purple);
}

.g22-modal .g22-form button:hover { background: var(--g22-purple-hot); }
.g22-modal .g22-form button:focus-visible { outline: 3px solid var(--g22-purple); }

body.g22-modal-open { overflow: hidden; }

@media (max-width: 560px) {
	.g22-modal { padding: var(--g22-space-sm); }
	.g22-modal__panel { padding: var(--g22-space-lg) var(--g22-space-base); }
}
