/* ==========================================================================
   Moonlion · стили темы
   Палитра: ночное море, тёплое молоко, латунь.
   ========================================================================== */

/* Шрифты (SIL Open Font License, лежат в теме) -------------------------- */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-italic-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("../fonts/jost-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Токены ------------------------------------------------------------------ */
:root {
	--ink: #0e1a2b;
	--navy: #16263c;
	--navy-2: #1f3452;
	--milk: #f6f1e9;
	--paper: #fbf8f3;
	--sand: #ece3d4;
	--text: #18222f;
	--muted: #5b6270;
	--line: rgba(14, 26, 43, 0.14);
	--brass: #b0915c;
	--brass-ink: #7a5c31;
	--brass-light: #d4bd90;
	--on-dark: #f3ede3;
	--on-dark-muted: rgba(243, 237, 227, 0.74);
	--line-light: rgba(243, 237, 227, 0.18);
	--ok: #2f6448;
	--error: #9a3b2c;

	--font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--font-text: "Jost", "Helvetica Neue", Arial, sans-serif;

	--container: 1360px;
	--gutter: clamp(16px, 4vw, 56px);
	--section: clamp(88px, 11vw, 168px);
	--header-h: 84px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--admin-bar: 0px;
}
.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) {
	.admin-bar { --admin-bar: 46px; }
}

/* База ---------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--milk);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.menu-is-open { overflow: hidden; }

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

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

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

::selection { background: var(--brass-light); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--brass);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: calc(var(--admin-bar) + 12px);
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.9rem;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Типографика ------------------------------------------------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-text);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--brass-ink);
}
.eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}
.eyebrow--light { color: var(--brass-light); }

.display {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2.5rem, 1.55rem + 3.3vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -0.01em;
	margin-top: 0.42em;
	text-wrap: balance;
}

.lead {
	margin-top: 1.4em;
	max-width: 34ch;
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
	font-weight: 300;
	line-height: 1.55;
	color: var(--muted);
	text-wrap: pretty;
}

/* Кнопки и ссылки --------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	min-height: 54px;
	padding: 0 32px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--font-text);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 0.75rem; }

.btn--light { background: var(--milk); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--navy-2); color: var(--on-dark); }

.btn--outline { border-color: currentColor; color: inherit; background: transparent; }
.btn--outline:hover { background: var(--milk); border-color: var(--milk); color: var(--ink); }
.is-solid .btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

.btn--outline-ink { border-color: rgba(14, 26, 43, 0.45); color: var(--ink); }
.btn--outline-ink:hover { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-block: 10px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink);
}
.link-arrow .icon--arrow { width: 22px; height: 22px; transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon--arrow { transform: translateX(5px); }
.link-arrow--light { color: var(--on-dark); }
.link-arrow--light:hover { color: #fff; }

/* Шапка --------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: var(--admin-bar);
	left: 0;
	right: 0;
	z-index: 50;
	color: var(--text);
	background: rgba(246, 241, 233, 0.94);
	box-shadow: 0 1px 0 var(--line);
	transition: background-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
	.site-header { background: rgba(246, 241, 233, 0.93); backdrop-filter: blur(14px) saturate(1.2); }
}
.site-header--over:not(.is-solid) {
	color: var(--on-dark);
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}
.menu-is-open .site-header {
	color: var(--on-dark);
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 44px);
	height: var(--header-h);
	transition: height 0.45s var(--ease);
}
.site-header.is-solid .site-header__inner { height: 68px; }
.menu-is-open .site-header .site-header__inner { height: var(--header-h); }

.brand {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	line-height: 1;
	margin-right: auto;
}
.brand__name {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	margin-right: -0.32em;
	text-transform: uppercase;
}
.brand__place {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.5625rem;
	font-weight: 500;
	letter-spacing: 0.5em;
	margin-right: -0.5em;
	text-transform: uppercase;
	opacity: 0.8;
}
.brand__place::before,
.brand__place::after {
	content: "";
	width: 14px;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}
.custom-logo-link { margin-right: auto; }
.custom-logo { max-height: 48px; width: auto; }

.site-nav { display: none; }
.site-nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.site-nav a {
	position: relative;
	display: block;
	padding-block: 8px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.site-header__cta { display: none; }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 2px 0 8px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle[aria-expanded="true"] .icon path:first-child { transform: translateY(4px) rotate(45deg); transform-origin: 12px 8px; }
.menu-toggle[aria-expanded="true"] .icon path:last-child { transform: translateY(-4px) rotate(-45deg); transform-origin: 12px 16px; }
.menu-toggle .icon path { transition: transform 0.35s var(--ease); }

@media (min-width: 720px) {
	.site-header__cta { display: inline-flex; }
}
@media (min-width: 1140px) {
	.site-nav { display: block; }
	.menu-toggle { display: none; }
}

/* Мобильное меню ------------------------------------------------------------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 45;
	display: flex;
	padding-top: calc(var(--admin-bar) + var(--header-h));
	background: var(--ink);
	color: var(--on-dark);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
	overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s var(--ease), visibility 0s;
}
.mobile-menu__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	padding-top: 32px;
	padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
.mobile-menu__list { counter-reset: menu; }
.mobile-menu__list li { counter-increment: menu; border-top: 1px solid var(--line-light); }
.mobile-menu__list li:last-child { border-bottom: 1px solid var(--line-light); }
.mobile-menu__list a {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 14px 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 8vw, 2.75rem);
	font-weight: 300;
	line-height: 1.1;
}
.mobile-menu__list a::before {
	content: counter(menu, decimal-leading-zero);
	min-width: 28px;
	font-family: var(--font-text);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--brass-light);
}
.mobile-menu__foot { display: grid; gap: 20px; justify-items: start; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__ig {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9375rem;
	color: var(--on-dark-muted);
}

/* Первый экран -------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
}
.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.hero__media > picture,
.hero__media img,
.hero__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ml-video {
	opacity: 0;
	transition: opacity 1.4s var(--ease);
}
.ml-video.is-playing { opacity: 1; }

.hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(14, 26, 43, 0.42) 0%, rgba(14, 26, 43, 0) 20%),
		linear-gradient(0deg, rgba(14, 26, 43, 0.86) 0%, rgba(14, 26, 43, 0.4) 30%, rgba(14, 26, 43, 0) 58%),
		linear-gradient(90deg, rgba(14, 26, 43, 0.55) 0%, rgba(14, 26, 43, 0.18) 42%, rgba(14, 26, 43, 0) 68%);
}
@media (orientation: portrait) {
	/* На телефоне текст занимает почти весь экран: затемняем выше. */
	.hero__shade {
		background:
			linear-gradient(180deg, rgba(14, 26, 43, 0.45) 0%, rgba(14, 26, 43, 0) 18%),
			linear-gradient(0deg, rgba(14, 26, 43, 0.92) 0%, rgba(14, 26, 43, 0.62) 42%, rgba(14, 26, 43, 0.28) 72%, rgba(14, 26, 43, 0.12) 100%);
	}
}
.hero__shade::after {
	/* Лёгкое плёночное зерно поверх видео. */
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.09;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
	padding-top: calc(var(--admin-bar) + var(--header-h) + 40px);
	padding-bottom: clamp(96px, 12vh, 136px);
}
.hero__title {
	max-width: 10.5em;
	margin: 0.3em 0 0;
	font-family: var(--font-display);
	font-size: clamp(2.875rem, 1rem + 5.3vw, 6.75rem);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.018em;
	text-wrap: balance;
}
.hero__lead {
	max-width: 40ch;
	margin-top: 1.1em;
	font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
	font-weight: 300;
	line-height: 1.5;
	color: var(--on-dark-muted);
}

.hero__event {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
	margin-top: clamp(24px, 4vh, 40px);
	padding-top: 22px;
	border-top: 1px solid var(--line-light);
}
.hero__event dt {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--brass-light);
}
.hero__event dd {
	margin-top: 6px;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
	font-weight: 400;
	line-height: 1.2;
	font-variant-numeric: lining-nums;
}
.hero__event--soon {
	display: block;
	font-family: var(--font-display);
	font-size: 1.375rem;
	color: var(--on-dark);
}
@media (min-width: 720px) {
	.hero__event { display: flex; flex-wrap: wrap; gap: 16px 0; width: fit-content; max-width: 100%; }
	.hero__event-item { padding-right: clamp(20px, 2.4vw, 36px); }
	.hero__event-item + .hero__event-item { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line-light); }
	.hero__event dd { white-space: nowrap; }
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 32px;
	margin-top: clamp(24px, 4vh, 40px);
}

.hero__bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: calc(24px + env(safe-area-inset-bottom));
	pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--on-dark-muted);
}
.hero__scroll-line {
	position: relative;
	width: 56px;
	height: 1px;
	overflow: hidden;
	background: var(--line-light);
}
.hero__scroll-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--on-dark);
	transform: translateX(-100%);
	animation: scroll-line 2.8s var(--ease) infinite;
}
@keyframes scroll-line {
	0% { transform: translateX(-100%); }
	55% { transform: translateX(0); }
	100% { transform: translateX(100%); }
}

.video-toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line-light);
	border-radius: 50%;
	background: rgba(14, 26, 43, 0.25);
	color: var(--on-dark);
	transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { border-color: var(--on-dark); }
.video-toggle .icon { width: 16px; height: 16px; }
.video-toggle .video-toggle__play .icon { fill: currentColor; }
.video-toggle__play,
.video-toggle[data-paused="true"] .video-toggle__pause { display: none; }
.video-toggle[data-paused="true"] .video-toggle__play { display: block; }

/* Секции -------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--ink {
	background: var(--ink);
	color: var(--on-dark);
}
.section--ink .lead { color: var(--on-dark-muted); }

.section figure { position: relative; overflow: hidden; background: var(--sand); }
.section figure img { width: 100%; height: 100%; object-fit: cover; }
.section figure picture { height: 100%; }
.section figcaption {
	position: absolute;
	left: 16px;
	bottom: 14px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--on-dark);
	text-shadow: 0 1px 12px rgba(14, 26, 43, 0.5);
}

/* Тонкие линии по ширине текста, а не контейнера */
.onboard__grid::before,
.dresscode::before,
.site-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	height: 1px;
	background: var(--line);
}
.dresscode::before,
.site-footer__bottom::before { background: var(--line-light); }

/* О нас */
.about { padding-bottom: calc(var(--section) * 0.8); }
.about__grid { display: grid; gap: 48px 0; }
.about__title { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.875rem); }
.about__body {
	display: grid;
	gap: 1em;
	max-width: 36em;
	margin-top: 2em;
	font-size: 1.0625rem;
	color: var(--muted);
}
.about__body p:first-child { color: var(--text); }
.about__sign {
	margin-top: 1.6em;
	font-family: var(--font-display);
	font-size: 1.625rem;
	font-style: italic;
	font-weight: 400;
	color: var(--brass-ink);
}
.about__figure--main { aspect-ratio: 4 / 5; }
.about__figure--small {
	justify-self: end;
	width: 52%;
	aspect-ratio: 3 / 4;
	margin-top: -26%;
	margin-right: 6%;
	outline: 10px solid var(--milk);
}
@media (min-width: 960px) {
	.about__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--gutter);
		align-items: start;
	}
	.about__text { grid-column: 1 / span 5; grid-row: 1 / span 2; padding-top: 24px; }
	.about__figure--main { grid-column: 8 / span 5; grid-row: 1; }
	.about__figure--small {
		grid-column: 6 / span 3;
		grid-row: 1;
		align-self: end;
		justify-self: stretch;
		width: auto;
		margin: 0 0 -96px;
		z-index: 1;
	}
}

/* На борту */
.onboard { padding-top: 0; }
.onboard__grid {
	position: relative;
	display: grid;
	gap: 40px;
	padding-top: calc(var(--section) * 0.8);
}
.onboard__figure { aspect-ratio: 4 / 5; }
.features { counter-reset: feature; }
.feature {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 4px;
	padding: 24px 0 26px;
	border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__num {
	padding-top: 7px;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-style: italic;
	color: var(--brass-ink);
	font-variant-numeric: lining-nums;
}
.feature__title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
	font-weight: 500;
	line-height: 1.15;
}
.feature__text {
	margin-top: 6px;
	color: var(--muted);
}
@media (min-width: 960px) {
	.onboard__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto 1fr;
		column-gap: var(--gutter);
		row-gap: 56px;
	}
	.onboard__head { grid-column: 7 / span 6; grid-row: 1; }
	.onboard__media { grid-column: 1 / span 5; grid-row: 1 / span 2; }
	.onboard__figure { position: sticky; top: calc(var(--admin-bar) + 100px); }
	.onboard__list { grid-column: 7 / span 6; grid-row: 2; }
}

/* Море и программа */
.sea { display: grid; gap: 40px; align-items: center; }
.sea__media { aspect-ratio: 4 / 5; background: #0e6d97; }
.sea__media > picture,
.sea__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.sea__media video { object-fit: cover; }
.sea__quote p {
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.06;
	text-wrap: balance;
}
.sea__quote p::before { content: "«"; }
.sea__quote p::after { content: "»"; }
.sea__quote footer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--brass-light);
}
.sea__quote footer::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7; }
.sea .video-toggle { position: absolute; right: 14px; bottom: 14px; }
@media (min-width: 860px) {
	.sea { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
	.sea__media { grid-column: 1 / span 5; }
	.sea__quote { grid-column: 7 / span 6; }
}

.program__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-top: var(--section);
}
.program__date {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
	font-variant-numeric: lining-nums;
	color: var(--on-dark-muted);
}
.program__date span + span::before {
	content: "·";
	margin-inline: 0.6em;
	color: var(--brass-light);
}

.timeline {
	display: grid;
	gap: 0;
	margin-top: clamp(48px, 6vw, 80px);
}
.timeline__step {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: baseline;
	gap: 4px 16px;
	padding: 20px 0 22px;
	border-top: 1px solid var(--line-light);
}
.timeline__step:last-child { border-bottom: 1px solid var(--line-light); }
.timeline__time {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	color: var(--brass-light);
	font-variant-numeric: lining-nums;
}
.timeline__dot { display: none; }
.timeline__text { color: var(--on-dark-muted); font-size: 1.0625rem; }
@media (min-width: 960px) {
	.timeline {
		grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
		gap: 0 28px;
	}
	.timeline__step {
		grid-template-columns: 1fr;
		align-content: start;
		gap: 0;
		padding: 0;
		border: 0;
	}
	.timeline__step:last-child { border: 0; }
	.timeline__time { font-size: clamp(2.5rem, 1.5rem + 1.8vw, 3.5rem); }
	.timeline__dot {
		position: relative;
		display: block;
		height: 1px;
		margin: 26px 0 24px;
		background: var(--line-light);
	}
	.timeline__step:not(:last-child) .timeline__dot { margin-right: -28px; }
	.timeline__dot::before {
		content: "";
		position: absolute;
		left: 0;
		top: -4px;
		width: 9px;
		height: 9px;
		border: 1px solid var(--brass-light);
		border-radius: 50%;
		background: var(--ink);
	}
	.timeline__text { max-width: 22ch; }
}

.dresscode {
	position: relative;
	display: grid;
	gap: 16px 48px;
	margin-top: var(--section);
	padding-top: 40px;
}
.dresscode__word {
	font-family: var(--font-display);
	font-size: clamp(5rem, 2rem + 13vw, 12.5rem);
	font-style: italic;
	font-weight: 300;
	line-height: 0.82;
	letter-spacing: -0.02em;
	color: var(--paper);
	text-transform: lowercase;
}
.dresscode__text { display: grid; gap: 12px; max-width: 32em; color: var(--on-dark-muted); }
.dresscode__note {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--brass-light);
}
@media (min-width: 860px) {
	.dresscode {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "label label" "word text";
		align-items: end;
	}
	.dresscode .eyebrow { grid-area: label; }
	.dresscode__word { grid-area: word; }
	.dresscode__text { grid-area: text; padding-bottom: 14px; }
}

/* Галерея */
.gallery__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	margin-bottom: clamp(36px, 5vw, 64px);
}
.gallery__ig { gap: 12px; }
.gallery__ig .icon--instagram { width: 20px; height: 20px; }

.gallery__scroller {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.gallery__scroller::-webkit-scrollbar { display: none; }
.gallery__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78vw, 360px);
	gap: 12px;
	width: max-content;
	min-width: 100%;
}
.gallery__item {
	aspect-ratio: 4 / 5;
	scroll-snap-align: center;
}
.gallery__item img { transition: transform 1.4s var(--ease); }
@media (hover: hover) {
	.gallery__item:hover img { transform: scale(1.035); }
}
@media (min-width: 860px) {
	.gallery__scroller { overflow: visible; }
	.gallery__grid {
		width: 100%;
		min-width: 0;
		grid-auto-flow: row;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-auto-rows: clamp(120px, 12.5vw, 190px);
		gap: clamp(12px, 1.4vw, 20px);
	}
	.gallery__item { aspect-ratio: auto; }
	.gallery__item--tall { grid-column: 1 / span 5; grid-row: 1 / span 4; }
	.gallery__item--deck { grid-column: 6 / span 4; grid-row: 1 / span 2; }
	.gallery__item--snorkel { grid-column: 10 / span 3; grid-row: 1 / span 2; }
	.gallery__item--wide { grid-column: 6 / span 7; grid-row: 3 / span 2; }
}

/* Бронь */
.booking { background: var(--sand); }
.booking__grid { display: grid; gap: 56px; }
.steps { display: grid; gap: 0; margin-top: 40px; }
.step {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 4px;
	padding: 22px 0;
	border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--brass);
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-variant-numeric: lining-nums;
	color: var(--brass-ink);
}
.step__title {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
	font-weight: 500;
	line-height: 1.15;
}
.step__text { margin-top: 4px; color: var(--muted); }
.booking__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.booking__hint { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }

.booking__form-wrap { align-self: start; }
.lead-form {
	padding: clamp(28px, 4vw, 48px);
	background: var(--paper);
	box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(14, 26, 43, 0.35);
}
.lead-form__title {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem);
	font-weight: 400;
	line-height: 1.1;
}
.lead-form__intro { margin-top: 10px; margin-bottom: 18px; color: var(--muted); font-size: 0.9875rem; }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 4px; padding-top: 18px; }
.field__label {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--brass-ink);
}
.field__optional { letter-spacing: 0.08em; text-transform: none; color: var(--muted); font-weight: 400; }
.field__input {
	width: 100%;
	min-height: 48px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid rgba(14, 26, 43, 0.28);
	border-radius: 0;
	background: transparent;
	font-size: 1.0625rem;
	color: var(--text);
	transition: border-color 0.3s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.field__input::placeholder { color: #8b8f98; }
.field__input:focus { border-bottom-color: var(--ink); outline: none; }
.field__input:focus-visible { outline: none; box-shadow: 0 1px 0 var(--ink); }
.field__input--select {
	padding-right: 28px;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.field__input--area { min-height: 96px; resize: vertical; line-height: 1.5; }
.field.is-invalid .field__input { border-bottom-color: var(--error); }
.lead-form__submit { width: 100%; margin-top: 32px; }
.lead-form__submit[disabled] { opacity: 0.6; cursor: progress; }
.lead-form__legal { margin-top: 14px; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.lead-form__status:empty { display: none; }
.lead-form__status {
	margin-top: 18px;
	padding: 14px 16px;
	border-left: 2px solid var(--muted);
	background: var(--milk);
	font-size: 0.9875rem;
}
.lead-form__status.is-sent { border-color: var(--ok); color: var(--ok); }
.lead-form__status.is-error { border-color: var(--error); color: var(--error); }

@media (min-width: 960px) {
	.booking__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
	.booking__intro { grid-column: 1 / span 6; }
	.booking__form-wrap { grid-column: 8 / span 5; position: sticky; top: calc(var(--admin-bar) + 100px); }
}

/* Подвал -------------------------------------------------------------------- */
.site-footer {
	padding-top: clamp(72px, 9vw, 128px);
	padding-bottom: calc(28px + env(safe-area-inset-bottom));
	background: var(--ink);
	color: var(--on-dark);
}
.site-footer__top {
	display: grid;
	gap: 28px;
	justify-items: start;
	padding-bottom: clamp(48px, 6vw, 88px);
}
.brand--footer { align-items: flex-start; margin: 0; }
.brand--footer .brand__name { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5.5rem); font-weight: 400; letter-spacing: 0.22em; margin-right: -0.22em; }
.brand--footer .brand__place { font-size: 0.75rem; margin-top: 10px; }
.site-footer__tagline {
	max-width: 28ch;
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.3;
	color: var(--on-dark-muted);
}
.site-footer__contacts { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.site-footer__contacts a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-block: 6px;
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
}
.site-footer__contacts a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 24px;
	font-size: 0.8125rem;
	color: var(--on-dark-muted);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__bottom a:hover { color: var(--on-dark); }
.site-footer__top-link { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__top-link .icon { width: 16px; height: 16px; }
@media (min-width: 860px) {
	.site-footer__top {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "brand contacts" "tagline contacts";
		align-items: end;
	}
	.brand--footer { grid-area: brand; }
	.site-footer__tagline { grid-area: tagline; }
	.site-footer__contacts { grid-area: contacts; flex-direction: column; align-items: flex-end; }
}

/* Кнопка брони, прилипающая к низу на телефоне --------------------------------- */
.dock {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(14px + env(safe-area-inset-bottom));
	z-index: 40;
	border-color: rgba(243, 237, 227, 0.22);
	box-shadow: 0 18px 40px -16px rgba(14, 26, 43, 0.6);
	visibility: hidden;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.dock.is-visible {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s;
}
@media (min-width: 720px) {
	.dock { display: none; }
}

/* Обычные страницы ---------------------------------------------------------- */
.page-shell {
	padding-top: calc(var(--admin-bar) + var(--header-h) + clamp(48px, 8vw, 112px));
	padding-bottom: var(--section);
}
.prose { max-width: 760px; }
.prose + .prose { margin-top: 72px; }
.prose--center { margin-inline: auto; text-align: center; }
.prose--center .eyebrow { justify-content: center; }
.prose--center .eyebrow::before { display: none; }
.prose__head { margin-bottom: 32px; }
.prose > * + * { margin-top: 1.1em; }
.prose a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin-top: 1.6em; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose figcaption { margin-top: 0.6em; font-size: 0.875rem; color: var(--muted); }

/* Появление при прокрутке ---------------------------------------------------- */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transform: translateY(18px); transition-duration: 1.3s; }
.hero__kicker { --delay: 0.1s; }
.hero__title { --delay: 0.2s; }
.hero__lead { --delay: 0.35s; }
.hero__event { --delay: 0.5s; }
.hero__actions { --delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero__scroll-line::after { animation: none; transform: none; }
	.ml-video { transition: none; }
	.gallery__item img { transition: none; }
}

/* Без JavaScript мобильное меню не откроется: показываем кнопку брони в шапке. */
.no-js .menu-toggle { display: none; }
.no-js .site-header__cta { display: inline-flex; }

/* Узкие и невысокие телефоны (iPhone SE и похожие). */
@media (max-width: 400px) {
	.hero__title { font-size: 2.55rem; }
}
@media (max-height: 720px) and (orientation: portrait) {
	.hero__inner { padding-top: calc(var(--admin-bar) + var(--header-h) + 16px); }
	.hero__event { margin-top: 20px; padding-top: 16px; gap: 12px 20px; }
	.hero__actions { margin-top: 20px; }
}
