/*
Theme Name: Rodim Legko
Description: Custom block theme for the rodimlegko.ru rebuild (Академия Разумного Материнства). Code-first, no page-builder plugin.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.1.0
Author: Ilya + Claude
Text Domain: rodimlegko
*/

/* ---------- Page skeleton ---------- */

/* Pins the footer to the bottom of the viewport on short pages (e.g. a
   single course with little text) instead of it floating mid-page with
   empty background below. Works regardless of which template part sits
   between header and footer (front-page has no <main> wrapper). */
html {
	height: 100%;
	/* Fluid root size: 16px up to ~1280px wide, 18px at 1920, ~19px at 2300 (cap 20px).
	   Almost every size and width below is in rem, so the whole page scales with it
	   on big monitors. rem + vw (not bare vw) keeps browser zoom / user font size working. */
	font-size: clamp(100%, 0.75rem + 0.3125vw, 125%);
}

body {
	min-height: 100%;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > footer.wp-block-template-part {
	margin-top: auto;
}

/* ---------- Global interactive states ---------- */

/* theme.json styles the button element but can't express :hover; every
   "Записаться" / "Подробнее" / "Перейти в каталог" CTA across the site
   shared this rule (and had no hover feedback at all before it). */
.wp-block-button__link {
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	background-color: #7c021c;
	color: var(--wp--preset--color--base);
	transform: translateY(-1px);
}

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

/* Outer strip: sticky, transparent, just reserves the floating margin around the pill */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	padding: 16px clamp(16px, 4vw, 40px) 0;
}

/* Homepage: header floats over the hero image instead of pushing it down */
.home .site-header {
	position: absolute;
	inset-inline: 0;
	top: 0;
}

/* Inner pill: the actual "bubble" bar — ivory, rounded, floating on every page */
.site-header__bar {
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	max-width: 75rem;
	margin-inline: auto;
	/* Equal padding all round: the emblem circle sits concentric with the pill's rounded left end */
	padding: 0.5rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(43, 43, 43, 0.12), 0 1px 2px rgba(43, 43, 43, 0.06);
}

.site-header__logo-link {
	display: inline-flex;
	align-items: center;
}

.site-header__logo {
	display: block;
	height: 4rem;
	width: auto;
}

.site-header__icons {
	align-items: center;
	gap: 8px;
}

.site-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.site-header__icon svg {
	width: 1.625rem;
	height: 1.625rem;
}

.site-header__icon:hover {
	background: rgba(43, 43, 43, 0.06);
}

.site-header__phone-wrap {
	position: relative;
}

.site-header__phone {
	width: auto;
	padding-inline: 0.75rem;
	border: none;
	background: none;
	cursor: pointer;
	font: inherit;
}

.site-header__phone-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 14px);
	left: 0;
	right: 0;
	box-sizing: border-box;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
	background: var(--wp--preset--color--base);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(43, 43, 43, 0.18), 0 2px 8px rgba(43, 43, 43, 0.08);
	z-index: 50;
}

.site-header__phone-wrap.is-open .site-header__phone-dropdown {
	display: flex;
}

.site-header__phone-dropdown-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

.site-header__phone-dropdown-item:hover {
	background: rgba(43, 43, 43, 0.06);
}

.site-header__phone-dropdown-label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.55;
}

.site-header__phone-dropdown-value {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--coral);
}

/* Header search: hidden form that slides in over the icon row when the search icon is clicked */

.site-header__icon--search {
	border: none;
	background: none;
	cursor: pointer;
	font: inherit;
}

.site-header__search-form {
	display: none;
	align-items: center;
	flex: 1 1 auto;
}

.site-header__bar.search-open .site-header__search-form {
	display: flex;
}

.site-header__bar.search-open .site-header__brand,
.site-header__bar.search-open .site-header__phone-wrap,
.site-header__bar.search-open .site-header__nav {
	display: none;
}

.site-header__search-input {
	width: 100%;
	border: none;
	background: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast);
	padding: 10px 4px;
	outline: none;
}

.site-header__search-input::placeholder {
	color: rgba(43, 43, 43, 0.45);
}

.site-header__phone-number {
	font-size: 1.5rem;
	font-weight: 600;
	white-space: nowrap;
}

.site-header__nav .wp-block-navigation__responsive-container-open {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
}

.site-header__nav .wp-block-navigation__responsive-container-open svg {
	width: 1.625rem;
	height: 1.625rem;
}

/* Overlay menu panel (opens on hamburger click) */
.site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
}

.site-header__nav .wp-block-navigation__responsive-container-content {
	padding: 100px clamp(20px, 8vw, 80px) 40px;
}

.site-header__nav .wp-block-navigation__responsive-container-close {
	display: flex;
	align-items: center;
	justify-content: center;
	top: 26px;
	right: clamp(20px, 4vw, 40px);
	width: 42px;
	height: 42px;
	border-radius: 999px;
}

.site-header__nav .wp-block-navigation__responsive-container-close:hover {
	background: rgba(43, 43, 43, 0.06);
}

.site-header__nav ul.wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.site-header__nav .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid rgba(43, 43, 43, 0.08);
}

.site-header__nav .wp-block-navigation-item__content {
	padding: 18px 4px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

.site-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--coral);
}

.site-header__nav-overlay-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(43, 43, 43, 0.12);
}

.site-header__nav-overlay-mark {
	width: 48px;
	height: 48px;
	border-radius: 999px;
}

.site-header__nav-overlay-phone {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.1rem, 2.6vw, 1.35rem);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.site-header__nav-overlay-phone:hover {
	color: var(--wp--preset--color--coral);
}

.site-header__nav-overlay-cta {
	margin-left: auto;
}

@media (max-width: 600px) {
	.site-header__nav-overlay-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.site-header__nav-overlay-cta,
	.site-header__nav-overlay-callback {
		box-sizing: border-box;
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.site-header {
		padding: 12px 12px 0;
	}
	.site-header__bar {
		padding: 8px;
	}
}

/* ---------- Hero ---------- */

.hero {
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
}

.hero .wp-block-cover__inner-container {
	padding: 0 clamp(20px, 5vw, 64px) 64px;
	max-width: 46rem;
}

.hero__heading {
	color: var(--wp--preset--color--base);
	font-size: clamp(2rem, 1.3rem + 1.9vw, 2.875rem);
	line-height: 1.1;
	margin: clamp(8px, 2vw, 12px) 0 clamp(10px, 2.5vw, 16px);
}

.hero__subhead {
	color: var(--wp--preset--color--base);
	opacity: 1;
	font-size: clamp(1.1875rem, 1.12rem + 0.4vw, 1.3125rem);
	line-height: 1.55;
	max-width: 46ch;
	margin-bottom: clamp(18px, 4vw, 28px);
}

/* ---------- Section chrome ---------- */

.section--sage {
	background: var(--wp--preset--color--base);
	padding: 64px clamp(20px, 5vw, 64px);
}

.section--base {
	background: var(--wp--preset--color--base);
	padding: 64px clamp(20px, 5vw, 64px);
}

.section__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

.section__link {
	color: var(--wp--preset--color--coral);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.section__links {
	display: flex;
	align-items: baseline;
	gap: 20px;
	flex-wrap: wrap;
}

.section__link--muted {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	opacity: 0.7;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s ease;
}

.section__link--muted:hover {
	opacity: 1;
}

/* ---------- Interior page chrome (templates/page.html) ---------- */

.page-intro {
	padding: 56px clamp(20px, 5vw, 64px) 32px;
	background: var(--wp--preset--color--base);
	text-align: center;
}

.page-intro__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0;
}

.page-intro__lead {
	margin-inline: auto;
}

.page-content {
	padding: 0 clamp(20px, 5vw, 64px) 96px;
	background: var(--wp--preset--color--base);
}

.page-content p {
	max-width: 68ch;
	line-height: 1.7;
}

.page-content h2 {
	margin-top: 2.5em;
}

/* About page stats row */

.stats-row {
	margin: 48px 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1000px;
}

.stats-row__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 20px;
	background: var(--wp--preset--color--sage);
	border-radius: 20px;
}

.stats-row__number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 2rem;
	color: var(--wp--preset--color--coral);
}

.stats-row__label {
	font-size: 0.9375rem;
	line-height: 1.4;
	opacity: 0.85;
}

/* Contacts page cards */

.contact-cards {
	margin: 40px 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	max-width: 760px;
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(43, 43, 43, 0.08);
	border-radius: 20px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
	border-color: var(--wp--preset--color--coral);
	transform: translateY(-2px);
}

.contact-map {
	margin: 24px 0 40px;
	max-width: 760px;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(43, 43, 43, 0.08);
}

.contact-map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: none;
}

.contact-card__label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.55;
}

.contact-card__value {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--wp--preset--color--coral);
}

.contact-card__note {
	font-size: 0.9375rem;
	opacity: 0.7;
}

@media (max-width: 782px) {
	.stats-row {
		grid-template-columns: repeat(2, 1fr);
	}
	.contact-cards {
		grid-template-columns: 1fr;
	}
}

/* Price list (Роды / Услуги pages) */

.price-list {
	margin: 40px 0;
	max-width: 45rem;
	border-top: 1px solid rgba(43, 43, 43, 0.12);
}

.price-list__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 18px 0;
	border-bottom: 1px solid rgba(43, 43, 43, 0.12);
}

.price-list__name {
	font-weight: 500;
}

.price-list__price {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--coral);
	white-space: nowrap;
}

.price-list__divider {
	padding: 20px 0 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9375rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.55;
}

.price-list__phone-note {
	margin-top: 12px;
	font-size: 0.9375rem;
	opacity: 0.75;
}

.price-list__phone-note a {
	color: inherit;
}

.price-list__note {
	margin-top: 16px;
	font-size: 0.9375rem;
	opacity: 0.7;
	max-width: 60ch;
}

/* ---------- Archive pages (team / courses / reviews / articles) ---------- */

.page-intro__lead {
	max-width: 56ch;
	font-size: 1.1875rem;
	opacity: 0.8;
	margin-top: 8px;
}

.archive-content {
	padding: 32px clamp(20px, 5vw, 64px) 96px;
	background: var(--wp--preset--color--base);
}

.team-grid--archive {
	grid-template-columns: repeat(4, 1fr);
}

.team-grid--archive .wp-block-post-title a {
	text-decoration: none;
}

/* Reviews */

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

/* Only two testimonials are queried on the single course page — let each one take half the row instead of a third. */
.review-grid--pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 900px;
	margin-inline: auto;
}

.review-card {
	background: #fff;
	border: 1px solid rgba(43, 43, 43, 0.08);
	border-radius: 20px;
	padding: 32px 28px 24px;
	position: relative;
}

.review-grid--pair .review-card {
	padding: 36px 32px 28px;
}

.review-card__quote {
	position: absolute;
	top: 8px;
	left: 24px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 3.5rem;
	color: var(--wp--preset--color--amber);
	opacity: 0.5;
	line-height: 1;
}

.review-card .wp-block-post-excerpt {
	margin-top: 20px;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.review-card__author {
	margin-top: 16px;
	font-size: 0.9375rem;
	font-weight: 600;
	opacity: 0.7;
}

.review-single {
	padding-top: 0;
	padding-bottom: 96px;
}

.review-card--single {
	max-width: 640px;
	padding: 40px 36px 32px;
}

.review-card--single .wp-block-post-content p {
	margin-top: 20px;
	font-size: 1.125rem;
	line-height: 1.7;
}

/* Articles */

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

.article-grid > li {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.article-grid .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.article-grid .wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.1875rem;
	margin: 0;
}

.article-grid .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.article-grid .wp-block-post-title a:hover {
	color: var(--wp--preset--color--coral);
}

.article-grid .wp-block-post-excerpt {
	font-size: 0.9375rem;
	opacity: 0.8;
}

.single-article__featured-image {
	margin: 0 0 32px;
}

.single-article__featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

.single-article .wp-block-post-content h2 {
	padding-top: 20px;
	border-top: 3px solid var(--wp--preset--color--coral);
}

.article-card__cta {
	color: var(--wp--preset--color--coral);
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 960px) {
	.team-grid--archive,
	.review-grid,
	.article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.team-grid--archive,
	.review-grid,
	.article-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Search results ---------- */

.search-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 45rem;
}

.search-result {
	padding: 24px 0;
	border-bottom: 1px solid rgba(43, 43, 43, 0.12);
}

.search-result .wp-block-post-title {
	font-size: 1.4rem;
	margin: 0 0 8px;
}

.search-result .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.search-result .wp-block-post-title a:hover {
	color: var(--wp--preset--color--coral);
}

.search-result .wp-block-post-excerpt {
	opacity: 0.8;
	line-height: 1.6;
}

.search-results__empty {
	max-width: 60ch;
	font-size: 1.125rem;
}

.search-results__empty a {
	color: var(--wp--preset--color--coral);
	font-weight: 600;
}

/* ---------- Single: team member ---------- */

.member-page {
	padding: 160px clamp(20px, 5vw, 64px) 96px;
	background: var(--wp--preset--color--base);
}

.member-page__layout {
	align-items: flex-start;
	gap: 48px;
	flex-wrap: nowrap;
}

.member-page__photo {
	flex: 0 0 320px;
	width: 320px;
	aspect-ratio: 4 / 5;
	margin: 0;
	overflow: hidden;
	border-radius: 24px;
}

.member-page__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.member-page__body {
	flex: 1;
	min-width: 280px;
}

.member-page__name {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0 0 20px;
}

.member-page__body .wp-block-post-content > p {
	max-width: 60ch;
	line-height: 1.7;
}

@media (max-width: 782px) {
	.member-page__layout {
		flex-wrap: wrap;
	}
	.member-page__photo {
		flex: 1 1 100%;
		width: 100%;
		max-width: 320px;
	}
}

/* ---------- Contact form (Contact Form 7) ---------- */

.wpcf7-form {
	max-width: 560px;
	margin-top: 24px;
}

.wpcf7-form p {
	margin: 0 0 20px;
}

.wpcf7-form label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 8px;
}

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

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(43, 43, 43, 0.15);
	border-radius: 14px;
	background: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast);
	transition: border-color 0.15s ease;
}

.wpcf7-form-control.wpcf7-textarea {
	min-height: 120px;
	resize: vertical;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--coral);
}

.wpcf7-form-control.wpcf7-submit {
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 999px;
	padding: 14px 32px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 1.0625rem;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.wpcf7-form-control.wpcf7-submit:hover {
	background: #7c021c;
	transform: translateY(-1px);
}

.wpcf7-not-valid-tip {
	color: var(--wp--preset--color--coral);
	font-size: 0.9375rem;
	margin-top: 6px;
}

.wpcf7-response-output {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--wp--preset--color--sage);
	font-size: 1.0625rem;
}

.wpcf7-form.invalid .wpcf7-response-output {
	background: #fce8e8;
	color: var(--wp--preset--color--coral);
}

/* ---------- 404 ---------- */

.error-404 {
	padding: 200px clamp(20px, 5vw, 64px) 160px;
	background: var(--wp--preset--color--base);
	text-align: center;
}

.error-404__code {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(3rem, 10vw, 6rem);
	font-weight: 700;
	color: var(--wp--preset--color--sage);
	line-height: 1;
	margin: 0;
}

.error-404__title {
	margin: 8px 0 16px;
}

.error-404__lead {
	max-width: 48ch;
	margin: 0 auto 32px;
	opacity: 0.8;
	font-size: 1.125rem;
}

.error-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.error-404__link {
	padding: 12px 24px;
	border-radius: 999px;
	border: 1px solid rgba(43, 43, 43, 0.15);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.error-404__link:first-child {
	background: var(--wp--preset--color--coral);
	border-color: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
}

.error-404__link:not(:first-child):hover {
	border-color: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--coral);
}

.error-404__link:first-child:hover {
	background: #7c021c;
	border-color: #7c021c;
}

.error-404__search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 420px;
	margin: 40px auto 0;
	padding: 6px 6px 6px 20px;
	border: 1px solid rgba(43, 43, 43, 0.15);
	border-radius: 999px;
	background: #fff;
}

.error-404__search-input {
	flex: 1;
	border: none;
	background: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast);
	outline: none;
}

.error-404__search-input::placeholder {
	color: rgba(43, 43, 43, 0.45);
}

.error-404__search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 999px;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.15s ease;
}

.error-404__search-submit:hover {
	background: #7c021c;
}

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

.site-footer {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 72px clamp(20px, 5vw, 64px) 32px;
}

.site-footer a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.site-footer__top {
	align-items: flex-start;
	gap: 40px;
	padding-bottom: 48px;
	max-width: 75rem;
	margin-inline: auto;
}

.site-footer__bottom {
	max-width: 75rem;
	margin-inline: auto;
}

.site-footer__brand {
	flex: 1 1 280px;
	max-width: 340px;
	gap: 16px;
}

.site-footer__brand .wp-block-group {
	gap: 14px;
}

.site-footer__mark {
	display: block;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.site-footer__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0;
	line-height: 1.3;
}

.site-footer__subtitle {
	font-size: 0.875rem;
	opacity: 0.65;
	margin: 2px 0 0;
}

.site-footer__blurb {
	font-size: 0.9375rem;
	line-height: 1.6;
	opacity: 0.75;
	margin: 4px 0 0;
}

.site-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid rgba(246, 242, 235, 0.25);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-footer__social-link:hover {
	background: rgba(246, 242, 235, 0.1);
	border-color: rgba(246, 242, 235, 0.5);
}

.site-footer__col {
	flex: 0 1 160px;
	gap: 14px;
}

.site-footer__col-title {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.5;
	margin: 0;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__links a {
	font-size: 1.0625rem;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.site-footer__links a:hover {
	opacity: 1;
	color: var(--wp--preset--color--amber);
}

.site-footer__col p {
	margin: 0;
	font-size: 1.0625rem;
	opacity: 0.85;
}

.site-footer__address {
	line-height: 1.5;
}

.site-footer__rule {
	border-color: rgba(246, 242, 235, 0.15);
	max-width: 75rem;
	margin: 0 auto;
}

.site-footer__bottom {
	padding-top: 24px;
	gap: 12px;
}

.site-footer__copy {
	opacity: 0.5;
	font-size: 0.875rem;
	margin: 0;
}

@media (max-width: 600px) {
	.site-footer__top {
		flex-direction: column;
		gap: 32px;
	}
	.site-footer__brand {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.site-header__phone-number {
		display: none;
	}
	.price-list__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

/* =====================================================================
   Layout system v2 (design review, 2026-10-07)

   Two widths only: --rl-wide (= the header pill, 75rem) for every section
   and grid, --rl-prose (45rem) for reading text. Everything below builds on
   these tokens so headings, cards and sections share the same left edge.
   ===================================================================== */

:root {
	--rl-wide: 75rem;
	--rl-prose: 45rem;
	--rl-gutter: clamp(16px, 4vw, 40px);
	--rl-section: clamp(56px, 8vw, 96px);
	--rl-radius: 20px;
	--rl-line: 1px solid rgba(43, 43, 43, 0.1);
	/* Text variants with enough contrast on ivory/white (>= 4.5:1) */
	--rl-muted: rgba(43, 43, 43, 0.75);
	--rl-gold-text: #8a5f3a;
}

.wrap {
	width: min(var(--rl-wide), 100% - 2 * var(--rl-gutter));
	margin-inline: auto;
}

/* ---------- Shared components ---------- */

.btn {
	display: inline-block;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
	background: #7c021c;
	color: var(--wp--preset--color--base);
	transform: translateY(-1px);
}

.eyebrow {
	margin: 0 0 10px;
	max-width: 48ch;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rl-gold-text);
}

.section-head {
	align-items: baseline;
	margin-bottom: 28px;
}

.section-head h2,
.home-pills h2,
.home-visit h2,
.dates-block h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.home-pills h2,
.home-visit h2 { margin-bottom: 28px; }

.section-link {
	color: var(--wp--preset--color--coral);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.chips__item {
	padding: 6px 14px;
	background: #fff;
	border: var(--rl-line);
	border-radius: 999px;
	font-size: 0.9375rem;
}

.card,
.card-grid .card {
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
	padding: 24px 26px;
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin: 0 0 0.6em; font-size: 1.1875rem; color: var(--wp--preset--color--coral); }
.card p { margin: 0 0 0.8em; font-size: 1.0625rem; max-width: none; }

.callout {
	margin: 1.8em 0;
	padding: 22px 26px;
	background: #fff;
	border: var(--rl-line);
	border-left: 4px solid var(--wp--preset--color--coral);
	border-radius: 16px;
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout p { font-weight: 500; max-width: none; }

.disclaimer {
	margin: 3em 0 0;
	padding: 24px 28px;
	border: 1px dashed rgba(43, 43, 43, 0.3);
	border-radius: 16px;
	font-size: 0.9375rem;
	color: var(--rl-muted);
}

.disclaimer > :first-child { margin-top: 0; }
.disclaimer > :last-child { margin-bottom: 0; }
.disclaimer p { max-width: none; }

.wp-block-list.checklist {
	list-style: none;
	margin: 1em 0 1.4em;
	padding: 0;
}

.wp-block-list.checklist li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 0.55em;
	line-height: 1.6;
}

.wp-block-list.checklist li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--amber);
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px 10px 20px;
	background: #fff;
	border: 1px solid rgba(155, 3, 35, 0.25);
	border-radius: 999px;
	color: var(--wp--preset--color--coral);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pill:hover {
	background: rgba(155, 3, 35, 0.06);
	border-color: var(--wp--preset--color--coral);
	transform: translateY(-1px);
}

.pill__arrow { flex: none; }

/* ---------- Page chrome (interior pages) ---------- */

.page-intro {
	padding: 48px var(--rl-gutter) 8px;
	text-align: center;
}

.page-intro__title {
	margin: 0;
	font-size: clamp(1.875rem, 3.4vw, 2.5rem);
}

.page-intro__lead {
	margin: 14px auto 0;
	max-width: 62ch;
	font-size: 1.1875rem;
	color: var(--rl-muted);
}

.page-content {
	padding: 32px var(--rl-gutter) var(--rl-section);
}

.page-content p { line-height: 1.75; }
.page-content .alignwide p { max-width: none; }

.page-content h2 { margin-top: 2.2em; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.page-content h2:first-child,
.page-content .wide-heading h2 { margin-top: 0; }
.page-content .wide-heading { margin-top: 2.2em; }
.page-content .alignwide h3 { font-size: 1.25rem; }

.lead-paragraph {
	font-size: 1.3125rem;
	line-height: 1.65;
}

/* ---------- Archives ---------- */

.listing { padding-top: 32px; padding-bottom: var(--rl-section); }

.archive-group__title {
	margin: var(--rl-section) 0 12px;
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.listing > .archive-group__title:first-child,
.listing > .dates-block + .archive-group__title { margin-top: 24px; }

.archive-group__desc {
	margin: 0 0 14px;
	max-width: 72ch;
	color: var(--rl-muted);
	line-height: 1.7;
}

.listing .dates-block { margin: 0 0 8px; }

/* Cards (courses, birth-support tiles) */
.course-cards,
.tile-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
}

.course-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.course-cards > li,
.tile-cards > li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile-cards > li { padding: 32px; }

.course-cards > li:hover,
.tile-cards > li:hover {
	border-color: rgba(155, 3, 35, 0.4);
	transform: translateY(-2px);
}

/* Flagship course: one wide card on top, the rest in an equal row */
.course-cards > li:first-child {
	grid-column: 1 / -1;
	padding: 36px 40px;
	background: linear-gradient(135deg, #fff 0%, rgba(155, 3, 35, 0.05) 100%);
	border-color: rgba(155, 3, 35, 0.25);
}

.course-cards > li:first-child .wp-block-post-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.course-cards > li:first-child .wp-block-post-excerpt { max-width: 62ch; }

.course-card__badge {
	position: absolute;
	top: -10px;
	right: 24px;
	padding: 5px 14px;
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--base);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.course-cards .wp-block-post-title,
.tile-cards .wp-block-post-title {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.25;
}

.tile-cards .wp-block-post-title { font-size: 1.55rem; }

.course-cards .wp-block-post-title a,
.tile-cards .wp-block-post-title a,
.row-list .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

/* the whole card/row is the click target */
.course-cards .wp-block-post-title a::after,
.tile-cards .wp-block-post-title a::after,
.row-list .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.course-cards .wp-block-post-excerpt,
.tile-cards .wp-block-post-excerpt {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--rl-muted);
}

.card-chip {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--rl-gold-text);
}

.card-chip:empty { display: none; }

.card-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: var(--rl-line);
	align-items: center;
}

.card-price,
.row-price {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.3125rem;
	color: var(--wp--preset--color--coral);
}

.card-link,
.card-link a {
	color: var(--wp--preset--color--coral);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.card-link::after { content: " →"; }

.tile-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 10px;
	border-radius: 16px;
	background: rgba(155, 3, 35, 0.07);
	color: var(--wp--preset--color--coral);
}

/* Seminars: list rows */
.row-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.row-list > li {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 32px;
	align-items: center;
	padding: 20px 28px;
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
	transition: border-color 0.15s ease;
}

.row-list > li:hover { border-color: rgba(155, 3, 35, 0.4); }
.row-item__main .wp-block-post-title { margin: 0 0 6px; font-size: 1.25rem; }
.row-item__main .wp-block-post-excerpt { margin: 0; font-size: 1.0625rem; color: var(--rl-muted); }
.row-item__side { display: flex; align-items: center; gap: 24px; }

/* Upcoming dates */
.dates-block { margin-top: var(--rl-section); }
.dates-block h2 { margin-bottom: 20px; }

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

.event-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 20px;
	padding: 16px 22px;
	background: #fff;
	border: var(--rl-line);
	border-radius: 16px;
}

.event-list__date {
	min-width: 140px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--coral);
}

.event-list__title { flex: 1 1 220px; font-weight: 600; }
.event-list__title a { color: inherit; text-decoration: none; }
.event-list__format,
.event-list__note { font-size: 0.9375rem; color: var(--rl-muted); }
.event-list__cta { font-weight: 600; color: var(--wp--preset--color--coral); text-decoration: none; white-space: nowrap; }
.event-empty { margin: 0; color: var(--rl-muted); }

/* ---------- Program pages (course, seminar, birth support) ---------- */

.program { padding-bottom: 0; }

.program-head { padding-top: 40px; }

.program-head__back { margin: 0; }

.program-head__back a {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--rl-muted);
	text-decoration: none;
}

.program-head__back a:hover { color: var(--wp--preset--color--coral); }

.program-head__title {
	margin: 14px 0 0;
	font-size: clamp(2.25rem, 4.6vw, 3.5rem);
	line-height: 1.08;
}

.program-head__lead {
	margin: 18px 0 0;
	max-width: 56ch;
	font-size: 1.3125rem;
	line-height: 1.6;
	color: var(--rl-muted);
}

.program-aside__card {
	padding: 28px;
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
}

.program-aside__label {
	margin: 0 0 6px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--rl-muted);
}

.program-aside__price {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--coral);
}

.program-aside__note {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--rl-muted);
}

.program-aside__buttons .wp-block-button__link { width: 100%; text-align: center; }
.program-aside__phone { margin: 16px 0 0; font-size: 0.9375rem; color: var(--rl-muted); text-align: center; }
.program-aside__phone a { color: inherit; }

/* Content blocks inside program bodies */
.card-grid {
	display: grid;
	gap: 20px;
	margin: 1.6em 0 2em;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid--pillars { grid-template-columns: 1fr; }
.card-grid--modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--pillars .card { border-left: 4px solid var(--wp--preset--color--amber); }

/* Dates + sign-up band */
.program-dates { padding-top: 0; }

.signup-band {
	margin-top: var(--rl-section);
	padding: var(--rl-section) 0;
	background: #fff;
	border-block: var(--rl-line);
}

.signup {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: start;
	scroll-margin-top: 120px;
}

.signup__title { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.signup__intro { margin: 0 0 20px; max-width: 40ch; line-height: 1.6; color: var(--rl-muted); }
.signup__alt { margin: 0; line-height: 1.7; font-size: 1.0625rem; }
.signup__alt a { color: var(--wp--preset--color--coral); font-weight: 600; }

.signup__form .wpcf7-form {
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.signup__form .wpcf7-form > p:nth-of-type(n+5),
.signup__form .wpcf7-form > .wpcf7-response-output,
.signup__form .wpcf7-form > fieldset { grid-column: 1 / -1; }

.signup__form fieldset.hidden-fields-container { margin: 0; padding: 0; border: 0; }

.program-reviews { padding-top: var(--rl-section); padding-bottom: var(--rl-section); }

/* ---------- Forms (Contact Form 7) ---------- */

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea { box-sizing: border-box; max-width: 100%; }

.wpcf7-form label br { display: none; }
.wpcf7-form .wpcf7-form-control-wrap { margin-top: 8px; }
.wpcf7-form-control.wpcf7-textarea { min-height: 110px; height: 110px; }

.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-email {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(43, 43, 43, 0.18);
	border-radius: 14px;
	background: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast);
}

.signup-band .wpcf7-form-control.wpcf7-text,
.signup-band .wpcf7-form-control.wpcf7-textarea,
.signup-band .wpcf7-form-control.wpcf7-tel,
.signup-band .wpcf7-form-control.wpcf7-email { background: var(--wp--preset--color--base); }

.wpcf7-form-control.wpcf7-tel:focus,
.wpcf7-form-control.wpcf7-email:focus { outline: none; border-color: var(--wp--preset--color--coral); }

.wpcf7-form input[readonly] { background: rgba(43, 43, 43, 0.05); color: var(--rl-muted); }

.wpcf7-consent { font-size: 0.9375rem; line-height: 1.5; }
.wpcf7-consent label { display: block; font-weight: 400; }
.wpcf7-consent .wpcf7-form-control-wrap { display: inline; margin: 0; }
.wpcf7-consent .wpcf7-list-item { margin: 0; }
.wpcf7-consent a { color: var(--wp--preset--color--coral); }
.wpcf7-consent input[type="checkbox"] { margin: 0 8px 0 0; vertical-align: -2px; accent-color: var(--wp--preset--color--coral); }

/* ---------- Header: tablets and phones ---------- */

/* Small laptops: the trimmed logo is wider than the old padded one - keep a gap to the icons */
@media (min-width: 961px) and (max-width: 1180px) {
	.site-header__logo { height: 3.5rem; }
}

@media (max-width: 960px) {
	.site-header__logo { height: 76px; }
	.site-header__icon,
	.site-header__nav .wp-block-navigation__responsive-container-open { width: 64px; height: 64px; }
	.site-header__icon svg,
	.site-header__nav .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
	.site-header__phone { width: auto; padding-inline: 14px; }
	.site-header__phone-number { font-size: 1.4rem; }
}

@media (max-width: 600px) {
	.site-header__bar { padding: 6px; }
	.site-header__logo { height: 54px; }
	.site-header__icons { gap: 2px; }
	.site-header__icon,
	.site-header__nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; }
	.site-header__icon svg,
	.site-header__nav .wp-block-navigation__responsive-container-open svg { width: 24px; height: 24px; }
	.site-header__phone { width: 44px; padding-inline: 0; }
	.site-header__phone-number { display: none; }
}

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

.site-footer { padding: 64px var(--rl-gutter) 28px; }

.site-footer__top.wp-block-group {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
	gap: 40px;
	max-width: var(--rl-wide);
	padding-bottom: 44px;
}

.site-footer__brand,
.site-footer__col { flex: none; max-width: none; min-width: 0; }

/* WordPress' constrained layout centers children with auto margins; the footer
   columns are left-aligned. */
.site-footer__brand > *,
.site-footer__col > * { margin-inline: 0 !important; max-width: none; }

.site-footer__col.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.site-footer__col-title { opacity: 1; color: rgba(246, 242, 235, 0.65); letter-spacing: 0.06em; }
.site-footer__subtitle,
.site-footer__blurb { opacity: 1; color: rgba(246, 242, 235, 0.72); }
.site-footer__links a,
.site-footer__col p { opacity: 1; }
.site-footer__copy { opacity: 1; color: rgba(246, 242, 235, 0.6); }
.site-footer__policy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__policy a:hover,
.site-footer__policy a:focus-visible { color: var(--wp--preset--color--base); }

.site-footer__rule.wp-block-separator {
	width: 100%;
	max-width: var(--rl-wide);
	margin: 0 auto;
	border-width: 1px 0 0;
}

.site-footer__bottom { padding-top: 22px; }

@media (max-width: 900px) {
	.site-footer__top.wp-block-group { grid-template-columns: 1fr 1fr; gap: 32px; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	.site-footer__top.wp-block-group { grid-template-columns: 1fr; }
}

/* ---------- Homepage ---------- */

.hero .wp-block-cover__inner-container {
	width: min(var(--rl-wide), 100% - 2 * var(--rl-gutter));
	max-width: none;
	margin-inline: auto;
	padding: 0 37px 72px;
	text-align: left;
}

.hero__heading { max-width: 46rem; }
.hero__subhead { max-width: 52ch; }

@media (max-width: 600px) {
	.hero .wp-block-cover__inner-container { padding: 0 0 48px; }
}

.home-section { padding-top: var(--rl-section); }
.home-section:last-of-type { padding-bottom: var(--rl-section); }
.home-julia { padding-top: calc(var(--rl-section) - 8px); }

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}

.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--reverse .split__photo { order: 2; }

.split__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 15%;
	border-radius: 28px;
}

.split__photo--wide { aspect-ratio: 4 / 3; object-position: center; }

.split__text h2 { margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split__text p { max-width: 58ch; line-height: 1.7; margin: 0 0 1em; }
.split__text .btn { margin-top: 8px; }

.home-julia__name { margin: 0 0 22px; font-size: clamp(2.1rem, 4.2vw, 3rem); }

.home-julia__quote {
	margin: 0 0 30px;
	padding: 0 0 0 22px;
	max-width: 30ch;
	border-left: 3px solid var(--wp--preset--color--coral);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.25rem, 2.3vw, 1.65rem);
	line-height: 1.4;
}

.pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.pair__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(28px, 4vw, 48px);
	background: #fff;
	border: var(--rl-line);
	border-radius: 28px;
}

.pair__card h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pair__card p { margin: 0 0 1.2em; line-height: 1.7; }
.pair__card .btn { margin-top: auto; }

.pill-groups { display: grid; gap: 14px; }

.pill-group {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.pill-group__label {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rl-gold-text);
}

.home-dates:not(:has(.dates-block)) { display: none; }
.home-dates .dates-block { margin-top: var(--rl-section); }

/* Team preview */
.team-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 28px 24px;
}

.team-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid > li { text-align: center; }
.team-grid .wp-block-post-featured-image { margin: 0 0 14px; }

.team-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
	border-radius: var(--rl-radius);
}

.team-grid .wp-block-post-title { margin: 0 0 4px; font-size: 1.125rem; font-weight: 600; }

.team-grid .wp-block-post-excerpt {
	margin: 0 auto;
	max-width: 36ch;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--rl-muted);
}

/* captions show in full (no line clamp, no ellipsis): excerpts are kept short in content/src/team_member */

/* Reviews: five portrait videos in one row, three equal text cards below */
.home-reviews .section-head { margin-bottom: 24px; }

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

.video-row > li {
	overflow: hidden;
	background: #2b2b2b;
	border-radius: var(--rl-radius);
}

.video-row .wp-block-video { margin: 0; }

/* Most clips are portrait phone footage, one is landscape: every card is a 9:16
   box and the video is letterboxed inside it instead of being cropped. */
.video-row video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: contain;
	background: #2b2b2b;
}

.review-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.review-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin-inline: 0; }
.review-grid > li { display: flex; }

.review-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 36px 28px 24px;
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
	position: relative;
}

.review-card > * { margin-block: 0; }
.review-card__quote { color: var(--wp--preset--color--amber); opacity: 0.6; }
.review-card .wp-block-post-excerpt { margin-top: 20px; font-size: 1.0625rem; line-height: 1.65; }

.review-card .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 9;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.review-card .review-card__author { margin-top: auto; padding-top: 18px; font-size: 0.9375rem; font-weight: 600; color: var(--rl-muted); }
.review-single > p { max-width: 640px; }

/* Address + map */
.map-frame {
	overflow: hidden;
	min-height: 360px;
	background: #ebe6dc;
	border: var(--rl-line);
	border-radius: 28px;
}

.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

.visit-info { justify-content: center; }
.visit-info__phone { color: var(--wp--preset--color--coral); font-weight: 600; font-size: 1.25rem; }

/* ---------- О нас: editorial rows + team ---------- */

.rows { margin: 2em 0 3em; border-top: var(--rl-line); }

.row {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: 12px 56px;
	padding: 30px 0;
	border-bottom: var(--rl-line);
}

.row__title h3 { margin: 0; font-size: 1.375rem; line-height: 1.3; color: var(--wp--preset--color--coral); }
.row__body > :first-child { margin-top: 0; }
.row__body > :last-child { margin-bottom: 0; }
.row__body p { max-width: 64ch; font-size: 1.0625rem; }

.team-section { margin-top: var(--rl-section); scroll-margin-top: 140px; }
.team-section > .wp-block-heading { margin-top: 0; }

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

.team-bios > li {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
}

/* 7 cards after Julia, same width: 3 + 2 + 2, each short row sits centered */
.team-bios > li:nth-child(5),
.team-bios > li:nth-child(7) { grid-column: 2 / span 2; }
.team-bios > li:nth-child(6),
.team-bios > li:nth-child(8) { grid-column: 4 / span 2; }

/* Julia: feature row */
.team-bios > li:first-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	gap: 6px 40px;
	align-content: start;
}

.team-bios > li:first-child .wp-block-post-featured-image {
	grid-row: 1 / span 3;
	align-self: start;
	position: sticky;
	top: 120px;
}

.team-bios .wp-block-post-featured-image { margin: 0; }

.team-bios .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 25%;
	border-radius: 14px;
}

/* text stays left-aligned and flush with the photo edge; the first paragraph is the role line */
.team-bios .wp-block-post-title { margin: 6px 0 0; font-size: 1.375rem; line-height: 1.3; }
.team-bios .wp-block-post-content > *:first-child { margin-top: 0; }
.team-bios .wp-block-post-content p { max-width: none; font-size: 1.0625rem; line-height: 1.65; margin: 0 0 0.8em; }
.team-bios .wp-block-post-content > p:first-child { font-weight: 500; }

.team-bios > li:first-child .wp-block-post-title { font-size: 1.6rem; align-self: end; margin: 0; }

.team-join {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 32px;
	align-items: center;
	margin-top: 24px;
	padding: 24px 28px;
	background: rgba(155, 3, 35, 0.05);
	border: 1px solid rgba(155, 3, 35, 0.2);
	border-radius: var(--rl-radius);
}

.team-join h3 { margin: 0; font-size: 1.3125rem; }
.team-join p { margin: 0; max-width: 62ch; font-size: 1.0625rem; }
.team-join .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Контакты ---------- */

.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.quick-links > .wp-block-html { display: contents; }

.map-row {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px;
	align-items: start;
	margin-bottom: 8px;
}

.map-row > .wp-block-html { display: contents; }
.route h3 { margin: 0 0 0.5em; font-size: 1.1875rem; }
.route h3:not(:first-child) { margin-top: 1.4em; }
.route .checklist { margin-top: 0.4em; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.team-bios > li:first-child { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 900px) {
	/* Program pages: price + button come first, then the long text */
	.signup { grid-template-columns: minmax(0, 1fr); }
	.card-grid--info { grid-template-columns: minmax(0, 1fr); }
	.map-row { grid-template-columns: minmax(0, 1fr); }
	.row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.course-cards > li:first-child { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.split,
	.split--reverse,
	.pair,
	.pair--map { grid-template-columns: minmax(0, 1fr); }
	.split--reverse .split__photo { order: 0; }
	.split__photo { max-width: 420px; }
	.split__photo--wide { max-width: none; }
	.tile-cards,
	.card-grid--modules,
	.card-grid--duo { grid-template-columns: minmax(0, 1fr); }
	.team-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
	.team-bios { grid-template-columns: minmax(0, 1fr); }
	.team-bios > li,
	.team-bios > li:nth-child(5),
	.team-bios > li:nth-child(6),
	.team-bios > li:nth-child(7),
	.team-bios > li:nth-child(8) { grid-column: 1 / -1; }
	.team-bios > li:first-child { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
	.team-bios > li:first-child .wp-block-post-featured-image { grid-row: auto; position: static; }
	.team-bios .wp-block-post-featured-image { max-width: 320px; width: 100%; margin-inline: auto; }
	.team-bios > li:first-child .wp-block-post-title { align-self: auto; margin-top: 6px; }
	.team-join { grid-template-columns: minmax(0, 1fr); }
	.team-join .wp-block-buttons { grid-column: 1; grid-row: auto; }
	.review-grid,
	.review-grid--pair { grid-template-columns: minmax(0, 1fr); }
	.row-list > li { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.row-item__side { justify-content: space-between; }
	.signup__form .wpcf7-form { grid-template-columns: minmax(0, 1fr); }
	.signup__form .wpcf7-form > p:nth-of-type(n+5) { grid-column: auto; }
	.wpcf7-form-control.wpcf7-submit { width: 100%; }
}

@media (max-width: 700px) {
	.pill-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }

	.pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: calc(-1 * var(--rl-gutter));
		padding: 2px var(--rl-gutter) 8px;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--rl-gutter);
		scrollbar-width: none;
	}

	.pills::-webkit-scrollbar { display: none; }
	.pill { flex: none; scroll-snap-align: start; }

	.video-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 600px) {
	.course-cards { grid-template-columns: minmax(0, 1fr); }
	.course-cards > li:first-child,
	.course-cards > li { padding: 24px; }
	.tile-cards > li { padding: 26px; }
	.site-footer { padding-top: 48px; }
}

/* ---------- Visual consistency pass (2026-10-08) ---------- */

/* Page text: the 45rem prose column sets the width, so heading, lead and body share one left edge
   (a ch-based max-width + auto margins gave each paragraph a different indent). */
.page-content .wp-block-post-content > p,
.page-content .wp-block-post-content > ul,
.page-content .wp-block-post-content > ol { max-width: var(--wp--style--global-content-size, 45rem); }

/* Video reviews: WordPress writes an inline aspect-ratio from each file's pixel size,
   so the cards had five different heights. Force one 9:16 box; clips are letterboxed. */
.video-row video {
	aspect-ratio: 9 / 16 !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Review cards: author sits flush left under the text (auto margins centered it in the flex column) */
.review-card > .review-card__author { margin-inline: 0 !important; text-align: left; }
.team-bios .wp-block-post-content > p,
.team-bios .wp-block-post-content > ul { max-width: none; }

/* ---------- «О нас»: split hero, tiles, card grid, image + text (layout after mamadeti.ru/about) ----------
   Everything sits on the 75rem grid: halves are 1fr / 1fr, cards share one radius and line. */

.about-page { padding-top: 32px; }
.about-page > .wp-block-post-content > * { margin-block: 0; }
.about-page > .wp-block-post-content > * + * { margin-top: var(--rl-section); }
.about-page > .wp-block-post-content > .about-tiles,
.about-page > .wp-block-post-content > .about-pill { margin-top: 32px; }

/* Hero: title + intro left, photo right, same top edge */
.about-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.about-hero__text > * { margin-block: 0; }
.about-hero__text > * + * { margin-top: 1em; }
.about-hero__title { font-size: clamp(2.25rem, 4.8vw, 3.5rem); line-height: 1.05; letter-spacing: -0.01em; }
.about-hero__text > h2 { font-size: 1.45rem; line-height: 1.3; margin-top: 1.4em; color: var(--wp--preset--color--coral); }
.about-hero__text > h2 + p { margin-top: 0.6em; }
.about-hero__text p { font-size: 1.125rem; line-height: 1.7; max-width: none; }
.about-hero__text .lead-paragraph { font-size: 1.375rem; line-height: 1.6; }

.about-photo { margin: 0; }
.about-photo img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--rl-radius);
}

.about-hero__photo img { aspect-ratio: 4 / 3; }

/* Tiles: the intro paragraphs as a calm 3 x 2 grid instead of one long column */
.about-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.about-tiles > p {
	margin: 0;
	padding: 24px;
	background: #fff;
	border: var(--rl-line);
	border-radius: var(--rl-radius);
	font-size: 1.0625rem;
	line-height: 1.65;
	max-width: none;
}

/* Pill: one key sentence, centered, like a banner under the intro */
.about-pill {
	max-width: 900px !important;
	margin-inline: auto !important;
	padding: 20px 32px;
	background: rgba(155, 3, 35, 0.06);
	border: 1px solid rgba(155, 3, 35, 0.15);
	border-radius: var(--rl-radius);
	text-align: center;
}

.about-pill > * { margin: 0; max-width: none; font-size: 1.125rem; line-height: 1.6; font-weight: 500; }
.about-pill > * + * { margin-top: 0.8em; }

/* Directions: cards in two balanced columns (items differ a lot in length) */
.card-grid--directions {
	display: block;
	columns: 2;
	column-gap: 24px;
}

.card-grid--directions > .card {
	break-inside: avoid;
	margin: 0 0 24px;
	padding: 28px;
}

.card-grid--directions .card h3 { margin: 0 0 0.6em; font-size: 1.3125rem; line-height: 1.3; color: var(--wp--preset--color--coral); }
.card-grid--directions .card p,
.card-grid--directions .card li { font-size: 1.0625rem; line-height: 1.65; max-width: none; }
.card-grid--directions .card > :last-child { margin-bottom: 0; }

/* Image + text halves */
.about-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.about-split__text > * { margin-block: 0; }
.about-split__text > * + * { margin-top: 1em; }
.about-split__text > h2 { margin-bottom: 0.4em; }
.about-split__text p { font-size: 1.125rem; line-height: 1.7; max-width: none; }

.about-page > .wp-block-post-content > .team-section { margin-top: var(--rl-section); }
.about-page > .wp-block-post-content > .disclaimer { margin-top: var(--rl-section); }

@media (max-width: 900px) {
	.about-hero,
	.about-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.about-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--directions { columns: 1; }
}

@media (max-width: 600px) {
	.about-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.about-pill { padding: 16px 20px; }
	.card-grid--directions > .card { padding: 22px; }
}
.about-page > .wp-block-post-content > .wide-heading + .card-grid { margin-top: 28px; }
@media (max-width: 600px) { .about-tiles > p { padding: 20px; } }

/* ---------- Video reviews: play overlay, progress bar, uniform 9:16 cards ---------- */

.video-row.is-enhanced video { cursor: pointer; }
.video-row > li { position: relative; }

.video-card__play {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	background: rgba(155, 3, 35, 0.88);
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.video-card__play::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}

.video-card__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--wp--preset--color--coral); }
.video-card__play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* while playing the button gets out of the way (tap the video to pause) */
.is-playing .video-card__play { opacity: 0; pointer-events: none; }

/* story-style progress bar */
.video-card__progress {
	position: absolute;
	inset: 12px 14px auto;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.35);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	overflow: hidden;
}

.video-card__progress i { display: block; width: 0; height: 100%; background: #fff; }
.is-playing .video-card__progress { opacity: 1; }

/* "now playing" ring is drawn inside the card, so no parent's overflow can clip it */
.video-row > li::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-radius: inherit;
	pointer-events: none;
	transition: border-color 0.2s ease;
}

.video-row > li.is-playing::after { border-color: var(--wp--preset--color--coral); }

/* All review cards are a uniform 9:16 crop. The one landscape clip (568px wide) is cropped
   around the speaker instead of letterboxed. */
.video-row video { object-fit: cover !important; }
.video-row video[width="568"] { object-position: 69% center; }

@media (max-width: 600px) {
	.video-card__play { width: 52px; height: 52px; }
	.video-card__play::before { border-width: 9px 0 9px 15px; }
}

/* ---------- Homepage small-bug pass (2026-10-08) ---------- */

/* Footer: the crimson mark vanished on charcoal, so it sits on an ivory disc */
.site-footer__mark {
	box-sizing: border-box;
	padding: 6px;
	background: var(--wp--preset--color--base);
	border-radius: 50%;
}

/* Small text links: enlarge the hit area to ~44px without moving anything */
.section-link {
	display: inline-block;
	padding: 12px 0;
	margin-block: -12px;
}

.site-footer__links a,
.site-footer__col a {
	display: inline-block;
	padding-block: 8px;
	margin-block: -8px;
}

.visit-info__phone {
	display: inline-block;
	padding-block: 10px;
	margin-block: -10px;
}

@media (max-width: 860px) {
	.video-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- Header search: visible close (X) ---------- */
.site-header__search-close {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(43, 43, 43, 0.06);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	transition: background 0.15s ease;
}

.site-header__search-close:hover { background: rgba(155, 3, 35, 0.12); color: var(--wp--preset--color--coral); }
.site-header__search-close:focus-visible { outline: 2px solid var(--wp--preset--color--coral); outline-offset: 2px; }

/* open search fills the pill so the X sits at its right end */
.site-header__bar.search-open .site-header__icons { flex: 1 1 auto; min-width: 0; }
.site-header__bar.search-open .site-header__search-form { min-width: 0; gap: 8px; }
.site-header__search-input { flex: 1 1 auto; min-width: 0; width: auto; }
