/* ==========================================================================
   ЗДО «Вільні» — main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Layout & UI  5. Header  6. Sections
   7. Inner pages  8. Forms & dialogs  9. Footer  10. Motion
   ========================================================================== */

/* 1. Fonts (self-hosted variable WOFF2, Cyrillic + Latin) ------------------ */
@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Nunito";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url("../fonts/nunito-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/lora-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/lora-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/caveat-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/caveat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens (colours taken from the logo) --------------------------------- */
:root {
	--c-bg: #fbf7f0;
	--c-bg-tint: #f5eee2;
	--c-surface: #ffffff;
	--c-surface-warm: #fffcf7;
	--c-ink: #1d2b21;
	--c-text: #3c473f;
	--c-muted: #66706a;
	--c-line: #e8dfd0;
	--c-green: #3c6345;
	--c-green-dark: #2d4d35;
	--c-green-mid: #6e8f6b;
	--c-green-soft: #e3ebdd;
	--c-sage: #c5d4bc;
	--c-peach: #fbbd71;
	--c-peach-soft: #fdebd6;
	--c-orange: #e9842f;
	--c-terracotta: #dd9367;
	--c-rose: #fbe3de;
	--c-rose-ink: #c4584f;

	--ff-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ff-serif: "Lora", Georgia, "Times New Roman", serif;
	--ff-hand: "Caveat", "Segoe Print", cursive;

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 28px;
	--shadow-sm: 0 2px 10px rgba(29, 43, 33, 0.06);
	--shadow: 0 18px 40px -18px rgba(29, 43, 33, 0.25);

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 80px;
	--section-y: clamp(56px, 8vw, 100px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

h1,
h2,
h3,
h4 {
	color: var(--c-ink);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
}

a {
	color: var(--c-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--c-green-dark);
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

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

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--c-peach);
	outline-offset: 2px;
	border-radius: 6px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 2000;
	padding: 12px 18px;
	background: var(--c-surface);
	color: var(--c-ink);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

.svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.hand {
	font-family: var(--ff-hand);
}

/* 4. Layout & UI ---------------------------------------------------------- */
.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.section {
	padding-block: var(--section-y);
	position: relative;
}

.section--tint {
	background: var(--c-bg-tint);
}

.section--content {
	padding-block: clamp(40px, 6vw, 72px);
}

.section-head {
	margin-bottom: clamp(24px, 3vw, 36px);
	max-width: 720px;
}

.eyebrow {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-green);
}

.section-title {
	font-size: clamp(28px, 3.2vw, 40px);
	margin-top: 8px;
}

.section-lead {
	margin-top: 12px;
	color: var(--c-muted);
	font-size: 17px;
}

.section-head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(24px, 3vw, 36px);
}

.section-head-row .section-head {
	margin-bottom: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.8em 1.6em;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn .icon {
	width: 18px;
	height: 18px;
	flex: none;
	transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--c-green);
	color: #fff;
	box-shadow: 0 10px 22px -12px rgba(60, 99, 69, 0.8);
}

.btn--primary:hover {
	background: var(--c-green-dark);
	color: #fff;
}

.btn--outline {
	border-color: rgba(29, 43, 33, 0.35);
	color: var(--c-ink);
	background: transparent;
}

.btn--outline:hover {
	border-color: var(--c-ink);
	background: var(--c-surface);
	color: var(--c-ink);
}

.btn--light {
	background: var(--c-surface);
	border-color: var(--c-line);
	color: var(--c-ink);
	box-shadow: var(--shadow-sm);
}

.btn--light:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.btn--sm {
	min-height: 42px;
	padding: 0.6em 1.3em;
	font-size: 14.5px;
}

.btn--lg {
	min-height: 56px;
	padding: 1em 2.2em;
	font-size: 16px;
}

.btn--block {
	width: 100%;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-ink);
	transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover {
	background: var(--c-green-soft);
	color: var(--c-green);
}

.icon-btn .icon {
	width: 22px;
	height: 22px;
}

/* Icon badges with tones */
.icon-badge {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-peach-soft);
	color: var(--c-orange);
}

.icon-badge .icon {
	width: 26px;
	height: 26px;
}

.icon-badge--green {
	background: var(--c-green-soft);
	color: var(--c-green);
}

.icon-badge--sage {
	background: #eef2e8;
	color: var(--c-green-mid);
}

.icon-badge--rose {
	background: var(--c-rose);
	color: var(--c-rose-ink);
}

/* Doodles */
.doodle {
	position: absolute;
	pointer-events: none;
	height: auto;
}

.doodle--heart {
	color: var(--c-rose-ink);
}

.doodle--burst {
	color: var(--c-peach);
}

.doodle--branch,
.doodle--leaf {
	color: var(--c-green-mid);
}

.doodle--swirl {
	color: var(--c-peach);
}

/* Handwritten note on a cream blob */
.badge-note {
	position: absolute;
	display: grid;
	place-items: center;
	width: clamp(130px, 13vw, 168px);
	aspect-ratio: 1.1;
	padding: 18px;
	border-radius: 54% 46% 52% 48% / 48% 56% 44% 52%;
	background: rgba(251, 244, 234, 0.94);
	box-shadow: var(--shadow-sm);
	font-family: var(--ff-hand);
	font-size: clamp(20px, 1.8vw, 25px);
	line-height: 1.05;
	color: var(--c-ink);
	text-align: center;
	transform: rotate(-8deg);
	z-index: 2;
}

.badge-note .doodle {
	position: static;
	width: 26px;
	margin-top: 4px;
}

/* Blob-shaped photo */
.blob-photo {
	clip-path: url(#zv-clip-blob);
	aspect-ratio: 6 / 5;
	background: var(--c-sage);
}

.blob-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Cards */
.card-grid,
.post-grid,
.teacher-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card-grid > *,
.post-grid > * {
	flex: 1 1 250px;
	max-width: 380px;
}

.card-grid > * {
	flex-basis: 200px;
	max-width: calc((100% - 72px) / 4);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.card__media {
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: var(--c-sage);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
	transform: scale(1.04);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0 22px 22px;
}

.card__body > .icon-badge {
	margin-top: -26px;
	border: 4px solid var(--c-surface);
	box-sizing: content-box;
	position: relative;
}

.card__title {
	font-size: 17.5px;
	margin: 12px 0 6px;
}

.post-card .card__body {
	padding-top: 20px;
}

.post-card .card__title {
	margin-top: 8px;
}

.card__text {
	font-size: 15px;
	color: var(--c-muted);
	margin-bottom: 16px;
}

.card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--c-green);
	text-decoration: none;
}

.card__link .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--ease);
}

.card:hover .card__link .icon {
	transform: translateX(4px);
}

.stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.post-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--c-muted);
}

.post-date .icon {
	width: 16px;
	height: 16px;
}

/* Contact list items */
.contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
}

.contact-item .icon {
	flex: none;
	width: 19px;
	height: 19px;
	margin-top: 2px;
	color: var(--c-green);
}

.contact-item a {
	color: inherit;
	text-decoration: none;
}

.contact-item a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

.is-placeholder {
	color: var(--c-rose-ink);
	font-style: italic;
}

/* Carousel */
.carousel {
	position: relative;
}

.carousel__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 4px 0 8px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__item {
	flex: none;
	scroll-snap-align: start;
}

.carousel__btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-ink);
	box-shadow: var(--shadow);
	transform: translateY(-50%);
	transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}

.carousel__btn:hover {
	background: var(--c-green);
	color: #fff;
}

.carousel__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

.carousel__btn .icon {
	width: 20px;
	height: 20px;
}

.carousel__btn--prev {
	left: -22px;
}

.carousel__btn--next {
	right: -22px;
}

.carousel__dots {
	display: flex;
	gap: 10px;
}

.carousel__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 1.5px solid var(--c-green);
	border-radius: 50%;
	background: transparent;
	transition: background-color 0.2s, transform 0.2s;
}

.carousel__dot[aria-current="true"] {
	background: var(--c-green);
	transform: scale(1.1);
}

/* 5. Header --------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(251, 247, 240, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: box-shadow 0.3s;
}

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

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header.is-scrolled,
body.is-locked .site-header {
	box-shadow: 0 6px 24px -14px rgba(29, 43, 33, 0.35);
	background: var(--c-bg);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	color: var(--c-ink);
	text-decoration: none;
}

.brand:hover {
	color: var(--c-ink);
}

.brand__mark {
	width: 54px;
	height: 54px;
}

.brand__text {
	display: grid;
	line-height: 1.1;
}

.brand__name {
	font-size: 25px;
	font-weight: 900;
	letter-spacing: -0.01em;
}

.brand__slogan {
	font-size: 11.5px;
	color: var(--c-muted);
	margin-top: 3px;
}

.brand--custom img {
	max-height: 60px;
	width: auto;
}

.site-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu--primary {
	display: flex;
	align-items: center;
	gap: 4px;
}

.menu--primary > li {
	position: relative;
}

.menu--primary a {
	display: block;
	padding: 10px 12px;
	color: var(--c-ink);
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 10px;
	transition: color 0.2s, background-color 0.2s;
}

.menu--primary > li > a {
	position: relative;
}

.menu--primary > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--c-green);
	transform: scaleX(0);
	transition: transform 0.25s var(--ease);
}

.menu--primary > li > a:hover::after,
.menu--primary > .current-menu-item > a::after,
.menu--primary > .current-menu-ancestor > a::after,
.menu--primary > .current_page_item > a::after {
	transform: scaleX(1);
}

.menu--primary a:hover {
	color: var(--c-green);
}

.menu--primary .menu-item-has-children > a {
	padding-right: 26px;
}

.menu--primary .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}

.menu--primary .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--c-surface);
	border-radius: 16px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.menu--primary li:hover > .sub-menu,
.menu--primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.menu--primary .sub-menu a:hover {
	background: var(--c-green-soft);
}

.sub-menu-toggle {
	display: none;
}

.site-nav__extra {
	display: none;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.nav-toggle {
	display: none;
}

.nav-toggle__close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

.search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 20px 0 24px;
	background: var(--c-bg);
	box-shadow: 0 16px 30px -18px rgba(29, 43, 33, 0.35);
	border-top: 1px solid var(--c-line);
}

.search-panel[hidden] {
	display: none;
}

.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 720px;
	margin-inline: auto;
	padding: 6px 6px 6px 18px;
	background: var(--c-surface);
	border: 1.5px solid var(--c-line);
	border-radius: 999px;
	transition: border-color 0.2s;
}

.search-form:focus-within {
	border-color: var(--c-green);
}

.search-form__icon {
	width: 20px;
	height: 20px;
	color: var(--c-muted);
	flex: none;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 16px;
	padding: 8px 0;
}

.search-form__input:focus {
	outline: none;
}

@media (max-width: 1100px) {
	:root {
		--header-h: 70px;
	}

	/* backdrop-filter would make the header the containing block of the fixed menu panel */
	.site-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--c-bg);
	}

	.nav-toggle {
		display: inline-grid;
	}

	.site-header__actions {
		margin-left: auto;
	}

	.site-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		bottom: 0;
		display: block;
		padding: 12px var(--gutter) 32px;
		background: var(--c-bg);
		overflow-y: auto;
		overscroll-behavior: contain;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
	}

	.admin-bar .site-nav {
		top: calc(var(--header-h) + 46px);
	}

	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.menu--primary {
		display: block;
	}

	.menu--primary > li {
		border-bottom: 1px solid var(--c-line);
	}

	.menu--primary a {
		padding: 16px 4px;
		font-size: 18px;
	}

	.menu--primary > li > a::after,
	.menu--primary .menu-item-has-children > a::before {
		display: none;
	}

	.menu--primary .menu-item-has-children > a {
		padding-right: 56px;
	}

	.sub-menu-toggle {
		display: grid;
		position: absolute;
		right: 0;
		top: 8px;
	}

	.sub-menu-toggle .icon {
		transition: transform 0.2s;
	}

	.sub-menu-toggle[aria-expanded="true"] .icon {
		transform: rotate(180deg);
	}

	.menu--primary .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 12px 12px;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.menu--primary .sub-menu.is-open {
		display: block;
	}

	.menu--primary .sub-menu a {
		padding: 10px 4px;
		font-size: 16px;
		font-weight: 600;
		color: var(--c-text);
	}

	.site-nav__extra {
		display: grid;
		gap: 24px;
		margin-top: 28px;
	}

	.site-nav__contacts {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 12px;
	}
}

@media (max-width: 1100px) and (min-width: 783px) {
	.admin-bar .site-nav {
		top: calc(var(--header-h) + 32px);
	}
}

@media (max-width: 600px) {
	.admin-bar .site-nav {
		top: var(--header-h);
	}
}

@media (max-width: 640px) {
	.site-header__cta {
		display: none;
	}

	.site-header__inner {
		gap: 12px;
	}

	.brand__mark {
		width: 44px;
		height: 44px;
	}

	.brand__name {
		font-size: 21px;
	}

	.brand__slogan {
		font-size: 10.5px;
	}
}

@media (max-width: 380px) {
	.brand__slogan {
		display: none;
	}
}

/* 6. Homepage sections ---------------------------------------------------- */

/* Hero */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 46vw, 700px);
	padding-block: clamp(40px, 6vw, 72px);
	overflow: hidden;
}

.hero__inner {
	position: relative;
	z-index: 2;
}

.hero__content {
	position: relative;
	max-width: min(580px, 48%);
}

.hero__title {
	font-family: var(--ff-serif);
	font-weight: 500;
	font-size: clamp(34px, 3.4vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.hero__accent {
	display: block;
	font-family: var(--ff-hand);
	font-weight: 700;
	font-size: 1.5em;
	line-height: 0.95;
	color: var(--c-green);
	letter-spacing: 0;
	margin-bottom: 0.08em;
}

.hero__text {
	margin: 22px 0 32px;
	max-width: 46ch;
	font-size: 18px;
	color: var(--c-text);
}

.hero__burst {
	width: 46px;
	left: -48px;
	top: -18px;
	transform: rotate(-12deg);
	color: var(--c-ink);
}

.hero__heart {
	width: 48px;
	right: 2%;
	top: -6px;
	transform: rotate(10deg);
}

.hero__media {
	position: absolute;
	top: 12px;
	right: 0;
	bottom: 12px;
	width: 58%;
	margin: 0;
}

.hero__photo {
	width: 100%;
	height: 100%;
	clip-path: url(#zv-clip-hero);
	background: var(--c-sage);
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 40%;
}

.badge-note--hero {
	top: 9%;
	right: 5%;
}

.hero__branch {
	width: 120px;
	left: -18px;
	bottom: 10px;
	transform: rotate(-20deg);
	opacity: 0.85;
}

@media (max-width: 900px) {
	.hero {
		display: block;
		min-height: 0;
		padding-bottom: 24px;
	}

	.hero__content {
		max-width: 620px;
	}

	.hero__burst {
		left: auto;
		right: 0;
		top: -24px;
	}

	.hero__heart {
		display: none;
	}

	.hero__media {
		position: relative;
		top: auto;
		bottom: auto;
		width: calc(100% - var(--gutter));
		margin: 36px 0 0 auto;
		height: clamp(280px, 62vw, 460px);
	}

	.hero__branch {
		display: none;
	}
}

@media (max-width: 480px) {
	.hero__text {
		font-size: 16.5px;
	}

	.hero .btn-row .btn {
		width: 100%;
	}

	.badge-note--hero {
		width: 118px;
		font-size: 19px;
		top: auto;
		bottom: 10%;
		right: 4%;
	}
}

/* Advantages */
.advantages {
	padding-block: clamp(28px, 4vw, 44px);
	background: var(--c-bg-tint);
}

.advantages__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.advantage {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 6px 24px;
}

.advantage + .advantage {
	border-left: 1px solid var(--c-line);
}

.advantage__title {
	font-size: 16.5px;
	margin: 4px 0 4px;
}

.advantage__text {
	font-size: 14.5px;
	color: var(--c-muted);
	line-height: 1.5;
}

@media (max-width: 1000px) {
	.advantages__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.advantage:nth-child(odd) {
		border-left: 0;
	}
}

@media (max-width: 560px) {
	.advantages__list {
		grid-template-columns: 1fr;
	}

	.advantage {
		padding: 4px 0;
	}

	.advantage + .advantage {
		border-left: 0;
	}
}

/* About */
.about__grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(32px, 6vw, 72px);
	align-items: center;
}

.about__content {
	position: relative;
}

.about__content .section-lead {
	font-size: 17.5px;
	margin-bottom: 28px;
	color: var(--c-text);
}

.about__burst {
	width: 42px;
	right: 6%;
	top: 24px;
	color: var(--c-peach);
}

.about__media {
	position: relative;
	margin: 0;
}

.about__leaf {
	z-index: 2;
}

.about__leaf--top {
	width: 64px;
	left: 4%;
	top: -14px;
	transform: rotate(-30deg);
	color: var(--c-green-mid);
}

.about__leaf--bottom {
	width: 120px;
	right: -2%;
	bottom: -4%;
	transform: rotate(190deg);
	color: var(--c-green);
}

.badge-note--about {
	top: 2%;
	right: 4%;
}

@media (max-width: 900px) {
	.about__grid {
		grid-template-columns: 1fr;
	}
}

/* Gallery strip */
.gallery-strip__item {
	width: calc((100% - 4 * 16px) / 5);
}

.gallery-strip__item a {
	display: block;
	aspect-ratio: 1 / 0.85;
	overflow: hidden;
	border-radius: 18px;
	background: var(--c-sage);
}

.gallery-strip__item img,
.gallery-grid__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.gallery-strip__item a:hover img,
.gallery-grid__item a:hover img {
	transform: scale(1.05);
}

@media (max-width: 1000px) {
	.gallery-strip__item {
		width: calc((100% - 2 * 16px) / 3);
	}
}

@media (max-width: 600px) {
	.gallery-strip__item {
		width: 72%;
	}

	.carousel__btn--prev {
		left: 6px;
	}

	.carousel__btn--next {
		right: 6px;
	}
}

@media (min-width: 601px) and (max-width: 1290px) {
	.carousel__btn--prev {
		left: -8px;
	}

	.carousel__btn--next {
		right: -8px;
	}
}

/* CTA band */
.cta {
	padding-block: clamp(24px, 4vw, 48px);
}

.cta__band {
	display: grid;
	grid-template-columns: 1.4fr auto;
	align-items: center;
	gap: 24px 48px;
	padding: clamp(44px, 5vw, 64px) clamp(24px, 5vw, 64px);
	clip-path: url(#zv-clip-band);
	background:
		radial-gradient(120% 140% at 0% 50%, #e39a6c 0%, #e6a479 48%, rgba(230, 164, 121, 0) 70%),
		linear-gradient(100deg, #e39a6c 0%, #f3cdb1 64%, #f8e0cc 100%);
}

.cta__title {
	color: #fff;
	font-size: clamp(26px, 3vw, 36px);
	max-width: 22ch;
	text-shadow: 0 1px 12px rgba(150, 70, 30, 0.18);
}

.cta__text {
	margin-top: 12px;
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.95);
	font-size: 16.5px;
}

.cta__action {
	position: relative;
	padding-right: 56px;
}

.cta__heart {
	width: 44px;
	right: 0;
	top: -34px;
	color: var(--c-green);
	transform: rotate(12deg);
}

@media (max-width: 860px) {
	.cta__band {
		grid-template-columns: 1fr;
		background: linear-gradient(160deg, #e39a6c 0%, #e6a479 55%, #f3cdb1 100%);
	}

	.cta__action {
		padding-right: 0;
	}

	.cta__heart {
		display: none;
	}
}

@media (max-width: 480px) {
	.cta__action .btn {
		width: 100%;
	}
}

/* Reasons */
.reasons {
	overflow: hidden;
	padding-block: clamp(48px, 6vw, 72px);
}

.reasons .section-title {
	margin: 0 0 clamp(24px, 3vw, 36px);
}

.reasons__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.reason {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 4px 24px;
}

.reason:first-child {
	padding-left: 0;
}

.reason + .reason {
	border-left: 1px solid var(--c-line);
}

.reason__icon {
	flex: none;
	width: 46px;
	height: 46px;
	stroke-width: 1.5;
	color: var(--c-orange);
}

.reason--rose .reason__icon {
	color: var(--c-rose-ink);
}

.reason--green .reason__icon,
.reason--sage .reason__icon {
	color: var(--c-green);
}

.reason__text {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--c-ink);
	line-height: 1.4;
}

.reasons__branch {
	width: 130px;
	right: 1%;
	top: -6px;
	transform: rotate(150deg);
	opacity: 0.8;
}

@media (max-width: 1000px) {
	.reasons__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.reason:nth-child(odd) {
		border-left: 0;
		padding-left: 0;
	}

	.reasons__branch {
		display: none;
	}
}

@media (max-width: 560px) {
	.reasons__list {
		grid-template-columns: 1fr;
	}

	.reason {
		padding-inline: 0;
	}

	.reason + .reason {
		border-left: 0;
	}
}

/* Reviews */
.reviews__track .review-card {
	width: calc((100% - 16px) / 2);
}

.review-card {
	position: relative;
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 22px;
	padding: 28px 28px 30px;
	background: var(--c-surface-warm);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.review-card__avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: var(--c-peach-soft);
	font-family: var(--ff-hand);
	font-size: 44px;
	font-weight: 700;
	color: var(--c-terracotta);
}

.review-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.review-card__body {
	margin: 0;
	padding-right: 32px;
}

.review-card__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--c-text);
}

.review-card__text p {
	margin: 0;
}

.review-card__author {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 800;
	color: var(--c-ink);
}

.review-card__heart {
	width: 36px;
	right: 22px;
	bottom: 20px;
}

@media (max-width: 860px) {
	.reviews__track .review-card {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.review-card {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 24px 22px;
	}

	.review-card__avatar {
		width: 64px;
		height: 64px;
		font-size: 34px;
	}

	.review-card__body {
		padding-right: 0;
	}
}

/* Teachers */
.teacher-grid > * {
	flex: 1 1 220px;
	max-width: 285px;
}

.teacher-card {
	padding: 14px 14px 22px;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	text-align: center;
}

.teacher-card__photo {
	aspect-ratio: 1;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(140deg, var(--c-green-soft), var(--c-peach-soft));
	margin-bottom: 16px;
}

.teacher-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teacher-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--c-green-mid);
}

.teacher-card__placeholder .icon {
	width: 64px;
	height: 64px;
	stroke-width: 1.3;
}

.teacher-card__name {
	font-size: 17px;
}

.teacher-card__position {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-green);
}

.teacher-card__text {
	margin-top: 8px;
	font-size: 14px;
	color: var(--c-muted);
	line-height: 1.5;
}

@media (max-width: 520px) {
	.teacher-grid > * {
		flex-basis: calc(50% - 12px);
	}
}

@media (max-width: 1000px) {
	.card-grid > * {
		max-width: calc((100% - 24px) / 2);
	}
}

@media (max-width: 600px) {
	.card-grid > *,
	.post-grid > * {
		max-width: none;
		min-width: 0;
		flex-basis: 100%;
	}
}

/* 7. Inner pages ---------------------------------------------------------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px);
	background: var(--c-bg-tint);
}

.page-hero__inner {
	position: relative;
	z-index: 1;
}

.page-hero--media .page-hero__inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.page-hero__title {
	font-size: clamp(32px, 4.2vw, 52px);
	margin-top: 12px;
}

.page-hero__meta {
	margin-top: 12px;
}

.page-hero__intro {
	margin-top: 16px;
	max-width: 56ch;
	font-size: 18px;
	color: var(--c-muted);
}

.page-hero__media {
	position: relative;
}

.page-hero__leaf {
	width: 76px;
	left: -14px;
	bottom: -6px;
	transform: rotate(-20deg);
	color: var(--c-green);
}

.page-hero__swirl {
	width: 150px;
	right: 4%;
	bottom: 14px;
	opacity: 0.7;
}

.page-hero--media .page-hero__swirl {
	display: none;
}

@media (max-width: 860px) {
	.page-hero--media .page-hero__inner {
		grid-template-columns: 1fr;
	}

	.page-hero__media {
		max-width: 520px;
	}

	.page-hero__swirl {
		display: none;
	}
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	color: var(--c-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 8px;
	opacity: 0.6;
}

.breadcrumbs a {
	color: var(--c-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

/* Prose (editor content) */
.prose {
	max-width: 780px;
	font-size: 17.5px;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	font-size: clamp(24px, 2.4vw, 30px);
	margin-top: 1.8em;
}

.prose h3 {
	font-size: 21px;
	margin-top: 1.6em;
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0.6em;
}

.prose > :first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.45em;
}

.prose li::marker {
	color: var(--c-green);
}

.prose strong {
	color: var(--c-ink);
}

.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--c-peach);
	font-style: italic;
}

.prose img,
.prose .wp-block-image img {
	border-radius: 18px;
}

.prose figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--c-muted);
	text-align: center;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}

.prose .wp-block-button__link {
	border-radius: 999px;
	background: var(--c-green);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.prose .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.prose .wp-block-file__button {
	border-radius: 999px;
	background: var(--c-green);
}

.single-cover {
	max-width: 960px;
	margin: 0 0 40px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.single-cover img {
	width: 100%;
}

.post-nav {
	max-width: 780px;
	margin-top: 56px;
}

.post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-nav a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	background: var(--c-surface);
	border-radius: 16px;
	text-decoration: none;
	box-shadow: var(--shadow-sm);
}

.post-nav .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-nav__label {
	display: block;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.post-nav__title {
	display: block;
	margin-top: 4px;
	font-weight: 800;
	color: var(--c-ink);
}

@media (max-width: 600px) {
	.post-nav .nav-links {
		grid-template-columns: 1fr;
	}

	.post-nav .nav-next {
		grid-column: auto;
	}
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-ink);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--c-green);
	color: #fff;
}

.pagination .icon {
	width: 18px;
	height: 18px;
}

.empty-state {
	display: grid;
	justify-items: center;
	gap: 20px;
	padding: 24px 0 8px;
	text-align: center;
	color: var(--c-muted);
}

.empty-state .doodle {
	position: static;
	width: 56px;
}

.empty-state .search-form {
	width: 100%;
}

.empty-state__code {
	font-size: clamp(90px, 14vw, 140px);
	line-height: 1;
	color: var(--c-green);
}

/* Documents */
.docs__layout {
	display: grid;
	grid-template-columns: 290px 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.docs__nav {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 24px;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.docs__nav-title {
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-green);
}

.docs__nav ol {
	margin: 0;
	padding: 0 0 0 1.3em;
	display: grid;
	gap: 8px;
	font-size: 14.5px;
	line-height: 1.4;
}

.docs__nav li::marker {
	color: var(--c-muted);
	font-weight: 700;
}

.docs__nav a {
	color: var(--c-ink);
	text-decoration: none;
	font-weight: 600;
}

.docs__nav a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

.doc-section {
	padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 34px);
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc-section + .doc-section {
	margin-top: 20px;
}

.doc-section__title {
	font-size: clamp(20px, 2vw, 23px);
	margin-bottom: 12px;
}

.doc-section__desc {
	color: var(--c-muted);
	margin-bottom: 12px;
}

.doc-subsection {
	margin-top: 20px;
}

.doc-subsection__title {
	font-size: 16px;
	color: var(--c-green);
	margin-bottom: 4px;
}

.doc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.doc-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
}

.doc-item + .doc-item {
	border-top: 1px solid var(--c-line);
}

.doc-item__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--c-green-soft);
	color: var(--c-green);
}

.doc-item__icon .icon {
	width: 22px;
	height: 22px;
}

.doc-item__body {
	flex: 1;
	min-width: 0;
}

.doc-item__title {
	display: block;
	font-weight: 700;
	color: var(--c-ink);
	text-decoration: none;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.doc-item__title:hover {
	color: var(--c-green);
	text-decoration: underline;
}

.doc-item__meta {
	display: block;
	font-size: 13px;
	color: var(--c-muted);
}

.doc-empty {
	color: var(--c-muted);
	font-style: italic;
	font-size: 15.5px;
}

@media (max-width: 900px) {
	.docs__layout {
		grid-template-columns: 1fr;
	}

	.docs__nav {
		position: static;
	}
}

/* Contacts */
.contacts__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

.contact-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-card {
	padding: 22px;
	background: var(--c-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.contact-card__label {
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.contact-card .contact-item {
	font-size: 16px;
	font-weight: 600;
	color: var(--c-ink);
}

.contacts__text {
	margin-top: 28px;
	font-size: 16.5px;
}

.contacts__form {
	padding: clamp(24px, 3vw, 36px);
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.contacts__form-title {
	font-size: clamp(22px, 2.4vw, 28px);
}

.contacts__form-text {
	margin: 8px 0 22px;
	color: var(--c-muted);
	font-size: 15.5px;
}

.contacts__map {
	margin-top: clamp(32px, 5vw, 56px);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--c-sage);
	box-shadow: var(--shadow-sm);
}

.contacts__map iframe {
	width: 100%;
	height: clamp(320px, 40vw, 440px);
	border: 0;
}

@media (max-width: 900px) {
	.contacts__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.contact-cards {
		grid-template-columns: 1fr;
	}
}

/* Gallery page */
.gallery-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-grid__item {
	flex: 0 0 calc((100% - 3 * 16px) / 4);
	max-width: calc((100% - 3 * 16px) / 4);
}

.gallery-grid__item a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 18px;
	background: var(--c-sage);
}

@media (max-width: 900px) {
	.gallery-grid__item {
		flex-basis: calc((100% - 2 * 16px) / 3);
		max-width: calc((100% - 2 * 16px) / 3);
	}
}

@media (max-width: 560px) {
	.gallery-grid {
		gap: 10px;
	}

	.gallery-grid__item {
		flex-basis: calc((100% - 10px) / 2);
		max-width: calc((100% - 10px) / 2);
	}
}

/* Lightbox */
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(14, 22, 16, 0.94);
	color: #fff;
}

.lightbox::backdrop {
	background: rgba(14, 22, 16, 0.6);
}

.lightbox__stage {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 64px 72px;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100dvh - 128px);
	width: auto;
	height: auto;
	border-radius: 12px;
	object-fit: contain;
}

.lightbox .icon-btn {
	position: absolute;
	width: 52px;
	height: 52px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.lightbox .icon-btn:hover {
	background: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.lightbox__close {
	top: 16px;
	right: 16px;
}

.lightbox__prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__count {
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	font-size: 14px;
	opacity: 0.8;
}

@media (max-width: 600px) {
	.lightbox__stage {
		padding: 64px 12px;
	}

	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 8px;
		transform: none;
	}
}

/* 8. Forms & dialogs ------------------------------------------------------ */
.lead-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.lead-form--compact .lead-form__grid {
	grid-template-columns: 1fr;
	gap: 14px;
}

.field {
	margin: 0;
}

.field--wide {
	grid-column: 1 / -1;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-ink);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--c-line);
	border-radius: 14px;
	background: var(--c-surface-warm);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c6345' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
}

.field textarea {
	resize: vertical;
	min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--c-green);
	box-shadow: 0 0 0 4px rgba(60, 99, 69, 0.14);
}

.field--check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0 20px;
}

.field--check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--c-green);
}

.field--check label {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--c-muted);
}

@media (max-width: 560px) {
	.lead-form__grid {
		grid-template-columns: 1fr;
	}

	.lead-form .btn {
		width: 100%;
	}
}

.notice-inline {
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--c-rose);
	color: var(--c-rose-ink);
	font-size: 14.5px;
}

/* Lead dialog */
.modal {
	width: min(520px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.modal::backdrop {
	background: rgba(29, 43, 33, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.modal__box {
	position: relative;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: clamp(28px, 4vw, 40px) clamp(20px, 4vw, 36px);
	background: var(--c-bg);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.modal[open] .modal__box {
	animation: zv-pop 0.3s var(--ease);
}

@keyframes zv-pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}

.modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
}

.modal__title {
	margin-top: 6px;
	font-size: clamp(26px, 3vw, 32px);
}

.modal__text {
	margin: 8px 0 22px;
	color: var(--c-muted);
	font-size: 15.5px;
}

/* Floating CTA */
.float-cta {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--c-green);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	box-shadow: 0 16px 30px -12px rgba(45, 77, 53, 0.7);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s;
}

.float-cta.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.float-cta:hover {
	background: var(--c-green-dark);
}

.float-cta .icon {
	width: 20px;
	height: 20px;
}

body.is-locked .float-cta {
	opacity: 0;
	visibility: hidden;
}

@media (max-width: 480px) {
	.float-cta {
		right: 14px;
		bottom: 14px;
		padding: 14px;
	}

	.float-cta span {
		display: none;
	}
}

/* Toast */
.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 1100;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min(560px, calc(100% - 32px));
	padding: 14px 10px 14px 18px;
	background: var(--c-surface);
	border-left: 5px solid var(--c-green);
	border-radius: 16px;
	box-shadow: var(--shadow);
	transform: translateX(-50%);
	animation: zv-toast 0.4s var(--ease);
}

.toast > .icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--c-green);
}

.toast p {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-ink);
}

.toast--error,
.toast--invalid {
	border-left-color: var(--c-rose-ink);
}

.toast--error > .icon,
.toast--invalid > .icon {
	color: var(--c-rose-ink);
}

@keyframes zv-toast {
	from {
		opacity: 0;
		transform: translate(-50%, 20px);
	}
}

/* 9. Footer --------------------------------------------------------------- */
.site-footer {
	padding-top: clamp(48px, 6vw, 72px);
	background: var(--c-bg-tint);
	font-size: 15px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr 1.25fr 0.9fr 1fr 1fr;
	gap: 32px;
	align-items: start;
}

.site-footer__title {
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 800;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.footer-menu a {
	color: var(--c-text);
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--c-green);
	text-decoration: underline;
}

.socials {
	display: flex;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.socials a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-ink);
	box-shadow: var(--shadow-sm);
	transition: background-color 0.2s, color 0.2s;
}

.socials a:hover {
	background: var(--c-green);
	color: #fff;
}

.socials .icon {
	width: 20px;
	height: 20px;
}

.site-footer__note {
	position: relative;
	align-self: center;
	font-size: 27px;
	line-height: 1.05;
	color: var(--c-ink);
	transform: rotate(-6deg);
	text-align: center;
}

.site-footer__note .doodle {
	position: static;
	width: 30px;
	margin: 6px auto 0;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(32px, 5vw, 56px);
	padding: 20px 0 28px;
	border-top: 1px solid var(--c-line);
	font-size: 13.5px;
	color: var(--c-muted);
}

.site-footer__bottom a {
	color: var(--c-muted);
}

@media (max-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer__note {
		grid-column: 1 / -1;
		justify-self: start;
		text-align: left;
	}

	.site-footer__note .doodle {
		display: inline-block;
		margin: 0 0 0 8px;
		vertical-align: middle;
	}
}

@media (max-width: 640px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__grid > .site-footer__col:first-of-type {
		grid-column: 1 / -1;
	}
}

@media (max-width: 400px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* 10. Motion -------------------------------------------------------------- */
.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* WordPress core helpers */
.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text {
	font-size: 14px;
	color: var(--c-muted);
}

.page-links {
	margin-top: 24px;
	font-weight: 700;
}

.section--content + .docs {
	padding-top: 0;
}

.page-hero + .section {
	padding-top: clamp(40px, 5vw, 64px);
}
