/* ==========================================================================
   Complex pages (Легенда, Азия, СПА)
   Loaded only on pages with these blocks. Sizes in rem on the same fluid scale as
   main.css: desktop canvas 1800px (1rem = 16px), phone canvas 375px.
   ========================================================================== */

body.scheme-legend { --accent: var(--c-legend); }
body.scheme-asia   { --accent: var(--c-asia); }
body.scheme-spa    { --accent: var(--c-spa); }

.is-complex {
	--accent: var(--c-legend);
	--page-bg: var(--c-light);
	--cont: 3.75rem;               /* side padding of the content */
	--sec: 7.5rem;                 /* vertical rhythm between blocks */
	--r-sec: 5rem;                 /* radius of coloured blocks */
	--r-img: 1.25rem;
	--plate: #ecddd2;
	background: var(--page-bg);
}
.is-complex .site-header { background: var(--accent); }

/* ---------- Typography ---------- */
.cont { padding-inline: var(--cont); }
.h2 {
	font: 400 3.3rem/1.2 var(--f-display);
	letter-spacing: -.025em; text-transform: uppercase;
}
.h2--indent { text-indent: 27.81rem; }
/* Short heading: every line starts at the indent line (set by main.js). */
.h2--indent.h2--block { text-indent: 0; padding-left: 27.81rem; text-wrap: balance; }
.h2--block > .h2__part { display: block; text-wrap: balance; }
.h2--block > br { display: none; }
.h3 { font: 400 3.5rem/1.05 var(--f-display); text-transform: uppercase; }
.h3i { font: italic 400 2rem/1 var(--f-display); }
.lead { font: italic 400 1.75rem/1.1 var(--f-display); }
.text { font-size: max(.94rem, 12px); line-height: 1.5; }
.caps15 { font-size: max(.94rem, 12px); line-height: 1.5; text-transform: uppercase; }
.rich p + p { margin-top: 1.25rem; }
.rich ul, .rich ol { margin: 0; padding-left: 1.1em; }
.rich a, .text a { text-underline-offset: .2em; }
.rich strong, .rich b { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center;
	height: 5rem; padding: 0 2rem; border: 0; border-radius: 12.5rem;
	background: var(--c-white); color: var(--c-dark);
	font: 500 max(.75rem, 11px)/1.5 var(--f-text); text-transform: uppercase; text-decoration: none; text-align: center;
	cursor: pointer;
	transition: color .5s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: var(--c-dark); transform: translateY(101%);
	transition: transform .7s var(--ease);
}
.btn--fill { background: var(--accent); color: var(--c-white); }
.btn:focus-visible { outline: 2px solid var(--c-dark); outline-offset: 3px; }

.round-btn {
	display: grid; place-items: center; flex: none;
	width: 3.75rem; height: 3.75rem; padding: 0; border: 0; border-radius: 50%;
	background: var(--c-white); color: var(--c-dark);
	transition: transform .5s var(--ease), opacity .3s;
}
.round-btn .icon { width: 1.5rem; height: 1.5rem; }
.round-btn:disabled { opacity: .45; cursor: default; }

.num-badge {
	display: grid; place-items: center; flex: none;
	width: 5rem; height: 5rem; border-radius: 50%;
	background: var(--c-white); color: var(--c-dark);
	font: 400 1.75rem/1 var(--f-display);
}
.num-badge--soft { width: 3rem; height: 3rem; background: var(--c-light); font-size: 1.25rem; }

.frame { overflow: hidden; border-radius: var(--r-img); transform: translateZ(0); background: rgb(106 92 82 / .08); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.dash-list { padding: 0; list-style: none; }
.dash-list li::before { content: "- "; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: var(--sec) 0 0; }
.sec--color {
	padding-bottom: var(--sec);
	border-radius: var(--r-sec);
	background: var(--accent); color: var(--c-white);
}
/* A plain block before a coloured one (or the footer) keeps its bottom space. */
.sec:not(.sec--color):has(+ .sec--color),
.sec:not(.sec--color):last-child { padding-bottom: var(--sec); }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow-x: clip;
	background: var(--accent); color: var(--c-white);
	text-align: center;
}
/* The light page background starts under the lower part of the video card. */
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
	height: 28rem; border-radius: var(--r-sec) var(--r-sec) 0 0; background: var(--page-bg);
}
.hero__ornament { position: absolute; top: 32.6875rem; z-index: 0; width: 36.31rem; height: auto; pointer-events: none; }
.hero__ornament--left { left: -6.75rem; }
.hero__ornament--right { right: -6.75rem; }
.hero__intro { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { max-width: 21.5rem; margin-top: 1.125rem; }
.hero__title { display: flex; flex-direction: column; align-items: center; margin-top: 4.9375rem; }
/* The heading holds only the hidden page title and the logo word; the visible name sits next to it. */
.hero__heading { display: contents; font: inherit; }
.hero__word { width: 51rem; height: auto; }
.hero__name { margin-top: .5rem; font: 400 8.8rem/1.1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.hero__caption { max-width: 21.5rem; margin-top: 1.125rem; }
.hero__media {
	position: relative; z-index: 1;
	height: 55rem; margin: 3.25rem 3.3rem 0;
	overflow: hidden; border-radius: 1.1rem; background: #948173;
	transform: translateZ(0);
}
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__line { display: none; }
.hero__name--long { max-width: 60rem; font-size: 4.4rem; line-height: 1.05; }
/* СПА, Азия: larger, letter-spaced (the trailing spacing is cancelled so the word stays centred). */
.hero__name--short { margin-top: .82rem; margin-right: -.15em; font-size: 12.32rem; letter-spacing: .15em; }

/* Collage instead of the video card (СПА). */
.hero--collage::after { height: 8rem; }
.hero--plain { padding-bottom: 12rem; }
.hero--plain::after { height: 5rem; }
.hero__collage { position: relative; z-index: 1; height: 62rem; margin-top: -4.3rem; }
.hero__photo { position: absolute; }
.hero__photo--1 { left: 37.25rem; top: 0; width: 37.75rem; aspect-ratio: 1380 / 1840; }
.hero__photo--2 { left: -3rem; top: 28.5rem; width: 21.6rem; aspect-ratio: 830 / 920; }
.hero__photo--3 { left: 27.5rem; top: 30rem; width: 21.6rem; aspect-ratio: 796 / 1078; }
.hero__photo--4 { right: -4.1rem; top: 21.95rem; width: 29.3rem; aspect-ratio: 500 / 624; }
.hero--collage .hero__ornament { top: 35.23rem; width: 36.64rem; }
.hero--collage .hero__ornament--left { left: 0; }
.hero--collage .hero__ornament--right { right: 0; }

/* ---------- Intro ---------- */
.intro__text { max-width: 36rem; margin: 1.875rem 0 0 27.8125rem; }
.intro:has(+ .marquee:not(.sec--color)) { padding-bottom: 2.5rem; }
.intro + .marquee:not(.sec--color) { padding-top: 0; }

/* ---------- Marquee ---------- */
.marquee.sec--color { padding-inline: 0; }
.marquee__text { max-width: 30rem; margin: 1.875rem 0 0 27.8125rem; }
.marquee__head + .marquee__stage { margin-top: 2.5rem; }
.marquee { overflow-x: clip; }
.marquee__stage { position: relative; }
.marquee__ornament { position: absolute; z-index: 0; width: 41.25rem; height: auto; opacity: .5; pointer-events: none; }
.marquee__ornament--right { top: .5rem; right: -6.75rem; }
.marquee__ornament--left { bottom: 0; left: -6.75rem; }
/* On the coloured blocks the ornament is light (white lines, see-through). */
.sec--color .marquee__ornament { opacity: .3; filter: brightness(0) invert(1); }
.marquee__viewport {
	position: relative; z-index: 1;
	overflow-x: auto; scrollbar-width: none;
	cursor: grab; touch-action: pan-y;
}
.marquee__viewport::-webkit-scrollbar { display: none; }
.marquee__viewport.is-js { overflow: hidden; }
.marquee__viewport.is-dragging { cursor: grabbing; }
.marquee__track {
	display: flex; align-items: center; gap: 1.875rem;
	width: max-content; height: 50.3125rem; margin: 0; padding: 0; list-style: none;
	will-change: transform;
}
.marquee__item { flex: none; overflow: hidden; border-radius: var(--r-img); background: rgb(106 92 82 / .08); }
.marquee__item--l { width: 33.5625rem; height: 50.3125rem; }
.marquee__item--m { width: 22.375rem; height: 33.5rem; }
.marquee__item--s { width: 22.375rem; height: 14.9375rem; }
.marquee__img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.marquee__foot { max-width: none; margin-top: 2.5rem; padding-left: calc(var(--cont) + 27.8125rem); }
.marquee__foot .text { max-width: 30rem; }
.marquee__foot .text + .text { margin-top: 1rem; }
.marquee__lead { max-width: 42rem; margin: 1.875rem 0; }
.marquee__foot .btn { width: 26.5625rem; margin-top: 1.875rem; }
.marquee:not(.sec--color) { padding-bottom: var(--sec); }

/* ---------- Features ---------- */
.features .cont { padding-inline: var(--cont); }
.features__grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.75rem 1.875rem;
	margin: 3.75rem 0 0; padding: 0; list-style: none;
}
.feature--big { grid-column: span 2; }
.feature:nth-child(6n + 4) { grid-column: 1; }
.feature:nth-child(6n + 5) { grid-column: 3; }
.feature__media { aspect-ratio: 397 / 565; }
.feature--big .feature__media { aspect-ratio: 825 / 995; }
.feature__title { margin-top: 1.25rem; font-weight: 400; }
.feature__list { display: flex; flex-direction: column; gap: .31rem; margin-top: .625rem; font-size: max(.94rem, 12px); line-height: 1.4; }

/* ---------- Team ---------- */
.team__grid {
	display: grid; grid-template-columns: 26.5625rem 26.5625rem 1fr; gap: 0 1.875rem;
	grid-template-areas: "img middle big" "quote middle big";
	grid-template-rows: auto 1fr;
	margin-top: 3.75rem;
}
.team__img { grid-area: img; aspect-ratio: 425 / 565; }
.team__quote { grid-area: quote; align-self: end; }
.team__quote .text { margin-top: 1.875rem; }
.team__middle { grid-area: middle; }
.team__big { grid-area: big; aspect-ratio: 770 / 995; }

/* ---------- Collage ---------- */
.collage__grid {
	display: grid; grid-template-columns: 26.5625rem 26.5625rem 1fr; gap: 0 1.875rem;
	grid-template-areas: "a text big" "note text big" "b c after";
	grid-template-rows: auto 1fr auto;
	margin-top: 3.75rem;
}
.collage__a { grid-area: a; aspect-ratio: 425 / 565; }
.collage__text { grid-area: text; max-width: 24rem; }
.collage__big { grid-area: big; aspect-ratio: 770 / 870; }
.collage__note { grid-area: note; align-self: end; padding-top: 2.5rem; }
.collage__note .text { margin-top: 1.25rem; max-width: 24rem; }
.collage__b, .collage__c { margin-top: 7.5rem; aspect-ratio: 425 / 565; }
.collage__b { grid-area: b; }
.collage__c { grid-area: c; }
.collage__after { grid-area: after; align-self: center; margin-top: 7.5rem; padding-left: 5rem; max-width: 38rem; }
.collage__after .text { margin-top: 1.25rem; max-width: 30rem; }
.collage__btn { width: 26.5625rem; margin-top: 2.5rem; }

/* ---------- Programme in detail ---------- */
.program-card {
	position: relative; overflow: hidden;
	padding: 3.13rem 3.75rem 5rem; border-radius: var(--r-sec);
	background: var(--accent); color: var(--c-white);
}
.program-card__ornament { position: absolute; z-index: 0; width: 36rem; height: auto; opacity: .9; pointer-events: none; }
.program-card__ornament--1 { left: 36rem; top: 40rem; width: 30rem; }
.program-card__ornament--2 { left: -6rem; top: 62rem; }
.program-card__grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 40rem 1fr; gap: 7.5rem 8rem;
	grid-template-areas: "info img1" "img2 rest";
	margin-top: 3.75rem;
}
.program-card__info { grid-area: info; }
.program-card__text { margin-top: 1.875rem; max-width: 36rem; }
.program-card__term { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.program-card__img1 { grid-area: img1; aspect-ratio: 570 / 670; }
.program-card__img2 { grid-area: img2; align-self: start; aspect-ratio: 570 / 670; }
.program-card__rest { grid-area: rest; align-self: end; max-width: 40rem; }
.program-card__rest .panel__includes { margin-top: 0; padding-top: 0; border-top: 0; }
.program-card__list li { padding-left: 1.1em; text-indent: -1.1em; }
.program-card__list li::before { content: "•"; display: inline-block; width: 1.1em; text-indent: 0; }
.program-card .panel__meta { margin-top: 2.5rem; }
.program-sec + .programs { margin-top: 0; }

/* ---------- Certificates ---------- */
.certs { position: relative; overflow-x: clip; }
.certs .cont { position: relative; }
.certs__grid { display: grid; grid-template-columns: repeat(3, 21.875rem); gap: 3.75rem 1.875rem; margin: 3.75rem 0 0 27.81rem; padding: 0; list-style: none; }
.certs__grid + .certs__grid { margin-top: 7.5rem; }
.cert__media { overflow: hidden; aspect-ratio: 870 / 556; border-radius: .9rem; }
.cert__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cert__title { margin-top: 1.25rem; }
.cert__price { margin-top: .9rem; }
.cert__btn { width: 100%; margin-top: 1.25rem; height: 3.75rem; }
.hero__btn { width: 26.5625rem; margin-top: 2.5rem; }

/* ---------- Tabs ---------- */
.tabs__box { margin-top: 3.75rem; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 1rem 3.75rem; margin-bottom: 3.75rem; }
.tabs__tab {
	padding: 0; border: 0; background: none; color: var(--c-dark);
	font-size: max(.94rem, 12px); line-height: 1.5; letter-spacing: -.03em; text-transform: uppercase;
	text-decoration: underline 2px transparent; text-underline-offset: 5px;
	transition: text-decoration-color .4s var(--ease), opacity .3s;
}
.tabs__tab[aria-selected="true"] { text-decoration-color: currentColor; opacity: 1; }

.tabs__stage {
	position: relative;
	padding: 3.13rem 3.75rem 5rem; border-radius: var(--r-sec);
	background: var(--accent); color: var(--c-white);
}
.tabs__track { display: grid; position: relative; }
[data-tabs] .tabs__track { transition: height .45s var(--ease); }
[data-tabs] .panel:not(.is-active) { position: absolute; inset: 0 0 auto; }
/* Copies for the endless rows are only needed where the row scrolls (phones for tabs and features). */
@media (min-width: 1024px) { .tabs__track > .is-clone, .features__grid > .is-clone { display: none; } }
.panel { grid-area: 1 / 1; min-width: 0; }
.panel__ornament-m { display: none; }
.panel__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.875rem; border-bottom: 1px solid rgb(255 255 255 / .2); }
.panel__num { font: 400 2rem/1.25 var(--f-display); }
.panel__body { display: flex; justify-content: space-between; min-height: 50rem; margin-top: 3.75rem; }
.panel__info { width: 40rem; padding-bottom: 8rem; } /* keeps the button clear of the slide arrows below it */
/* The title belongs to the text under it: more air above it (after the quote), less below. */
.panel__eyebrow { margin-bottom: 2.25rem; }
.panel__text { max-width: 31rem; margin-top: .75rem; }
.panel__text--long { max-width: none; }
.panel__meta {
	display: flex; justify-content: space-between; gap: 1rem;
	margin-top: 5.625rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .2);
}
.panel__btn { width: 100%; margin-top: 2.5rem; }
.panel__media { position: relative; width: 57.5rem; }
.panel__ornament { position: absolute; left: 5%; bottom: 10%; width: 41.63rem; height: auto; pointer-events: none; }
.panel__img { position: absolute; right: 0; top: 0; width: 43.125rem; height: 100%; }

.price { display: flex; flex-direction: column; gap: .5625rem; margin-top: 1.25rem; padding: 1.25rem 1.875rem 0 0; border-top: 1px solid rgb(255 255 255 / .2); list-style: none; }
.price__row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: max(.94rem, 12px); line-height: 1.5; }
.price__value { flex: none; }
/* As on the live site: "Подробнее" on its own line under the service name. */
.price__name { display: flex; flex-direction: column; align-items: flex-start; gap: .31rem; }
/* One pixel smaller than the caps around it: an underlined link reads larger than plain text. */
.price__more { font-size: max(calc(.75rem - 1px), 10px); font-weight: 500; text-transform: uppercase; text-underline-offset: .25em; }

.tabs__head.has-eyebrow { position: relative; }
.tabs__eyebrow { position: absolute; left: 0; top: .9rem; max-width: 24rem; }
.tabs__intro { max-width: 36rem; margin: 1.875rem 0 0 27.81rem; }
.panel__includes { margin-top: 1.875rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .2); }
.panel__includes ul { display: flex; flex-direction: column; gap: .3rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.panel__includes + .panel__meta { margin-top: 1.875rem; }

/* List view: every programme is its own coloured card. */
.tabs--list .tabs__stage { padding: 0; border-radius: 0; background: none; color: inherit; }
.tabs--list .tabs__track { display: flex; flex-direction: column; gap: 1.875rem; }
.tabs--list .panel {
	position: relative; overflow: hidden;
	padding: 3.13rem 3.75rem 5rem; border-radius: var(--r-sec);
	background: var(--card, var(--accent)); color: var(--c-white);
}
.tabs--list .panel__body { height: auto; min-height: 50rem; }
.tabs--list .panel__img img { transition: transform 1.6s var(--ease); }

.tabs__nav { position: absolute; left: 3.75rem; bottom: 5rem; display: flex; align-items: center; gap: 1.5rem; }
.tabs__count { min-width: 2.5rem; font-size: 1.5rem; font-weight: 400; line-height: 1.5; text-align: center; }

/* Desktop: panels are stacked, the active one fades in. */
@media (min-width: 1024px) {
	.panel { visibility: hidden; opacity: 0; transition: opacity .6s var(--ease), visibility 0s .6s; }
	.panel.is-active { visibility: visible; opacity: 1; transition: opacity .9s var(--ease) .1s, visibility 0s; }
	.panel .panel__info > * { transition: transform 1.1s var(--ease) .15s; }
	.panel:not(.is-active) .panel__info > * { transform: translate3d(0, 1.25rem, 0); }
	.panel .panel__img img { transition: transform 1.6s var(--ease); }
	.panel:not(.is-active) .panel__img img { transform: scale(1.06); }
}

/* ---------- Slider (programmes, reviews) ---------- */
.slider { margin-top: 3.75rem; }
.slider__track {
	display: flex; gap: 2.25rem;
	margin: 0; padding: 0 var(--cont); list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cont);
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: none; scroll-snap-align: start; }
/* Endless rows open on the first card: the copies before it show up once the row is moved. */
.is-fresh > .is-clone--before { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
	.slider__track, [data-tabs] .tabs__track { cursor: grab; user-select: none; }
	.slider__track.is-dragging { cursor: grabbing; }
	.slider__track img, .tabs__track img { -webkit-user-drag: none; }
}
.slider__nav { display: flex; gap: 1.75rem; margin-top: 2.5rem; }

.programs__text { max-width: 39rem; margin: 1.9375rem 0 0 27.8125rem; }
.programs .slider { margin-top: 3.75rem; }
.program { display: flex; flex-direction: column; width: 24.5rem; }
.program__media { aspect-ratio: 1; }
.program__img { transition: transform 1.6s var(--ease); }
.program__title { margin-top: .9375rem; }
.program__people { margin-top: 1.25rem; }
.program__text { margin-top: 1.25rem; }
.program__btn { width: 100%; margin-top: auto; }
.program__text + .program__btn, .program__people + .program__btn { margin-top: max(1.25rem, auto); }
.program > :nth-last-child(2) { margin-bottom: 1.25rem; }

.gallery__text { max-width: 39rem; margin: 1.875rem 0 0 27.8125rem; }
.slider--gallery .slider__track { gap: 1.875rem; }
.gallery__item { width: 26.5625rem; }
.gallery__img { width: 100%; height: auto; border-radius: var(--r-img); }

/* ---------- Steps ---------- */
.steps { overflow-x: clip; }
.steps__ornament { position: absolute; width: 43.19rem; height: auto; opacity: .5; pointer-events: none; }
.steps__ornament--left { left: -15.5%; bottom: 10rem; }
.steps__ornament--right { right: -18%; top: 20rem; }
.steps .cont { position: relative; }
.steps__list { width: 55.625rem; margin: 3.75rem 0 0 28.4375rem; padding: 0; list-style: none; }
.step { padding: 2.5rem 0; border-bottom: 1px solid rgb(106 92 82 / .2); }
.step:first-child { padding-top: 0; }
.step__head { display: flex; align-items: flex-start; gap: 1.25rem; }
.step__head .h3i { padding-top: .5rem; }
.step__text { max-width: 55rem; margin-top: 1.25rem; }

/* ---------- Split ---------- */
.split__grid { display: grid; grid-template-columns: 41rem 1fr; }
.split--top .split__grid { margin-top: 3.75rem; }
.split__content > .h2 { margin-bottom: 1.875rem; }
.split__lead { max-width: 31.5rem; padding-bottom: 2.5rem; }
.split__body { padding-top: 2.5rem; border-top: 1px solid rgb(106 92 82 / .2); }
.split__label { margin-bottom: .625rem; }
.split__text p + p { margin-top: .25rem; }
.split__text ul { padding: 0; list-style: none; }
.split__text li::before { content: "- "; }
.split__button-label { margin-top: 2.5rem; }
.split__btn { width: 40rem; max-width: 100%; margin-top: 1.875rem; }
.split__button-label + .split__btn { margin-top: 1.25rem; }
.split__after { margin-top: 1.875rem; }
.split__after p + p { margin-top: 1.875rem; }
.split__after a { white-space: nowrap; }
.split__media { justify-self: end; width: 51.5625rem; aspect-ratio: 825 / 995; }

/* ---------- Contacts ---------- */
.contacts.sec--color { padding-bottom: 3.75rem; border-radius: var(--r-sec) var(--r-sec) 0 0; }
.contacts__head { margin-left: 27.8125rem; }
.contacts__text { max-width: 30rem; margin-top: 1.875rem; }
.contacts__grid { display: flex; margin-top: 3.75rem; }
.map {
	position: relative; flex: none; isolation: isolate; z-index: 0; /* keep Yandex controls (z-index 1000+) under the header and buttons */
	width: 75.625rem; height: 43.75rem; overflow: hidden;
	border-radius: var(--r-img); background: #e1d3c8;
}
.map__canvas { position: absolute; inset: 0; }
.map { color: var(--c-dark); }
.map__fallback {
	position: absolute; inset: 0; display: grid; place-items: center;
	color: var(--c-dark); font-size: max(.94rem, 12px); text-transform: uppercase; text-underline-offset: .25em;
}
.map.is-loaded .map__canvas { position: absolute; inset: 0; }
.map { color: var(--c-dark); }
.map__fallback { display: none; }
/* Marker as on the live site: the complex's pin (58×67), its tip on the point, caption to the right. */
.map__marker { position: relative; display: block; width: 58px; height: 67px; transform: translate(-50%, -100%); color: var(--c-dark); text-decoration: none; cursor: pointer; }
.map__pin { display: block; width: 58px; height: 67px; }
.map__label {
	position: absolute; top: 10px; left: calc(100% - 2px);
	padding: 3px 5px 4px; border-radius: 6px;
	background: #fff; color: #6a5c52; font: 700 16px/1.2 var(--f-text); white-space: nowrap; text-decoration: none;
}
.contacts__list { display: flex; flex-direction: column; justify-content: center; gap: 3.75rem; width: 29.375rem; margin: 0; padding-left: 4.69rem; }
.contacts__item dd { margin: .625rem 0 0; }
.contacts__item a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.contacts__closing { margin-top: 5.625rem; text-align: center; }
.contacts__word { display: flex; justify-content: center; margin-top: 3.75rem; }
.contacts__logo { width: 57.9375rem; height: auto; }

.footer-color .site-footer { padding: 0 0 5rem; background: var(--accent); }
.footer-color .site-footer__inner { width: auto; padding-inline: var(--cont); }
.footer-color .site-footer__legal, .footer-color .site-footer__dev { font-size: max(.88rem, 11px); }

/* ---------- Top bar ---------- */
.navbar {
	position: fixed; left: 0; right: 0; top: 0; z-index: 40;
	background: var(--c-light); color: var(--c-dark);
	transform: translate3d(0, -101%, 0);
	/* Calm, like everything on the site: slides out slowly with no jolt at the start. Always solid. */
	transition: transform 1.3s cubic-bezier(.33, 0, .2, 1), box-shadow 1.3s ease;
}
.navbar.is-shown { transform: none; box-shadow: 0 .5rem 2rem rgb(106 92 82 / .08); }
/* iOS Safari with the address bar on top draws the page under that translucent bar, above top:0.
   The bar's own colour reaches up there, so photos don't show through between the address bar
   and the menu. Off screen everywhere else; leaves together with the bar when it hides. */
.navbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12.5rem; background: inherit; pointer-events: none; }
/* Anchor links stop below the top bar, with a little air, instead of under it. */
html { scroll-padding-top: 6.25rem; }

/* Curtain for anchor links (complex.js): rises from below over the screen, then lifts
   off upwards on the new place. Durations match CURTAIN_IN / CURTAIN_OUT in the script. */
.curtain {
	position: fixed; inset: 0; z-index: 100;
	width: 100%; height: 100lvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; overflow: hidden;
	background: var(--accent, var(--c-light)); /* the page colour: Легенда brown, Азия green, СПА red */
	transform: translate3d(0, 100%, 0);
	pointer-events: none;
}
.curtain:popover-open { display: block; }
/* Quicker than the rest of the site on purpose: the visitor is waiting for the block (same speed as the reference site). */
.curtain.is-in { transform: none; transition: transform .42s cubic-bezier(.7, 0, .3, 1); }
.curtain.is-out { transform: translate3d(0, -100%, 0); transition: transform .65s cubic-bezier(.7, 0, .3, 1); }
.navbar__inner { display: flex; align-items: center; height: 5rem; }
.navbar__brand { display: flex; align-items: center; gap: 1.25rem; width: 28.4375rem; color: inherit; text-decoration: none; }
.navbar__logo { width: 3.75rem; height: auto; }
.navbar__text { width: max(10.125rem, 150px); font-size: max(.81rem, 11px); line-height: 1.2; }
.navbar__links { display: flex; gap: 1.875rem; }
.navbar__link { font-size: max(.75rem, 11px); text-transform: uppercase; text-decoration: none; transition: opacity .3s; }
.navbar__book { width: 13.75rem; height: 3.5rem; margin-left: auto; padding: 0 1rem; font-size: max(.69rem, 10px); }
.navbar__phone { margin-left: 2.5rem; font: 400 1.5rem/1.5 var(--f-display); letter-spacing: .03em; text-decoration: none; }
.navbar__link, .navbar__phone, .navbar__book { white-space: nowrap; }
/* Narrow computer screens: the small captions keep a readable size while the bar shrinks,
   so the tagline goes first, then the links (they are in the full-screen menu anyway). */
@media (max-width: 1439px) { .navbar__text { display: none; } }
@media (max-width: 1365px) { .navbar__links { display: none; } }
.burger {
	display: flex; flex-direction: column; justify-content: center; gap: .55rem;
	width: 4.3rem; height: 3.2rem; margin-left: 2.5rem; padding: 0 0 0 1.75rem; border: 0; background: none;
}
.burger span { display: block; height: 1px; background: currentColor; transition: transform .5s var(--ease); }

/* ---------- Full-screen menu ---------- */
.menu {
	position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
	margin: 0; padding: 0; border: 0;
	display: none; grid-template-columns: 39.2% 1fr;
	background: var(--accent); color: var(--c-white);
}
.menu[open] { display: grid; }
.menu::backdrop { background: transparent; }
.menu__media { position: relative; overflow: hidden; }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__body { display: flex; flex-direction: column; min-height: 0; padding: 1.875rem 3.69rem 2.5rem; overflow-y: auto; overscroll-behavior: contain; }
.menu__logo { width: 4.56rem; height: auto; }
.menu__groups { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 4.2rem; }
.menu__complex { font: 400 2rem/1.1 var(--f-display); text-transform: uppercase; text-decoration: none; }
.menu__phone { text-transform: none; letter-spacing: .02em; }
.menu__small { margin-top: .6rem; font-size: max(.88rem, 12px); }
.menu__address { line-height: 1.45; }
.menu__links { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.3rem; padding: 0; list-style: none; line-height: 1.5; }
.menu__links > li { display: block; }
.menu__link { display: block; }
.menu__link { font-size: max(.88rem, 12px); font-weight: 500; text-transform: uppercase; text-decoration: none; transition: opacity .3s; }
.menu__foot { display: flex; align-items: center; gap: 1.25rem; margin-top: auto; padding-top: 2.5rem; border-top: 1px solid rgb(255 255 255 / .3); }
.menu__foot .menu__small { margin: 0 .25rem 0 0; }
.menu__messenger { display: block; width: 3.5rem; height: 3.5rem; border-radius: 50%; transition: transform .4s var(--ease); }
.menu__messenger svg { width: 100%; height: 100%; }
/* The close button is the burger turned into a cross, as on the old site: it sits exactly over the
   burger (complex.js copies the burger's box into --bx-*), and its lines fold into an X and turn white. */
.menu__close {
	position: fixed; z-index: 1;
	top: var(--bx-top, 1.5rem); left: var(--bx-left, auto); right: var(--bx-right, 4rem);
	width: var(--bx-w, 4.3rem); height: var(--bx-h, 3.2rem);
	display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: var(--bx-gap, .55rem);
	padding: 0; border: 0; background: none; color: var(--c-white);
}
.menu__close span { display: block; width: var(--bx-line, 2.55rem); height: 1px; background: currentColor; }
.menu[open] .menu__close span { animation: .5s ease both; }
.menu[open] .menu__close span:nth-child(1) { animation-name: bx-top; }
.menu[open] .menu__close span:nth-child(2) { animation-name: bx-mid; }
.menu[open] .menu__close span:nth-child(3) { animation-name: bx-bottom; }
.menu.is-closing .menu__close span { animation-duration: .28s; animation-direction: reverse; }
.menu.is-closing .menu__close span:nth-child(1) { animation-name: bx-top-back; }
.menu.is-closing .menu__close span:nth-child(2) { animation-name: bx-mid-back; }
.menu.is-closing .menu__close span:nth-child(3) { animation-name: bx-bottom-back; }
@keyframes bx-top { from { transform: none; background: var(--bx-c, var(--c-dark)); } to { transform: translateY(calc(var(--bx-gap, .55rem) + 1px)) rotate(45deg); } }
@keyframes bx-mid { from { opacity: 1; background: var(--bx-c, var(--c-dark)); } to { opacity: 0; } }
@keyframes bx-bottom { from { transform: none; background: var(--bx-c, var(--c-dark)); } to { transform: translateY(calc(-1 * var(--bx-gap, .55rem) - 1px)) rotate(-45deg); } }
/* Same keyframes under new names, so closing restarts the animation (backwards). */
@keyframes bx-top-back { from { transform: none; background: var(--bx-c, var(--c-dark)); } to { transform: translateY(calc(var(--bx-gap, .55rem) + 1px)) rotate(45deg); } }
@keyframes bx-mid-back { from { opacity: 1; background: var(--bx-c, var(--c-dark)); } to { opacity: 0; } }
@keyframes bx-bottom-back { from { transform: none; background: var(--bx-c, var(--c-dark)); } to { transform: translateY(calc(-1 * var(--bx-gap, .55rem) - 1px)) rotate(-45deg); } }
@media (prefers-reduced-motion: reduce) { .menu .menu__close span { animation-duration: 1ms !important; } }
/* Menu opening animation is off for now (animations will be redone). */

/* ---------- Dialogs ---------- */
.dialog {
	position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 1rem 5rem; border: 0; background: none; color: var(--c-dark);
	overflow-y: auto; overscroll-behavior: contain;
}
.dialog[open] { display: grid; }
/* The popup always scrolls by at least 1px, so with overscroll-behavior: contain a swipe on it
   never scrolls the page behind. On touch screens the page itself is not locked: Safari on iPhone
   could leave the page shifted after html { overflow: hidden } was removed (the top with the logo
   could only be pulled into view and sprang back). */
.dialog::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: calc(100% + 1px); pointer-events: none; }
/* The page is locked everywhere except Safari on iPhone/iPad (-webkit-touch-callout exists only
   there): on Android (Chrome, Yandex Browser, Samsung) the 1px trick above did not stop the
   page behind from scrolling. */
@supports not (-webkit-touch-callout: none) { html.has-dialog { overflow: hidden; } }
.dialog::backdrop { background: rgb(225 210 199 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] .dialog__box { animation: dialog-in .6s var(--ease) both; }
.dialog[open]::backdrop { animation: fade .5s var(--ease) both; }
.dialog.is-closing .dialog__box { animation: dialog-out .3s var(--ease-io) both; }
.dialog.is-closing::backdrop { animation: fade .3s reverse both; }
@keyframes dialog-in { from { opacity: 0; transform: translate3d(0, 1.5rem, 0) scale(.98); } }
@keyframes dialog-out { to { opacity: 0; transform: translate3d(0, .75rem, 0); } }
@keyframes fade { from { opacity: 0; } }

.dialog__box {
	position: relative; margin: auto;
	width: 28.125rem; max-width: 100%;
	padding: 3.75rem 2.5rem; border-radius: var(--r-img); background: var(--c-white);
}
.dialog:focus, .dialog__box:focus, .menu__body:focus { outline: none; }
/* All popups read from the left edge (titles, text, plates, form). */
.dialog__box--center { text-align: left; }
.dialog__box--wide { width: 37rem; }
.dialog__title { font: 400 2rem/1.1 var(--f-display); text-transform: uppercase; text-align: left; }
.dialog__text { margin-top: .7rem; font-size: max(.94rem, 12px); line-height: 1.4; }
.dialog__plate {
	display: flex; flex-direction: column; gap: .1rem;
	margin: 1.875rem 0 0; padding: 1.5rem 2.6rem; width: fit-content; max-width: 100%;
	border-radius: 1rem; background: var(--plate);
	font-size: max(.81rem, 11px); line-height: 1.8; text-transform: uppercase; text-align: left;
}
.dialog__plate b { font-size: 1.125rem; font-weight: 500; text-transform: none; }
.dialog__plate--list { margin-top: 1.875rem; }
.dialog__box--center .dialog__text + .dialog__plate, .dialog__plate + .dialog__text { margin-top: 1.875rem; }
/* The close button sits outside the card on desktop. */
.dialog__close {
	position: absolute; top: 0; left: calc(100% + .625rem);
	display: grid; place-items: center; width: 3.75rem; height: 3.75rem; padding: 0; border: 0; border-radius: 50%;
	background: var(--c-white); color: var(--c-dark);
	transition: transform .5s var(--ease);
}
.dialog__close .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2; }

/* Form */
.lead-form { margin-top: 1.875rem; text-align: left; }
.lead-form__trap { position: absolute; left: -9999px; }
.lead-form__field {
	width: 100%; height: 5rem; padding: 0 1.5rem; border: 1px solid transparent; border-radius: 15rem;
	background: #f5f6f7; color: #333; font: 400 1.25rem/1 var(--f-text); text-align: left;
	transition: border-color .3s;
}
.lead-form__field:focus { outline: none; border-color: var(--accent); }
.lead-form__field[aria-invalid="true"] { border-color: #c0392b; }
.lead-form__consent { position: relative; display: flex; gap: .75rem; margin-top: .625rem; font-size: max(.81rem, 11px); line-height: 1.4; cursor: pointer; }
.lead-form__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-form__box { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border: 1px solid var(--accent); border-radius: .2rem; transition: background-color .2s; }
.lead-form__consent input:checked + .lead-form__box { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 50% / 80% no-repeat; }
.lead-form__consent input:focus-visible + .lead-form__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-form__consent a { text-underline-offset: .15em; }
.lead-form__error { margin-top: .75rem; color: #c0392b; font-size: max(.81rem, 11px); }
.lead-form__submit { width: 100%; height: 4.6875rem; margin-top: 1.25rem; font-size: max(.94rem, 12px); }
.lead-form.is-sending .lead-form__submit { opacity: .6; pointer-events: none; }
.lead-form__done .dialog__text { margin-top: 1rem; }

/* Rules */
.rule { margin-top: 1.875rem; }
.rule + .rule { padding-top: 2.5rem; border-top: 1px solid rgb(106 92 82 / .2); margin-top: 2.5rem; }
.rule__title { display: flex; align-items: center; gap: .625rem; font: italic 500 1.75rem/1.2 var(--f-display); }
.rule__text { margin-top: 1.25rem; font-size: max(.94rem, 12px); line-height: 1.5; }
.rule__text .rule__h4 { display: block; margin: 0 0 1.25rem; font: italic 500 1.75rem/1.2 var(--f-display); }
.rule__text .rule__h5 { display: block; margin: 1.25rem 0 .625rem; font-size: inherit; font-weight: 400; text-transform: uppercase; }
.rule__text ul { padding-left: 1rem; }
.rule__text li + li { margin-top: .3rem; }
.rule__text p + p { margin-top: .75rem; }
.rule__title + .rule__text:empty { display: none; }

/* Promo */
/* Promo: sizes follow the old site (card 1152px, title 32px, text 15px, list 12px). */
.dialog--promo::backdrop { background: rgb(0 0 0 / .75); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dialog--promo .dialog__box { display: grid; grid-template-columns: 1fr 1fr; width: 72rem; padding: 0; }
.promo__media { position: relative; min-height: 100%; overflow: hidden; border-radius: var(--r-img) 0 0 var(--r-img); }
.promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__body { max-height: calc(100vh - 2rem); padding: 3.75rem 2.5rem; overflow-y: auto; overscroll-behavior: contain; }
.promo .dialog__title { font-size: 2rem; line-height: 1.1; text-align: left; }
.promo__text { margin-top: 1.875rem; font-size: .94rem; line-height: 1.5; }
.promo__text blockquote { margin: 1.875rem 0; padding: 1.4rem 1.4rem; border-radius: 1rem; background: var(--plate); font-size: .75rem; line-height: 1.8; text-transform: uppercase; }
.promo__text blockquote p + p { margin-top: 0; }
.promo__text p + p { margin-top: .75rem; }
.promo__text strong { font-size: .94rem; }
.promo__text a { text-underline-offset: .2em; }
.promo__back { margin-top: 2.1rem; padding: 0; border: 0; background: none; font-size: .94rem; text-transform: uppercase; text-decoration: underline; text-underline-offset: .35em; }

/* ---------- Side buttons ---------- */
.side-buttons {
	position: fixed; right: 2rem; top: 50%; z-index: 30;
	display: flex; flex-direction: column; width: 4.5rem;
	/* Frosted glass in the site's warm tones: what is behind is blurred, so the icons stay readable on text and photos. */
	border: 1px solid rgb(255 255 255 / .55); border-radius: 12.5rem;
	background: linear-gradient(160deg, rgb(255 250 245 / .8), rgb(236 224 214 / .66));
	-webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
	transform: translateY(-50%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 .75rem 2.5rem rgb(106 92 82 / .16), 0 1px 3px rgb(106 92 82 / .1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.side-buttons { background: rgb(240 232 225 / .96); }
}
.side-buttons__link { display: grid; place-items: center; height: 4.875rem; color: var(--c-dark); }
.side-buttons__link + .side-buttons__link { border-top: 1px solid rgb(106 92 82 / .18); }
.side-buttons__icon { width: 1.75rem; height: 1.75rem; transition: transform .5s var(--ease); }
.side-buttons__icon { color: var(--c-dark); }

/* ---------- Motion ---------- */
/* Scroll animations are switched off for now (see main.css). */
@media (prefers-reduced-motion: reduce) {
	.hero__video { display: none; }
}

/* ==========================================================================
   Phone layout (canvas 375px)
   ========================================================================== */
/* Whole page in the complex colour: «Спасибо», 404, documents. */
body.is-solid { --page-bg: var(--accent); }
.hero--screen { overflow: clip; }
.hero--screen::after { display: none; }
.hero--screen .hero__ornament { top: 24.75rem; }
.hero--screen.hero--plain { padding-bottom: 3.4rem; }
.hero--screen:only-child { padding-bottom: 8rem; }
.hero--screen .hero__name { margin-top: 2.2rem; font-size: 5.4rem; }
.hero--screen .hero__name--long { max-width: 80rem; font-size: 5.4rem; }
.hero--screen .hero__caption { max-width: 18rem; margin-top: 2.8rem; }
.hero--screen .hero__btn, .document__btn { width: 35.2rem; height: 4.4rem; min-height: 0; margin-top: 2.25rem; }
.hero__desc { width: 36rem; height: auto; margin-top: .9rem; }

.document { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 0 0 7rem; }
.document__card {
	width: 74.7rem; max-width: calc(100% - 2 * var(--cont));
	padding: 3.1rem 5.2rem 4.4rem;
	border-radius: 1.2rem; background: var(--c-white); color: var(--c-dark);
}
.document__title { margin-bottom: 2.8rem; font: 400 1.95rem/1.15 var(--f-display); text-align: center; text-transform: uppercase; }
.document__text { font-size: max(1rem, 13px); line-height: 1.45; }
.document .document__text p + p { margin-top: 1.45em; }
.document__text a { color: #0000ee; text-decoration: underline; word-break: break-word; }

@media (max-width: 1023px) {
	.hero--screen.hero--plain { padding-bottom: 2rem; }
	.hero--screen:only-child { padding-bottom: 4.5rem; }
	.hero--screen .hero__title { order: 0; margin-top: 1.6rem; }
	.hero--screen .hero__eyebrow { margin-top: 4rem; }
	.hero--screen .hero__ornament { top: 23rem; }
	.hero--screen .hero__name, .hero--screen .hero__name--long { max-width: 21rem; margin-top: 1.3rem; font-size: 2.25rem; }
	.hero--screen .hero__caption { max-width: 16rem; margin-top: 1.5rem; }
	.hero--screen .hero__btn, .document__btn { width: calc(100% - 1.2rem); height: 4.5rem; margin-top: 1.9rem; }
	.hero__desc { width: 16.5rem; margin-top: .4rem; }
	.document { padding-bottom: 4rem; }
	.document__card { max-width: calc(100% - 1.2rem); width: 100%; padding: 2.4rem 1.6rem 2.6rem; border-radius: 1.302rem; }
	.document__title { margin-bottom: 2rem; font-size: 1.5rem; }
	.document__text { font-size: .875rem; }
	/* Tablets get the phone layout in a centred column of about 720px, so lines and photos keep phone proportions. */
	.is-complex { --cont: max(.651rem, calc((100vw - 40rem) / 2)); --sec: 3.28rem; --r-sec: 1.302rem; --r-img: 1.302rem; }

	.h2 { font-size: 1.2656rem; line-height: 1.3; letter-spacing: 0; }
	.h2--indent, .h2--indent.h2--block { text-indent: 0; padding-left: 0; }
	.h3 { font-size: 1.6406rem; }
	.h3i { font-size: 1.3477rem; line-height: 1.1; }
	.lead { font-size: 1.289rem; }
	.text, .caps15 { font-size: max(.703rem, 12px); }
	.rich p + p { margin-top: .625rem; }

	.btn { height: 4.5625rem; font-size: max(.6445rem, 12px); }
	.round-btn { width: 2.9375rem; height: 2.9375rem; }
	.round-btn .icon { width: 1.2rem; height: 1.2rem; }
	.num-badge { width: 2.5625rem; height: 2.5625rem; font-size: 1.1rem; }

	/* Hero: logo first, then the captions, then a square video card. */
	.hero::after { height: 5.833rem; }
	.hero__intro { padding-inline: 1.2rem; }
	.hero__title { order: -1; margin-top: 3.875rem; }
	.hero__word { width: 19.3125rem; }
	.hero__name { margin-top: .6875rem; font-size: 3.164rem; }
	.hero__eyebrow { max-width: 16.94rem; margin-top: .625rem; }
	/* The quote sits halfway between the subtitle and the video. */
	.hero__caption { max-width: min(100%, max(19rem, 300px)); margin-top: 2.555rem; }
	.hero__ornament { top: 28rem; width: 15.8rem; }
	.hero__ornament--left { left: -11.25rem; }
	.hero__ornament--right { right: -11.25rem; }
	.hero__name--long { max-width: 17rem; font-size: 2.1rem; }
	.hero__name--short { margin-top: .27rem; margin-right: -.345em; font-size: 3.776rem; letter-spacing: .345em; }
	.hero--collage::after { height: 4rem; }
	.hero--plain { padding-bottom: 5rem; }
	.hero--plain::after { height: 2rem; }
	.hero__collage { height: auto; margin: 2rem .65rem 0; }
	.hero__photo--1 { position: relative; left: auto; width: 100%; aspect-ratio: 354 / 450; border-radius: 1.302rem; }
	.hero__photo:not(.hero__photo--1) { display: none; }
	.hero__media { height: 22.125rem; margin: 2.695rem .65rem 0; border-radius: 1.302rem; }
	.hero__line {
		position: relative; z-index: 1;
		display: flex; gap: 1.3rem; margin-top: 2rem; padding: 0 var(--cont) 1.3rem;
		overflow-x: auto; scrollbar-width: none; white-space: nowrap;
	}
	.hero__line::-webkit-scrollbar { display: none; }
	.hero__line a { color: var(--c-dark); text-decoration: none; }
	.hero + .intro { padding-top: 1.25rem; }

	.intro__text, .marquee__text, .programs__text, .gallery__text { max-width: none; margin-left: 0; margin-top: 1.3125rem; }
	.intro:has(+ .marquee:not(.sec--color)) { padding-bottom: 4.125rem; }

	.marquee__track { gap: 1rem; height: 27.9375rem; }
	.marquee__item--l { width: 18.625rem; height: 27.9375rem; }
	.marquee__item--m { width: 12.375rem; height: 18.5rem; }
	.marquee__item--s { width: 12.375rem; height: 8.25rem; }
	.marquee__ornament { width: 20.8rem; }
	.marquee__ornament--right { right: -8rem; }
	.marquee__ornament--left { left: -8rem; }
	.marquee:not(.sec--color) { padding-bottom: 1.875rem; }
	.marquee__foot { padding-left: var(--cont); margin-top: 1.875rem; }
	.marquee__foot .btn { width: 100%; }

	/* Features: a swipeable row of equal cards. */
	.features__grid {
		display: flex; gap: .65rem; margin: 1.9375rem calc(var(--cont) * -1) 0; padding: 0 var(--cont);
		overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--cont); scrollbar-width: none;
	}
	.features__grid::-webkit-scrollbar { display: none; }
	.feature, .feature--big { flex: none; width: 20.625rem; scroll-snap-align: start; }
	.feature__media, .feature--big .feature__media { aspect-ratio: 330 / 450; }
	.feature__title { margin-top: 1.1rem; }
	.feature__list { font-size: max(.78rem, 12px); gap: .33rem; }

	.team__grid {
		grid-template-columns: 1fr; gap: 1.9375rem 0;
		grid-template-areas: "middle" "img" "quote" "big"; grid-template-rows: auto;
		margin-top: 1.5rem;
	}
	.team__img, .team__big { aspect-ratio: 354 / 450; }
	.team__quote .text { margin-top: .6rem; }

	.collage__grid {
		grid-template-columns: 1fr 1fr; gap: .65rem;
		grid-template-areas: "text text" "a big" "note note" "b c" "after after";
		grid-template-rows: none; margin-top: 1.5rem;
	}
	.collage__text { max-width: none; margin-bottom: 1rem; }
	.collage__big { aspect-ratio: 425 / 565; }
	.collage__note { padding-top: 1rem; }
	.collage__note .text, .collage__after .text { margin-top: .625rem; max-width: none; }
	.collage__b, .collage__c { margin-top: 1.5rem; }
	.collage__after { margin-top: 1rem; padding: 0; max-width: none; }
	.collage__btn { width: 100%; margin-top: 1.3rem; }

	.program-card { padding: 1.736rem 1.302rem 2.6rem; }
	/* On phones the card is almost the screen width: its light ornament would stick out
	   onto the beige page, so it is hidden there. */
	.program-card__ornament { display: none; }
	.program-card__ornament--1 { right: -8rem; top: 4rem; }
	.program-card__ornament--2 { left: -8rem; top: 12rem; }
	.hero--collage .hero__ornament { top: 28rem; width: 15.8rem; }
	.hero--collage .hero__ornament--left { left: -11.25rem; }
	.hero--collage .hero__ornament--right { right: -11.25rem; }
	.program-card__grid { grid-template-columns: 100%; gap: 1.5rem; grid-template-areas: "img1" "info" "img2" "rest"; margin-top: 1.25rem; }
	.program-card__text { margin-top: 1rem; }
	.program-card__img1, .program-card__img2 { aspect-ratio: 312 / 313; border-radius: .82rem; }
	.program-card .panel__meta { margin-top: 1.25rem; }

	.certs__grid { grid-template-columns: 1fr; gap: 2rem; margin: 1.5rem 0 0; }
	.certs__grid + .certs__grid { margin-top: 2.5rem; }
	.cert__btn { height: 3.6rem; }
	.cert__media { border-radius: 1.302rem; }
	.hero__btn { width: calc(100% - 2.4rem); margin-top: 1.5rem; }

	/* Tabs: every panel is a card in a swipeable row. */
	.tabs__box { margin-top: 1.5rem; }
	.tabs__list { display: none; }
	.tabs__stage { padding: 0; border-radius: 0; background: none; }
	.tabs__track {
		display: flex; align-items: flex-start; gap: .65rem; margin: 0 calc(var(--cont) * -1); padding: 0 var(--cont);
		/* Moved only by complex.js, one card per swipe (no free scrolling that can stop between cards). */
		overflow: hidden; touch-action: pan-y; scrollbar-width: none;
	}
	/* Phone: all cards stay in the row (none taken out like on desktop); each keeps its own height. */
	[data-tabs] .panel:not(.is-active) { position: relative; inset: auto; }
	.tabs__track::-webkit-scrollbar { display: none; }
	.panel {
		position: relative; overflow: hidden; flex: none; width: 100%; scroll-snap-align: start;
		padding: 1.736rem 1.302rem 8.125rem; border-radius: var(--r-sec); background: var(--accent);
	}
	.panel__ornament-m { display: block; position: absolute; top: 8%; right: -4rem; width: 14rem; height: auto; opacity: .9; pointer-events: none; }
	.panel__top { position: relative; padding-bottom: 1.25rem; }
	.panel__num { font-size: 1.5625rem; }
	/* Phone: every slide is as tall as its own content (as on the live site); the row follows the slide on screen. */
	.panel__body { flex-direction: column-reverse; justify-content: flex-end; height: auto; min-height: 0; margin-top: .75rem; }
	.panel__info { width: auto; margin-top: 2rem; padding-bottom: 0; }
	.panel__eyebrow { margin-bottom: 1.4rem; }
	.panel__text { max-width: none; margin-top: .6rem; }
	.panel__meta { margin-top: 1.25rem; }
	.panel__btn { margin-top: 1.3rem; }
	.panel__media { width: 100%; }
	.panel__ornament { display: none; }
	.panel__img { position: relative; width: 100%; height: auto; aspect-ratio: 312 / 313; border-radius: .82rem; }
	.price { padding-right: 0; }
	.price__row { font-size: max(.703rem, 12px); }
	.tabs__nav { left: 1.302rem; right: 1.302rem; bottom: 2.1rem; justify-content: space-between; }
	.tabs__eyebrow { position: static; margin-bottom: .75rem; }
	.tabs__intro { margin: 1rem 0 0; }
	.panel__includes { margin-top: 1.25rem; }
	.tabs--list .tabs__track { flex-direction: column; gap: .65rem; margin: 0; padding: 0; overflow: visible; }
	.tabs--list .panel { width: auto; padding: 1.736rem 1.302rem 2.6rem; }
	.tabs--list .panel__body { min-height: 0; }
	.tabs__count { font-size: 1.17rem; }

	.slider { margin-top: 1.9rem; }
	.slider__track { gap: .625rem; }
	.slider__nav { display: none; }
	.program { width: 21.0625rem; }
	.program__media { aspect-ratio: 337 / 365; }
	.program__title { margin-top: .7rem; }
	.program__people, .program__text { margin-top: .65rem; }
	.programs--stack .slider__track { flex-direction: column; gap: 2.5rem; overflow: visible; }
	.programs--stack .program { width: auto; }
	.programs--stack .program__media { aspect-ratio: 337 / 620; }
	.gallery__item { width: 21.0625rem; }
	.slider--gallery .slider__track { gap: .625rem; }

	.steps__ornament { display: none; }
	.steps__list { width: auto; margin: 1.9rem 0 0; }
	.step { padding: 1.9rem 0; }
	.step__head { flex-direction: column; gap: .65rem; }
	.step__head .h3i { padding-top: 0; }
	.step__text { margin-top: .65rem; }

	.split__grid { grid-template-columns: 1fr; }
	.split--top .split__grid { margin-top: 1.9375rem; }
	.split__media { order: -1; width: 100%; aspect-ratio: 354 / 450; }
	.split__content { margin-top: 1.9375rem; }
	.split__content > .h2 { margin-bottom: 1.3rem; }
	.split:not(.split--top) .split__media { order: 0; margin-top: 1.9rem; }
	.split:not(.split--top) .split__content { margin-top: 0; }
	.split__lead { padding-bottom: 1.25rem; }
	.split__body { padding-top: 1.25rem; }
	.split__btn { width: 100%; }
	.split__button-label { margin-top: 1.25rem; }

	.contacts.sec--color { padding-bottom: 1.9rem; }
	.contacts__head { margin-left: 0; }
	.contacts__text { margin-top: 1.3rem; max-width: 15rem; }
	.contacts__grid { flex-direction: column; margin-top: 1.9rem; }
	.map { width: 100%; height: 23.4375rem; border-radius: .26rem; }
	.contacts__list { width: auto; gap: 2rem; margin-top: 1.9rem; padding: 0; text-align: center; }
	.contacts__closing { margin-top: 3.75rem; }
	.contacts__word { margin-top: 3.75rem; }
	.contacts__logo { width: 20.0625rem; }
	.footer-color .site-footer { padding: 0 0 5.5rem; }
	.footer-color .site-footer__inner { width: auto; }
	.footer-color .site-footer__legal, .footer-color .site-footer__dev { font-size: max(.6445rem, 12px); }

	html { scroll-padding-top: 5.25rem; }
	.navbar__inner { height: 4.125rem; padding-inline: .65rem; }
	.navbar__brand { width: auto; }
	.navbar__logo { width: 3.25rem; }
	.navbar__text, .navbar__links, .navbar__phone { display: none; }
	.navbar__book { width: 11.6875rem; height: 3.25rem; margin: 0 auto; font-size: max(.586rem, 11px); }
	/* Lines as on the old site: 32 px wide, 5 px apart at 390 px. */
	.burger { width: 2.875rem; height: 2.7rem; margin-left: 0; padding-left: .3rem; gap: .325rem; align-items: flex-end; }
	.burger span { width: 1.953rem; }

	.menu { grid-template-columns: 1fr; }
	.menu__media { display: none; }
	/* The whole menu, messengers included, fits one screen: the gaps follow the screen height. */
	.menu__body { padding: min(5.9rem, 9dvh) 1.06rem min(2rem, 3dvh); }
	.menu__logo { display: none; }
	/* Gap between the complexes: up to 2.2rem, less on short screens (complex.js lowers --menu-gap until it fits). */
	.menu__groups { gap: var(--menu-gap, min(1.6rem, 2.4dvh)); margin-top: 0; }
	.menu__close { --bx-top: 1.05rem; --bx-right: .65rem; --bx-w: 2.875rem; --bx-h: 2.7rem; --bx-line: 1.953rem; --bx-gap: .325rem; }
	.menu__complex { font-size: 1.4rem; }
	.menu__small { margin-top: .45rem; font-size: max(.703rem, 11px); }
	.menu__links { gap: min(.85rem, 1.2dvh); margin-top: min(1.15rem, 1.8dvh); line-height: 1.35; }
	.menu__link { font-size: max(.703rem, 11px); }
	.menu__foot { padding-top: min(1.75rem, 2.5dvh); margin-top: min(2.5rem, 3dvh); }
	.menu__messenger { width: 3.25rem; height: 3.25rem; }
	@media (max-height: 620px) {
		.menu__complex { font-size: 1.15rem; }
		.menu__links { line-height: 1.25; }
		.menu__small { margin-top: .3rem; }
		.menu__messenger { width: 2.75rem; height: 2.75rem; }
	}

	/* Phone: in every popup the close button sits above the card, as in the New Year one.
	   The top padding leaves room for it, so the card with its button stays centred on screen. */
	.dialog { padding: 4.75rem .65rem 1.5rem; }
	.dialog__box, .dialog__box--wide { width: 100%; max-width: 32rem; justify-self: center; padding: 2.2rem 1.3rem 1.6rem; }
	/* Same type as the page: titles like the small italic headings, text like the body text. */
	.dialog__title { font-size: 1.35rem; }
	.dialog__text, .rule__text { font-size: max(.703rem, 12px); line-height: 1.5; }
	.dialog__box--form .dialog__text { padding-inline: 0; }
	/* Tighter rhythm on phones: title, plates and text sit closer, plates are compact. */
	.dialog__plate { margin-top: 1.1rem; padding: .85rem 1.1rem; font-size: max(.703rem, 11px); line-height: 1.55; }
	.dialog__plate--list, .dialog__box--center .dialog__text + .dialog__plate, .dialog__plate + .dialog__text { margin-top: 1.1rem; }
	.dialog__plate b { font-size: .94rem; }
	/* Consent under the phone field: a step below the popup text (12 px), as on desktop. */
	.lead-form__consent { font-size: 11px; }
	.dialog__box .dialog__close { position: absolute; top: -3.25rem; left: auto; right: 0; width: 2.625rem; height: 2.625rem; background: var(--c-white); }
	.lead-form__field { height: 4.2rem; font-size: 1.1rem; }
	.lead-form__submit { height: 4.2rem; }
	.rule__title, .rule__text .rule__h4 { font-size: 1.2rem; }
	.rule { margin-top: 1.3rem; }
	.rule + .rule { padding-top: 1.5rem; margin-top: 1.5rem; }
	.rule__text { margin-top: .9rem; }
	.rule__text .rule__h4 { margin-bottom: .9rem; }
	.rule__text .rule__h5 { margin-top: .9rem; }
	/* Phone: no photo, small type, the close button above the card (as on the old site). */
	.dialog--promo .dialog__box { grid-template-columns: 1fr; width: 100%; max-width: 32rem; border-radius: 1.3rem; }
	.promo__media { display: none; }
	.promo__body { max-height: none; padding: 2.6rem 1.3rem; overflow: visible; }
	.promo .dialog__title { font-size: 1.64rem; line-height: 1.3; }
	.promo__text { margin-top: .7rem; font-size: .703rem; }
	.promo__text blockquote { margin: 1.3rem 0; padding: 1.1rem 1.1rem; border-radius: .8rem; font-size: .586rem; }
	.promo__text strong { font-size: .703rem; }
	.promo__back { margin-top: 1.5rem; font-size: .65rem; }

	.side-buttons {
		top: auto; bottom: 1.3rem; left: 50%; right: auto;
		flex-direction: row; width: auto; padding: 0 1.3rem;
		transform: translateX(-50%);
	}
	.side-buttons__link { width: 3.4rem; height: 3.5rem; }
	.side-buttons__link + .side-buttons__link { border-top: 0; border-left: 1px solid rgb(106 92 82 / .15); }
	.side-buttons__icon { width: 1.625rem; height: 1.625rem; }
}

/* ==========================================================================
   Load animation of the first screen («Пар», as on the home page demo).
   body.has-intro marks the page (inc/complex.php); html.intro-wait holds every
   move on its first frame until complex.js adds html.intro-go (photo and fonts
   ready, at most 1.5 s; an inline script in <head> adds it after 3 s regardless).
   Calm on purpose: long, gentle moves with no fast start.
   ========================================================================== */
@keyframes intro-sweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes intro-fade { from { opacity: 0; } }
/* .01, not 0: browsers do not count a fully transparent picture as painted, which would push
   the page's Largest Contentful Paint back by the whole delay (Lighthouse 98 → 74). */
@keyframes intro-rise { from { transform: translateY(1rem); } }
/* The video card and photos sit over the ornaments: they become solid quickly (0.8 s),
   while the slow rise goes on. From .01, not 0, so Lighthouse still sees the LCP image. */
@keyframes intro-solid { from { opacity: .01; } }
@keyframes intro-photo { from { transform: scale(1.06); } }
.has-intro :is(.site-header__inner, .hero__eyebrow, .hero__word, .hero__desc, .hero__name, .hero__caption, .hero__ornament, .hero__media, .hero__poster, .hero__video, .hero__photo, .hero__photo img, .hero__line, .hero__btn) {
	animation-play-state: paused;
}
.intro-go .has-intro :is(.site-header__inner, .hero__eyebrow, .hero__word, .hero__desc, .hero__name, .hero__caption, .hero__ornament, .hero__media, .hero__poster, .hero__video, .hero__photo, .hero__photo img, .hero__line, .hero__btn) {
	animation-play-state: running;
}
/* The name opens from left to right, sharp from the first letter. */
/* The heading itself is display: contents, so the logo word is masked, not the <h1>. */
.has-intro :is(.hero__word, .hero__desc, .hero__name) {
	-webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
	mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
	-webkit-mask-size: 250% 100%; mask-size: 250% 100%;
}
.has-intro .hero__word { animation: intro-sweep 2s cubic-bezier(.4, 0, .2, 1) .15s both; }
.has-intro .hero__name { animation: intro-sweep 1.7s cubic-bezier(.4, 0, .2, 1) .7s both; }
.has-intro .hero__desc { animation: intro-sweep 1.7s cubic-bezier(.4, 0, .2, 1) .5s both; }
/* Only the contents: the header's coloured band stays solid. */
.has-intro .site-header__inner { animation: intro-fade 1.6s ease .1s both; }
.has-intro .hero__eyebrow { animation: intro-fade 1.4s ease 1s both; }
.has-intro .hero__caption { animation: intro-fade 1.4s ease 1.2s both; }
.has-intro .hero__btn { animation: intro-fade 1.4s ease 1.35s both; }
.has-intro .hero__ornament { animation: intro-fade 2.6s ease .8s both; }
.has-intro .hero__media { animation: intro-rise 2.6s cubic-bezier(.25, .1, .25, 1) 1.3s both, intro-solid .8s ease 1.3s both; }
.has-intro :is(.hero__poster, .hero__video) { animation: intro-photo 4s cubic-bezier(.25, .1, .25, 1) 1.3s both; }
/* SPA: a collage of photos instead of the video card; they rise one after another. */
.has-intro .hero__photo { animation: intro-rise 2.6s cubic-bezier(.25, .1, .25, 1) calc(1.3s + var(--n, 0) * .3s) both, intro-solid .8s ease calc(1.3s + var(--n, 0) * .3s) both; }
.has-intro .hero__photo img { animation: intro-photo 4s cubic-bezier(.25, .1, .25, 1) calc(1.3s + var(--n, 0) * .3s) both; }
.has-intro .hero__photo--2 { --n: 1; }
.has-intro .hero__photo--3 { --n: 2; }
.has-intro .hero__photo--4 { --n: 3; }
.has-intro .hero__line { animation: intro-fade 1.4s ease 1.8s both; }
@media (prefers-reduced-motion: reduce) {
	.has-intro :is(.site-header__inner, .hero__eyebrow, .hero__word, .hero__desc, .hero__name, .hero__caption, .hero__ornament, .hero__media, .hero__poster, .hero__video, .hero__photo, .hero__photo img, .hero__line, .hero__btn) { animation: none; }
}

/* Promo: arrives slowly a while after the page has settled (complex.js), not at once. */
@keyframes promo-in { from { opacity: 0; transform: translate3d(0, 2.5rem, 0); } }
.dialog--promo[open]:not(.is-closing) .dialog__box { animation: promo-in 1.6s cubic-bezier(.22, .7, .25, 1) both; }
.dialog--promo[open]:not(.is-closing)::backdrop { animation: fade 1.4s ease both; }

/* -----------------------------------------------------------------------
   Scroll reveal («Туман» + «Строки», assets/js/complex.js). Hidden states only after
   the script has marked the pieces (html.sr-ready). Slow and soft, no blur.
   Uses `translate`, not `transform`, so it never fights sliders' and cards' own transforms.
   ----------------------------------------------------------------------- */
.sr-ready [data-sr]:not(.sr-in) { opacity: 0; translate: 0 1rem; }
.sr-ready [data-sr].sr-in { transition: opacity 1.4s ease var(--sr-d, 0s), translate 1.6s cubic-bezier(.22, .7, .25, 1) var(--sr-d, 0s); }
.sr-ready [data-sr="head"] { opacity: 1; translate: none; }
/* Each word sits in a box that hides it while it rises. The box has room above and below
   (Й, Ё, italic tails, tight line heights), and once the heading is in place it stops
   clipping at all (.sr-done), so nothing is ever cut. */
.sr-w { display: inline-block; overflow: hidden; vertical-align: top; text-indent: 0; padding: .3em 0 .15em; margin: -.3em 0 -.15em; }
.sr-done .sr-w { overflow: visible; }
.sr-w__in { display: inline-block; }
.sr-ready [data-sr="head"]:not(.sr-in) .sr-w__in { transform: translate3d(0, 130%, 0); }
.sr-ready [data-sr="head"].sr-in .sr-w__in { transition: transform 1.3s cubic-bezier(.22, .7, .25, 1) calc(var(--sr-d, 0s) + var(--l, 0) * .14s); }
.sr-ready .sr-now, .sr-ready .sr-now .sr-w__in { transition: none; }

/* Sideways rows scroll only sideways. With overflow-x: auto the browser makes them scrollable
   up and down too, and anything a few px taller (a card still rising in the scroll reveal)
   turned the row into a tiny vertical scroller: a finger swipe down then moved the row's
   few pixels instead of the page. The room below keeps rising cards from being cut. */
.slider__track, .features__grid { overflow-y: hidden; padding-bottom: 1.25rem; margin-bottom: -1.25rem; }
