/* =========================================================
   THE ROYAL MARRAKECH — Begin.
   Монохром красной глины + один акцент: Majorelle Blue.
   ========================================================= */

:root {
  --bg: #140d0a;
  --fg: #f3ebe0;
  --ink: #140d0a;
  --bone: #f3ebe0;
  --sand: #d9bfa3;
  --clay: #8f4f33;
  --accent: #3346e0;          /* Majorelle Blue */
  --accent-soft: var(--sand); /* мягкие акценты — тот же бежевый, что у римских цифр и курсива */
  --line: color-mix(in srgb, var(--fg) 18%, transparent);
  --muted: color-mix(in srgb, var(--fg) 68%, transparent);

  --f-display: "Cormorant", "Times New Roman", serif;
  --f-sans: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --f-wide: "Unbounded", "Nunito Sans", sans-serif;

  --gut: clamp(16px, 2vw, 32px);
  --pad: clamp(16px, 4.2vw, 72px);
  --sec: clamp(72px, 7.5vw, 124px);     /* вертикальный ритм между секциями */
  --gap: clamp(40px, 5.5vw, 96px);      /* ритм внутри секции */
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* Сброс отступов — в слое base, ниже утилит Tailwind: иначе он перебивает mt-*/mb-* в разметке */
@layer base { p, h1, h2, h3, h4, figure, dl, dd, ul, ol { margin: 0; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-variation-settings: "wdth" 112;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease);
}
body.is-loading { overflow: hidden; }
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; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--bone); }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--accent-soft); outline-offset: 4px; border-radius: 2px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--accent); color: var(--bone); border-radius: 99px; font-size: 13px; transition: top .3s; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--pad); }
.sec { position: relative; padding-block: var(--sec); }
.hide-sm { display: none; }
@media (min-width: 768px) { .hide-sm { display: inline; } }

/* ---------- type ---------- */
.t-label {
  font-family: var(--f-wide);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-label .idx { color: var(--fg); margin-right: .9em; }
.t-label .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: .9em; opacity: .6; }

.t-h2, .t-h3, .t-lead, .t-mega-2, .hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-kerning: normal;
  font-feature-settings: "liga", "dlig";
}
/* Шкала: 11 / 17 / 26 / 44 / 88 / 150 — каждый шаг ≈ ×1.6–1.7, без «дыр» между подписью и дисплеем */
.t-h2 { font-size: clamp(42px, 6vw, 96px); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.t-h3 { font-size: clamp(30px, 2.9vw, 48px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.t-lead { font-size: clamp(28px, 3.3vw, 54px); line-height: 1.08; letter-spacing: -.012em; }
.t-mega-2 { font-size: clamp(50px, 8.6vw, 150px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
/* t-lede — основной текст секции: тот же голос, что и заголовки, но читаемого размера */
.t-lede { font-family: var(--f-display); font-weight: 400; font-size: clamp(21px, 1.75vw, 28px); line-height: 1.32; letter-spacing: -.003em; color: color-mix(in srgb, var(--fg) 90%, transparent); text-wrap: pretty; }
.t-lede em { color: var(--sand); }
.t-h2 em, .t-h3 em, .t-lead em, .t-mega-2 em, .hero__title em { font-weight: 300; color: color-mix(in srgb, var(--fg) 72%, var(--sand)); }
.t-body { font-size: clamp(16px, 1.1vw, 18px); line-height: 1.65; color: color-mix(in srgb, var(--fg) 78%, transparent); text-wrap: pretty; }

/* split text helpers */
.w { display: inline-block; text-indent: 0; vertical-align: top; padding: .12em .14em .06em; margin: -.12em -.14em -.06em; }
/* маска только на время анимации появления; после — текст целиком, без срезов */
.is-masking .w { overflow: clip; overflow-clip-margin: .12em; }
.w > span, .ch { display: inline-block; will-change: transform; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bone);
  clip-path: inset(0 0 0 0);
}
.preloader__mark { width: 84px; animation: spin 7s linear infinite; opacity: .9; }
.preloader__meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; align-items: end; font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bone) 60%, transparent); }
.preloader__count { font-family: var(--f-display); font-size: clamp(64px, 10vw, 140px); line-height: .8; letter-spacing: -.03em; color: var(--bone); font-weight: 300; }
.preloader.is-done { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-slow { animation: spin 26s linear infinite; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .07; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 51px -64px; }
  60% { background-position: -88px -19px; } 80% { background-position: 70px 47px; } 100% { background-position: 0 0; }
}

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 250; pointer-events: none; display: none; mix-blend-mode: normal; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; }
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input, html.has-cursor summary, html.has-cursor label { cursor: none; }
}
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--fg); transition: opacity .3s, background-color .3s; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), border-radius .5s var(--ease), background-color .4s, border-color .4s;
}
.cursor__label { font-family: var(--f-wide); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-link.has-label .cursor__label { opacity: 1; }
.cursor.is-link:not(.has-label) .cursor__ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.cursor.is-text .cursor__ring { width: 2px; height: 34px; margin: -17px 0 0 -1px; border-radius: 2px; border-color: var(--accent-soft); background: var(--accent-soft); animation: caret 1s steps(2) infinite; }
.cursor.is-text .cursor__dot { opacity: 0; }
.cursor.is-media .cursor__ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; border-color: color-mix(in srgb, var(--bone) 70%, transparent); backdrop-filter: blur(6px) saturate(140%); -webkit-backdrop-filter: blur(6px) saturate(140%); }
@keyframes caret { 50% { opacity: .2; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 120; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  color: var(--bone);
  mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: clamp(78px, 7vw, 104px); }
.nav__links { display: none; gap: clamp(20px, 3vw, 44px); font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid currentColor; border-radius: 99px; font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .4s, color .4s; }
.nav__cta:hover { background: var(--bone); color: var(--ink); }
.nav__cta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.nav__cta-seats { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: currentColor; }
.nav__cta-seats { color: var(--ink); font-size: 9.5px; letter-spacing: 0; }
.nav__cta:hover .nav__cta-seats { background: var(--ink); color: var(--bone); }
.nav__burger { font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (min-width: 1024px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
}

.mnav {
  position: fixed; inset: 0; z-index: 119;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 90px var(--pad) 40px;
  background: var(--ink); color: var(--bone);
}
.mnav[hidden] { display: none; }
.mnav a { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 11vw, 72px); line-height: 1.1; letter-spacing: -.02em; }
.mnav a.mnav__cta { margin-top: 28px; font-style: italic; color: var(--accent-soft); }
body.menu-open .nav { mix-blend-mode: normal; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 84px var(--pad) 28px; overflow: clip; isolation: isolate; color: var(--bone); }
.hero__media { position: absolute; inset: 0; margin: 0; z-index: -2; overflow: hidden; }
.hero__media .liquid__inner { position: absolute; inset: -8% 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(20,13,10,.55) 0%, rgba(20,13,10,.05) 30%, rgba(20,13,10,.15) 55%, rgba(20,13,10,.88) 100%),
  radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(20,13,10,.5) 100%); }
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero__top .t-label { color: color-mix(in srgb, var(--bone) 80%, transparent); }
.hero__mono { width: 46px; opacity: .85; }
.hero__kicker { max-width: 40ch; line-height: 1.7; }
@media (min-width: 900px) { .hero__kicker { max-width: none; } }
.hero__title {
  align-self: center;
  display: flex; flex-direction: column;
  text-transform: uppercase;
  font-size: clamp(60px, 15.4vw, 270px);
  line-height: .8; letter-spacing: -.035em;
  margin: 0 0 0 -.04em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line:first-child { font-size: .62em; letter-spacing: -.02em; padding-left: .08em; padding-bottom: .2em; } /* хвост «y» не задевает MARRAKECH */
.hero__title em { text-transform: none; font-style: italic; color: var(--sand); letter-spacing: -.01em; }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 24px; }
.hero__sub { grid-column: 1 / -1; max-width: 34ch; font-family: var(--f-display); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.12; color: var(--bone); }
.hero__sub span { display: block; margin-top: 14px; font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bone) 62%, transparent); }
.hero__facts { display: flex; gap: clamp(18px, 3vw, 48px); margin: 0; }
.hero__facts dt { font-family: var(--f-wide); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bone) 55%, transparent); margin-bottom: 4px; }
.hero__facts dd { margin: 0; font-variant-numeric: lining-nums; font-family: var(--f-display); font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -.02em; }
.hero__scroll { display: none; }
@media (min-width: 900px) {
  .hero { padding-bottom: 36px; }
  .hero__bottom { grid-template-columns: 1.1fr 1fr auto; }
  .hero__sub { grid-column: auto; }
  .hero__scroll { display: flex; position: absolute; right: var(--pad); top: 50%; writing-mode: vertical-rl; gap: 14px; align-items: center; color: color-mix(in srgb, var(--bone) 70%, transparent); }
  .hero__scroll i { width: 1px; height: 56px; background: currentColor; transform-origin: top; animation: drip 2.4s var(--ease-io) infinite; }
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* round CTA */
.btn-orb { position: relative; display: grid; place-items: center; width: clamp(104px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; color: var(--bone); text-align: center; isolation: isolate; }
.btn-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .7s var(--ease); z-index: -1; }
.btn-orb:hover::before { transform: scale(1); }
.btn-orb__txt { font-family: var(--f-wide); font-size: 9.5px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; }
.btn-orb__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 4 6; animation: spin 30s linear infinite; }

/* ---------- liquid media ---------- */
:where([data-liquid]) { position: relative; overflow: hidden; margin: 0; }
.liquid__inner { position: relative; width: 100%; height: 100%; }
.liquid__inner img { width: 100%; height: 100%; object-fit: cover; }
.liquid__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .35s; }
.is-liquid .liquid__canvas { opacity: 1; }
figure img { width: 100%; height: 100%; object-fit: cover; }
figure:not([data-liquid]) { overflow: hidden; }

/* ---------- manifesto ---------- */
.manifesto__text { text-indent: 18%; }
.manifesto__text em { color: var(--sand); }
.manifesto__text .sw { transition: none; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); color: color-mix(in srgb, var(--fg) 82%, transparent); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.5; }
.ticks span { font-family: var(--f-wide); font-size: 11px; letter-spacing: .1em; color: var(--fg); padding-top: 4px; }

.marquee { margin-top: var(--gap); overflow-x: clip; overflow-y: visible; border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 28px); }
.marquee__track { display: flex; width: max-content; gap: clamp(20px, 3vw, 48px); align-items: center; animation: marquee 38s linear infinite; font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 6.2vw, 108px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; will-change: transform; }
.marquee__track i { font-style: normal; font-size: .35em; color: var(--accent-soft); }
.marquee__track em { color: var(--sand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8 march ---------- */
.march { overflow: clip; }
.march__num {
  position: absolute; right: -2vw; top: 4%; z-index: 0;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(220px, 46vw, 820px); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 22%, transparent);
  pointer-events: none; user-select: none;
}
.march .wrap { position: relative; z-index: 1; }
.march__img figcaption { position: absolute; left: 16px; bottom: 14px; color: var(--bone); }
.march__quote { margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--sand); }

/* ---------- mornings / hotels ---------- */
.mornings { padding-bottom: 0; }
.hotels { margin-top: var(--gap); }
.hotels__track { display: flex; flex-direction: column; gap: 80px; padding-inline: var(--pad); padding-bottom: var(--sec); }
.hotel { display: grid; gap: 28px; }
.hotel__img { aspect-ratio: 4 / 5; }
.hotel__morning { font-family: var(--f-display); font-style: italic; font-size: clamp(48px, 4.6vw, 80px); line-height: .8; color: var(--sand); margin-bottom: 20px; }
.hotel__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 4.4vw, 76px); line-height: .95; letter-spacing: -.02em; margin: 0; }
.hotel__morning span { font-family: var(--f-wide); font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; vertical-align: top; color: var(--muted); margin-right: 8px; }
.hotel__name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.hotel__name a:hover { background-size: 100% 1px; }
.hotel__claim { font-family: var(--f-display); font-style: italic; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.15; margin: 14px 0 24px; color: var(--sand); }
.hotel__badges { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hotel__badges li { font-family: var(--f-wide); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg); }
.hotel__badges b { color: var(--accent-soft); font-weight: 500; margin-right: 4px; }
.hotel__text { display: grid; gap: .8em; font-size: clamp(15px, 1vw, 16.5px); line-height: 1.6; color: color-mix(in srgb, var(--fg) 78%, transparent); text-wrap: pretty; }
.hotels__end { display: grid; gap: 24px; }
.hotels__end img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

@media (min-width: 1024px) {
  .hotels { height: 100vh; overflow: hidden; display: flex; align-items: center; margin-top: 0; }
  .hotels__track { flex-direction: row; gap: 6vw; padding-bottom: 0; padding-right: 10vw; will-change: transform; }
  .hotel { flex: 0 0 80vw; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; height: 80vh; }
  .hotel__img { aspect-ratio: auto; height: 80vh; }
  .hotel__img .liquid__inner { width: 118%; margin-left: -9%; }
  .hotel__body { max-width: 640px; }
  /* текст из презентации длинный — на низких экранах типографика ужимается по высоте окна */
  .hotel { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .hotel__morning { font-size: clamp(40px, min(4.6vw, 7.5vh), 80px); margin-bottom: min(20px, 2vh); }
  .hotel__name { font-size: clamp(36px, min(4.4vw, 7.6vh), 76px); }
  .hotel__claim { font-size: clamp(20px, min(2.1vw, 3.4vh), 34px); margin: min(14px, 1.4vh) 0 min(24px, 2.4vh); }
  .hotel__badges { margin-bottom: min(22px, 2.2vh); }
  .hotel__text { font-size: clamp(13.5px, min(1vw, 2.05vh), 16.5px); line-height: 1.55; gap: .7em; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hotel { flex-basis: 88vw; gap: 4vw; }
  .hotels__end { flex: 0 0 52vw; grid-template-columns: 22vw 1fr; align-items: end; height: 76vh; }
  .hotels__end img { height: 76vh; aspect-ratio: auto; }
  .mornings > .wrap { position: relative; }
}

/* ---------- villa bento: сетка 3×3 без пустых ячеек ---------- */
.bento { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.bento__a { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.tile { position: relative; min-height: 180px; padding: 22px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; }
.tile__n { font-family: var(--f-wide); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.tile__t { font-family: var(--f-display); font-size: clamp(24px, 2vw, 34px); line-height: 1.08; letter-spacing: -.01em; }
.tile__t em { color: var(--sand); }
.tile__s { font-size: 15px; color: var(--muted); margin-top: 8px; }
.tile--photo { margin: 0; border: 0; color: var(--bone); isolation: isolate; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; transition: transform 1.4s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,13,10,.35) 0%, transparent 30%, transparent 50%, rgba(20,13,10,.78) 100%); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo .tile__n, .tile--photo .tile__s { color: color-mix(in srgb, var(--bone) 78%, transparent); }
.tile--mono { display: grid; place-items: center; background: var(--accent); border-color: var(--accent); }
.tile--mono img { width: 42%; max-width: 120px; }
.bento__c { grid-column: 1 / -1; }
.bento__c.tile--photo { min-height: 120vw; max-height: 86svh; }
@media (max-width: 899px) {
  .tile { min-height: 168px; padding: 16px; }
  .tile__t { font-size: 22px; overflow-wrap: anywhere; }
  /* длинные подписи 03/04 — во всю ширину, чтобы не рвать слова */
  .bento__f, .bento__g { grid-column: 1 / -1; min-height: 150px; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, minmax(230px, 15.5vw)); gap: var(--gut); }
  .bento__a { grid-column: 1 / 7; grid-row: 1 / 4; aspect-ratio: auto; }
  .bento__c { grid-column: 7 / 10; grid-row: 1 / 3; }
  .bento__d { grid-column: 10 / 13; grid-row: 1 / 2; }
  .bento__e { grid-column: 10 / 13; grid-row: 2 / 3; }
  .bento__f { grid-column: 7 / 10; grid-row: 3 / 4; }
  .bento__g { grid-column: 10 / 13; grid-row: 3 / 4; }
  .tile, .bento__c.tile--photo { min-height: 0; padding: clamp(24px, 2.2vw, 36px); }
}

/* ---------- композиционные примитивы ----------
   split   — разворот «текст | фото» 50/50, вертикально по центру
   head-row— заголовок секции слева, лид справа, по нижней линии
   triptych— три фото одной высоты, разной ширины (5/3/4)
   duo     — пара фото одной высоты 2:1
   pair    — два равных фото внутри split
   mosaic  — большое фото на 2 ряда + текст + два малых фото; без пустот */
.ar-45 { aspect-ratio: 4 / 5; }
.split { display: grid; gap: var(--gap); }
.split__text { max-width: 620px; }
/* Ни одно фото не выше экрана: на ноутбуке и в узком окне кадр кадрируется, а не вылезает за край */
.ar-45, .bento__a, .triptych > figure, .duo > figure, .pair > figure, .scene__pano, .route__img, .mosaic__hero, .hotels__end img, .hotel__img { max-height: 86svh; }
@media (min-width: 768px) and (max-width: 1023px) { .hotel { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--gap); } }
.head-row { display: grid; gap: 28px; }
.triptych, .duo, .pair { display: grid; gap: var(--gut); }
.triptych { grid-template-columns: 1fr 1fr; }
.triptych > figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.triptych > figure:not(:first-child) { aspect-ratio: 3 / 4; }
.duo > figure:first-child { aspect-ratio: 4 / 3; }
.duo > figure:last-child { aspect-ratio: 4 / 5; }
.pair { grid-template-columns: 1fr 1fr; }
.pair > figure { aspect-ratio: 3 / 4.4; }
.pair > figure:last-child { margin-top: 18%; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.mosaic__text { grid-column: 1 / -1; padding-bottom: 12px; }
.mosaic__hero { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.mosaic__a, .mosaic__b { aspect-ratio: 3 / 4; }
.scene__pano { aspect-ratio: 4 / 5; }
@media (min-width: 768px) {
  .split { grid-template-columns: 5fr 6fr; align-items: center; }
  .split--media-first { grid-template-columns: 6fr 5fr; }
  .split--media-first > .split__media { order: -1; }
  .head-row { grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; }
  .head-row .t-lede { max-width: 30ch; }
  .triptych > figure, .duo > figure { height: 100%; }
  .triptych { grid-template-columns: 5fr 3fr 4fr; height: clamp(380px, 40vw, 700px); }
  .triptych > figure:first-child { grid-column: auto; }
  .triptych > figure { aspect-ratio: auto !important; }
  .duo { grid-template-columns: 2fr 1fr; height: clamp(360px, 38vw, 660px); }
  .duo > figure { aspect-ratio: auto !important; }
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: var(--gut); row-gap: var(--gap); }
  .mosaic__text { grid-column: 1 / 7; grid-row: 1; padding: 0 var(--gap) 0 0; align-self: start; }
  .mosaic__hero { grid-column: 7 / 13; grid-row: 1 / 3; aspect-ratio: auto; min-height: clamp(480px, 56vw, 86svh); }
  .mosaic__a { grid-column: 1 / 4; grid-row: 2; }
  .mosaic__b { grid-column: 4 / 7; grid-row: 2; }
  .mosaic__a, .mosaic__b { aspect-ratio: auto; align-self: end; height: 100%; min-height: 280px; }
  .mosaic--hero-left .mosaic__text { grid-column: 7 / 13; padding: 0 0 0 var(--gap); }
  .mosaic--hero-left .mosaic__hero { grid-column: 1 / 7; }
  .mosaic--hero-left .mosaic__a { grid-column: 7 / 10; }
  .mosaic--hero-left .mosaic__b { grid-column: 10 / 13; }
  .scene__pano { aspect-ratio: 21 / 9; }
}
.scene--agafay .t-label, .scene--agafay .t-body { color: color-mix(in srgb, var(--fg) 85%, transparent); }

/* ---------- program ---------- */
.chapters-index { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.chapters-index a { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: clamp(26px, 3vw, 48px); line-height: 1; letter-spacing: -.01em; transition: padding .6s var(--ease), color .4s; }
.chapters-index span { font-style: italic; color: var(--sand); }
.chapters-index i { font-style: normal; font-family: var(--f-wide); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chapters-index a:hover { padding-left: 18px; color: var(--sand); }

.chapter__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 48px); align-items: end; margin-bottom: var(--gap); }
.chapter__num { font-family: var(--f-display); font-weight: 300; font-size: clamp(110px, 16vw, 280px); line-height: .72; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 40%, transparent); }
.chapter__head .t-label { margin-bottom: 18px; }

.scene__pano .liquid__inner img { object-position: 50% 70%; }

.scene--majorelle { overflow: clip; }
.scene--majorelle .t-label { color: color-mix(in srgb, var(--fg) 75%, transparent); }
.scene--majorelle .t-h2 em { color: #b9c2ff; }
.scene__swatch { position: absolute; right: var(--pad); bottom: 28px; display: flex; gap: 10px; align-items: center; font-family: var(--f-wide); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.scene__swatch i { width: 26px; height: 26px; background: var(--accent); border: 1px solid color-mix(in srgb, var(--fg) 50%, transparent); }
.scene--ysl .t-label { color: color-mix(in srgb, var(--fg) 64%, transparent); }
.scene--ysl .t-h2 em { color: #8c4a2c; }

.scene--nights { min-height: 100vh; display: flex; align-items: flex-end; overflow: clip; }
.nights__bg { position: absolute; inset: 0; }
.nights__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.nights__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 35%, transparent 55%, var(--bg) 100%); }
.nights__text { position: relative; }

.chapter--desert { min-height: 100vh; display: flex; align-items: flex-end; overflow: clip; padding-bottom: clamp(64px, 8vw, 120px); }
.desert__bg { position: absolute !important; inset: 0; }
.desert__bg .liquid__inner { position: absolute; inset: 0; }
.desert__bg img { object-position: 50% 70%; }
.desert__bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(110,47,16,.85) 0%, rgba(110,47,16,0) 30%, rgba(40,14,4,.25) 60%, rgba(110,47,16,.95) 100%); pointer-events: none; }
.chapter__head--over { position: relative; z-index: 3; margin: 0; }
.chapter--desert .t-label, .chapter--desert .t-body { color: color-mix(in srgb, var(--fg) 82%, transparent); }

.scene--stars { min-height: 124vh; display: flex; align-items: flex-start; overflow: clip; }
.stars__bg { position: absolute; inset: 0; }
.stars__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.stars__bg { top: 36%; }  /* лагерь ниже — текст стоит на тёмном небе */
.scene--stars::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%; background: #070b1c; }
.stars__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #070b1c 0%, transparent 30%, transparent 80%, var(--bg) 100%); }
.stars__text { position: relative; }
.scene--stars .t-label, .scene--stars .t-body { color: var(--fg); }
.stars__text { text-shadow: 0 1px 2px rgba(4,6,16,.55), 0 2px 28px rgba(4,6,16,.85); }
.stars__text .t-lede { color: var(--fg); }
.stars__coda { font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: #dfe3ff; }
.scene--stars .t-mega-2 em { color: #dfe3ff; }
.stars__text .t-body, .chapter--desert .t-body { text-shadow: 0 1px 18px rgba(0,0,0,.55); color: color-mix(in srgb, var(--fg) 90%, transparent); }
.chapter--desert .desert__bg::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(60,22,6,.55) 0%, rgba(60,22,6,0) 55%); pointer-events: none; }

/* ---------- route ---------- */
.route { overflow: clip; }
.route__grid { display: grid; gap: 40px; }
.route__img { aspect-ratio: 2 / 3; }
@media (min-width: 768px) and (max-width: 1099px) { .route__grid { grid-template-columns: 1fr 1fr !important; } .route__grid > .route__img { grid-row: 1 / 3; } .route__grid > :not(.route__img) { grid-column: 2 !important; } }
.route__map { position: relative; aspect-ratio: 400 / 640; max-width: 440px; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__path-bg, .route__path { fill: none; stroke-width: 1.2; }
.route__path-bg { stroke: var(--line); }
.route__path { stroke: var(--fg); stroke-linecap: round; }
.route__stops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.route__stops li { position: absolute; left: var(--x, 0); top: var(--y, 0); display: flex; align-items: center; gap: 12px; font-family: var(--f-wide); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transform: translate(-6px, -50%); color: var(--muted); transition: color .5s; }
.route__stops li::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--fg); background: var(--bg); transition: background-color .5s, transform .5s var(--ease); }
.route__stops li.is-on { color: var(--fg); }
.route__stops li.is-on::before { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
@media (min-width: 768px) {
  .route__grid { grid-template-columns: 5fr 1fr 6fr; grid-template-rows: auto 1fr; gap: 0 var(--gut); }
  .route__img { grid-column: 1; grid-row: 1 / 3; }
  .route__head { grid-column: 3; grid-row: 1; }
  /* карта целиком помещается в экран (≤ 74svh по высоте) и оставляет место подписям справа */
  .route__map { grid-column: 3; grid-row: 2; margin-top: 48px; width: min(62%, 74svh * .625); }
  .route__stops li { white-space: normal; width: max-content; max-width: 190px; line-height: 1.35; }
}

/* ---------- price ---------- */
.price { overflow: clip; }
.price .t-label { color: color-mix(in srgb, var(--fg) 62%, transparent); }
/* текстура на всю секцию + плавное растворение влево: без жёсткого края картинки */
.price__tex { position: absolute; inset: 0; background: url("../img/stairs-1920.webp") right center / cover no-repeat; opacity: .16; mix-blend-mode: multiply; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, #000 75%); mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, #000 75%); }
.price .wrap { position: relative; }
.price__tag { position: relative; }
.price__tier { margin-top: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: var(--accent); color: var(--bone) !important; }
/* lining-nums: в Cormorant по умолчанию «старостильные» цифры — тройка уходит под строку и наезжает на текст */
.price__num { font-family: var(--f-display); font-weight: 300; font-size: clamp(104px, 14.5vw, 240px); line-height: .9; letter-spacing: -.035em; font-variant-numeric: lining-nums; margin: 28px 0 18px -.03em; display: flex; align-items: flex-start; white-space: nowrap; }
.price__num small { font-size: .32em; letter-spacing: 0; margin: .12em 0 0 .12em; font-style: italic; }
.price__per { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); font-style: italic; line-height: 1.2; }
.price__next { margin-top: 12px; font-size: 14px; color: color-mix(in srgb, var(--fg) 65%, transparent); }
.price.is-late .price__tier { background: var(--fg); }
.countdown { margin-top: clamp(36px, 4vw, 60px); padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
.countdown__cells { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 12px; }
.countdown__cells span { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-wide); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 60%, transparent); }
.countdown__cells b { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 3.4vw, 54px); letter-spacing: -.02em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; min-width: 1.1em; }
.countdown[hidden] { display: none; }

.steps { list-style: none; padding: 0; margin-block: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); font-size: 15.5px; }
.steps li:first-child { border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.steps span { font-family: var(--f-wide); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 58%, transparent); padding-top: 4px; }
.steps b { font-weight: 700; display: block; margin-bottom: 4px; }
.steps li { grid-template-columns: 128px 1fr; }
.steps span em { display: block; margin-top: 6px; font-style: normal; color: var(--clay); }

.incl__list { list-style: none; margin: 0; padding: 0; }
.incl__list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); font-family: var(--f-display); font-size: clamp(21px, 1.8vw, 28px); line-height: 1.15; }
.incl__list li::before, .incl__list li::after { content: ""; position: absolute; left: 2px; top: calc(14px + .575em); width: 13px; height: 1px; background: currentColor; opacity: .7; }
.incl__list--yes li::after { transform: rotate(90deg); }
.incl__list--no li::after { display: none; }
.incl__list--no li { color: color-mix(in srgb, var(--fg) 62%, transparent); }

/* ---------- terms ---------- */
.terms { padding-top: clamp(40px, 6vw, 80px); }
.terms .t-label { color: color-mix(in srgb, var(--fg) 62%, transparent); }
.terms .t-h3 em { color: #8c4a2c; }
.acc details { border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.acc details:first-child { border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.acc summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(22px, 2.1vw, 34px); line-height: 1.1; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--f-wide); font-size: 16px; font-weight: 300; transition: transform .5s var(--ease); flex: none; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding: 0 0 18px; max-width: 60ch; color: color-mix(in srgb, var(--fg) 72%, transparent); font-size: 15.5px; }
.acc details p:last-child { padding-bottom: 28px; }

/* ---------- apply / mad-libs form ---------- */
.apply { min-height: 100vh; overflow: clip; }
.apply__inner { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 1100px) { .apply__inner { grid-template-columns: 4fr 8fr; align-items: start; } }

.madlib { position: relative; }
.madlib__text {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(30px, 3.7vw, 60px); line-height: 1.34; letter-spacing: -.012em;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
}
.slot { position: relative; display: inline-block; vertical-align: baseline; }
.slot__input {
  font: inherit; font-style: italic; color: var(--fg);
  background: transparent; border: 0; border-radius: 0; padding: 0 .08em; margin: 0;
  min-width: 3ch; width: 9ch; max-width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent);
  caret-color: var(--accent-soft);
  transition: border-color .4s, background-size .6s var(--ease);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  -webkit-appearance: none; appearance: none;
}
.slot__input::placeholder { color: color-mix(in srgb, var(--fg) 34%, transparent); font-style: italic; }
.slot__input:hover { border-color: color-mix(in srgb, var(--fg) 70%, transparent); }
.slot__input:focus { outline: none; background-size: 100% 2px; border-color: transparent; }
.slot__input:focus-visible { outline: none; }
.slot--opt .slot__input { font-size: .66em; }
.madlib__ps { display: inline; }

/* invalid: мягкая волнистая линия вместо красной рамки */
.slot.is-invalid .slot__input,
.choice.is-invalid .choice__btn {
  border-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='4' viewBox='0 0 12 4'><path d='M0 2 Q3 0 6 2 T12 2' fill='none' stroke='%23ff8f6b' stroke-width='1.2'/></svg>");
  background-size: 12px 4px; background-repeat: repeat-x; background-position: 0 100%;
}
.slot.is-valid .slot__input { border-color: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.is-shake { animation: shake .5s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.choice { position: relative; display: inline-block; }
.choice__btn {
  font: inherit; font-style: italic; color: color-mix(in srgb, var(--fg) 40%, transparent);
  border-bottom: 1px dashed color-mix(in srgb, var(--fg) 40%, transparent);
  padding: 0 .08em; line-height: 1.1;
  transition: color .3s, border-color .3s;
}
.choice__btn::after { content: "↓"; display: inline-block; font-family: var(--f-wide); font-style: normal; font-size: .28em; vertical-align: .9em; margin-left: .3em; opacity: .7; transition: transform .4s var(--ease); }
.choice__btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.choice__btn.is-filled { color: var(--fg); border-bottom-style: solid; border-color: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.choice__btn:hover { color: var(--fg); }
.choice__list {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 10px);
  display: flex; flex-direction: column; min-width: 260px; max-width: min(420px, 86vw);
  padding: 8px; border-radius: 4px;
  background: var(--bone); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  font-family: var(--f-sans); font-style: normal; font-size: 15px; line-height: 1.3; letter-spacing: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.choice.is-open .choice__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.choice__list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 3px; cursor: pointer; white-space: normal; }
.choice__list [role="option"]::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; opacity: .5; }
.choice__list [role="option"][data-bg]::before { background: var(--sw); border-color: var(--sw); opacity: 1; }
.choice__list [role="option"]:hover, .choice__list [role="option"].is-active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.choice__list [role="option"][aria-selected="true"] { color: var(--accent); }
.choice__list [role="option"][aria-selected="true"]::before { background: var(--accent); border-color: var(--accent); opacity: 1; }
@media (max-width: 640px) {
  .choice__list { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-width: none; min-width: 0; padding: 10px; transform: translateY(20px); font-size: 16px; }
  .choice.is-open::before { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(10,6,4,.5); }
}

.madlib__hint { min-height: 1.6em; margin-top: 18px; font-size: 14px; color: #ffb39b; }
.madlib__route { position: relative; display: flex; justify-content: space-between; width: min(240px, 60%); margin-bottom: 36px; }
.madlib__route::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.madlib__route b { position: absolute; left: 0; top: 50%; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--accent-soft); transition: width .8s var(--ease); }
.madlib__route i { position: relative; z-index: 1; width: 9px; height: 9px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 50%, transparent); background: var(--bg); transition: background-color .5s, border-color .5s, transform .5s var(--ease); }
.madlib__route i.is-on { background: var(--accent-soft); border-color: var(--accent-soft); transform: scale(1.25); }

.madlib__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.consent { position: relative; display: flex; gap: 14px; align-items: flex-start; max-width: 44ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box { flex: none; position: relative; width: 20px; height: 20px; margin-top: 1px; border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.consent__box::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bone); transform: scale(0); transition: transform .4s var(--ease); }
.consent input:checked + .consent__box { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .consent__box::after { transform: scale(1); }
.consent input:focus-visible + .consent__box { outline: 1.5px solid var(--accent-soft); outline-offset: 3px; }
.consent.is-invalid .consent__box { border-color: #ff8f6b; animation: shake .5s var(--ease); }

.submit {
  position: relative; display: inline-flex; align-items: center; gap: 18px;
  padding: 20px 22px 20px 30px; border-radius: 99px;
  background: var(--bone); color: var(--ink);
  font-family: var(--f-wide); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.submit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .7s var(--ease), border-radius .7s var(--ease); }
.submit:hover { color: var(--bone); }
.submit:hover::before { transform: none; border-radius: 0; }
.submit__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bone); font-size: 14px; transition: transform .6s var(--ease); }
.submit:hover .submit__arrow { transform: rotate(-45deg); }
.submit.is-loading { pointer-events: none; }
.submit.is-loading .submit__arrow { animation: spin 1s linear infinite; }
.submit.is-loading .submit__arrow::before { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--bone); border-right-color: transparent; }
.submit.is-loading .submit__arrow { position: relative; color: transparent; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* success */
.success { position: relative; padding-top: 12px; }
.success[hidden] { display: none; }
.success__star { width: clamp(140px, 16vw, 220px); aspect-ratio: 1; margin-bottom: 36px; perspective: 600px; }
.success__star svg { width: 100%; height: 100%; overflow: visible; transform-style: preserve-3d; animation: star3d 9s linear infinite; }
.star__g * { fill: none; stroke: var(--accent-soft); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) forwards; }
.star__g *:nth-child(2) { animation-delay: .25s; }
.star__g *:nth-child(3) { animation-delay: .5s; stroke: var(--fg); }
.star__g *:nth-child(4) { animation-delay: .7s; fill: color-mix(in srgb, var(--accent) 30%, transparent); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes star3d { 0% { transform: rotateX(18deg) rotateY(0) rotateZ(0); } 100% { transform: rotateX(18deg) rotateY(360deg) rotateZ(45deg); } }
.success__title { margin: 14px 0 22px; }
.success__title em { color: var(--accent-soft) !important; }
.success__text { max-width: 46ch; }

/* ---------- footer ---------- */
.foot { position: relative; padding: clamp(80px, 10vw, 160px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: clip; }
.foot__big { font-family: var(--f-display); font-weight: 300; font-size: clamp(120px, 30vw, 520px); line-height: .75; letter-spacing: -.06em; margin: 0 0 clamp(40px, 6vw, 80px) -.05em; }
.foot__big em { color: var(--accent); font-style: normal; }
.foot__big--quote { font-size: clamp(40px, 6.6vw, 112px); line-height: 1; letter-spacing: -.025em; max-width: 17ch; margin-left: 0; text-wrap: balance; }
.foot__big--quote em { color: #4a5cf6; font-style: italic; } /* Majorelle Blue, чуть светлее для тёмного фона */
.foot__row { display: grid; gap: 32px; align-items: end; }
.foot__orgs { list-style: none; margin: 0; padding: 0; font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; }
.foot__orgs a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .7s var(--ease), color .3s; }
.foot__orgs a:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent-soft); }
.foot__mono { width: 56px; opacity: .8; }
@media (min-width: 900px) { .foot__row { grid-template-columns: 1fr 1fr auto; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; z-index: 110; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 99px;
  background: color-mix(in srgb, var(--bone) 94%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  transform: translateY(160%); transition: transform .7s var(--ease);
}
.sticky-cta b { font-family: var(--f-display); font-size: 20px; font-weight: 500; }
.sticky-cta__go { padding: 11px 16px; border-radius: 99px; background: var(--accent); color: var(--bone); font-family: var(--f-wide); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sticky-cta.is-on { transform: none; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- responsive tweaks ---------- */
@media (max-width: 767px) {
  .manifesto__text { text-indent: 0; }
  .chapter__head { grid-template-columns: 1fr; gap: 8px; }
  .chapter__num { font-size: 120px; }
  .route__map { width: 56%; }
  .route__stops li { font-size: 9px; white-space: normal; width: 40vw; line-height: 1.35; }
  .hero__facts { gap: 16px; }
  .hero__facts dd { font-size: 26px; white-space: nowrap; }
  .btn-orb { width: 96px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .star__g * { stroke-dashoffset: 0; }
}

/* ---------- route: колода фото по ходу маршрута ---------- */
.route__deck { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.route__deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); }
.route__deck img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); }
.route__cap { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 14px; color: var(--bone); text-shadow: 0 1px 12px rgba(0,0,0,.6); opacity: 0; transition: opacity .6s; }
.route__img.is-touring .route__cap { opacity: 1; }
.route__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 2; background: linear-gradient(transparent, rgba(20,13,10,.6)); opacity: 0; transition: opacity .6s; pointer-events: none; }
.route__img.is-touring::after { opacity: 1; }
.route__note { max-width: 46ch; }
.route__sign { font-family: var(--f-display); font-style: italic; font-size: clamp(22px, 1.9vw, 30px); color: var(--sand); }
@media (min-width: 768px) {
  .route__img { position: sticky; top: 9svh; align-self: start; }
}

/* ---------- YSL: 3D-проход по коридору ---------- */
.ysl3d { position: relative; }
.ysl3d__stage { display: grid; gap: 24px; }
.ysl3d__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-height: 86svh; background: #c99a82; }
.ysl3d__frame img { width: 100%; height: 100%; object-fit: cover; }
.ysl3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.ysl3d.is-3d .ysl3d__canvas { opacity: 1; }
.ysl3d__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.1; letter-spacing: -.01em; margin-top: 18px; text-wrap: balance; }
.ysl3d__title em { color: #8c4a2c; }
.ysl3d__text { max-width: 42ch; margin-top: 16px; }
.ysl3d__text + .ysl3d__text { margin-top: 10px; }
.ysl3d.is-3d { height: 230svh; }
.ysl3d.is-3d .ysl3d__stage { position: sticky; top: 7svh; }
.ysl3d.is-3d .ysl3d__frame { height: 86svh; aspect-ratio: auto; }
@media (max-width: 767px) {
  .ysl3d.is-3d { height: auto; }
  .ysl3d.is-3d .ysl3d__stage { position: static; }
  .ysl3d.is-3d .ysl3d__frame { height: auto; aspect-ratio: 3 / 4; }
}
@media (min-width: 768px) {
  .ysl3d__stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--gap); align-items: end; }
  .ysl3d.is-3d .ysl3d__frame { width: min(100%, 86svh * .82); }
  .ysl3d__copy { padding-bottom: 8px; }
}
