/* ===== Evolution Fitness ===== */
:root {
	--fx-shade: linear-gradient(90deg, rgba(36, 28, 22, .82) 0%, rgba(36, 28, 22, .55) 45%, rgba(36, 28, 22, .15) 100%);
	--cream: #f5ead8;
	--grey: #d4cdc3;
	--brown: #4f463f;
	--ink: #1c1c1b;
	--light: #e2e2de;
	--muted: #8a8279;
	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Onest", system-ui, -apple-system, sans-serif;
	--gut: 60px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 400 16px/1.4 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* clip, а не hidden: hidden делает body отдельной прокручиваемой областью и ломает sticky */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.h-serif { font-family: var(--serif); font-weight: 400; }
.h-serif em { font-style: italic; }
.h2 { font-size: clamp(40px, 4.45vw, 64px); line-height: 1.1; letter-spacing: -.01em; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 35px; align-items: center; }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 60px; padding: 0 40px;
	font: 500 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .01em;
	border: 1px solid transparent;
	transition: background .3s, color .3s, border-color .3s;
}
.btn--light { background: var(--light); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: var(--light); color: var(--light); }
.btn--outline-light:hover { background: var(--light); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--brown); }
.btn--outline { border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 1px solid currentColor;
	transition: background .3s, color .3s;
}
.icon-btn:hover { background: var(--ink); color: var(--cream); }
.icon-btn--light { color: var(--light); width: 40px; height: 40px; }
.icon-btn--light:hover { background: var(--light); color: var(--ink); }

.link-arrow, .link-line {
	display: inline-flex; align-items: center; gap: 10px;
	font: 500 14px/1 var(--sans); text-transform: uppercase;
	padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-line { color: var(--light); }

/* Header */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	color: var(--light);
	transition: background .4s, transform .4s var(--ease), padding .4s;
	padding: 28px 0;
}
.site-header.is-scrolled { background: rgba(28, 28, 27, .94); padding: 14px 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 12px; }
.site-nav .menu { display: flex; gap: 34px; font-size: 14px; }
.site-nav .menu a { position: relative; }
.site-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav .menu a:hover::after { transform: scaleX(1); }
.burger { width: 24px; height: 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 1px; background: currentColor; transition: transform .3s; }
.site-logo img { width: 106px; height: auto; }
.site-header__cta { justify-self: end; height: 40px; padding: 0 24px; font-size: 12px; }

/* Hero */
.hero {
	position: relative; min-height: max(640px, 100svh); max-height: 1000px;
	color: var(--light);
	background: #3a332d var(--bg) center / cover no-repeat;
	overflow: hidden;
	display: flex;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(28, 24, 20, .55), rgba(28, 24, 20, .4) 35%, rgba(28, 24, 20, .62)); }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: 60px; }
.hero__title {
	font-size: clamp(54px, 8vw, 115px); line-height: 1.1; letter-spacing: -.015em;
	margin-bottom: clamp(60px, 11vw, 160px);
}
.hero__bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 0; align-items: end; }
.hero__down { align-self: end; }
.hero__lead { font-size: 18px; line-height: 1.4; margin-bottom: 36px; max-width: 470px; }

/* About */
.about { padding: 60px 0 120px; overflow: hidden; }
.about__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: 20px;
	grid-template-areas:
		". . t t t t t . . . . i1"
		"i2 i2 i2 i2 i2 . . tx tx tx tx ."
		"i2 i2 i2 i2 i2 . . . . i3 i3 i3";
}
.about__title {
	grid-column: 2 / 9; grid-row: 1; padding-top: 0;
	font-size: clamp(56px, 6.6vw, 96px); line-height: 1; letter-spacing: -.02em;
}
.about__title em { display: inline-block; padding-left: 2.2em; }
.about__img--1 { grid-column: 11 / 13; grid-row: 1; justify-self: end; width: 198px; aspect-ratio: 198 / 220; object-fit: cover; margin-top: 36px; }
.about__img--2 { grid-column: 1 / 6; grid-row: 2 / 4; width: 100%; aspect-ratio: 540 / 700; object-fit: cover; margin-top: 88px; }
.about__text { grid-column: 7 / 11; grid-row: 2; margin-top: 98px; max-width: 450px; }
.about__lead { font-size: 18px; line-height: 1.4; margin-bottom: 24px; }
.about__sub { font-size: 16px; line-height: 1.4; color: var(--brown); margin-bottom: 40px; }
.about__img--3 { grid-column: 9 / 13; grid-row: 3; align-self: end; justify-self: end; width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; }

/* Directions */
.dirs { position: relative; color: var(--light); min-height: max(890px, 100vh); display: flex; }
.dirs__slides { position: relative; flex: 1; display: grid; }
.dirs__slide {
	grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end;
	overflow: hidden; background: #2a231e;
	opacity: 0; visibility: hidden; z-index: 0;
	transition: opacity 1s var(--ease), visibility 0s 1s;
}
.dirs__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1s var(--ease), visibility 0s; }
.dirs__bg {
	position: absolute; left: 0; right: 0; bottom: 0; top: calc(-1 * var(--fx-a, 0px));
	background-size: cover; background-position: center;
	transform: scale(1.08); transition: transform 1.8s var(--ease);
}
.dirs__slide.is-active .dirs__bg { transform: none; }
.dirs__slide .dirs__content > * { transition: opacity .7s, transform .9s var(--ease); }
.dirs__slide:not(.is-active) .dirs__content > * { opacity: 0; transform: translateY(24px); }
.dirs__slide.is-active .dirs__content > :nth-child(2) { transition-delay: .08s; }
.dirs__slide.is-active .dirs__content > :nth-child(3) { transition-delay: .16s; }
.dirs__slide.is-active .dirs__content > :nth-child(4) { transition-delay: .24s; }
.dirs__steps { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 3; pointer-events: none; }
.dirs__steps span {
	position: absolute; top: 0; width: 25%; background: var(--cream);
	transform: scaleY(0); transform-origin: 50% 0; transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.dirs__steps span:nth-child(1) { left: 0; height: 120px; }
.dirs__steps span:nth-child(2) { left: 25%; height: 80px; transition-delay: .1s; }
.dirs__steps span:nth-child(3) { left: 50%; height: 40px; transition-delay: .2s; }
.dirs.is-in .dirs__steps span { transform: scaleY(1.01); }
.dirs.is-in .dirs__steps span:nth-child(1) { transition-delay: .35s; }
.dirs.is-in .dirs__steps span:nth-child(2) { transition-delay: .45s; }
.dirs.is-in .dirs__steps span:nth-child(3) { transition-delay: .55s; }
.dirs__content { position: relative; padding-top: 240px; padding-bottom: 120px; }
.dirs__content > * { max-width: 560px; }
.dirs__title { font-size: clamp(54px, 7.6vw, 110px); line-height: 1; letter-spacing: -.015em; margin-bottom: 26px; max-width: none; white-space: nowrap; }
.dirs__title sup { font-size: 24px; vertical-align: top; position: relative; top: .3em; margin-left: 12px; }
.dirs__desc { font-size: 15px; line-height: 1.45; max-width: 340px; margin-bottom: 40px; }
.dirs__prices { width: 100%; max-width: 560px; border-collapse: collapse; margin-bottom: 64px; }
.dirs__prices th { font-size: 12px; font-weight: 400; text-align: left; padding: 0 0 12px; }
.dirs__prices th:first-child, .dirs__prices td:first-child { width: 140px; }
.dirs__prices td { border-top: 1px solid rgba(226, 226, 222, .35); padding: 22px 0; font-size: 15px; }
.dirs__prices td.h-serif { font-size: 28px; line-height: 1; }
.dirs__panel {
	position: absolute; right: 0; bottom: 0; width: 25%; min-width: 300px; z-index: 5;
	background: var(--cream); color: var(--ink);
	padding: 32px 32px 48px;
}
.dirs__panel-label { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.dirs__list li + li button { border-top: 1px solid rgba(28, 28, 27, .35); }
.dirs__list button {
	width: 100%; display: flex; justify-content: space-between; align-items: center;
	padding: 8px 0 10px;
	font: 400 24px/1.2 var(--serif); text-align: left;
	transition: color .3s;
}
.dirs__list button svg { opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); }
.dirs__list button:hover { color: var(--brown); }
.dirs__list button:hover svg { opacity: 1; transform: none; }
.dirs__list button.is-current { color: var(--muted); }
.dirs__list button.is-current svg { opacity: 1; transform: none; }

/* Team */
.team { padding: 150px 0 120px; overflow: hidden; }
.team__head { text-align: center; margin-bottom: 64px; }
.team__head p { max-width: 500px; margin: 22px auto 0; font-size: 17px; line-height: 1.4; }
.team__stage { position: relative; height: 400px; margin-bottom: 56px; touch-action: pan-y; perspective: 1400px; perspective-origin: 50% 30%; transform-style: preserve-3d; }
.team__card {
	position: absolute; left: 50%; bottom: 0; margin: 0;
	width: 300px; height: 400px;
	transition: transform 1.1s var(--ease), opacity .6s, box-shadow .6s; will-change: transform;
	transform-origin: 50% 100%; backface-visibility: hidden;
	background: #c9b49a;
	cursor: pointer;
}
.team__card.is-active { box-shadow: 0 30px 50px -20px rgba(60, 40, 20, .45); cursor: default; }
.team__card img { width: 100%; height: 100%; object-fit: cover; }
.team__card figcaption {
	transition: opacity .5s;
	position: absolute; left: 8px; right: 8px; bottom: 8px;
	background: var(--ink); color: var(--cream);
	padding: 12px 16px; display: flex; flex-direction: column; gap: 6px;
	white-space: nowrap; overflow: hidden;
}
.team__card strong { font-size: 12px; font-weight: 500; text-transform: uppercase; }
.team__card span { font-size: 14px; color: #d9d0c2; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 46px; }
.slider-nav__count { font-size: 12px; font-weight: 500; min-width: 36px; text-align: center; }

/* Reviews */
.reviews { background: var(--grey); padding: 80px 0 80px; color: var(--brown); }
.reviews__pics { display: flex; justify-content: center; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
.reviews__pics > * { width: 106px; height: 134px; }
.reviews__pics > :nth-child(2) { margin-top: 16px; }
.reviews__body { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 24px; }
.reviews__arrow { color: var(--ink); }
.reviews__track { display: grid; }
.reviews__item { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.reviews__item.is-active { opacity: 1; visibility: visible; }
.reviews__item p { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.35; max-width: 840px; margin: 0 auto 40px; }
.reviews__item cite { font: 600 12px/1 var(--sans); font-style: normal; text-transform: uppercase; }
.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
.reviews__dots button { width: 16px; height: 12px; position: relative; transition: width .4s var(--ease); }
.reviews__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(79, 70, 63, .45); }
.reviews__dots button.is-active { width: 40px; }
.reviews__dots button.is-active::before { background: var(--ink); height: 2px; }

/* CTA */
.cta { background: var(--brown); padding: 150px 0 120px; }
.cta__grid { display: grid; grid-template-columns: 600fr 660fr; gap: 60px; }
.cta__img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.cta__card { background: var(--cream); padding: 88px 64px 80px; display: flex; flex-direction: column; }
.cta__card .h2 { margin-bottom: 32px; }
.cta__text { font-size: 18px; line-height: 1.4; max-width: 470px; margin-bottom: auto; padding-bottom: 60px; }
.cta__card .btn-row { gap: 25px; padding-bottom: 24px; border-bottom: 1px solid rgba(28, 28, 27, .3); margin-bottom: 24px; }
.cta__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta__label { font-size: 12px; text-transform: uppercase; color: var(--brown); margin-bottom: 12px; }
.cta__contacts a { font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.cta__contacts a:hover { color: var(--brown); }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 0; padding: 80px 0 48px; }
.site-footer__slogan { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; }
.site-footer__cols { display: grid; grid-template-columns: 200px 200px 1fr; gap: 24px; padding-top: 8px; }
.site-footer__title { font-size: 12px; color: #a8a29a; margin-bottom: 20px; }
.site-footer__col .menu { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__col a:hover { color: #fff; opacity: .7; }
.site-footer__social { display: inline-flex; margin-top: 20px; }
.site-footer__social svg { width: 26px; height: 26px; }
.site-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	border-top: 1px solid rgba(245, 234, 216, .25); padding-top: 24px; font-size: 14px;
}
.site-footer__word {
	font: 500 clamp(64px, 18.6vw, 268px)/1 "Ubuntu", var(--sans);
	color: #575756; text-align: center; white-space: nowrap;
	letter-spacing: .01em;
	margin: 32px -2vw 0; user-select: none;
	height: .64em; overflow: hidden; /* слово видно примерно на 70% */
}

/* Default pages */
.page-default { padding: 160px var(--gut) 120px; }
.page-default h1 { font-size: 64px; margin-bottom: 32px; }
body:not(.has-hero) .site-header { background: var(--ink); }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.hero__video { display: none; }
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
	:root { --gut: 40px; }
	.site-nav .menu { gap: 22px; }
	.dirs__panel { width: 32%; }
}
@media (max-width: 1024px) {
	.site-nav .menu {
		position: fixed; inset: 0; z-index: -1;
		flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
		padding: 100px var(--gut);
		background: var(--ink); font: 400 40px/1.1 var(--serif);
		opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
	}
	.menu-open .site-nav .menu { opacity: 1; visibility: visible; }
	.menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
	.menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
	html.menu-open { overflow: hidden; }

	.hero__bottom { grid-template-columns: 1fr; }
	.hero__down { display: none; }
	.hero__aside { width: auto; }

	.about__grid { grid-template-columns: 1fr 1fr; grid-template-areas: none; row-gap: 32px; }
	.about__title { grid-column: 1 / -1; }
	.about__img--1 { grid-column: 2; grid-row: auto; margin: 0; }
	.about__img--2 { grid-column: 1 / -1; grid-row: auto; margin: 0; }
	.about__text { grid-column: 1 / -1; grid-row: auto; margin: 0; }
	.about__img--3 { grid-column: 1 / -1; grid-row: auto; max-width: none; aspect-ratio: 16 / 10; }

	.dirs { flex-direction: column; }
	.dirs__steps span { width: 33.34%; }
	.dirs__steps span:nth-child(1) { height: 60px; }
	.dirs__steps span:nth-child(2) { left: 33.33%; height: 30px; }
	.dirs__steps span:nth-child(3) { display: none; }
	.dirs__content { padding-top: 160px; padding-bottom: 64px; }
	.dirs__title { white-space: normal; }
	.dirs__panel { position: static; width: 100%; }

	.cta__grid { grid-template-columns: 1fr; }
	.cta__img { min-height: 0; aspect-ratio: 16 / 10; }
	.site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	:root { --gut: 16px; }
	.site-header { padding: 16px 0; }
	.site-header .site-header__cta { height: 36px; padding: 0 12px; font-size: 11px; flex: none; }
	.site-logo img { width: 80px; }
	.hero__lead { font-size: 16px; }
	.btn { height: 52px; padding: 0 24px; font-size: 13px; }
	.btn-row { gap: 12px; }
	.btn-row .btn { flex: 1 1 auto; }
	.about { padding: 32px 0 80px; }
	.about__title em { padding-left: 1em; }
	.about__img--1 { width: 120px; }
	.dirs__prices th:first-child, .dirs__prices td:first-child { width: 90px; }
	.dirs__prices td.h-serif { font-size: 22px; }
	.dirs__prices { margin-bottom: 40px; }
	.dirs__panel { padding: 24px var(--gut) 32px; }
	.team { padding: 96px 0 80px; }
	.team__stage { height: 360px; }
	.reviews__body { grid-template-columns: 1fr; }
	.reviews__arrow { display: none; }
	.reviews__pics > * { width: 80px; height: 100px; }
	.cta { padding: 80px 0; }
	.cta__card { padding: 40px 20px; }
	.cta__contacts { grid-template-columns: 1fr; }
	.cta__contacts a { font-size: 16px; word-break: break-all; }
	.site-footer__top { padding: 80px 0 48px; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }

	.site-footer__cols .site-footer__col:last-child { grid-column: 1 / -1; }
}

/* ===== Preloader ===== */
.preloader { display: none; }
.js .preloader {
	display: block; position: fixed; inset: 0; z-index: 1000;
	color: var(--cream); pointer-events: none;
}
.js.is-loading .preloader { pointer-events: auto; }
html.is-loading { overflow: hidden; }
.preloader__cols { position: absolute; inset: 0; display: flex; }
.preloader__cols span {
	flex: 1; background: var(--ink); margin-right: -1px;
	transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.preloader__inner {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 0 var(--gut); text-align: center;
	transition: opacity .5s, transform .8s cubic-bezier(.76, 0, .24, 1);
}
.preloader__logo { width: 140px; margin-bottom: 40px; opacity: .9; }
.preloader__title { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; margin-bottom: 48px; }
.preloader__bar { width: min(420px, 100%); height: 1px; background: rgba(245, 234, 216, .2); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--cream); transform-origin: left; transform: scaleX(0); }
.preloader__meta {
	width: min(420px, 100%); display: flex; justify-content: space-between; margin-top: 14px;
	font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #a8a29a;
}
.preloader__meta [data-pl-num] { font-variant-numeric: tabular-nums; color: var(--cream); }
.preloader.is-done .preloader__inner { opacity: 0; transform: translateY(-40px); }
.preloader.is-done .preloader__cols span { transform: translateY(-101%); }
.preloader.is-done .preloader__cols span:nth-child(1) { transition-delay: .15s; }
.preloader.is-done .preloader__cols span:nth-child(2) { transition-delay: .27s; }
.preloader.is-done .preloader__cols span:nth-child(3) { transition-delay: .05s; }
.preloader.is-done .preloader__cols span:nth-child(4) { transition-delay: .33s; }
.preloader.is-done .preloader__cols span:nth-child(5) { transition-delay: .1s; }
.preloader.is-done .preloader__cols span:nth-child(6) { transition-delay: .21s; }
.preloader.is-gone { display: none; }

/* ===== Hero intro ===== */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: inline-block; transition: transform 1.3s var(--ease); }
.js .hero__title .line > span { transform: translateY(110%); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js [data-intro] { opacity: 0; transform: translateY(24px); transition: opacity 1s .45s, transform 1.2s .45s var(--ease); }
.js .hero__down[data-intro] { transition-delay: .7s; }
.js .site-header { opacity: 0; }
.is-ready .site-header { opacity: 1; transition: opacity 1s .5s, background .4s, transform .4s var(--ease), padding .4s; }
.is-ready .hero__title .line > span { transform: none; }
.is-ready [data-intro] { opacity: 1; transform: none; }

/* ===== Section transitions (mosaic, по мотивам nicole.ru) ===== */
.has-fx main > section { position: sticky; z-index: 1; }
.has-fx main > section ~ section { z-index: 2; }
.has-fx .about, .has-fx .team, .has-fx .dirs { background: var(--cream); }
.has-fx .about, .has-fx .team { overflow: visible; overflow-x: clip; }
.has-fx main > section:not(.hero) { will-change: transform; }
.has-fx main > section:not(.hero) { min-height: 100vh; }
.has-fx .reviews, .has-fx .cta { display: flex; flex-direction: column; justify-content: center; }

/* Контент секции появляется, когда полосы почти доехали (.is-in) */
.js .fx-sec [data-reveal] { opacity: 0; transform: translateY(30px); }
.js .fx-sec.is-in [data-reveal] { opacity: 1; transform: none; transition-delay: .15s; }
.js .fx-sec.is-in [data-reveal-text] { clip-path: inset(-10% -10% -20% -10%); transform: none; opacity: 1; }
/* Фото: раскрываются слева направо, при уходе — закрываются слева направо */
.img-mask { display: block; overflow: hidden; position: relative; }
.img-mask > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* «шторка» на transform: окно едет слева направо, картинка стоит на месте */
.js .fx-sec .img-mask, .js .fx-sec .img-mask > img { transition: transform 1.3s cubic-bezier(.76, 0, .24, 1); will-change: transform; }
.js .fx-sec .img-mask { transform: translate3d(-100%, 0, 0); }
.js .fx-sec .img-mask > img { transform: translate3d(100%, 0, 0); }
.js .fx-sec.is-in .img-mask, .js .fx-sec.is-in .img-mask > img { transform: none; }
.js .fx-sec.is-in.is-out .img-mask { transform: translate3d(100%, 0, 0); }
.js .fx-sec.is-in.is-out .img-mask > img { transform: translate3d(-100%, 0, 0); }
.js .fx-sec.is-in .about__img--2, .js .fx-sec.is-in .about__img--2 > img,
.js .fx-sec.is-in .reviews__pics > :nth-child(2), .js .fx-sec.is-in .reviews__pics > :nth-child(2) > img { transition-delay: .12s; }
.js .fx-sec.is-in .about__img--3, .js .fx-sec.is-in .about__img--3 > img,
.js .fx-sec.is-in .reviews__pics > :nth-child(3), .js .fx-sec.is-in .reviews__pics > :nth-child(3) > img { transition-delay: .24s; }
.js .fx-sec.is-in.is-out .img-mask, .js .fx-sec.is-in.is-out .img-mask > img { transition-delay: 0s; transition-duration: 1s; }
.has-fx .site-footer { position: relative; z-index: 3; }

/* Text mask reveal */
[data-reveal-text] { transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease), opacity 1.2s; }
.js [data-reveal-text]:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translateY(35%); opacity: 0; }
.js [data-reveal-text].is-in { clip-path: inset(-10% -10% -20% -10%); }

@media (prefers-reduced-motion: reduce) {
	.preloader__cols span, .preloader__inner { transition: opacity .3s !important; }
	.preloader.is-done { opacity: 0; transition: opacity .3s !important; }
	.js .hero__title .line > span, .js [data-intro], .js [data-reveal-text]:not(.is-in) { transform: none; opacity: 1; clip-path: none; }
	.js .site-header { opacity: 1; }
}

/* Lenis: нативный smooth-scroll браузера конфликтует с ним — отключаем */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* без горизонтального скролла (clip не ломает sticky) */
main { overflow-x: clip; }

/* ===== Раунд 5: экраны по 100vh, «вход» в фото, цены ===== */
.dirs__zoom { display: none; }
.has-fx .dirs__zoom {
	display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
	z-index: 0; overflow: hidden; visibility: hidden; pointer-events: none;
}
.dirs__zoom video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about__img--2 > img { object-position: 55% 50%; }
.has-fx .dirs.is-zooming { background: transparent; }
.has-fx .dirs.is-zooming .dirs__slides,
.has-fx .dirs.is-zooming .dirs__panel,
.has-fx .dirs.is-zooming .dirs__steps { opacity: var(--zf, 0); }
.dirs__slides, .dirs__panel { position: relative; z-index: 1; }
.dirs__panel { position: absolute; z-index: 5; }

.dirs__sub { display: block; white-space: nowrap; }
.dirs__sub + .dirs__sub { margin-top: 6px; }
.dirs__sub small { font: 400 12px/1 var(--sans); margin-left: 8px; opacity: .7; }
.dirs__note { font-size: 12px; line-height: 1.4; opacity: .7; max-width: 560px; margin: -36px 0 28px; }

@media (min-width: 1025px) {
	/* «Направления» — ровно один экран */
	.dirs { height: 100vh; min-height: 600px; }
	.dirs__content { padding-top: max(140px, 16vh); padding-bottom: 5vh; }
	.dirs__title { font-size: min(7.6vw, 11vh); margin-bottom: 2vh; }
	.dirs__desc { margin-bottom: 2.6vh; }
	.dirs__prices { margin-bottom: 4vh; }
	.dirs__prices th { padding-bottom: 8px; }
	.dirs__prices td { padding: min(16px, 1.6vh) 0; vertical-align: top; }
	.dirs__prices td.h-serif { font-size: min(26px, 2.8vh); }
	.dirs__prices th:first-child, .dirs__prices td:first-child { width: 190px; }
	.dirs__note { margin: -2.4vh 0 3vh; }
	.dirs__list button { font-size: min(24px, 2.7vh); padding: min(8px, .9vh) 0 min(10px, 1.1vh); }

	/* «О клубе» — ровно один экран */
	.about { height: 100vh; min-height: 640px; padding: max(96px, 11vh) 0 5vh; }
	.about__grid {
		height: 100%; grid-template-areas: none;
		grid-template-rows: auto minmax(0, 1fr);
	}
	.about__title { grid-column: 2 / 9; grid-row: 1; font-size: min(6.6vw, 10.5vh); }
	.about__img--1 { grid-column: 11 / 13; grid-row: 1; margin: 0; width: min(198px, 20vh); height: auto; aspect-ratio: 198 / 220; align-self: start; }
	.about__img--2 { grid-column: 1 / 6; grid-row: 2; margin: 3vh 0 0; height: calc(100% - 3vh); width: auto; max-width: 100%; aspect-ratio: 540 / 700; }
	.about__text { grid-column: 7 / 11; grid-row: 2; margin-top: 3vh; }
	.about__lead { font-size: min(18px, 2vh); margin-bottom: 2vh; }
	.about__sub { font-size: min(16px, 1.8vh); margin-bottom: 3vh; }
	.about__img--3 { grid-column: 10 / 13; grid-row: 2; width: min(360px, 26vh); max-width: none; height: auto; aspect-ratio: 1; }
}
/* кадр, из которого «входим» в видео, не закрывается шторкой */
.js .fx-sec.is-in.is-out .about__img--2, .js .fx-sec.is-in.is-out .about__img--2 > img { transform: none; }
.fx-hold { pointer-events: none; }

/* «Направления»: фон — видео (одно на все направления), меняется только текст */
.has-fx .dirs { background: #1c1712; }
.has-fx .dirs__bg { display: none; }
.has-fx .dirs__slide { background: transparent; }
.has-fx .dirs__zoom::after {
	content: ""; position: absolute; inset: 0; background: var(--fx-shade);
	opacity: var(--zf, 0);
}

/* ===== Шапка: язык + кнопка ===== */
.site-header__right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.lang { position: relative; display: inline-flex; align-items: center; color: var(--light); cursor: pointer; }
.lang__select {
	appearance: none; -webkit-appearance: none; background: transparent; color: inherit;
	border: 1px solid currentColor; border-radius: 0; height: 40px; padding: 0 30px 0 14px;
	font: 500 12px/1 var(--sans); letter-spacing: .04em; cursor: pointer;
}
.lang__select:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lang__select option { color: var(--ink); background: var(--cream); }
.lang__arrow { position: absolute; right: 12px; pointer-events: none; }
.lang--dark { color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Меню «Направления» ===== */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.mmenu {
	position: fixed; inset: 0; z-index: 300; display: flex;
	visibility: hidden; pointer-events: none;
	/* ступенчатая маска как на nicole.ru: колонки поднимаются с разной скоростью */
	clip-path: polygon(0% 133%, 25% 133%, 25% 100%, 42% 100%, 42% 157%, 50% 157%, 50% 188%, 67% 188%, 67% 139%, 92% 139%, 92% 158%, 100% 158%, 100% 100%, 0% 100%);
	transition: clip-path 1s cubic-bezier(.65, 0, .35, 1), visibility 0s 1s;
}
.mmenu.is-open {
	visibility: visible; pointer-events: auto;
	clip-path: polygon(0% 0%, 25% 0%, 25% 0%, 42% 0%, 42% 0%, 50% 0%, 50% 0%, 67% 0%, 67% 0%, 92% 0%, 92% 0%, 100% 0%, 100% 100%, 0% 100%);
	transition: clip-path 1.6s cubic-bezier(.25, .74, .22, .99), visibility 0s;
}
.mmenu__left {
	position: relative; width: 41.667%; background: var(--cream); color: var(--ink);
	display: flex; flex-direction: column; padding: 28px var(--gut) 40px;
}
.mmenu__top { display: flex; align-items: center; gap: 32px; height: 40px; }
.mmenu__close { position: relative; width: 24px; height: 24px; flex: none; }
.mmenu__close span { position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transform: rotate(45deg); transition: transform .4s var(--ease); }
.mmenu__close span:last-child { transform: rotate(-45deg); }
.mmenu__close:hover span:first-child { transform: rotate(135deg); }
.mmenu__close:hover span:last-child { transform: rotate(45deg); }
.mmenu__nav { display: flex; gap: 32px; font-size: 14px; flex-wrap: wrap; }
.mmenu__nav a:hover { color: var(--muted); }
.mmenu__list { margin: auto 0; padding: 4vh 0; }
.mmenu__list a {
	display: inline-flex; align-items: center; gap: 24px;
	font: 400 clamp(34px, min(3.6vw, 7vh), 56px)/1.14 var(--serif); white-space: nowrap;
	transition: color .4s;
}
.mmenu__list a svg { width: 34px; height: 24px; opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .5s var(--ease); }
.mmenu__list a:hover, .mmenu__list a.is-current { color: var(--muted); }
.mmenu__list a:hover svg, .mmenu__list a.is-current svg { opacity: 1; transform: none; }
.mmenu__list li, .mmenu__top, .mmenu__bottom { opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .5s var(--ease); }
.mmenu.is-open .mmenu__list li, .mmenu.is-open .mmenu__top, .mmenu.is-open .mmenu__bottom {
	opacity: 1; transform: none; transition: opacity .9s, transform 1.1s var(--ease);
	transition-delay: calc(.35s + var(--i, 0) * .05s);
}
.mmenu.is-open .mmenu__bottom { transition-delay: .8s; }
.mmenu__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

.mmenu__right {
	position: relative; flex: 1; overflow: hidden; background: #2b241d;
	/* фото въезжает справа ступенями */
	clip-path: polygon(130% 0%, 100% 0%, 100% 100%, 145% 100%, 145% 85%, 115% 85%, 115% 62%, 160% 62%, 160% 45%, 100% 45%, 100% 20%, 130% 20%);
	transition: clip-path .8s cubic-bezier(.65, 0, .35, 1);
}
.mmenu.is-open .mmenu__right {
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 85%, 0% 85%, 0% 62%, 0% 62%, 0% 45%, 0% 45%, 0% 20%, 0% 20%);
	transition: clip-path 1.8s cubic-bezier(.25, .74, .22, .99) .3s;
}
.mmenu__media { position: absolute; inset: 0; }
.mmenu__img {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	transform: scale(1.08); transition: transform 2.4s var(--ease);
}
.mmenu.is-open .mmenu__img { transform: none; }
/* смена фото: «радар» — круг прорезает новое фото по часовой стрелке */
.mmenu__img.is-sweep {
	-webkit-mask-image: conic-gradient(from var(--from, 0deg) at 50% 50%, #000 var(--a), transparent var(--a));
	mask-image: conic-gradient(from var(--from, 0deg) at 50% 50%, #000 var(--a), transparent var(--a));
	transition: --a 1s cubic-bezier(.65, 0, .35, 1), transform 2.4s var(--ease);
}
.mmenu__img.is-sweep.is-go { --a: 361deg; }
.mmenu__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mmenu__lines g { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: view-box; transform-origin: 0 0; transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.mmenu__lines g * { vector-effect: non-scaling-stroke; }
.mmenu__dot { fill: #fff; }
.mmenu__head {
	position: absolute; left: 0; right: 0; top: 28px; padding-right: var(--gut);
	display: flex; justify-content: space-between; align-items: center;
}
.mmenu__logo { margin-left: calc(50vw - 41.667vw - 53px); }
.mmenu__logo img { width: 106px; }
html.mmenu-open { overflow: hidden; }

@media (max-width: 1024px) {
	.site-nav .menu { display: none; }
	.mmenu { flex-direction: column; }
	.mmenu__left { width: 100%; flex: 1; padding: 20px var(--gut) 28px; }
	.mmenu__right { display: none; }
	.mmenu__nav { gap: 6px 20px; font-size: 13px; }
	.mmenu__top { height: auto; align-items: flex-start; }
	.mmenu__list a { font-size: clamp(32px, 9vw, 52px); }
}
@media (max-width: 640px) {
	.site-header .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mmenu, .mmenu.is-open, .mmenu__right, .mmenu.is-open .mmenu__right { clip-path: none !important; transition: opacity .3s, visibility 0s !important; }
	.mmenu { opacity: 0; } .mmenu.is-open { opacity: 1; }
}

.pl-seen .preloader { display: none !important; }

/* ===== Прелоадер v2: «Добро пожаловать», шкала на всю ширину ===== */
.preloader__inner { justify-content: center; padding: 0; transition: opacity .6s, transform .9s cubic-bezier(.76, 0, .24, 1); }
.preloader__logo {
	position: absolute; left: 50%; top: 28px; transform: translateX(-50%);
	width: 106px; margin: 0; opacity: 0; animation: plFade 1s .1s forwards;
}
.preloader__title {
	font-size: clamp(54px, 10.5vw, 168px); line-height: 1.05; letter-spacing: -.02em;
	margin: 0; white-space: nowrap; text-align: center;
}
.preloader__title .line { display: block; overflow: hidden; padding: 0 .05em .14em; margin-bottom: -.14em; }
.preloader__title .line > span { display: inline-block; transform: translateY(110%); animation: plRise 1.4s .15s cubic-bezier(.22, .61, .36, 1) forwards; }
.preloader__meta {
	position: absolute; left: 0; right: 0; bottom: 28px; margin: 0 auto; width: 100%;
	display: flex; justify-content: space-between; align-items: flex-end;
	font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #a8a29a;
	opacity: 0; animation: plFade 1s .5s forwards;
}
.preloader__num { font-size: clamp(40px, 4.4vw, 64px); line-height: .8; letter-spacing: 0; text-transform: none; color: var(--cream); font-variant-numeric: tabular-nums; }
.preloader__num small { font-size: .4em; margin-left: 4px; vertical-align: top; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3px; background: rgba(245, 234, 216, .12); }
.preloader__bar span { height: 100%; background: var(--cream); }
.preloader.is-done .preloader__inner { opacity: 0; transform: translateY(-60px); }
.preloader.is-done .preloader__logo { animation: none; opacity: 0; transition: opacity .3s; }
@keyframes plRise { to { transform: none; } }
@keyframes plFade { to { opacity: 1; } }
@media (max-width: 640px) {
	.preloader__title { white-space: normal; font-size: 15vw; }
	.preloader__meta { bottom: 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== Переход между страницами: ступенчатые колонки ===== */
.ptr { position: fixed; inset: 0; z-index: 900; pointer-events: none; display: none; }
.js .ptr { display: block; }
.ptr__cols { position: absolute; inset: 0; display: flex; }
.ptr__cols span { flex: 1; background: var(--ink); margin-right: -1px; transform: translateY(101%); }
.ptr__logo { position: absolute; left: 50%; top: 50%; width: clamp(200px, 22vw, 320px); height: auto; transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s; }
/* закрываем экран снизу вверх */
.ptr.is-in { pointer-events: auto; }
.ptr.is-in .ptr__cols span { transform: none; transition: transform .75s cubic-bezier(.76, 0, .24, 1); }
.ptr.is-in .ptr__logo { opacity: 1; transition-delay: .45s; }
/* новая страница стартует закрытой и открывается вверх */
.ptr-cover .ptr .ptr__cols span { transform: none; }
.ptr-cover .ptr .ptr__logo { opacity: 1; }
.ptr.is-out .ptr__cols span { transform: translateY(-101%); transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.ptr.is-out .ptr__logo { opacity: 0; transition-delay: 0s; }
.ptr__cols span:nth-child(1) { transition-delay: .08s !important; }
.ptr__cols span:nth-child(2) { transition-delay: .16s !important; }
.ptr__cols span:nth-child(3) { transition-delay: 0s !important; }
.ptr__cols span:nth-child(4) { transition-delay: .2s !important; }
.ptr__cols span:nth-child(5) { transition-delay: .04s !important; }
.ptr__cols span:nth-child(6) { transition-delay: .12s !important; }
@media (prefers-reduced-motion: reduce) { .ptr { display: none !important; } }
/* страховка: если скрипт не загрузился, шторка не останется на экране */
.ptr-cover .ptr .ptr__cols span { animation: ptrSafety 0s 4s forwards; }
@keyframes ptrSafety { to { transform: translateY(-101%); } }

/* ===== Меню: мобильная версия (страницы + аккордеон «Направления»), без дубля языка на ПК ===== */
.mmenu__mob { display: none; }
@media (min-width: 1025px) {
	.mmenu__bottom .lang { display: none; }
}
@media (max-width: 1024px) {
	.mmenu__nav, .mmenu__list { display: none; }
	.mmenu__mob { display: flex; flex-direction: column; margin: auto 0; padding: 4vh 0; }
	.mmenu__mob > li { border-bottom: 1px solid rgba(28, 28, 27, .18); opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .5s var(--ease); }
	.mmenu.is-open .mmenu__mob > li { opacity: 1; transform: none; transition: opacity .9s, transform 1.1s var(--ease); transition-delay: calc(.35s + var(--i, 0) * .06s); }
	.mmenu__mob > li > a, .mmenu__acc-btn {
		display: flex; justify-content: space-between; align-items: center; width: 100%;
		padding: 14px 0; font: 400 clamp(30px, 8.6vw, 44px)/1.1 var(--serif); text-align: left; color: var(--ink);
	}
	.mmenu__acc-btn i { position: relative; width: 18px; height: 18px; flex: none; }
	.mmenu__acc-btn i::before, .mmenu__acc-btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
	.mmenu__acc-btn i::after { transform: rotate(90deg); }
	.mmenu__acc.is-open .mmenu__acc-btn i::after { transform: rotate(0); }
	.mmenu__acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
	.mmenu__acc-panel > ul { overflow: hidden; display: flex; flex-direction: column; }
	.mmenu__acc.is-open .mmenu__acc-panel { grid-template-rows: 1fr; }
	.mmenu__acc-panel li { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease); }
	.mmenu__acc.is-open .mmenu__acc-panel li { opacity: 1; transform: none; }
	.mmenu__acc.is-open .mmenu__acc-panel li:nth-child(n) { transition-delay: .12s; }
	.mmenu__acc-panel a { display: block; padding: 7px 0 7px 2px; font-size: 18px; color: var(--brown); }
	.mmenu__acc-panel li:last-child a { padding-bottom: 18px; }
	.mmenu__left { overflow-y: auto; }
}
