/* ══════════════════════════════════════════════════════════
   CHARISMATA — стили
   Первый экран — фильм из кадров усадьбы. Дальше разделы-«листы» со скруглённым
   верхом наезжают друг на друга. Кнопки и плашки — скруглённые, фон светлый.
   Без размытий и тяжёлых эффектов: движение только там, где оно что-то показывает.
   ══════════════════════════════════════════════════════════ */

:root {
  --paper: #f7f5f0; --white: #fff; --ink: #141412; --text: #2c2b27; --muted: #6a665e; --line: #dcd8ce;
  --warm: #e2dfd5; --soft: #f1eee7; --bad: #b3261e;
  --pad: clamp(18px, 4vw, 56px); --gap: clamp(64px, 9vw, 132px);
  --e: cubic-bezier(.2, .7, .2, 1);
  --ex: cubic-bezier(.76, 0, .24, 1);
  --f: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-logo: "Forum", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--paper); }
body { min-height: 100svh; background: var(--paper); color: var(--text); font: 400 clamp(1.0625rem, 1.2vw, 1.1875rem)/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.wrap { width: min(100% - 2 * var(--pad), 1360px); margin-inline: auto; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 500; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.9vw, 4.6rem); font-weight: 400; letter-spacing: -.038em; line-height: 1; }
strong { font-weight: 600; color: var(--ink); }
.sheet--ink strong { color: #fff; }
.sheet--ink h2 { color: #fff; }
p + p { margin-top: 1.05em; }
.lead { font-size: clamp(1.3rem, 2.1vw, 1.85rem); font-weight: 400; line-height: 1.26; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
h2 + .lead, h2 + p { margin-top: clamp(16px, 2vw, 26px); }

/* ───────── Кнопки ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 1.0625rem/1 var(--f); text-decoration: none; white-space: nowrap; transition: transform .25s var(--e), background .2s; }
.btn:hover { transform: scale(1.04); background: #000; }
.btn:active { transform: scale(.98); }
.btn--light, .btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { height: 46px; padding: 0 24px; font-size: 1rem; }
.btn--lg { height: 68px; padding: 0 44px; font-size: 1.1875rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--go { gap: 16px; padding: 0 7px 0 30px; }
.btn--lg.btn--go { gap: 18px; padding: 0 11px 0 36px; }
.btn--go i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .35s var(--e); }
.btn--lg.btn--go i { width: 46px; height: 46px; }
.btn--light.btn--go i { background: var(--ink); color: #fff; }
.btn--go:hover { transform: none; }
.btn--go:hover i { transform: translateX(4px); }
/* стеклянная плашка поверх фотографии — как панель на первом экране */
.glass { border: 1px solid rgba(255, 255, 255, .24); background: rgba(18, 22, 24, .5); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(18, 22, 24, .34); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
}

/* ───────── Шапка и меню ─────────
   Шапка стоит в обычном потоке: на главной — первой строкой внутри первого экрана. */
.hdr { position: relative; z-index: 3; flex: none; display: flex; align-items: center; gap: 30px; height: 84px; padding-inline: var(--pad); color: var(--ink); }
.hero .hdr { color: #fff; }
.hdr__logo, .menu__logo { font: 400 1.3rem/1 var(--f-logo); letter-spacing: .24em; text-decoration: none; }
.hdr__logo { margin-right: auto; }
.hdr__nav { display: flex; gap: 28px; }
.hdr__nav a, .hdr__back { font-size: 1rem; text-decoration: none; white-space: nowrap; }
.hdr__nav a:hover, .hdr__back:hover { text-decoration: underline; }
.burger, .menu__close { position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; }
.burger { display: none; }
.burger i, .menu__close i { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: currentColor; }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.menu__close i { top: 21px; transform: rotate(45deg); } .menu__close i:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 96px var(--pad) 40px; background: var(--paper); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu__top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 84px; padding-inline: var(--pad); }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a { font-size: clamp(1.7rem, 7.4vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.28; text-decoration: none; color: var(--ink); }
.menu__cta { align-self: flex-start; }

/* ───────── Первый экран: фильм во весь экран ─────────
   Колонка: шапка, название по центру свободного места, текст с кнопкой, полоски кадров. */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100svh; min-height: 640px; overflow: hidden; background: #2a3338; color: #fff; }
.film { position: absolute; inset: 0; z-index: -2; }
.film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.film img.is-on, .film img.is-out { animation: zoom 10s linear both; }
.film img.is-on { opacity: 1; }
@keyframes zoom { from { transform: scale(1.03); } to { transform: scale(1.13); } }
/* видео поверх первого кадра: проявляется, когда заиграло; полоски тогда ведёт время видео */
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.is-video .film__video { opacity: 1; }
.is-video .reelnav .is-on i { animation: none; }
/* лёгкая вуаль сверху под шапкой и плотнее книзу, где стоит текст */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 30, .5) 0%, rgba(14, 22, 30, .2) 22%, rgba(14, 22, 30, .36) 44%, rgba(14, 22, 30, .64) 72%, rgba(14, 22, 30, .86) 100%); }
/* ───────── Заставка (один раз за посещение) ─────────
   Тёмный экран: в окне по центру мелькают кадры усадьбы, название наполняется светом по мере загрузки,
   внизу — даты и счётчик. Затем окно раскрывается на весь экран и становится первым кадром фильма,
   а шапка, подпись, слоган и панель поднимаются на места. Ходом заставки управляет скрипт. */
.intro, .intro__ui { display: none; }
.is-intro, .is-intro body { overflow: hidden; }
/* слой заставки лежит над фильмом, но под вуалью первого экрана — поэтому раскрытый кадр совпадает с фильмом */
.has-intro .intro { display: block; position: absolute; inset: 0; z-index: -2; background: #0d0e0f; pointer-events: none; transition: opacity .5s ease; }
.intro.is-gone { opacity: 0; }
.intro__win { position: absolute; top: var(--wt, 34%); left: var(--wl, 40%); width: var(--ww, 20%); height: var(--wh, 40%); overflow: hidden; border-radius: 22px; background: #1b1e20; opacity: 0; transition: opacity .35s ease; }
/* окно появляется вместе с первым кадром — пустой рамки на тёмном экране не видно */
.intro__win.is-ready { opacity: 1; }
.intro__win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.intro__win img.is-on { opacity: 1; }
.intro__last { animation: zoom 10s linear both; }
.is-open .intro__win { top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; transition: top 1s var(--ex), left 1s var(--ex), width 1s var(--ex), height 1s var(--ex), border-radius 1s var(--ex); }
.has-intro .intro__ui { display: flex; position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(36px + clamp(10px, 1.8vh, 18px)); align-items: flex-end; justify-content: space-between; gap: 24px; font-size: .9375rem; line-height: 1.4; color: rgba(255, 255, 255, .66); pointer-events: none; transition: opacity .35s ease; }
.intro__ui b { min-width: 3ch; font: 400 clamp(2.6rem, 4vw, 3.6rem)/.8 var(--f-logo); text-align: right; color: #fff; }
.is-open .intro__ui, .is-enter .intro__ui { opacity: 0; }
/* название наполняется светом слева направо: --p (0…1) ставит скрипт */
.hero__title { transition: opacity .5s ease, text-shadow .8s ease; }
.is-intro .hero__title { text-shadow: none; }
.is-intro:not(.is-fonts) .hero__title { opacity: 0; }
.is-intro .hero__word { color: transparent; background: linear-gradient(90deg, #fff calc(var(--p, 0) * 108% - 4%), rgba(255, 255, 255, .15) calc(var(--p, 0) * 108% + 4%)); -webkit-background-clip: text; background-clip: text; }
/* пока идёт заставка, остальное на первом экране спрятано; потом поднимается по очереди */
.is-intro .hero .hdr, .is-intro .hero__eyebrow, .is-intro .hero__row, .is-intro .reelnav { opacity: 0; animation: none; }
.is-intro .hero__body, .is-enter .hero__body { animation: none; }
.is-enter .hero .hdr { animation: up .9s var(--e) both; }
.is-enter .hero__eyebrow { animation: up .9s var(--e) .06s both; }
.is-enter .hero__row { animation: up .9s var(--e) .14s both; }
.is-enter .reelnav { animation: up .9s var(--e) .32s both; }
/* край следующего листа, наезжающий на первый экран, во время заставки не виден */
.is-intro .hero + .sheet { opacity: 0; }
.is-enter .hero + .sheet { animation: fadeIn .7s ease .35s backwards; }
@keyframes fadeIn { from { opacity: 0; } }
/* при прокрутке кадр отстаёт от страницы — появляется глубина */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .film { animation: filmDrift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes filmDrift { to { translate: 0 18vh; } }
  }
}
/* колонка: подпись, название во всю ширину, слоган и номер кадра, панель фактов с кнопкой */
.hero__body { margin-top: auto; padding: 0 var(--pad); container-type: inline-size; animation: up 1.1s var(--e) both; }
.hero__eyebrow { font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.35; }
/* 5,48 em — ширина слова CHARISMATA в шрифте Forum: 18,2cqw растягивает его на всю ширину; скрипт уточняет размер */
.hero__title { margin-top: clamp(6px, 1.2vh, 14px); font: 400 16vw/.84 var(--f-logo); font-size: 18.2cqw; letter-spacing: .012em; white-space: nowrap; color: #fff; text-shadow: 0 2px 44px rgba(10, 16, 22, .36); }
.hero__word { display: inline-block; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-top: clamp(14px, 2.6vh, 30px); }
.hero__words { min-width: 0; padding-bottom: 6px; }
.hero__tag { max-width: 15em; font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
/* эмоциональное продолжение слогана — тем же голосом, но тише */
.hero__more { margin-top: clamp(10px, 1.4vh, 16px); font-size: clamp(1.125rem, 1.6vw, 1.45rem); line-height: 1.3; letter-spacing: -.015em; color: rgba(255, 255, 255, .8); }
/* плашка: полупрозрачное тёмное стекло — даты, кнопка и под ней условие участия */
.hero__panel { flex: none; display: grid; gap: 12px; width: min(100%, 372px); padding: 16px 12px 14px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 32px; background: rgba(18, 22, 24, .5); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero__panel { background: rgba(18, 22, 24, .34); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }
}
.hero__when { padding: 0 10px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; white-space: nowrap; }
.hero__when span { margin-inline: 4px; color: rgba(255, 255, 255, .6); }
.hero__cta { justify-content: space-between; gap: 16px; height: 62px; padding: 0 9px 0 26px; font-size: 1.125rem; }
.hero__note { padding: 0 10px; font-size: .875rem; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.hero__cta i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .35s var(--e); }
.hero__cta:hover { transform: none; }
.hero__cta:hover i { transform: translateX(4px); }
/* полоски кадров: показывают, какой кадр идёт, и переключают его; подпись кадра — справа от слогана */
.reelnav { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: clamp(12px, 2vh, 20px) var(--pad) calc(36px + clamp(10px, 1.8vh, 18px)); animation: up 1.1s var(--e) .3s both; }
.reelnav button { position: relative; height: 24px; padding: 0; border: 0; background: none; font-size: 0; }
.reelnav button::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .34); }
.reelnav i { position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.reelnav .is-done i { transform: scaleX(1); }
.reelnav .is-on i { animation: bar 6.5s linear both; }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes up { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* ───────── Разделы-«листы» ───────── */
.sheet { position: relative; margin-top: -36px; padding-block: var(--gap) calc(var(--gap) + 36px); border-radius: 40px 40px 0 0; background: var(--white); }
.sheet--paper { background: var(--paper); }
.sheet--warm { background: var(--warm); }
.sheet--ink { background: var(--ink); color: rgba(255, 255, 255, .86); }
.head { margin-bottom: clamp(28px, 4vw, 56px); }
.head--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 90px); align-items: start; }
.head--wide > div > p:not(.lead) { max-width: 34em; }
.head--wide > div > p + p { margin-top: 12px; }
.head__sub { margin-top: 14px; max-width: 30em; color: var(--muted); }
.sub { margin: clamp(44px, 6vw, 84px) 0 clamp(18px, 2.2vw, 28px); font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; }

/* О программе */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
/* два снимка внахлёст: большой дом и маленькая аллея в белой рамке */
.about__photos { position: relative; padding: 0 0 14% 20%; }
.about__photos img { width: 100%; object-fit: cover; }
.about__photos img:first-child { aspect-ratio: 4 / 5; border-radius: 30px; }
.about__photos img:last-child { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: 8px solid #fff; border-radius: 26px; }
.about p { max-width: 34em; }

/* Кому подходит; анкета */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 110px); align-items: start; }
.split__head { position: sticky; top: 40px; }
.reader { display: flex; align-items: center; gap: 16px; max-width: 30em; margin-top: clamp(20px, 2.6vw, 32px); }
.reader img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

.sheet--ink .lead { color: rgba(255, 255, 255, .86); }
/* Для кого: восемь жизненных состояний — номер шрифтом Forum, название и описание; разделены тонкими линиями */
.states__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 90px); counter-reset: st; }
.states li { display: grid; grid-template-columns: clamp(44px, 4vw, 60px) minmax(0, 1fr); align-content: start; padding-block: clamp(22px, 2.4vw, 32px) clamp(26px, 3vw, 40px); border-top: 1px solid var(--line); counter-increment: st; }
.states li::before { content: counter(st, decimal-leading-zero); grid-row: 1 / span 2; padding-top: 3px; font: 400 clamp(1.5rem, 1.9vw, 1.8rem)/1 var(--f-logo); color: var(--muted); }
.states h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); letter-spacing: -.02em; line-height: 1.22; color: var(--ink); text-wrap: balance; }
.states p { margin-top: 10px; max-width: 34em; font-size: 1.0625rem; line-height: 1.55; }

/* Марина: тёмный раздел, фон совпадает с фоном портрета — снимок растворяется в странице */
#marina { padding-block: clamp(40px, 6vw, 84px) 36px; overflow: hidden; background: #111315; color: rgba(255, 255, 255, .76); }
#marina h2 { color: #fff; }
#marina .lead { color: rgba(255, 255, 255, .94); }
.marina { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 90px); align-items: end; }
/* маска: по бокам фон снимка плавно уходит в фон раздела (сама Марина — в непрозрачной середине),
   сверху и снизу снимок тоже уходит в фон (окно над головой закрашено на самом снимке) */
.marina figure { aspect-ratio: 4 / 5; --mx: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 14%, #000 30%, #000 72%, rgba(0, 0, 0, .5) 87%, transparent 100%); --my: linear-gradient(180deg, transparent 0, #000 13%, #000 74%, transparent 100%); -webkit-mask-image: var(--mx), var(--my); -webkit-mask-composite: source-in; mask-image: var(--mx), var(--my); mask-composite: intersect; }
.marina img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* светлое фото: обычный снимок со скруглёнными углами, без растворения в фоне */
#marina.marina--photo { padding-bottom: calc(var(--gap) + 36px); }
.marina--photo .marina { align-items: center; }
.marina--photo .marina figure { overflow: hidden; border-radius: 30px; -webkit-mask-image: none; mask-image: none; }
.marina--photo .marina__text { padding-block: 0; }
.marina__text { align-self: center; padding-block: clamp(10px, 3vw, 40px) clamp(48px, 8vw, 110px); }
.marina__text .lead { max-width: 22em; }
.marina__text > p:not(.lead) { max-width: 32em; }
.marina__role { margin-top: 10px; max-width: 32em; font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, .6); }
#marina h2 + .marina__role + .lead { margin-top: clamp(18px, 2.2vw, 28px); }
.marina__text b { font-weight: 500; color: #fff; }
.marina__key { margin-top: clamp(22px, 2.6vw, 34px) !important; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.35; letter-spacing: -.015em; color: #fff; }

/* Видео: большой кадр слева, справа — список выпусков и раскрывающийся блок */
.listen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2.6vw, 40px); align-items: start; }
.video__thumb, .video__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; background: #111315; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: #fff; transition: transform .3s var(--e); }
.video__play::after { content: ""; position: absolute; left: 34px; top: 30px; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video__thumb:hover .video__play { transform: scale(1.08); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.listen__alt { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.playlist li + li { margin-top: 4px; }
.playlist a { display: grid; grid-template-columns: clamp(104px, 9.6vw, 140px) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); align-items: center; padding: 10px; border-radius: 24px; color: inherit; text-decoration: none; transition: background .25s; }
.playlist a:hover { background: var(--soft); }
.playlist a.is-on { background: var(--paper); }
.playlist img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; }
.playlist small { display: block; font-size: .9375rem; line-height: 1.3; color: var(--muted); }
.playlist b { display: block; margin-top: 4px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 500; line-height: 1.28; letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; }
.more { margin-top: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--paper); }
.listen .more { margin-top: 14px; border-radius: 24px; background: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.listen .more summary { padding: 14px 14px 14px 22px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.listen .more__in { padding: 2px 22px 22px; font-size: 1.0625rem; }
.more summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px); font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(#fff, #fff) center / 16px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 16px no-repeat, var(--ink); transition: transform .3s var(--e); }
.more[open] summary::after { transform: rotate(45deg); }
.more__in { max-width: 48em; padding: 0 clamp(20px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px); }
/* о команде — в конце раздела о Марине, отдельным спокойным абзацем */
.team { max-width: 38em; margin-top: clamp(40px, 5.6vw, 84px); padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }

/* Три уровня: строки во всю ширину — слева номер и название, справа описание и что даёт эта работа */
.levels { border-top: 1px solid var(--line); }
.levels li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px clamp(24px, 5vw, 90px); padding-block: clamp(26px, 3.4vw, 48px); border-bottom: 1px solid var(--line); }
.levels__name { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; align-content: start; column-gap: clamp(16px, 2vw, 28px); }
.levels__name span { grid-row: 1 / span 2; font: 400 clamp(2.4rem, 4vw, 3.8rem)/1 var(--f-logo); color: var(--ink); }
.levels h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; color: var(--ink); }
.levels small { grid-column: 2; display: block; margin-top: 6px; font-size: 1rem; color: var(--muted); }
.levels__text p { max-width: 36em; font-size: 1.0625rem; line-height: 1.55; }
.levels__text p + p { margin-top: 12px; color: var(--ink); }

/* Путь CHARISMATA: слева заголовок, вводные строки и четыре этапа, справа — групповая практика; ниже лента дней */
.method { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.method__photo { position: sticky; top: 40px; overflow: hidden; border-radius: 30px; aspect-ratio: 4 / 5; background: var(--soft); }
.method__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.method__days { margin-top: clamp(14px, 1.6vw, 20px); font-size: clamp(1.125rem, 1.4vw, 1.3rem); font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.method__about { max-width: 34em; margin-top: 10px; }
.method__sub { margin: clamp(32px, 4vw, 52px) 0 clamp(18px, 2.2vw, 26px); font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: -.02em; }
/* строки списка: цифра шрифтом Forum, справа название, подпись и пояснение */
.steps { display: grid; gap: clamp(20px, 2.2vw, 30px); counter-reset: s; }
.steps li { display: grid; grid-template-columns: clamp(44px, 4.6vw, 66px) minmax(0, 1fr); align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); grid-row: 1 / span 3; font: 400 clamp(2.5rem, 3.4vw, 3.2rem)/1 var(--f-logo); color: var(--ink); }
.steps h3, .steps small, .steps p { grid-column: 2; }
.steps h3 { padding-top: 7px; font-size: clamp(1.25rem, 1.7vw, 1.55rem); letter-spacing: -.02em; line-height: 1.2; }
.steps small { display: block; margin-top: 4px; font-size: .9375rem; color: var(--muted); }
.steps p { margin-top: 8px; max-width: 30em; font-size: 1.0625rem; line-height: 1.5; }
.flow { --g: clamp(18px, 2.6vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); counter-reset: s; }
.flow li { position: relative; counter-increment: s; }
.flow li::before { content: counter(s); display: block; height: 48px; margin-bottom: 14px; font: 400 2.9rem/48px var(--f-logo); color: var(--ink); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 46px; right: calc(14px - var(--g)); height: 1.5px; background: var(--line); }
.flow b { display: block; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; color: var(--ink); }
.flow span { display: block; margin-top: 8px; font-size: 1.0625rem; line-height: 1.5; }

/* Дни: лента крупных кадров, дата и название — на фотографии; под лентой — линия прокрутки */
.days__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
#program .days__head { margin-top: clamp(56px, 7.6vw, 120px); }
.days__title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; }
.days__nav { display: flex; gap: 10px; }
.days__nav button { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .2s var(--e), opacity .2s; }
.days__nav button:hover { transform: scale(1.08); }
.days__nav button[disabled] { opacity: .26; pointer-events: none; }
.reel { --side: max(var(--pad), calc((100vw - 1360px) / 2)); display: flex; gap: 16px; margin-top: clamp(28px, 4vw, 56px); padding-inline: var(--side); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side); scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
/* лента двигается только вбок: по вертикали карточки неподвижны, колесо и тачпад вниз прокручивают страницу */
/* на сенсорных экранах ленту листают пальцем — стрелки не нужны */
@media (hover: none), (pointer: coarse) {
  .days__nav { display: none; }
}
.day { flex: 0 0 clamp(270px, 28vw, 404px); scroll-snap-align: start; }
.day figure, .mosaic figure { position: relative; overflow: hidden; background: var(--soft); }
.day figure { border-radius: 30px; aspect-ratio: 4 / 5; }
.day img { width: 100%; height: 100%; object-fit: cover; }
.day figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 30, 0) 42%, rgba(14, 22, 30, .82) 100%); pointer-events: none; }
.day figcaption { position: absolute; z-index: 1; left: clamp(18px, 1.8vw, 28px); right: clamp(18px, 1.8vw, 28px); bottom: clamp(18px, 1.8vw, 26px); font-size: 1rem; line-height: 1.3; color: rgba(255, 255, 255, .82); }
.day figcaption span { display: block; }
.day h3 { margin-top: 6px; font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; color: #fff; }
.day p { margin-top: 16px; padding-right: 10px; font-size: 1.0625rem; line-height: 1.55; }
.mosaic figcaption { position: absolute; left: 14px; padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .9375rem; line-height: 1.3; }
.days__bar { display: none; position: relative; height: 2px; margin-top: clamp(22px, 2.6vw, 36px); border-radius: 2px; background: var(--line); overflow: hidden; }
.js .days__bar { display: block; }
.days__bar i { position: absolute; left: 0; top: 0; width: 40%; height: 100%; border-radius: 2px; background: var(--ink); }
/* Что может измениться: тёмный спокойный раздел, мысль о «поле жизни» выделена, последняя фраза — крупно */
#change { background: #111315; }
.change { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 110px); align-items: start; }
.change h2 { text-wrap: balance; }
.change__text p { max-width: 34em; }
.change__text p + p { margin-top: 14px; }
.change__text p.change__field { margin-block: clamp(22px, 2.6vw, 32px); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em; color: #fff; }
.change__big { grid-column: 1 / -1; max-width: 24em; margin-top: clamp(24px, 3vw, 48px); padding-top: clamp(32px, 4.4vw, 64px); border-top: 1px solid rgba(255, 255, 255, .16); font: 400 clamp(2rem, 4.2vw, 3.9rem)/1.12 var(--f-logo); color: #fff; text-wrap: balance; }


/* Место: мозаика в три ряда — высокий кадр слева, в последнем ряду тёмная плитка «Питание» */
.place { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.mosaic { display: contents; }
.mosaic figure { border-radius: 30px; }
.mosaic figure:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-column: span 7; aspect-ratio: 7 / 4; }
.mosaic figure:nth-child(3) { grid-column: span 3; }
.mosaic figure:nth-child(4) { grid-column: span 4; aspect-ratio: 4 / 3; }
.mosaic figure:nth-child(5) { grid-column: span 7; min-height: clamp(260px, 30vw, 440px); }   /* по высоте — как плитка «Питание» рядом */
.mosaic img, .circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { bottom: 14px; }
.food { grid-column: span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 2.8vw, 40px); border-radius: 30px; background: #111315; color: rgba(255, 255, 255, .78); }
.food h3 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.1; color: #fff; text-wrap: balance; }
.food p { margin: 0; max-width: 30em; font-size: 1rem; line-height: 1.5; }
.food p + p { margin-top: 10px; }

/* Кто будет рядом */
.circle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 100px); align-items: start; }
.circle figure { position: sticky; top: 40px; overflow: hidden; border-radius: 30px; aspect-ratio: 4 / 5; background: var(--soft); }
.circle p:not(.lead) { max-width: 32em; }
/* на фотографии — стеклянная плашка с размером группы */
.circle figcaption { position: absolute; left: clamp(12px, 1.4vw, 18px); bottom: clamp(12px, 1.4vw, 18px); display: flex; align-items: center; gap: 14px; padding: 14px 26px 14px 22px; border-radius: 28px; font-size: 1rem; line-height: 1.25; color: rgba(255, 255, 255, .84); }
.circle figcaption b { font: 400 clamp(2.3rem, 3.4vw, 3.3rem)/1 var(--f-logo); color: #fff; white-space: nowrap; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 2.8vw, 40px) clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4.4vw, 64px); }
.rules dt { font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.rules dd { margin-top: 8px; font-size: 1.0625rem; line-height: 1.5; }

/* Стоимость: большой кадр усадьбы, заголовок на нём, внизу стеклянная панель с двумя ценами и кнопкой */
.offer { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(36px, 8vw, 140px); min-height: clamp(520px, 46vw, 690px); padding: clamp(18px, 3.4vw, 52px); border-radius: clamp(28px, 2.8vw, 40px); background: #1a1d1f; color: rgba(255, 255, 255, .86); }
.offer__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.offer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 22, 30, .66) 0%, rgba(14, 22, 30, .22) 48%, rgba(14, 22, 30, .7) 100%), linear-gradient(90deg, rgba(14, 22, 30, .46) 0%, rgba(14, 22, 30, 0) 62%); }
.offer__head { padding: clamp(6px, .6vw, 10px) clamp(4px, .6vw, 10px) 0; }
.offer h2 { color: #fff; }
.offer .lead { max-width: 20em; color: #fff; }
.offer__head p:not(.lead) { margin-top: 10px; max-width: 30em; color: rgba(255, 255, 255, .82); }
.offer__panel { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: 14px 14px 14px clamp(20px, 2.6vw, 38px); border-radius: 34px; }
.offer__prices { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer__prices > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px clamp(16px, 2.2vw, 34px) 6px 0; }
.offer__prices > div + div { padding-left: clamp(16px, 2.2vw, 34px); border-left: 1px solid rgba(255, 255, 255, .22); }
.offer__prices dt { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 500; line-height: 1.25; color: #fff; }
.offer__prices small { display: block; font: 400 .9375rem/1.35 var(--f); letter-spacing: 0; color: rgba(255, 255, 255, .68); }
.offer__prices dt small { margin-top: 4px; max-width: 15em; }
.offer__prices dd { flex: none; text-align: right; font: 400 clamp(2.3rem, 3.6vw, 3.3rem)/1 var(--f-logo); color: #fff; white-space: nowrap; }
.offer__prices dd small { margin-top: 6px; max-width: 12em; margin-left: auto; white-space: normal; }
.offer__cta { flex: none; height: 66px; padding-right: 11px; font-size: 1.125rem; }
.join__note { max-width: 34em; margin-top: clamp(28px, 3.6vw, 44px); font-size: 1rem; line-height: 1.5; }

/* ───────── Анкета ───────── */
.formbox { padding: clamp(22px, 3.4vw, 48px); border-radius: 32px; background: #fff; }
.form__top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(22px, 3vw, 36px); }
.form__count { flex: none; font-size: 1rem; color: var(--muted); }
.form__count b { font-weight: 600; color: var(--ink); }
.form__bar { flex: 1; height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.form__bar i { display: block; height: 100%; border-radius: 6px; background: var(--ink); transform: scaleX(var(--prog, .11)); transform-origin: 0 50%; transition: transform .5s var(--e); }
.form fieldset { border: 0; min-width: 0; }
.js .form__step { display: none; }
.js .form__step.is-active { display: block; animation: up .5s var(--e) both; }
.form__step + .form__step { margin-top: 40px; }
.js .form__step + .form__step { margin-top: 0; }
.form__q { padding: 0; margin-bottom: clamp(18px, 2.4vw, 28px); font-size: clamp(1.6rem, 2.9vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.form__text { margin-bottom: 22px; }
.field + .field { margin-top: 20px; }
.field > label:not(.check), .field__label { display: block; margin-bottom: 8px; font-size: 1rem; line-height: 1.35; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea { display: block; width: 100%; padding: 17px 20px; border: 1.5px solid transparent; border-radius: 18px; background: var(--soft); color: var(--ink); font: 400 1.125rem/1.4 var(--f); transition: border-color .2s, background .2s; }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.field__err { font-size: 1rem; line-height: 1.4; color: var(--bad); }
.field__err:not(:empty) { margin-top: 8px; }
.field__hint { margin-top: 8px; font-size: 1rem; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--col { flex-direction: column; align-items: flex-start; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 22px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 1.0625rem; line-height: 1.3; transition: background .2s, color .2s; }
.choice:hover span { background: #e8e4da; }
.choice input:checked + span { background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.check { position: relative; display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin-top: 1px; border: 1.5px solid #b9b4a8; border-radius: 9px; background: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.check input:checked { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.field.is-bad .check input { border-color: var(--bad); }
.form__error { margin-top: 20px; padding: 14px 18px; border-radius: 16px; background: #fbe9e7; color: var(--bad); font-size: 1rem; line-height: 1.45; }
.form__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(24px, 3vw, 36px); }
.form__back { padding: 8px 4px; border: 0; background: none; font-size: 1.0625rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.form__hint { font-size: 1rem; color: var(--muted); }
.form.is-sending { opacity: .7; pointer-events: none; }
.form-done:target { display: block !important; }
.form-done__title { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; }
.form-done p { margin-top: 16px; }
.form-done__note { color: var(--muted); font-size: 1rem; }
/* тёмное «стекло» поверх вечернего кадра: те же поля и кнопки в светлом по тёмному */
.formbox--glass { border: 1px solid rgba(255, 255, 255, .2); background: rgba(16, 18, 20, .66); color: rgba(255, 255, 255, .86); color-scheme: dark; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .formbox--glass { background: rgba(16, 18, 20, .5); -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); }
}
.formbox--glass .form__count, .formbox--glass .field > label:not(.check), .formbox--glass .field__label, .formbox--glass .field__hint, .formbox--glass .form__hint, .formbox--glass .form-done__note { color: rgba(255, 255, 255, .68); }
.formbox--glass .form__count b, .formbox--glass .form__q, .formbox--glass .form-done__title, .formbox--glass .form__back, .formbox--glass a { color: #fff; }
.formbox--glass .form__q { font-weight: 400; }
.formbox--glass .form__bar { background: rgba(255, 255, 255, .2); }
.formbox--glass .form__bar i { background: #fff; }
.formbox--glass .field input[type="text"], .formbox--glass .field input[type="email"], .formbox--glass .field textarea { background: rgba(255, 255, 255, .1); color: #fff; }
.formbox--glass .field input:focus, .formbox--glass .field textarea:focus { border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .15); }
.formbox--glass .field.is-bad input, .formbox--glass .field.is-bad textarea, .formbox--glass .field.is-bad .check input { border-color: #ff9d8f; }
.formbox--glass .field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: inset 0 0 0 100px #2c2f33; caret-color: #fff; }
.formbox--glass .choice span { background: rgba(255, 255, 255, .1); color: #fff; }
.formbox--glass .choice:hover span { background: rgba(255, 255, 255, .18); }
.formbox--glass .choice input:checked + span { background: #fff; color: var(--ink); }
.formbox--glass .choice input:focus-visible + span { outline-color: #fff; }
.formbox--glass .check input { border-color: rgba(255, 255, 255, .55); background-color: transparent; }
.formbox--glass .check input:checked { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23141412' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.formbox--glass .field__err { color: #ffb3a7; }
.formbox--glass .form__error { background: rgba(255, 140, 124, .16); color: #ffd0c8; }
.formbox--glass .btn, .formbox--glass .btn:hover { background: #fff; color: var(--ink); }

/* ───────── Финал: одна вечерняя сцена на всю ширину — анкета и под ней подвал ───────── */
.finale { isolation: isolate; overflow: hidden; overflow: clip; padding-block: var(--gap) clamp(14px, 1.8vw, 26px); background: #0d0f10; color: rgba(255, 255, 255, .84); }
.finale__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 15, 16, .7) 0%, rgba(13, 15, 16, .46) 32%, rgba(13, 15, 16, .6) 68%, rgba(13, 15, 16, .88) 100%); }
.finale h1, .finale h2 { color: #fff; }
.finale h1 { font-size: clamp(2.1rem, 4.9vw, 4.6rem); font-weight: 400; letter-spacing: -.038em; line-height: 1; }
.finale h1 + .lead { margin-top: clamp(16px, 2vw, 26px); }
.finale .lead { color: rgba(255, 255, 255, .95); }
#apply { scroll-margin-top: 44px; }
.apply__facts { margin-top: clamp(18px, 2.4vw, 28px); max-width: 26em; color: rgba(255, 255, 255, .68); }
/* отдельная страница анкеты: та же сцена на весь экран, сверху шапка */
.finale--page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-top: 0; }
.finale--page .hdr { color: #fff; }
.finale--page main { flex: 1; padding-top: clamp(16px, 4vw, 56px); }

/* Подвал: стеклянная панель в низу той же сцены — название, разделы, служебная строка */
.ftr { margin-top: clamp(48px, 7vw, 112px); }
.ftr__panel { padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.8vw, 40px); border-radius: clamp(26px, 2.6vw, 34px); color: rgba(255, 255, 255, .72); }
.ftr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.ftr__logo { font: 400 clamp(1.4rem, 1.9vw, 1.7rem)/1 var(--f-logo); letter-spacing: .22em; color: #fff; text-decoration: none; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 1.7vw, 24px); }
.ftr__nav a, .ftr__base a { color: #fff; text-decoration: none; }
.ftr__nav a { font-size: 1rem; white-space: nowrap; }
.ftr__nav a:hover, .ftr__base a:hover { text-decoration: underline; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: clamp(18px, 2.2vw, 28px); padding-top: clamp(14px, 1.6vw, 20px); border-top: 1px solid rgba(255, 255, 255, .16); font-size: 1rem; }
.ftr__base p { margin: 0; }
.ftr__base span { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ───────── Плавающая кнопка заявки ───────── */
.dock { position: fixed; z-index: 40; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 9px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(20, 20, 18, .07), 0 24px 60px -22px rgba(20, 20, 18, .55); white-space: nowrap; opacity: 0; visibility: hidden; transform: translate3d(-50%, 120%, 0) scale(.92); transition: transform .65s cubic-bezier(.2, .9, .25, 1.14), opacity .3s, visibility .3s; }
.dock.is-on { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0) scale(1); }
.dock__ava { flex: none; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.dock__text { display: grid; padding-right: 8px; line-height: 1.25; }
.dock__text b { font-size: 1rem; font-weight: 600; }
.dock__text em { font-style: normal; }
.dock__text span { font-size: .875rem; color: var(--muted); }
.dock__btn { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 8px 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.dock__btn i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .35s var(--e); }
.dock__btn:hover i { transform: translateX(4px); }

/* ───────── Политика ───────── */
.doc { width: min(100% - 2 * var(--pad), 46rem); margin: clamp(20px, 4vw, 56px) auto clamp(64px, 8vw, 120px); }
.doc h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.doc h2 { margin: 2em 0 .6em; font-size: clamp(1.3rem, 1.9vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; }
.doc ul { margin: .6em 0; padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: .4em; }
.doc mark { padding: 1px 6px; border-radius: 6px; background: #f3e7b3; color: inherit; }
.doc__draft { margin-top: 24px; padding: 18px 22px; border-radius: 22px; background: #fff; }
.doc__back { display: inline-block; margin-top: 2.4em; }

/* ───────── Появление блоков при прокрутке ─────────
   Класс rv-on ставит скрипт: если он не загрузился, ничего не прячется. */
@media (prefers-reduced-motion: no-preference) {
  .rv-on [data-rv] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .7s ease var(--rv-d, 0s), transform .8s var(--e) var(--rv-d, 0s); }
  .rv-on [data-rv].is-in { opacity: 1; transform: none; }
  /* карточки дней только проявляются: сдвиг вниз растягивал ленту по высоте, и она прокручивалась по вертикали */
  .rv-on .day[data-rv] { transform: none; }
}

/* ───────── Адаптив ───────── */
@media (max-width: 1080px) {
  .hdr__nav, .hdr__cta { display: none; }
  .burger { display: block; }
  /* панель цен: цены строкой, кнопка под ними во всю ширину */
  .offer__panel { flex-direction: column; align-items: stretch; padding: clamp(16px, 2.4vw, 24px); }
  .offer__cta { justify-content: space-between; }
}

@media (max-width: 900px) {
  .sheet { border-radius: 28px 28px 0 0; margin-top: -28px; padding-bottom: calc(var(--gap) + 28px); }
  .finale { padding-bottom: 14px; }
  .about, .split, .marina, .circle, .head--wide, .method, .change, .levels li { grid-template-columns: minmax(0, 1fr); }
  .about__photos { width: min(100%, 30rem); }
  .split__head { position: static; }
  /* на узких экранах внизу всегда видна плавающая кнопка заявки — вторая рядом не нужна */
  .states__cta { display: none; }
  .circle figure { position: relative; top: auto; }
  .method__photo { position: relative; top: auto; aspect-ratio: 4 / 3.2; }
  .method__photo img { object-position: 50% 50%; }
  #marina { padding-bottom: 28px; }
  .marina figure { width: min(100%, 26rem); margin-inline: auto; aspect-ratio: 4 / 5; }
  #marina.marina--photo { padding-bottom: calc(var(--gap) + 28px); }
  .marina--photo .marina figure { width: 100%; border-radius: 24px; }
  .marina__text { padding-block: 0 clamp(28px, 7vw, 56px); }
  .listen { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .video__thumb, .video__frame { border-radius: 24px; }
  .video__play { scale: .8; }
  .playlist a { margin-inline: -10px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .flow li::before { grid-row: 1 / span 2; margin: 0; }
  .flow li:not(:last-child)::after { display: none; }
  .flow b, .flow span { grid-column: 2; }
  .flow b { padding-top: 10px; }
  .day { flex-basis: 78vw; }
  .place { display: block; }
  .mosaic { display: flex; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic figure:nth-child(n) { flex: 0 0 82vw; min-height: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .food { margin-top: 14px; gap: 18px; }
  .circle figure { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 700px) {
  .hdr, .menu__top { height: 72px; }
  .hdr__logo, .menu__logo { font-size: 1.1rem; letter-spacing: .2em; }
  .hero { min-height: 600px; }
  .hero__eyebrow { max-width: 17em; font-size: .9375rem; line-height: 1.3; text-wrap: balance; }
  .hero__title { margin-top: 12px; }
  .hero__row { display: block; margin-top: 14px; }
  .hero__words { padding-bottom: 0; }
  .hero__tag { font-size: clamp(1.6rem, 7.2vw, 2rem); }
  .hero__more { margin-top: 8px; font-size: 1.0625rem; }
  /* плашка на телефоне — во всю ширину */
  .hero__panel { width: 100%; margin-top: 16px; padding: 14px 10px 12px; border-radius: 26px; }
  .hero__cta { height: 58px; padding: 0 8px 0 24px; }
  .reelnav { gap: 8px; margin-block: 12px calc(28px + 8px); }
  .reelnav button { height: 28px; padding: 0; font-size: 0; }
  .reelnav button::before, .reelnav i { top: 12px; height: 3px; border-radius: 3px; }
  .states { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .days__head { flex-wrap: wrap; }
  .offer { gap: 28px; }
  .offer__panel { border-radius: 26px; }
  .offer__prices { grid-template-columns: minmax(0, 1fr); }
  /* на телефоне каждая цена — столбиком: название, пояснение, под ними сумма */
  .offer__prices > div { display: block; padding: 2px 0 16px; }
  .offer__prices > div + div { padding: 16px 0 6px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
  .offer__prices dt small { max-width: none; }
  .offer__prices dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; text-align: left; }
  .offer__prices dd small { max-width: none; margin: 0; }
  .offer__cta { height: 58px; padding: 0 8px 0 24px; }
  .ftr__nav { gap: 10px 20px; }
  .btn--lg { width: 100%; }
  .btn--go, .btn--lg.btn--go { justify-content: space-between; padding: 0 10px 0 28px; }

  .choices { flex-direction: column; align-items: stretch; }
  .choice span { display: flex; }
  .form__nav .btn { flex: 1 1 100%; }
  .dock { left: 12px; right: 12px; gap: 10px; justify-content: space-between; padding: 7px 7px 7px 8px; transform: translate3d(0, 120%, 0) scale(.94); }
  .dock.is-on { transform: none; }
  .dock__ava { width: 46px; height: 46px; }
  .dock__text { margin-right: auto; padding: 0; }
  .dock__text em, .dock__text span { display: none; }
  .dock__btn { height: 48px; padding: 0 22px; font-size: 1rem; }
  .dock__btn i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
