/* =========================================================
   Адвент-календарь «На ладони» — прототип лендинга
   Палитра из референсов: ночной фиолетовый, золото, бордо,
   горчица, снег/крем, хвоя, оранжевые домики.
   ========================================================= */
:root {
  --night-900: #170f2e;
  --night-800: #24154a;
  --night-700: #2f1d5e;
  --violet: #4b2d7f;
  --violet-soft: #7a5cc4;
  --gold: #e8b04a;
  --gold-soft: #f2c46b;
  --burgundy: #6b2233;
  --burgundy-900: #4a1527;
  --mustard: #d8973c;
  --cream: #f3f0ea;
  --cream-2: #e9e4da;
  --snow: #fbfcfe;
  --fir: #2f5d46;
  --orange: #e07b39;
  --red: #d8453a;
  --sky: #7f92b5;
  --ink: #22182f;
  --ink-soft: #5b5068;
  --radius: 28px;
  --shadow: 0 30px 60px -30px rgba(23, 15, 46, .45);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', cursive;
  --scene-height: 100svh;
}
/* Высота не меняется при скрытии панелей мобильного браузера. */
@media (max-width: 900px) { :root { --scene-height: 100lvh; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

/* Волнистые стыки между блоками (как у подвала): волна цвета предыдущего блока «стекает» вниз */
.wave {
  --wave-h: clamp(36px, 5.5vw, 80px);
  position: absolute; z-index: 1; left: 0; width: 100%; height: var(--wave-h);
  pointer-events: none; display: block;
}
.wave--top { top: -1px; }
/* первый блок после сцены: волна его цвета поднимается поверх конца сцены */
.wave--up { top: calc(1px - var(--wave-h)); }
.center { text-align: center; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mustard);
}
.eyebrow--light { color: var(--gold-soft); }
.h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: .98; letter-spacing: -.04em; font-weight: 800;
  margin-top: 12px;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-soft); margin-top: 18px; max-width: 620px; }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-inline: auto; }
.section-head--light .h2 { color: #fff; }
.section-head--light .lead { color: rgba(255, 255, 255, .82); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 30px; border-radius: 999px;
  font-weight: 700; font-size: 17px; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--gold { background: var(--gold); color: var(--night-900); box-shadow: 0 12px 30px -10px rgba(232, 176, 74, .75); }
.btn--gold:hover { transform: translateY(-2px); background: var(--gold-soft); box-shadow: 0 18px 36px -10px rgba(232, 176, 74, .9); }
.btn--dark { background: var(--night-800); color: #fff; }
.btn--dark:hover { background: var(--violet); }
.btn--ghost { border: 1.5px solid currentColor; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- шапка ---------- */
.header {
  position: fixed; z-index: 78; top: 16px; left: 16px; right: 16px; /* над мобильным меню: крестик виден */
  display: flex; align-items: center; justify-content: center; gap: 16px; /* в шапке только меню — по центру */
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.logo, .nav {
  background: rgba(19, 22, 53, .72);
  /* без backdrop-filter: размытие поверх анимации пересчитывается каждый кадр и тормозит */
  border: 1px solid rgba(255, 255, 255, .14);
}
.logo {
  display: flex; align-items: center; gap: 10px; height: 48px;
  padding: 0 18px 0 6px; border-radius: 999px;
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.02em;
}
.logo__mark { width: 36px; height: 36px; }
.logo--plain { background: none; border: 0; padding: 0; height: auto; backdrop-filter: none; font-size: 26px; }
.nav { display: flex; gap: 4px; padding: 6px; border-radius: 999px; }
.nav a {
  color: rgba(255, 255, 255, .85); font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 999px; transition: background .2s, color .2s;
}
@media (max-width: 1100px) { .nav a { font-size: 16px; padding: 11px 16px; } }

/* «В начало»: свёрнут, пока мы на первом экране; плавно выезжает, когда он ушёл */
.nav .nav__home {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden;
  max-width: 0; padding-left: 0; padding-right: 0; margin-right: -4px; opacity: 0; pointer-events: none;
  color: var(--gold-soft);
  transition: max-width .45s cubic-bezier(.2, .8, .2, 1), padding .45s cubic-bezier(.2, .8, .2, 1), margin .45s, opacity .3s, background .2s, color .2s;
}
.nav .nav__home svg { width: 18px; height: 18px; flex: none; }
.is-scrolled .nav .nav__home { max-width: 200px; padding-left: 20px; padding-right: 22px; margin-right: 0; opacity: 1; pointer-events: auto; }
.is-scrolled .nav .nav__home:hover { color: #fff; }
.mobile-menu__nav .mm-home { display: none; color: var(--gold-soft); }
.is-scrolled .mobile-menu__nav .mm-home { display: block; }
.nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
/* раздел, в котором сейчас находимся */
.nav a.is-active, .nav a.is-active:hover { background: var(--gold); color: var(--night-900); }
.logo { white-space: nowrap; }
@media (max-width: 900px) { .nav { display: none; } }

/* ---------- бургер и мобильное меню ---------- */
.burger {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%; margin-left: auto; /* справа */
  background: rgba(19, 22, 53, .72); border: 1px solid rgba(255, 255, 255, .14);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) { .burger { display: block; } }
@media (min-width: 901px) { .mobile-menu { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 75; display: flex; flex-direction: column; justify-content: space-between; /* выше липкой кнопки (70), ниже шапки */
  padding: calc(96px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle, rgba(255, 244, 220, .5) 1px, transparent 1.6px) 0 0 / 41px 41px,
    radial-gradient(ellipse at 50% 110%, rgba(232, 176, 74, .25), transparent 60%),
    #131635;
  color: #fff; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: grid; gap: 4px; }
.mobile-menu__nav a {
  font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  padding: 6px 0; opacity: 0; transform: translateY(16px);
  transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1), color .2s;
}
.mobile-menu__nav a:hover, .mobile-menu__nav a:focus-visible { color: var(--gold-soft); }
.mobile-menu__nav a.is-active { color: var(--gold); }
.mobile-menu__nav a.is-active::before { content: "●"; font-size: .4em; vertical-align: middle; margin-right: .5em; position: relative; top: -.15em; }
.menu-open .mobile-menu__nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: .12s; }
.menu-open .mobile-menu__nav a:nth-child(5) { transition-delay: .16s; }
.menu-open .mobile-menu__nav a:nth-child(6) { transition-delay: .2s; }
.menu-open .mobile-menu__nav a:nth-child(7) { transition-delay: .24s; }
.mobile-menu__foot { display: grid; gap: 12px; margin-top: 32px; }
.mobile-menu__note { text-align: center; font-size: 14px; color: rgba(255, 255, 255, .6); }
.menu-open { overflow: hidden; } /* страница под меню не прокручивается */
.menu-open .sticky-buy, .menu-open .sticky-buy.is-on { transform: translateY(140%); visibility: hidden; }
@media (max-width: 600px) {
  .eyebrow { font-size: 11px; letter-spacing: .12em; }
}

/* =========================================================
   1–2. Закреплённая сцена: волосы → вся картинка → нырок в шар → деревня
   ========================================================= */
.stage {
  position: relative; height: 100vh; height: var(--scene-height); overflow: hidden;
  background: #131635; /* цвет фона иллюстрации */
}
.hero { position: absolute; inset: 0; z-index: 1; }
.hero__snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* Размер и позицию задаёт JS: картинка по центру, увеличена так, чтобы экран занимали только волосы */
.hero__art {
  position: absolute; z-index: 1; left: 0; top: 0; width: 100%; aspect-ratio: 1280 / 955;
  transform-origin: 0 0; will-change: transform;
}
.hero__art img, .hero__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art canvas { opacity: 0; transition: opacity .8s; }
.hero__art.is-live canvas { opacity: 1; }
.hero__art.is-live img { visibility: hidden; } /* иначе статичная картинка просвечивает в окне шара */


/* Звёзды поверх волос (HTML): позиция и размер — в % картинки, поэтому они едут вместе с ней */
.hero__stars { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.star {
  position: absolute; aspect-ratio: 1; translate: -50% -50%;
  color: var(--gold-soft); visibility: hidden;
}
.star--white { color: #fff4dc; }
.star svg, .star i { position: absolute; inset: 0; width: 100%; height: 100%; }
.star svg { fill: currentColor; animation: twinkle var(--tw) ease-in-out var(--td) infinite; }
.star i { /* мягкое свечение */
  border-radius: 50%; inset: 15%;
  background: radial-gradient(circle, currentColor 0 18%, color-mix(in srgb, currentColor 35%, transparent) 30%, transparent 70%);
  animation: glow var(--tw) ease-in-out var(--td) infinite;
}
.star--dot i { inset: 0; background: radial-gradient(circle, #fff 0 14%, currentColor 26%, transparent 70%); }
.star--big svg { animation-name: twinkle-spin; }
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes twinkle-spin { 0%, 100% { opacity: .65; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }
@keyframes glow { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.5); } }

/* Текст поверх волос, по центру экрана */
.hero__content {
  position: absolute; z-index: 4; inset: 0; padding: 80px 16px 70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center;
  text-shadow: 0 4px 30px rgba(15, 8, 35, .7);
}
.hero__content::before { /* мягкое затемнение под текстом, чтобы читалось поверх звёзд */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 150%); height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(18, 10, 40, .5), transparent 65%);
  pointer-events: none;
}
.hero__title {
  font-size: clamp(29px, 6.4vw, 100px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; max-width: 1200px;
  margin: 14px 0 clamp(30px, 4vw, 48px);
}
@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(44px, 13vw, 76px);
    max-width: 8.5ch;
    line-height: 1;
  }
}
.hero__promise { font-size: clamp(21px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.hero__tags {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0;
  margin-top: 20px; max-width: 100%; color: var(--gold-soft);
}
.hero__tags li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(12px, 1.2vw, 16px); font-weight: 600;
}
.hero__tags li + li::before { content: "•"; margin: 0 10px; }
@media (max-width: 600px) {
  .hero__tags { flex-direction: column; align-items: center; gap: 0; }
  .hero__tags li { flex-direction: column; font-size: 14px; }
  .hero__tags li + li::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .65; margin: 9px 0; }
}
.hero__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 28px; }
.hero__actions .btn--trial, .village__actions .btn--trial { position: relative; }
.hero__actions .hero-trial__arrow, .village__actions .hero-trial__arrow { position: absolute; right: -65px; top: -22px; width: 62px; height: 56px; color: #f2c46b; stroke-width: 2.4; pointer-events: none; animation: trial-arrow-point 2s ease-in-out infinite; }
@keyframes trial-arrow-point { 0%, 100% { transform: translateX(5px) rotate(-4deg); } 50% { transform: translateX(-3px) rotate(2deg); } }
@media (max-width: 759px) {
  .hero__actions .btn--trial, .village__actions .btn--trial { max-width: calc(100% - 72px); white-space: normal; height: auto; min-height: 54px; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hero__actions .hero-trial__arrow, .village__actions .hero-trial__arrow { animation: none; } }
.btn--trial { border: 1.5px solid #f2c46b; background: rgba(19, 22, 53, .68); color: #ffe0a2; text-shadow: none; }
.btn--trial svg { width: 23px; height: 23px; flex: 0 0 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn--trial:hover { background: rgba(19, 22, 53, .9); transform: translateY(-2px); }
.btn--trial:focus-visible { outline: 3px solid #fff0d2; outline-offset: 4px; }
.village__actions { margin-top: 24px; pointer-events: auto; }
@media (max-width: 759px) {
  .hero__actions { flex-direction: column; gap: 12px; }
  .btn--trial { max-width: 100%; padding-inline: 20px; font-size: 15px; }
  .village__actions { margin-top: 18px; }
  .village__actions .btn--trial { height: 50px; }
}
/* Мобильный первый экран: интервалы по макету, на низком экране компактнее. */
@media (max-width: 600px) {
  .hero__content { padding-top: 90px; padding-bottom: 90px; }
  .hero__title { margin-top: clamp(28px, 5svh, 48px); margin-bottom: clamp(30px, 4.5svh, 44px); }
  .hero__tags { margin-top: clamp(28px, 4.5svh, 44px); }
  .hero__actions { margin-top: clamp(28px, 3.6svh, 36px); }
}

.hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255, 255, 255, .85); white-space: nowrap;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(19, 22, 53, .6);
}
.hero__scroll span {
  width: 20px; height: 30px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: var(--gold-soft); animation: wheel 1.6s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* --- видео городка: внутри картинки, под холстом (видно сквозь окно шара), после нырка — на весь экран.
   Положение, масштаб и круг обрезки обёртки задаёт JS. --- */
.globe-video {
  position: absolute; z-index: 0; left: 0; top: 0;
  transform-origin: 0 0; will-change: transform;
}
/* размер и положение задаёт JS: во весь кадр 16:9 (cover), может выходить за экран */
.village__video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__art img, .hero__art canvas { z-index: 1; }
/* после нырка видео на весь экран — картинку, звёзды и снег первого экрана прячем */
.stage.is-dived #hair, .stage.is-dived .hero__stars, .stage.is-dived .hero__snow { visibility: hidden; }
/* тексты первого экрана и подсказку «листайте» после нырка прячем наверняка (!important — поверх стилей анимации) */
.stage.is-dived .hero__content, .stage.is-dived .hero__scroll { visibility: hidden !important; }

/* --- «Что это»: надпись, заголовок и текст единым блоком поверх видео --- */
.village { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.village__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.village__head {
  position: absolute; z-index: 2; isolation: isolate;
  left: clamp(32px, 8vw, 150px); top: 50%; translate: 0 -50%;
  width: min(650px, 46%); container-type: inline-size; text-align: left; color: #fff;
}
.village__head::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -90px -100px -90px -150px;
  background: radial-gradient(ellipse, rgba(8, 17, 46, .88) 0%, rgba(8, 17, 46, .7) 40%, transparent 73%);
}
.village__accent { display: block; width: 64px; height: 4px; background: var(--gold-soft); border-radius: 2px; box-shadow: 0 0 8px #e8b04a40; }
.village__head .h2 {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700;
  font-size: clamp(40px, 4.7vw, 78px); font-size: 12cqi; line-height: .98; letter-spacing: -.035em;
  color: #fff0d2; margin: 28px 0 0; text-wrap: initial;
}
.village__head .h2 > span { display: block; white-space: nowrap; }
.village__sub {
  width: min(550px, 100%); margin: 26px 0 0; padding: 0;
  font-size: clamp(19px, 1.9vw, 32px); line-height: 1.35; color: #fff;
  font-weight: 500; text-align: left; text-wrap: pretty;
}
@media (max-width: 759px) {
  .village__head { left: 24px; top: auto; bottom: calc(104px + env(safe-area-inset-bottom)); translate: none; width: calc(100% - 48px); }
  .village__head::before {
    inset: -70px -24px calc(-100svh - env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent 0, rgba(10, 20, 51, .72) 90px, rgba(10, 20, 51, .88) 360px);
  }
  .village__accent { width: 34px; height: 3px; }
  .village__head .h2 { font-size: clamp(34px, 8.3vw, 58px); font-size: min(clamp(34px, 8.3vw, 58px), 12cqi); line-height: 1.04; margin-top: 14px; }
  .village__sub { margin-top: 16px; font-size: clamp(16px, 3.8vw, 23px); line-height: 1.4; max-width: 560px; }
}
@media (max-height: 600px) and (min-width: 760px) {
  .village__head { top: 55%; }
  .village__head .h2 { font-size: clamp(36px, 4.8vw, 60px); font-size: min(12cqi, 60px); margin-top: 16px; }
  .village__sub { margin-top: 16px; font-size: 18px; }
}
@media (max-height: 600px) and (max-width: 759px) {
  .village__head { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .village__head .h2 { font-size: 32px; font-size: min(12cqi, 32px); margin-top: 10px; }
  .village__sub { font-size: 15px; margin-top: 12px; }
}/* SVG-анимации деревни */
.blink { animation: blink 1.4s ease-in-out infinite alternate; }
@keyframes blink { from { opacity: 1; } to { opacity: .25; } }

/* =========================================================
   3. Что внутри
   ========================================================= */
.how {
  color: #fff8e9; background: #263252; isolation: isolate;
}
.how .container { z-index: 2; }
.how .section-head { margin-bottom: 4px; }
.how .section-head .eyebrow { color: #fff8e9; font-size: clamp(16px, 2vw, 23px); letter-spacing: .05em; }
.how .section-head .h2 { color: var(--gold-soft); font-size: clamp(34px, 4.1vw, 58px); line-height: 1.12; margin-top: 16px; }
.inside-stars { position: absolute; inset: 0; overflow: hidden; color: #f2c46b; opacity: .62; pointer-events: none; z-index: 1; }
.inside-stars__defs { position: absolute; }
.inside-star { position: absolute; width: var(--size); height: var(--size); max-width: none; translate: -50% -50%; }
.inside-trail { position: relative; max-width: 1040px; margin: 0 auto 24px; }
.inside-trail svg { width: 100%; height: auto; overflow: visible; }
.inside-trail__rail { stroke: #b9c8e0; opacity: .65; }
.inside-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1140px; margin-inline: auto; }
.inside-card {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-content: start;
  padding: 30px; background: #182140; border-radius: 24px;
  border: 1px solid rgba(242, 196, 107, .14);
  box-shadow: 0 14px 32px -24px rgba(5, 10, 29, .5);
}
.inside-card__icon { width: 88px; height: 88px; padding: 0; }
/* Отдельные иллюстрации; мягкий край соединяет их с фоном карточек. */
.inside-art {
  display: block; position: relative; width: 100%; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.inside-art img { width: 100%; height: 100%; object-fit: contain; }
.inside-card h3 { color: #ffe0a2; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35; letter-spacing: -.015em; font-weight: 700; text-wrap: pretty; }
.inside-card p { margin-top: 12px; font-size: 17px; line-height: 1.7; color: #f2eee8; }
@media (max-width: 1000px) and (min-width: 760px) {
  .inside-grid { gap: 20px; }
  .inside-card { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
  .inside-card__icon { width: 64px; height: 64px; }
}
@media (max-width: 759px) {
  .inside-stars { opacity: .35; }
  .inside-grid { grid-template-columns: 1fr; gap: 20px; max-width: 520px; }
  .inside-card { grid-template-columns: 1fr; justify-items: center; gap: 20px; padding: 26px 24px; border-radius: 22px; text-align: center; }
  .inside-card__copy { display: block; width: 100%; }
  .inside-card__icon { width: 88px; height: 88px; }
  .inside-card h3 { font-size: 21px; }
  .inside-card p { margin-top: 12px; font-size: 16px; line-height: 1.65; }
}
@media (max-width: 380px) {
  .inside-card { padding: 24px 22px; }
  .inside-card h3 { font-size: 20px; }
}
/* =========================================================
   4. Живой пример — видео в окне домика
   ========================================================= */
.demo {
  color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #4f638c 0%, #7f92b5 55%, #b9c6da 100%);
  padding-bottom: clamp(120px, 14vw, 180px);
}
.demo__snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tv { position: relative; max-width: 960px; margin: 0 auto; padding: 0 10px; }
.tv__roof {
  position: absolute; left: -2%; right: -2%; top: -26px; height: 44px; z-index: 3;
  background: var(--snow); border-radius: 30px 30px 18px 18px;
  box-shadow: 0 10px 0 -2px #d7dfeb;
}
.tv__roof::before, .tv__roof::after { /* сосульки-сугробики */
  content: ""; position: absolute; bottom: -14px; width: 40px; height: 22px; border-radius: 0 0 20px 20px; background: var(--snow);
}
.tv__roof::before { left: 14%; }
.tv__roof::after { right: 22%; width: 26px; height: 18px; }
.tv__lights { position: absolute; z-index: 4; left: 2%; right: 2%; top: 14px; height: 30px; display: flex; justify-content: space-between; }
.tv__lights li {
  width: 12px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: var(--y, 6px);
  background: var(--c, var(--gold)); box-shadow: 0 0 14px 3px var(--c, var(--gold));
  animation: blink 1.2s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
}
.tv__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  border: 16px solid #9a5532; outline: 6px solid #7a3f26;
  box-shadow: 0 40px 80px -30px rgba(23, 15, 46, .6), inset 0 0 0 2px rgba(0, 0, 0, .2);
  background: var(--night-800);
}
.tv__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tv__poster {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 18px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(232, 176, 74, .55), transparent 55%),
    linear-gradient(180deg, #24154a, #4b2d7f);
  transition: opacity .5s, visibility .5s;
}
.tv__poster.is-hidden { opacity: 0; visibility: hidden; }
.tv__stars {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 244, 220, .8) 1px, transparent 1.6px),
                    radial-gradient(circle, rgba(242, 196, 107, .7) 1.4px, transparent 2px);
  background-size: 34px 34px, 57px 57px; background-position: 0 0, 13px 21px;
  opacity: .6;
}
.tv__play {
  position: relative; width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--night-900);
  box-shadow: 0 0 0 0 rgba(232, 176, 74, .6); animation: pulse 2s infinite;
  transition: transform .3s;
}
.tv__poster:hover .tv__play { transform: scale(1.08); }
.tv__play svg { width: 42%; fill: currentColor; margin-left: 6%; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 176, 74, .6); } 100% { box-shadow: 0 0 0 30px rgba(232, 176, 74, 0); } }
.tv__label { position: relative; font-weight: 700; font-size: 17px; }
.tv__frost {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .7), transparent 18%),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .55), transparent 14%),
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, .5), transparent 15%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .7), transparent 20%);
  transition: opacity .6s;
}
.tv.is-playing .tv__frost { opacity: 0; }
.tv__sill { height: 18px; margin: 0 -3%; border-radius: 0 0 12px 12px; background: #7a3f26; box-shadow: 0 -8px 0 #f7f9fc inset; }

.days { margin: 56px auto 40px; max-width: 960px; text-align: center; }
.days__grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 8px; }
.days__grid li {
  aspect-ratio: 4 / 5; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: rgba(255, 255, 255, .55);
  background: rgba(36, 21, 74, .35); border: 1.5px solid rgba(255, 255, 255, .25);
  transition: background .4s, color .4s, box-shadow .4s, border-color .4s;
}
.days__grid li.is-lit {
  background: #ffd27a; color: #7a3f26; border-color: #ffe6a8;
  box-shadow: 0 0 18px 2px rgba(255, 210, 122, .7);
}
.days__caption { margin-top: 18px; font-family: var(--hand); font-size: 26px; color: #fff; }
@media (max-width: 759px) {
  .days__grid { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .tv__frame { border-width: 10px; outline-width: 4px; border-radius: 16px; }
}

/* =========================================================
   5. Автор
   ========================================================= */
.author {
  color: #fff; overflow: hidden;
  background-color: var(--burgundy);
  background-image: radial-gradient(ellipse at 18% 40%, rgba(232, 176, 74, .15), transparent 58%),
    radial-gradient(circle, rgba(242, 196, 107, .22) 1px, transparent 1.5px);
  background-size: auto, 44px 44px;
}
.author__grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.author__photo { position: relative; min-width: 0; padding: 14px 4px 14px 10px; }
.author__snapshot {
  position: relative; background: #fff8ea; padding: 12px 12px 0; transform: rotate(-3deg);
  box-shadow: 0 25px 65px -25px rgba(28, 9, 19, .65); border-radius: 5px;
}
.author__clip {
  position: absolute; z-index: 1; width: 26px; height: 72px; top: -25px; left: 24px;
  fill: none; stroke: #d4ac60; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(16deg); filter: drop-shadow(1px 2px 1px rgba(50, 28, 10, .2)); pointer-events: none;
}
.author__snapshot img { width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 38%; border-radius: 2px; }
.author__snapshot figcaption {
  padding: 18px 4px 20px; color: #6b2233; text-align: center;
  font-family: var(--hand); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.15;
}
.author__snapshot figcaption span { white-space: nowrap; }
.author__spark { position: absolute; z-index: 2; color: var(--gold-soft); pointer-events: none; line-height: 1; }
.author__spark--one { top: 7%; right: -14px; font-size: 48px; }
.author__spark--two { left: -12px; bottom: 7%; font-size: 64px; }
.author__letter {
  position: relative; color: var(--ink); background: #fff9ed; border: 1px solid rgba(242, 196, 107, .35);
  border-radius: 28px; padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 25px 65px -30px rgba(28, 9, 19, .55);
  background-image: linear-gradient(90deg, rgba(216, 151, 60, .05), transparent 12%);
}
.author__letter .eyebrow { color: #9a6731; font-size: 11px; letter-spacing: .18em; }
.author__letter .h2 { font-size: clamp(31px, 3.1vw, 46px); line-height: 1.1; letter-spacing: -.04em; margin-top: 15px; }
.author__body { margin-top: 24px; font-size: 16px; line-height: 1.75; color: #54434a; }
.author__body p + p { margin-top: 18px; }
.author__body strong { color: #6b2233; font-weight: 800; }
.author__channel-group { white-space: nowrap; }
.author__channel { display: inline-flex; align-items: center; gap: 7px; vertical-align: baseline; border-radius: 3px; }
.author__channel svg { width: 22px; height: 16px; flex: none; align-self: center; }
.author__channel strong { text-decoration: underline; text-decoration-color: rgba(107, 34, 51, .4); text-underline-offset: 4px; }
.author__channel:hover strong { color: #b52424; text-decoration-color: currentColor; }
.author__channel:focus-visible { outline: 2px solid #b88643; outline-offset: 4px; }
.author__wish { border-left: 2px solid #d8a657; padding-left: 18px; color: #6b2233; }
.author__signature { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; color: #6b2233; }
.author__signature span { font-size: 13px; color: #8c6a61; }
.author__signature b { font-family: var(--hand); font-size: 43px; font-weight: 500; line-height: 1; transform: rotate(-5deg); }
.author__seal {
  position: absolute; right: 26px; bottom: 26px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid rgba(169, 108, 45, .4); border-radius: 50%; color: #b88643; font-size: 24px;
}
@media (max-width: 900px) {
  .author__grid { grid-template-columns: 1fr; gap: 30px; max-width: 640px; }
  .author__photo { width: min(100%, 440px); justify-self: center; padding-inline: 16px; }
  .author__snapshot img { aspect-ratio: 1.12; }
}
@media (max-width: 600px) {
  .author__grid { gap: 28px; }
  .author__photo { width: min(100%, 360px); }
  .author__letter { padding: 28px 24px; border-radius: 28px; }
  .author__letter .h2 { font-size: clamp(29px, 7.5vw, 38px); }
  .author__body { font-size: 15px; line-height: 1.75; margin-top: 22px; }
  .author__seal { right: 22px; bottom: 23px; width: 36px; height: 36px; font-size: 20px; }
}
/* =========================================================
   6. Для кого
   ========================================================= */
.who { background: #fcf8ef; color: #101735; }
.who .container { width: min(1380px, 100% - 64px); }
.who .section-head { margin-bottom: 32px; }
.who .h2 { line-height: 1.1; }
.who__subtitle { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #4b5a7b; }
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wcard { position: relative; border: 1px solid #e9c490; border-radius: 34px; padding: 19px 19px 24px; text-align: center; background: radial-gradient(ellipse at top, #fffaf0, #fcf2df); display: flex; flex-direction: column; align-items: center; }
.wcard:nth-child(2) { border-color: #add3ed; background: radial-gradient(ellipse at top, #edf7fc, #e3f0f8); }
.wcard--gift { border-color: #dcb9e5; background: radial-gradient(ellipse at top, #fbf5fc, #f3eaf7); }
.wcard__image { width: 100%; height: auto; aspect-ratio: 1 / 1; flex: 0 0 auto; object-fit: cover; border-radius: 50%; margin-bottom: 12px; }
.wcard h3 { font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.wcard p { color: #3f5075; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; margin: 14px auto 0; max-width: 330px; text-wrap: pretty; }
.wcard .btn { margin-top: 18px; padding-inline: 30px; box-shadow: none; background: #e5b34f; color: #241a16; }
.who__note { text-align: center; margin-top: 24px; font-size: 16px; line-height: 1.5; color: #4b5a7b; }
.who__note::before { content: '— ✷ —'; display: block; margin-bottom: 10px; color: #dfa23d; font-size: 27px; letter-spacing: .15em; }
@media (min-width: 760px) {
  .wcard__image { width: 90%; margin-bottom: 28px; }
}
@media (max-width: 1000px) { .who__grid { gap: 14px; } .wcard { padding: 14px 14px 24px; border-radius: 26px; } }
@media (max-width: 759px) {
  .who .container { width: min(460px, 100% - 32px); }
  .who__grid { grid-template-columns: 1fr; gap: 20px; }
  .who .h2 { font-size: clamp(34px, 8vw, 48px); }
  .wcard { padding: 18px 18px 26px; }
  .wcard__image { width: min(100%, 340px); }
  .wcard h3 { font-size: 26px; }
  .wcard p { font-size: 17px; }
  .who__note { font-size: 15px; line-height: 1.6; }
}
/* =========================================================
   7. Цена
   ========================================================= */
.price { background: #fcf6e6; color: #101735; padding: clamp(60px, 7vw, 100px) 0; }
.price__grid { width: min(1380px, 100% - 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(24px, 3vw, 44px); border: 0; background: transparent; }
.price__art { min-width: 0; position: relative; }
.price__art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2px solid #eac976; }
.price__art::after { content: '✦'; position: absolute; bottom: -12px; right: 20px; color: #dfad4c; font-size: 38px; animation: purchase-star-glow 3.6s ease-in-out infinite; }
@keyframes purchase-star-glow {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 7px #edc76ba0); }
}
.pcard { min-width: 0; text-align: center; padding: 12px 0; }
.pcard__title { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.pcard__flourish { display: flex; align-items: center; gap: 12px; color: #dca342; margin: 12px 0 16px; font-size: 20px; }
.pcard__flourish::before, .pcard__flourish::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #dca342, transparent); }
.pcard__intro { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; max-width: 540px; margin: 0 auto; }
.pcard__price { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 20px 0 24px; }
.pcard__price b { font-size: clamp(54px, 6vw, 80px); line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.pcard__price span { text-align: left; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; }
.pcard__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 28px; }
.pcard__features li { position: relative; font-size: clamp(13px, 1.12vw, 16px); line-height: 1.5; padding: 0 14px; }
.pcard__features li + li { border-left: 1px solid #ead29c; }
.pcard__features li::before { content: '✦'; display: block; color: #dfad4c; font-size: 30px; line-height: 1; margin-bottom: 10px; }
.pcard__buy { height: auto; min-height: 62px; padding: 16px 20px; font-size: clamp(17px, 1.8vw, 24px); white-space: normal; background: linear-gradient(180deg, #f4cc6a, #dfa43a); border: 1px solid #cb9637; outline: 1px solid #fff1c4; outline-offset: -5px; box-shadow: 0 5px 10px #b6842520; }
.pcard__start { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; font-size: 15px; }
.pcard__start::before, .pcard__start::after { content: ''; width: 45px; height: 1px; background: #dfb355; }
@media (max-width: 759px) {
  .price__grid { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 20px; padding: 26px 18px; }
  .price__art { width: min(100%, 380px); margin-inline: auto; }
  .pcard__title { font-size: clamp(28px, 6.5vw, 40px); }
  .pcard__features li { padding-inline: 7px; font-size: 12px; }
  .pcard__buy { min-height: 58px; font-size: 18px; }
}
/* =========================================================
   8. FAQ
   ========================================================= */
.faq { background: var(--cream); padding-bottom: clamp(120px, 14vw, 170px); }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { background: #fff; border-radius: 22px; padding: 0 24px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 500;
  background: var(--cream); color: var(--violet); transition: transform .3s, background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); color: var(--night-900); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); line-height: 1.6; }
.faq details a { color: var(--violet); text-decoration: underline; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } }

/* =========================================================
   9. Подвал
   ========================================================= */
.footer {
  position: relative; background: var(--night-900); color: #fff;
  padding: 120px 0 calc(40px + env(safe-area-inset-bottom));
  background-image: radial-gradient(circle, rgba(255, 244, 220, .5) 1px, transparent 1.6px);
  background-size: 41px 41px;
}
.footer__drift { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer__muted { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.7; margin-top: 10px; }
.footer__links { display: grid; gap: 10px; font-size: 15px; }
.footer__links a { color: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer__links a:hover { color: var(--gold-soft); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } .footer { padding-bottom: 110px; } }

/* ---------- липкая кнопка (мобильный) ---------- */
.sticky-buy {
  position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; color: #fff;
  background: rgba(23, 15, 46, .82); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  visibility: hidden; pointer-events: none;
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
}
.sticky-buy.is-on { transform: none; visibility: visible; pointer-events: auto; }
.sticky-buy b { color: var(--gold-soft); }
@media (max-width: 900px) {
  .sticky-buy { display: flex; }
  .header__cta { display: none; }
}

/* ---------- тост ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 90px; transform: translate(-50%, 20px);
  padding: 14px 22px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .35s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- без анимаций ---------- */
.stage.is-static { height: auto; overflow: visible; }
.stage.is-static .hero { position: relative; height: var(--scene-height); overflow: hidden; }
.stage.is-static .village { position: relative; height: var(--scene-height); visibility: visible; opacity: 1; clip-path: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* Мерцающие звёзды на светлых секциях. */
.who, .price { isolation: isolate; overflow: hidden; }
.who > .container, .price > .container { z-index: 1; }
.section-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; color: #dfa83f; }
.section-star { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); line-height: 1; display: grid; place-items: center; font-size: var(--size); opacity: .5; transform: translate(-50%, -50%); animation: section-star-glow var(--duration) ease-in-out var(--delay) infinite; animation-play-state: paused; }
.section-stars.is-visible .section-star { animation-play-state: running; }
@keyframes section-star-glow {
  0%, 100% { opacity: .25; transform: translate(-50%, -50%) scale(.8); }
  50% { opacity: .85; transform: translate(-50%, -50%) scale(1.08); filter: drop-shadow(0 0 5px #edc76b80); }
}
@media (max-width: 759px) { .section-star { font-size: calc(var(--size) * .7); } }
@media (prefers-reduced-motion: reduce) { .section-star, .price__art::after { animation: none !important; opacity: .5; } }

