/* Сайт агентства JoyRest — дизайн «Вечерняя сцена» (вариант B, решение владельца 12 октября 2026).
   Тема: вечерняя (по умолчанию) и дневная — переключатель в шапке (js/theme.js, js/script.js).
   Цвета текста — только токены ниже. Контраст пар в обеих темах (текст ≥ 4.5, рамки ≥ 3)
   проверяет server/src/site.test.ts. Белый текст на пастели и пастельный текст на фоне запрещены. */
:root{
  color-scheme: dark;
  /* Вечерняя тема (основная). */
  --bg: #1A1714;
  --bg-alt: #24201C;
  --card: #2A2621;
  --ink: #F3ECE3;
  --ink-soft: #C7BCAC;
  --line: #423C34;
  --coral: #CB9C93;
  --emerald: #93A886;
  --gold: #C7A768;
  --wine: #AD8790;
  /* Логотип (currentColor в SVG) и его подложка в рамке: контраст ≥ 3. */
  --logo-color: #FBF6F1;
  --logo-bg: #1A1714;
  /* Текст на цветных заливках — всегда тёмный. Акцентный и зелёный текст на фоне. */
  --on-accent: #221E1B;
  --accent-text: #CB9C93;
  --green-text: #93A886;
  --total: #E3C68C;
  /* Кнопки: основная — пыльная роза с тёмным текстом, вторичная — контур. */
  --btn-primary-bg: #C49E96;
  --btn-primary-text: #221E1B;
  --btn-outline: #E3C68C;
  --btn-outline-text: #F3ECE3;
  --error-text: #E3AA9C;
  /* Прозрачные слои (не текст). */
  --header-bg: rgba(26,23,20,.86);
  --glass: rgba(42,38,33,.6);
  --shadow: 0 30px 60px -28px rgba(0,0,0,.75);
  --spot: rgba(243,223,174,.13);
  --overlay: rgba(10,9,8,.72);
  /* Фото «Как проходят наши вечера»: светлая распечатка и тёмный текст на ней — в обеих темах. */
  --paper: #F6EFE6;
  --paper-back: #E4DACD;
  --paper-ink: #221E1B;
  --paper-accent: #8A5148;
}
:root[data-theme="light"]{
  color-scheme: light;
  /* Дневная тема. */
  --bg: #FBF6F1;
  --bg-alt: #F3EAE2;
  --card: #FFFFFF;
  --ink: #322D28;
  --ink-soft: #6B6256;
  --line: #E6DBCB;
  --logo-color: #221E1B;
  --logo-bg: #FBF6F1;
  --accent-text: #8A5148;
  --green-text: #4F6A46;
  --total: #8A5148;
  --btn-outline: #9A7444;
  --btn-outline-text: #322D28;
  --error-text: #8A3B33;
  --header-bg: rgba(251,246,241,.86);
  --glass: rgba(255,255,255,.6);
  --shadow: 0 30px 60px -30px rgba(50,45,40,.35);
  --spot: rgba(199,167,104,.16);
  --overlay: rgba(34,30,27,.55);
}

/* ---------- Основа ---------- */
*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section, .hero{ scroll-margin-top: 80px; }
body{
  margin: 0; background-color: var(--bg); color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif; font-size: 17px; font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
body.modal-open{ overflow: hidden; }
h1, h2, h3{ font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; margin: 0; letter-spacing: 0; text-wrap: balance; }
h2{ font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; }
h3{ font-size: 24px; line-height: 1.15; }
p{ margin: 0 0 12px; }
a{ color: inherit; text-decoration: none; }
button, input, select, textarea{ font: inherit; color: inherit; }
button{ cursor: pointer; }
img{ max-width: 100%; height: auto; }
:focus-visible{ outline: 3px solid var(--btn-outline); outline-offset: 3px; }
.link{ color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.skip{ position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--btn-primary-bg); color: var(--btn-primary-text); font-weight: 600; }
.skip:focus{ top: 12px; }
.wrap{ --wrap-pad: 32px; max-width: 1200px; margin: 0 auto; padding: 0 var(--wrap-pad); }
/* Полоса с фоном — во всю ширину экрана: фон у секции, поля — у .wrap (прокрутки вбок нет). */
.band{ background: var(--bg-alt); transition: background-color .5s ease; }
.section{ padding: 104px 0; }
.eyebrow{ display: flex; align-items: center; gap: 12px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; }
.eyebrow__n{ flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--btn-outline); color: var(--ink); font-size: 18px; letter-spacing: 0; }
/* «Дальше» в конце раздела: куда ведёт страница */
.next{ display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 40px 0 0; padding: 18px 22px; min-height: 64px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; background: var(--card); }
.next:hover{ border-color: var(--btn-outline); }
.next:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 3px; }
.next__k{ font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.next__t{ flex: 1 1 200px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; line-height: 1.15; }
.next__a{ font-size: 24px; color: var(--accent-text); }
/* Карта страницы на первом экране */
.route{ margin: 28px 0 0; }
.route__title{ margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.route__list{ display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.route__list a{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.route__list a:hover{ border-color: var(--btn-outline); }
.route__list a:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 2px; }
.route__list b{ display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line); font-size: 14px; }
.sub{ margin: 14px 0 0; color: var(--ink-soft); max-width: 60ch; }
.hint{ margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.hint__hl{ color: var(--accent-text); font-weight: 600; }
/* Появление при прокрутке: двигается только положение — текст виден, даже если скрипт не сработал. */
.reveal{ transform: translateY(18px); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in{ transform: none; }

/* ---------- Кнопки (три вида, как на платформе) ---------- */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-size: 16px; font-weight: 600; text-align: center; transition: transform .25s ease, background-color .3s ease; }
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--btn-primary-bg); color: var(--btn-primary-text); box-shadow: 0 10px 26px rgba(196,158,150,.3); }
.btn--outline{ background: transparent; border-color: var(--btn-outline); color: var(--btn-outline-text); }
.btn--block{ display: flex; width: 100%; }
.hbtn{ display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; border: 1.5px solid transparent; transition: transform .25s ease; }
.hbtn:hover{ transform: translateY(-2px); }
.hbtn--primary{ background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.hbtn--secondary{ border-color: var(--btn-outline); color: var(--btn-outline-text); background: transparent; }

/* ---------- Шапка ---------- */
header{ position: sticky; top: 0; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); transition: background-color .5s ease, box-shadow .3s ease; }
header.scrolled{ box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.nav{ display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo{ display: inline-flex; flex: none; border-radius: 15px; transition: opacity .35s ease, transform .35s ease, visibility 0s linear 0s; }
header.logo-hidden .logo{ opacity: 0; transform: scale(0.92); visibility: hidden; pointer-events: none; transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.logo-frame{ display: inline-flex; padding: 3px; border-radius: 15px; background: linear-gradient(120deg, var(--coral), var(--gold), var(--emerald), var(--wine), var(--coral)); background-size: 300% 300%; animation: shimmer 6s ease infinite; }
.logo-tile{ display: flex; align-items: center; height: 46px; padding: 6px 12px; border-radius: 12px; background: var(--logo-bg); color: var(--logo-color); transition: background-color .5s ease, height .3s ease; }
header.scrolled .logo-tile{ height: 40px; }
.logo-svg{ display: block; height: 100%; }
.logo-svg svg{ display: block; height: 100%; width: auto; }
.logo-svg--monogram{ display: none; height: 80%; }
/* Русская подпись к латинскому логотипу (закон о русском языке): не мельче латинских строк. */
.logo-ru{ display: grid; align-content: center; gap: 2px; margin-left: 10px; padding-left: 10px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 35%, transparent); line-height: 1; white-space: nowrap; }
.logo-ru__name{ font-family: 'Jost', sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.logo-ru__sub{ font-family: 'Jost', sans-serif; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.nav-links{ display: none; flex: 1; justify-content: center; gap: 26px; font-size: 15px; }
.nav-links a{ position: relative; display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; padding: 0 4px; }
.nav-links a::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav-links a:hover::after{ transform: scaleX(1); }
.header-actions{ display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle{ position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; overflow: hidden; transition: background-color .5s ease; }
.theme-toggle svg{ position: absolute; transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .4s ease; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme]) .i-moon{ transform: rotate(120deg) scale(.3); opacity: 0; }
:root[data-theme="light"] .i-sun{ transform: rotate(-120deg) scale(.3); opacity: 0; }
.burger{ display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }
.burger span{ display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.mobile-panel{ display: none; flex-direction: column; padding: 8px 20px 20px; border-top: 1px solid var(--line); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; }
.mobile-panel.open{ display: flex; }
.mobile-panel a{ display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 17px; }
.mobile-panel .nav-cta{ justify-content: center; margin-top: 14px; border: 0; border-radius: 999px; background: var(--btn-primary-bg); color: var(--btn-primary-text); font-weight: 600; }
@media (min-width: 1100px){
  .nav-links{ display: flex; }
  .burger, .mobile-panel, .mobile-panel.open{ display: none; }
  .header-actions{ margin-left: 0; }
}

/* ---------- Направления, которых пока нет (data-service-* у <body>) ----------
   data-needs="…" — элемент виден, только если включены все перечисленные; data-unless="…" — замена,
   пока хоть одно выключено. Варианты <select> убирает js/script.js. */
body[data-service-dj="off"] [data-needs~="dj"],
body[data-service-music="off"] [data-needs~="music"],
body[data-service-venue="off"] [data-needs~="venue"]{ display: none !important; }
body[data-service-dj="on"][data-service-music="on"][data-service-venue="on"] [data-unless="dj music venue"],
body[data-service-venue="on"] [data-unless="venue"]{ display: none !important; }

/* ---------- Первый экран ---------- */
.hero{ position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero > *:not(.blob):not(.spot):not(.dust){ position: relative; z-index: 1; }
.hero__grid{ display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.spot{ position: absolute; top: -35%; width: 460px; height: 170%; background: linear-gradient(180deg, var(--spot), transparent 75%); filter: blur(26px); transform-origin: top center; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); pointer-events: none; }
.spot--1{ left: 6%; animation: sweepA 11s ease-in-out infinite alternate; }
.spot--2{ left: 44%; animation: sweepB 13s ease-in-out infinite alternate; }
.blob{ position: absolute; border-radius: 50%; filter: blur(60px); opacity: .3; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.blob--1{ width: 340px; height: 340px; background: var(--coral); top: -120px; right: 60px; }
.blob--2{ width: 260px; height: 260px; background: var(--gold); bottom: -80px; right: 340px; animation-delay: 2s; }
.dust{ position: absolute; inset: 0; pointer-events: none; }
.dust i{ position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, var(--gold), rgba(199,167,104,0) 70%); opacity: 0; animation: dust var(--u) ease-in-out infinite var(--d); }
.hero h1{ font-size: clamp(44px, 5.6vw, 72px); line-height: 1.03; }
.word{ display: inline-block; animation: wordIn 1.2s cubic-bezier(.22,1,.36,1) both; }
.word--2{ animation-delay: .25s; }
.shine{ background: linear-gradient(100deg, var(--emb-1), var(--emb-2) 25%, var(--emb-3) 50%, var(--emb-4) 75%, var(--emb-1)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordIn 1.2s cubic-bezier(.22,1,.36,1) .25s both, textShine 8s linear infinite; }
.ornament{ display: flex; align-items: center; gap: 14px; max-width: 340px; margin-top: 22px; color: var(--btn-outline); }
.ornament::before, .ornament::after{ content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ornament span{ font-size: 12px; animation: twinkle 3s ease-in-out infinite; }
.lead{ margin: 22px 0 0; max-width: 46ch; color: var(--ink-soft); }
.lead b{ color: var(--accent-text); font-weight: 500; }
.hero__ctas{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Короткая строка под кнопками: два главных отличия от других (решение владельца 14 октября 2026). */
.hero__points{ display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.hero__points li{ display: flex; align-items: center; gap: 8px; }
.hero__points li::before{ content: "✦"; font-size: 11px; color: var(--accent-text); }
.glass{ padding: 8px 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.hero__side{ animation: rise .9s cubic-bezier(.22,1,.36,1) .4s both; }
.side-label{ color: var(--ink-soft); font-size: 14px; margin: 0; }
.hero__side > .side-label{ padding-top: 18px; }
.tiles{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 6px; }
.tile{ position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 96px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.25; overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .3s ease, background-color .5s ease; }
.tile svg{ color: var(--accent-text); flex: none; }
.tile::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(243,223,174,.22) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s ease; pointer-events: none; }
a.tile:hover{ transform: translateY(-4px); border-color: var(--btn-outline); }
a.tile:hover::after{ transform: translateX(100%); }
.tile--wide{ grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }
.tile--soon{ border-style: dashed; color: var(--ink-soft); }
.tile--soon svg{ color: var(--ink-soft); }
.soon-badge{ position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: var(--on-accent); }
.side-stat{ padding: 18px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.side-stat__num{ font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--green-text); }

/* Эмблема первого экрана: фирменный градиент под маской формы эмблемы (контраст каждого цвета
   с фоном ≥ 4.5 — server/src/site.test.ts), блик раз в 5 с, свечение «дышит» вместе с бликом,
   наклон до ±12°. Только transform и opacity. Пока эмблема видна, логотип в шапке скрыт. */
.emblem{
  /* Вечерняя тема — светлый градиент из фирменных цветов: золото → шалфей → роза. */
  --emb-1: #F3DFAE; --emb-2: #E3C68C; --emb-3: #A3C2AA; --emb-4: #E3AA9C;
  --emb-glint: rgba(255,251,240,1); --emb-glow: rgba(227,198,140,0.5);
  position: relative; isolation: isolate;
  width: clamp(210px, 58vw, 300px); aspect-ratio: 1000 / 723; margin: 0; perspective: 800px;
  animation: rise .9s cubic-bezier(.22,1,.36,1) both;
}
:root[data-theme="light"] .emblem{ --emb-1: #8A5148; --emb-2: #6B4038; --emb-3: #7A5A2C; --emb-4: #362E29; --emb-glint: rgba(243,223,174,0.95); --emb-glow: rgba(227,198,140,0.55); }
/* «Медальон»: русская подпись под эмблемой в её же координатах — ширина строк как у JOYREST и EVENTS & EXPERIENCES,
   цвета — тот же градиент темы, что у эмблемы. Без наклона и блика (они только у самой эмблемы). */
.emblem-ru{ --emb-1: #F3DFAE; --emb-2: #E3C68C; --emb-3: #A3C2AA; --emb-4: #E3AA9C;
  display: block; width: clamp(210px, 58vw, 300px); height: auto; margin: 0 0 24px; overflow: visible;
  animation: rise .9s cubic-bezier(.22,1,.36,1) .1s both; }
:root[data-theme="light"] .emblem-ru{ --emb-1: #8A5148; --emb-2: #6B4038; --emb-3: #7A5A2C; --emb-4: #362E29; }
.emblem-ru__s1{ stop-color: var(--emb-1); } .emblem-ru__s2{ stop-color: var(--emb-2); }
.emblem-ru__s3{ stop-color: var(--emb-3); } .emblem-ru__s4{ stop-color: var(--emb-4); }
.emblem-ru__name{ font-family: 'Jost', sans-serif; font-weight: 400; font-size: 74px; }
.emblem-ru__sub{ font-family: 'Jost', sans-serif; font-size: 24px; }
/* Заголовок «без хлопот» — тот же градиент, что у эмблемы. */
.hero h1{ --emb-1: #F3DFAE; --emb-2: #E3C68C; --emb-3: #A3C2AA; --emb-4: #E3AA9C; }
:root[data-theme="light"] .hero h1{ --emb-1: #8A5148; --emb-2: #6B4038; --emb-3: #7A5A2C; --emb-4: #362E29; }
.emblem-glow{ position: absolute; inset: -22% -18%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, var(--emb-glow), transparent); opacity: .35; animation: emblemGlow 5s ease-in-out infinite 1s; will-change: transform, opacity; }
.emblem-tilt{ position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: emblemTilt 14s ease-in-out infinite; will-change: transform; }
.emblem-svg{ display: block; width: 100%; height: 100%; color: var(--emb-1); }
.emblem-svg svg{ display: block; width: 100%; height: 100%; }
.emblem-paint{ display: none; }
@supports (mask-size: contain) or (-webkit-mask-size: contain){
  .emblem-paint{ display: block; position: absolute; inset: 0; overflow: hidden; -webkit-mask: var(--emblem-mask) center / contain no-repeat; mask: var(--emblem-mask) center / contain no-repeat; }
}
.emblem-gradient{ position: absolute; top: 0; bottom: 0; left: -50%; width: 200%; background: linear-gradient(110deg, var(--emb-1), var(--emb-2) 20%, var(--emb-3) 40%, var(--emb-4) 60%, var(--emb-2) 80%, var(--emb-1)); animation: emblemFlow 14s ease-in-out infinite; will-change: transform; }
.emblem-glint{ position: absolute; top: -20%; bottom: -20%; left: 0; width: 50%; opacity: 0; background: linear-gradient(100deg, transparent 10%, var(--emb-glint) 50%, transparent 90%); transform: translateX(-120%) skewX(-14deg); mix-blend-mode: plus-lighter; animation: emblemGlint 5s ease-in-out infinite 1s; will-change: transform, opacity; }
.emblem.is-paused .emblem-tilt, .emblem.is-paused .emblem-gradient, .emblem.is-paused .emblem-glint, .emblem.is-paused .emblem-glow{ animation-play-state: paused; }
/* Наклон от датчика телефона (js/script.js): тогда своя анимация наклона не нужна. */
.emblem.is-device .emblem-tilt{ animation: none; transition: transform .2s linear; }
@keyframes emblemTilt{
  0%, 100%{ transform: rotateX(0deg) rotateY(0deg); }
  25%{ transform: rotateX(7deg) rotateY(-12deg); }
  50%{ transform: rotateX(-6deg) rotateY(9deg); }
  75%{ transform: rotateX(-10deg) rotateY(-5deg); }
}
@keyframes emblemFlow{
  0%, 100%{ transform: translateX(0); }
  50%{ transform: translateX(25%); }
}
@keyframes emblemGlint{
  0%{ transform: translateX(-120%) skewX(-14deg); opacity: 0; }
  6%{ opacity: 1; }
  40%{ transform: translateX(220%) skewX(-14deg); opacity: 1; }
  46%, 100%{ transform: translateX(220%) skewX(-14deg); opacity: 0; }
}
@keyframes emblemGlow{
  0%, 100%{ transform: scale(0.94); opacity: .3; }
  23%{ transform: scale(1.04); opacity: .6; }
  50%{ transform: scale(0.97); opacity: .38; }
}

/* ---------- Бегущая строка цен ---------- */
.ticker{ overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.ticker__in{ display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker__in{ animation-play-state: paused; }
.ticker__item{ display: flex; align-items: center; gap: 14px; padding: 18px 28px; white-space: nowrap; font-size: 16px; }
.ticker__item b{ font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--total); }
.ticker__star{ color: var(--btn-outline); font-size: 12px; }

/* ---------- Калькулятор ---------- */
.calc{ display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; margin-top: 40px; align-items: start; }
.step-q{ margin-bottom: 30px; }
.step-q__label{ display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.step-q__n{ display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--btn-outline); color: var(--accent-text); font-size: 12px; flex: none; }
.packs{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pack{ position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease, background-color .5s ease; }
.pack:hover{ transform: translateY(-4px); }
.pack.is-on{ border-color: var(--btn-outline); box-shadow: 0 0 0 1px var(--btn-outline), var(--shadow); }
.pack__name{ font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; line-height: 1.1; padding-right: 36px; }
.pack__games{ font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.pack__from{ margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--accent-text); }
.pack__badge{ position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: var(--on-accent); }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chips--6{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.chips--5{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chip{ min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-size: 15px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.chips--6 .chip, .chips--5 .chip{ padding: 0 2px; white-space: nowrap; font-size: 14px; }
.chip.is-on{ background: var(--ink); border-color: var(--ink); color: var(--bg); }
.box{ display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--btn-outline); transition: background-color .25s ease; }
.box svg{ opacity: 0; transform: scale(.5); color: var(--bg); transition: opacity .25s ease, transform .25s cubic-bezier(.22,1.4,.36,1); }
.is-on > .box, .is-on .check__left > .box{ background: var(--btn-outline); }
.is-on > .box svg, .is-on .check__left > .box svg{ opacity: 1; transform: none; }
.extras{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.extra{ display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; transition: border-color .25s ease, transform .3s ease, background-color .5s ease; }
.extra:hover{ transform: translateY(-2px); }
.extra.is-on{ border-color: var(--btn-outline); box-shadow: inset 0 0 0 1px var(--btn-outline); }
.extra__text{ display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.extra__name{ font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; line-height: 1.1; }
.extra__games{ font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.extra__price{ display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; color: var(--accent-text); white-space: nowrap; }
.extra__old{ font-size: 12px; color: var(--ink-soft); }
.addons{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.addon{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.addon__row{ display: flex; gap: 6px; align-items: stretch; }
.check{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 15px; text-align: left; transition: border-color .25s ease, background-color .5s ease; }
.check.is-on{ border-color: var(--btn-outline); }
.check__left{ display: flex; align-items: center; gap: 12px; min-width: 0; }
.check__label{ line-height: 1.3; }
.check__price{ color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.tag{ display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--on-accent); font-size: 11px; font-weight: 600; vertical-align: middle; }
.info{ flex: none; width: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 700; font-size: 20px; color: var(--accent-text); transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.info:hover{ border-color: var(--btn-outline); }
.info[aria-expanded="true"]{ background: var(--btn-outline); border-color: var(--btn-outline); color: var(--bg); }
.addon__desc{ margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-soft); animation: rise .35s ease both; }

.summary{ position: sticky; top: 96px; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; transition: background-color .5s ease; }
.summary::before{ content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--coral), var(--gold), var(--emerald), var(--wine), var(--coral)); background-size: 300% 100%; animation: shimmer 6s ease infinite; }
.summary__label{ margin: 0; font-size: 14px; color: var(--ink-soft); }
.summary__indiv-title{ margin: 10px 0 6px; font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; line-height: 1.1; color: var(--total); }
.summary__note, .summary__text{ font-size: 15px; color: var(--ink-soft); }
.summary__text{ margin: 0; }
.levels{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 14px; }
.level{ display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-alt); text-align: center; animation: priceIn .5s cubic-bezier(.22,1,.36,1) both; transition: background-color .5s ease; }
button.level{ width: 100%; min-height: 44px; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.level:not(.level--top):hover{ border-color: var(--btn-outline); }
.level--top{ background: transparent; border-color: var(--btn-outline); box-shadow: inset 0 0 0 1px var(--btn-outline); }
.level__name{ font-size: 12px; line-height: 1.25; color: var(--ink-soft); }
.level--top .level__name{ color: var(--ink); font-weight: 600; }
.level__badge{ min-height: 14px; font-size: 11px; line-height: 1.2; font-weight: 600; color: var(--green-text); }
.level__price{ margin-top: 4px; font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; line-height: 1.1; white-space: nowrap; }
.level--top .level__price{ color: var(--total); }
.level__calc{ margin-top: 2px; font-size: 11px; line-height: 1.25; color: var(--ink-soft); white-space: normal; }
/* Праздничная цена (решение владельца 22 октября 2026): дата праздника, плашка причины, подсказка «успейте». */
.datebox{ display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.datebox__input{ min-height: 52px; min-width: 0; flex: 1 1 220px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--btn-outline); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.datebox__input:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 2px; }
.datebox__info{ margin-bottom: 12px; }
.timebox{ display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; }
.timebox__label{ flex: 1 0 100%; font-size: 15px; font-weight: 500; color: var(--ink); }
.timebox__label span{ font-weight: 400; color: var(--ink-soft); }
.timebox__input{ flex: 0 1 180px; }
.datebox__info b{ color: var(--ink); font-weight: 600; }
#calcDays .chip:disabled{ opacity: .55; cursor: default; }
.season{ margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--accent-text); background: var(--bg-alt); }
.season[hidden], .season-hint[hidden], .summary__nodate[hidden], .nynote[hidden]{ display: none; }
.season__title{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; font-weight: 600; color: var(--ink); }
.season__badge{ color: var(--accent-text); white-space: nowrap; }
.season__text{ margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.season__note{ margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
.season-hint{ margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--green-text); font-size: 14.5px; color: var(--green-text); }
.summary__nodate{ margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.nynote{ margin: 0 0 24px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--btn-outline); background: var(--card); display: grid; gap: 10px; max-width: 640px; }
.nynote__title{ margin: 0; font-weight: 600; font-size: 18px; color: var(--total); }
.nynote__text{ margin: 0; color: var(--ink-soft); font-size: 15px; }
.nynote__rows{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nynote__rows li{ display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--bg-alt); color: var(--ink); font-size: 15px; }
.nynote__rows b{ color: var(--accent-text); white-space: nowrap; }
.nynote__go{ justify-self: start; }
.duration{ display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--green-text); background: linear-gradient(120deg, rgba(147,168,134,.22), rgba(199,167,104,.16)); }
.duration__icon{ display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--emerald); color: var(--on-accent); }
.duration__label{ margin: 0; font-size: 13px; color: var(--ink-soft); }
.duration__value{ margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; line-height: 1.05; color: var(--green-text); }
.duration__parts{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.duration__parts span{ padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 12px; color: var(--ink); }
.summary__lines{ list-style: none; margin: 18px 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.summary__lines li{ display: flex; justify-content: space-between; gap: 12px; }
.summary__lines li span:first-child{ color: var(--ink-soft); }
.summary__lines li span:last-child{ white-space: nowrap; }
.included{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.included span{ padding: 5px 11px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); font-size: 13px; }
.summary__foot{ margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.mbar{ display: none; }
[hidden]{ display: none !important; }

/* ---------- Ведущие ---------- */
.hosts{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.host{ position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); transition: background-color .5s ease; }
.host--main{ border-color: var(--btn-outline); box-shadow: inset 0 0 0 1px var(--btn-outline); }
.host__badge{ align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.host h3{ margin-bottom: 12px; font-size: 28px; }
.host__sub{ display: block; margin-top: 4px; font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.host p{ font-size: 15px; color: var(--ink-soft); }
.host__how{ margin: 4px 0 6px; color: var(--ink) !important; font-weight: 600; }
.host__list{ margin: 0 0 20px; padding-left: 18px; font-size: 15px; color: var(--ink-soft); }
.host__list li{ margin-bottom: 6px; }
.host__choose{ margin-top: auto; align-self: flex-start; }
.hosts__note{ margin: 24px 0 0; max-width: 70ch; color: var(--ink-soft); font-size: 15px; }
.busy{ display: flex; gap: 16px; align-items: flex-start; margin: 24px 0 0; padding: 20px 22px; max-width: 820px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 18px; background: var(--card); }
.busy__icon{ flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--spot); color: var(--accent-text); }
.busy__title{ margin: 0 0 6px; font-size: 20px; }
.busy__text{ margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 560px){ .busy{ padding: 16px; gap: 12px; } .busy__icon{ width: 38px; height: 38px; } .busy__title{ font-size: 18px; } }

/* ---------- Обзор игр ---------- */
/* Промо-ролик в начале «Обзора игр»: превью 9:16 и текст; плеер — поверх страницы (.vmodal). */
.promo{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 920px; margin: 40px auto 8px; padding: 32px 24px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, var(--spot), transparent 70%), var(--card); color: var(--ink); font: inherit; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: border-color .25s ease, transform .25s ease; }
.promo:hover{ border-color: var(--btn-outline); transform: translateY(-3px); }
.promo:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 3px; }
.promo__thumb{ position: relative; flex: none; width: min(64vw, 260px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #141110; border: 1.5px solid var(--btn-outline); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), 0 0 0 8px rgba(227,198,140,.06); }
.promo__thumb img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.promo:hover .promo__thumb img{ transform: scale(1.04); }
.promo__play{ position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(251,246,241,.94); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 10px rgba(251,246,241,.18); animation: promoPulse 2.4s ease-in-out infinite; }
.promo__play::after{ content: ""; position: absolute; left: 30px; top: 22px; border-left: 26px solid #221E1B; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.promo__time{ position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(20,17,16,.75); color: #FBF6F1; font-size: 14px; }
@keyframes promoPulse{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.08); } }
.promo__text{ display: grid; gap: 10px; min-width: 0; max-width: 420px; justify-items: center; }
.promo__text b{ font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 7vw, 44px); font-weight: 700; line-height: 1.05; text-wrap: balance; }
.promo__text > span{ color: var(--ink-soft); font-size: 17px; line-height: 1.45; }
.promo__text .promo__go{ display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 8px; padding: 0 28px; border-radius: 999px; background: var(--btn-primary-bg); color: var(--btn-primary-text); font-weight: 600; font-size: 16px; }
@media (min-width: 760px){
  .promo{ flex-direction: row; justify-content: center; gap: 56px; padding: 40px 56px; text-align: left; }
  .promo__thumb{ width: 280px; }
  .promo__text{ justify-items: start; }
}
.vmodal{ position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(10,8,7,.88); }
.vmodal[hidden]{ display: none; }
.vmodal__box{ position: relative; width: min(100%, calc(88vh * 9 / 16), 484px); aspect-ratio: 9 / 16; }
.vmodal__box video{ display: block; width: 100%; height: 100%; border-radius: 18px; background: #141110; object-fit: contain; }
.vmodal__close{ position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20,17,16,.7); color: #FBF6F1; font-size: 20px; cursor: pointer; }
.vmodal__close:focus-visible{ outline: 2px solid #E3C68C; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){ .promo__play{ animation: none; } .promo:hover{ transform: none; } }
.filters{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 15px; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.filter__n{ display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bg-alt); color: var(--ink-soft); font-size: 12px; }
.filter.is-on{ background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter.is-on .filter__n{ background: var(--coral); color: var(--on-accent); }
.games{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.game{ display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); animation: rise .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 50ms); transition: transform .4s cubic-bezier(.22,1,.36,1), background-color .5s ease; }
.game:hover{ transform: translateY(-6px); }
/* Снимки на тёмной сцене в обеих темах — это экраны и карточки платформы. */
.game__media{ position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14px; overflow: hidden; background: radial-gradient(ellipse at center, #2A2621, #0F0D0C 80%); }
.game__media img{ display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; transition: transform .9s cubic-bezier(.22,1,.36,1); }
.game:hover .game__media img{ transform: scale(1.05); }
.game__media--art{ padding: 0; background: #14100D; }
.game__media--art img{ width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; }
.game__new{ position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: #E3C68C; color: #221E1B; font-size: 12px; font-weight: 600; }
.game__body{ display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.game__cat{ margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.game__phone{ color: var(--green-text); text-transform: none; letter-spacing: 0; font-weight: 600; }
.game h3{ margin: 4px 0 6px; font-size: 26px; }
.game__body > p:not(.game__cat){ font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.game__foot{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.game__pack{ padding: 5px 12px; border-radius: 999px; border: 1px solid var(--btn-outline); font-size: 13px; color: var(--ink); }
.game__rules{ min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.games__more{ display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Платформа ---------- */
.how{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.how__item{ padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: background-color .5s ease; }
.how__num{ margin: 0 0 12px; font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 600; line-height: 1; color: var(--total); }
.how__item h3{ font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.how__item p{ margin: 0; font-size: 15px; color: var(--ink-soft); }
.shots{ display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.shot{ margin: 0; }
.shot img{ display: block; width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0F0D0C; }
.shot--phone img{ max-width: 320px; margin: 0 auto; }
.shot figcaption{ margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.shot figcaption strong{ color: var(--ink); }

/* ---------- Условия, шаги, вопросы ---------- */
.terms{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.terms__card{ position: relative; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: background-color .5s ease; }
.terms__card--accent{ border-color: var(--btn-outline); }
.terms__badge{ display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; background: var(--coral); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.terms__card h3{ margin-bottom: 10px; }
.terms__card p{ font-size: 15px; color: var(--ink-soft); }
.terms__card p:last-child{ margin-bottom: 0; }
.terms__more{ margin: 22px 0 0; font-size: 15px; color: var(--ink-soft); }
.steps{ list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps__item{ padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: background-color .5s ease; }
.steps__n{ display: block; margin-bottom: 12px; font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; line-height: 1; color: var(--total); }
.steps__item h3{ font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.steps__item p{ margin: 0; font-size: 15px; color: var(--ink-soft); }
.callout{ margin: 28px 0 0; max-width: 70ch; padding: 18px 22px; border-left: 3px solid var(--coral); border-radius: 12px; background: var(--bg); font-size: 15px; color: var(--ink-soft); }
.callout strong{ color: var(--ink); }
.faq{ max-width: 860px; margin-top: 32px; }
.faq__item{ border-bottom: 1px solid var(--line); }
.faq__item summary{ display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; list-style: none; cursor: pointer; font-family: 'Cormorant Garamond', serif; font-size: 23px; font-weight: 600; line-height: 1.2; }
.faq__item summary::-webkit-details-marker{ display: none; }
.faq__item summary::after{ content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--btn-outline); color: var(--accent-text); font-family: 'Jost', sans-serif; font-size: 20px; transition: transform .3s ease; }
.faq__item[open] summary::after{ transform: rotate(45deg); }
.faq__item p{ margin: 0 0 18px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Telegram и отзыв ---------- */
#reviews .btn--outline{ margin-top: 24px; }
[data-review-form="off"] #openReviewForm,
[data-review-form="off"] #reviewFormWrap{ display: none; }
.tg-card{ display: flex; gap: 32px; align-items: center; margin-top: 32px; max-width: 760px; padding: 28px 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); transition: background-color .5s ease; }
.tg-card__body{ flex: 1; min-width: 0; }
.tg-card__head{ display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tg-card__head h3{ font-size: 24px; margin: 0; }
.tg-icon{ width: 34px; height: 34px; flex: none; color: #5B8FB0; }
.tg-icon__plane{ fill: #FBF6F1; }
.tg-card p{ margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.tg-card__actions{ display: flex; flex-wrap: wrap; gap: 8px; }
.tg-card a[data-tg-chat][href=""]{ display: none; }
.tg-card__qr{ display: none; }
@media (min-width: 761px){
  .tg-card__qr{ display: block; width: 136px; flex: none; }
}
.tg-card__qr > svg{ display: block; width: 100%; height: auto; }
.review-form-wrap{ display: none; max-width: 560px; margin-top: 20px; }
.review-form-wrap.open{ display: block; }
.rating-stars{ display: flex; gap: 4px; }
.rating-stars button{ width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; color: var(--line); }
.rating-stars button.active{ color: var(--btn-outline); }

/* ---------- Формы ---------- */
.contact{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.contact__info p{ color: var(--ink-soft); margin-top: 14px; }
.contact__list{ list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.contact__list a{ text-decoration: underline; text-underline-offset: 3px; }
.form{ display: flex; flex-direction: column; gap: 16px; }
.form--card{ padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: background-color .5s ease; }
.field{ display: flex; flex-direction: column; gap: 6px; }
.field label{ font-size: 14px; color: var(--ink-soft); }
input[type="text"], input[type="tel"], input[type="number"], select, textarea{
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 16px; transition: border-color .25s ease, background-color .5s ease;
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus{ outline: none; border-color: var(--btn-outline); box-shadow: 0 0 0 3px rgba(227,198,140,.25); }
/* «Ваш расчёт» в заявке: выбор калькулятора и три цены; без расчёта — ссылка на калькулятор. */
.calc-card{ margin: 0 0 18px; padding: 18px; border-radius: 16px; border: 1px solid var(--total); background: linear-gradient(135deg, var(--spot), transparent 70%), var(--card); }
.calc-card[hidden], .calc-link[hidden]{ display: none; }
.calc-card__head{ display: flex; flex-direction: column; gap: 2px; }
.calc-card__label{ margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.calc-card__type{ margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.calc-card__parts{ margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); overflow-wrap: anywhere; }
.calc-card__totals{ list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.calc-card__totals li{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.calc-card__totals li.calc-card__row{ display: block; }
.calc-card__totals li strong{ white-space: nowrap; font-size: 17px; color: var(--total); }
.calc-card__dur{ margin: 10px 0 0; font-size: 14px; color: var(--green-text); }
.calc-card__actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.calc-card__actions .btn{ min-height: 48px; padding: 0 22px; }
.calc-card__remove{ min-height: 48px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.calc-link{ margin: 0 0 18px; font-size: 15px; }
.calc-card__lv{ display: flex; justify-content: space-between; align-items: center; gap: 12px; width: calc(100% + 24px); min-height: 44px; padding: 6px 12px; margin: 0 -12px; box-sizing: border-box; border: 1.5px solid transparent; border-radius: 12px; background: none; font: inherit; font-size: 15px; color: var(--ink-soft); text-align: left; cursor: pointer; }
.calc-card__lv strong{ white-space: nowrap; font-size: 17px; color: var(--total); }
.calc-card__lv.is-on{ border-color: var(--btn-outline); color: var(--ink); background: var(--spot); }
.calc-card__lv.is-on span::after{ content: ' ✓'; color: var(--green-text); }
.calc-card__hint{ margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.summary__linked{ margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--green-text); }
.summary__linked[hidden]{ display: none; }
.top-toast{ position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 84px); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto; padding: 12px 12px 12px 18px; border-radius: 16px; border: 1px solid var(--green-text); background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; animation: toast-in .35s cubic-bezier(.22,1,.36,1); }
.top-toast[hidden]{ display: none; }
.top-toast__action{ flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--btn-outline); border-radius: 999px; background: transparent; color: var(--btn-outline-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.top-toast__action[hidden]{ display: none; }
@keyframes toast-in{ from{ opacity: 0; transform: translateY(-12px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .top-toast{ animation: none; } }
.calc-link a{ display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.form-more{ border: 1px solid var(--line); border-radius: 14px; }
.form-more summary{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; list-style: none; cursor: pointer; }
.form-more summary::-webkit-details-marker{ display: none; }
.form-more__text{ display: flex; flex-direction: column; }
.form-more__title{ font-weight: 500; }
.form-more__hint{ font-size: 13px; color: var(--ink-soft); }
.form-more__arrow{ transition: transform .3s ease; color: var(--accent-text); }
.form-more[open] .form-more__arrow{ transform: rotate(180deg); }
.form-more[open] .form-more__hint{ display: none; }
.form-more__body{ display: flex; flex-direction: column; gap: 16px; padding: 0 16px 16px; }
.consent-row{ display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.consent-row input{ flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #C49E96; }
.consent-row a{ color: var(--accent-text); text-decoration: underline; }
.privacy-link{ position: relative; padding: 0; border: 0; background: none; color: var(--accent-text); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Ссылка внутри предложения: строку не раздвигаем, а пальцу даём зону касания 44 px по высоте. */
.privacy-link::after{ content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.footer .privacy-link{ color: inherit; }
/* На главной снизу — место под плавающие «Спросить Джой» и «Задать вопрос», иначе они закрывали ссылку на политику. */
body:has(#joyFab) .footer{ padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.form-note{ display: none; margin: 0; font-size: 14px; color: var(--green-text); }
.form-note.show{ display: block; }
/* Ошибка отправки и скрытое поле-ловушка для ботов (люди его не видят). */
.form-error{ display: none; margin: 0; font-size: 14px; color: var(--error-text); }
.form-error.show{ display: block; }
.form-error a{ color: inherit; text-decoration: underline; }
.hp-field{ position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
button[type="submit"]:disabled{ opacity: .6; cursor: wait; transform: none; }

/* ---------- «Задать вопрос» и окна ---------- */
.ask-fab{ position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s ease, opacity .3s ease; }
.ask-panel{ position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; display: none; width: min(360px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow-y: auto; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.ask-panel.open{ display: block; animation: rise .3s ease both; }
.ask-panel h4{ margin: 0 0 6px; font-family: 'Cormorant Garamond', serif; font-size: 24px; }
.ask-panel > p{ font-size: 14px; color: var(--ink-soft); }
.ask-panel form{ display: flex; flex-direction: column; gap: 12px; }
.modal{ position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; padding: 20px; background: var(--overlay); }
.modal.open{ display: flex; animation: fadeIn .25s ease both; }
.modal__box{ position: relative; width: 100%; max-width: 520px; max-height: 84vh; overflow-y: auto; padding: 32px 28px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.modal__box--wide{ max-width: 600px; }
.modal__box h3{ margin: 0 40px 12px 0; font-size: 28px; }
.modal__box p{ color: var(--ink-soft); font-size: 15px; }
.modal__box strong{ color: var(--ink); }
.modal__close{ position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-alt); font-size: 16px; }

.footer{ padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.footer__row{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
/* Страницы услуг (для поисковиков и гостей): строка ссылок над подписью. */
.footer__links{ display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 18px; }
.footer__links a{ display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.footer__links a:hover{ color: var(--accent-text); }

/* ---------- Анимации ---------- */
@keyframes shimmer{ 0%{ background-position: 0% 50%; } 50%{ background-position: 100% 50%; } 100%{ background-position: 0% 50%; } }
@keyframes drift{ from{ transform: translate(0, 0) scale(1); } to{ transform: translate(-40px, 30px) scale(1.15); } }
@keyframes sweepA{ from{ transform: rotate(-22deg); } to{ transform: rotate(14deg); } }
@keyframes sweepB{ from{ transform: rotate(18deg); } to{ transform: rotate(-16deg); } }
@keyframes dust{ 0%{ opacity: 0; transform: translateY(20px) scale(.5); } 30%{ opacity: .9; } 70%{ opacity: .7; } 100%{ opacity: 0; transform: translateY(-70px) scale(1.1); } }
@keyframes twinkle{ 0%, 100%{ opacity: .4; transform: scale(.8) rotate(0); } 50%{ opacity: 1; transform: scale(1.2) rotate(45deg); } }
@keyframes wordIn{ from{ opacity: 0; transform: translateY(30px); filter: blur(10px); } to{ opacity: 1; transform: none; filter: none; } }
@keyframes textShine{ to{ background-position: 200% center; } }
@keyframes rise{ from{ opacity: 0; transform: translateY(22px); } to{ opacity: 1; transform: none; } }
@keyframes priceIn{ from{ opacity: 0; transform: translateY(14px); } to{ opacity: 1; transform: none; } }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }

/* ---------- Планшет ---------- */
@media (max-width: 1023px){
  .hero__grid, .calc, .contact{ grid-template-columns: minmax(0, 1fr); }
  .hero__grid{ gap: 36px; }
  .packs{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary{ position: static; }
  .hosts{ grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .games{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact{ gap: 32px; }
  /* Полоска итога внизу экрана, пока клиент в калькуляторе, а полный итог не на экране (js/script.js). */
  .mbar{ position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; padding: 10px 8px; border-radius: 18px; border: 1px solid var(--btn-outline); background: var(--card); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(120%); pointer-events: none; transition: opacity .3s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s; }
  .mbar__sum{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; color: inherit; text-decoration: none; }
  .mbar__send{ min-height: 44px; border: 0; border-radius: 999px; background: var(--btn-primary-bg); color: var(--btn-primary-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .mbar.is-linked .mbar__send{ background: transparent; border: 1.5px solid var(--btn-outline); color: var(--btn-outline-text); }
  .mbar.is-shown{ opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .mbar__dur{ grid-column: 1 / -1; text-align: center; font-size: 12px; font-weight: 600; color: var(--green-text); }
  .mbar__indiv{ grid-column: 1 / -1; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--total); }
  .mbar__lv{ display: flex; flex-direction: column; align-items: center; }
  .mbar__name{ font-size: 11px; color: var(--ink-soft); }
  .mbar__price{ font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
  .mbar__lv.is-on .mbar__price{ color: var(--total); }
}

/* ---------- Телефон ---------- */
@media (max-width: 760px){
  .wrap{ --wrap-pad: 20px; padding-left: max(var(--wrap-pad), env(safe-area-inset-left)); padding-right: max(var(--wrap-pad), env(safe-area-inset-right)); }
  body{ font-size: 16px; }
  .section{ padding: 64px 0; }
  .nav{ min-height: 64px; gap: 10px; }
  .logo-svg--full{ display: none; }
  .logo-svg--monogram{ display: block; }
  .logo-ru{ display: none; } /* здесь только монограмма — латинских слов нет, дублировать нечего */
  .logo-tile{ height: 44px; padding: 4px 8px; }
  header.scrolled .logo-tile{ height: 40px; }
  .header-actions .hbtn{ padding: 0 14px; }
  .hero{ padding: 44px 0 48px; }
  .hero h1{ font-size: clamp(40px, 11vw, 52px); }
  .hero__ctas .btn{ flex: 1 1 100%; }
  .glass{ padding: 4px 18px; }
  .tile{ min-height: 84px; padding: 14px; font-size: 14px; }
  .spot{ width: 260px; }
  .packs{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pack{ padding: 16px 14px; }
  .pack__name{ font-size: 22px; padding-right: 0; }
  .pack__badge{ position: static; order: -1; }
  .chips--6 .chip{ font-size: 13px; }
  .chips--day .chip, #calcDays .chip{ flex: 1 1 100%; }
  .extras, .addons{ grid-template-columns: minmax(0, 1fr); }
  .summary{ padding: 24px 16px; }
  .level__price{ font-size: 21px; }
  .duration__value{ font-size: 28px; }
  .games{ grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .filters{ flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar{ display: none; }
  .filter{ flex: none; }
  .how, .shots, .terms, .steps{ grid-template-columns: minmax(0, 1fr); }
  .how{ gap: 14px; }
  .host, .how__item, .terms__card, .steps__item{ padding: 22px 20px; }
  .tg-card{ padding: 24px 20px; }
  .tg-card__actions .hbtn{ flex: 1 1 100%; }
  .form--card{ padding: 22px 18px; }
  .faq__item summary{ font-size: 21px; }
  .ask-fab{ right: 16px; padding: 0 16px; }
  /* На телефоне кнопка не закрывает первый экран, калькулятор и форму заявки (js/script.js). */
  .ask-fab.is-away{ opacity: 0; transform: translateY(20px); pointer-events: none; }
  .ask-fab-text{ display: none; }
  .ask-fab{ width: 52px; padding: 0; justify-content: center; }
}
@media (max-width: 380px){
  .chips--6{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-actions .hbtn{ font-size: 13px; padding: 0 12px; }
}

/* ---------- Помощник «Джой» (js/joy-bot.js): кнопка слева внизу, окно с перепиской ---------- */
.joy-fab{ position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 3px 20px 3px 3px; border-radius: 999px; border: 1px solid var(--btn-outline); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s ease, opacity .3s ease; }
.joy-av{ position: relative; display: block; width: 44px; height: 44px; flex: none; overflow: hidden; border-radius: 50%; border: 1px solid var(--btn-outline); background: var(--logo-bg); }
.joy-av--big{ width: 52px; height: 52px; }
/* Джой в шапке: лицо, от 1280 px — с надписью «Спросить Джой», уже 340 px — только в меню; в меню телефона — строка «Спросить помощника Джой». */
.joy-hbtn{ display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.joy-av--head{ width: 44px; height: 44px; }
.joy-hbtn__text{ display: none; }
.joy-hbtn:hover .joy-av{ box-shadow: 0 0 0 4px var(--spot); }
@media (max-width: 339px){ .joy-hbtn{ display: none; } }
@media (min-width: 1280px){ .nav-links{ gap: 20px; } .joy-hbtn{ padding: 0 16px 0 0; border: 1.5px solid var(--btn-outline); } .joy-av--head{ width: 41px; height: 41px; border: 0; } .joy-hbtn__text{ display: inline; } }
.mobile-panel .nav-joy{ color: var(--accent-text); font-weight: 600; }
/* Кадры Джой лежат друг на друге: снизу всегда «обычный», сверху виден один — моргание или рот (js/joy-bot.js, data-frame). */
.joy-av__f{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.joy-av__f--base,
.joy-av[data-frame="blink"] .joy-av__f--blink,
.joy-av[data-frame="a"] .joy-av__f--a,
.joy-av[data-frame="o"] .joy-av__f--o,
.joy-av[data-frame="i"] .joy-av__f--i{ opacity: 1; }
.joy-av.is-talking{ animation: joy-talk .9s ease-in-out infinite; }
@keyframes joy-talk{ 0%, 100%{ box-shadow: 0 0 0 0 var(--spot); } 50%{ box-shadow: 0 0 0 8px var(--spot); } }
.joy-panel{ position: fixed; left: 20px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 35; display: flex; flex-direction: column; width: min(390px, calc(100vw - 40px)); height: min(620px, calc(100vh - 120px)); border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; animation: rise .3s ease both; }
.joy-panel[hidden]{ display: none; }
.joy-head{ display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.joy-head__text{ flex: 1; min-width: 0; }
.joy-head h4{ margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.15; }
.joy-head p{ margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.joy-close{ width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); font-size: 16px; }
.joy-log{ flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; outline: none; }
.joy-msg{ max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.joy-msg--bot{ align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); }
.joy-msg--me{ align-self: flex-end; border-bottom-right-radius: 4px; background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.joy-acts{ display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.joy-cta{ min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--btn-primary-bg); color: var(--btn-primary-text); font-size: 14px; font-weight: 600; }
.joy-cta--link{ display: inline-flex; align-items: center; text-decoration: none; }
.joy-cta--quiet{ background: transparent; border: 1.5px solid var(--btn-outline); color: var(--ink); }
.joy-chip{ min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--btn-outline); background: transparent; color: var(--btn-outline-text); font-size: 14px; text-align: left; }
.joy-chips{ display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; border-top: 1px solid var(--line); scrollbar-width: none; }
.joy-chips::-webkit-scrollbar{ display: none; }
.joy-chips .joy-chip{ flex: none; white-space: nowrap; }
.joy-form{ display: flex; gap: 8px; padding: 0 16px 10px; }
.joy-form input{ flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.joy-send{ width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--btn-primary-bg); color: var(--btn-primary-text); font-size: 20px; font-weight: 700; }
.joy-foot{ margin: 0; padding: 0 16px 6px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.joy-foot a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--accent-text); }
@media (max-width: 760px){
  .joy-fab{ left: 16px; padding: 3px; }
  .joy-fab__text{ display: none; }
  /* На телефоне кнопка не закрывает первый экран, калькулятор и форму заявки (js/joy-bot.js). */
  .joy-fab.is-away{ opacity: 0; transform: translateY(20px); pointer-events: none; }
  .joy-panel{ left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); height: min(640px, calc(100vh - 80px)); }
}
@media (prefers-reduced-motion: reduce){ .joy-av.is-talking, .joy-panel{ animation: none; } }

/* «Уменьшить движение»: всё статично. */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .logo-frame{ animation: none; }
  .spot, .blob, .dust, .ticker__in, .ornament span{ animation: none; }
  .emblem-tilt, .emblem-gradient{ animation: none; transform: none; }
  .emblem-glint{ animation: none; display: none; }
  .emblem-glow{ animation: none; opacity: .4; }
  .logo{ transition: none !important; }
  .reveal{ transform: none; }
  .ticker{ overflow-x: auto; scrollbar-width: none; }
  .ticker__in{ animation: none; }
  .ticker__item[aria-hidden="true"]{ display: none; }
}

/* Лента отзывов (js/reviews.js): по кругу без конца, листается пальцем, на компьютере — стрелки. */
.reviews{ margin: 28px 0 32px; }
.reviews__track{ display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain; }
.reviews__track::-webkit-scrollbar{ display: none; }
.reviews__track:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 4px; border-radius: 20px; }
.review-card{ flex: 0 0 min(86%, 380px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.review-card__stars{ margin: 0; font-size: 20px; letter-spacing: 2px; color: var(--accent-text); }
.review-card__rest{ color: var(--line); }
.review-card__text{ margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.review-card__who{ margin: auto 0 0; font-size: 14px; color: var(--ink-soft); }
.reviews__nav{ display: none; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.reviews__btn{ width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--btn-outline); background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.reviews__btn:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 3px; }
.reviews--single .reviews__nav{ display: none !important; }
@media (min-width: 760px){ .reviews__nav{ display: flex; } .review-card{ flex-basis: 360px; } }

/* Витрина до ИП (SITE_ENABLED=showcase, сборка кладёт showcase.html с data-site-mode у <html>): формы заявки,
   вопроса и отзыва скрыты, вместо них — «Как заказать» с мессенджерами. */
.showcase-only{ display: none !important; }
[data-site-mode="showcase"] .showcase-only{ display: block !important; }
[data-site-mode="showcase"] .no-showcase{ display: none !important; }
.showcase-contact h3{ margin: 0 0 16px; }
.showcase-steps{ margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.showcase-contact__actions{ display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
/* Витрина: окно «Куда отправить расчёт?» */
.send-sheet__box{ width: min(100%, 420px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.send-sheet__box h3{ margin: 0 0 8px; }
.send-sheet__hint{ margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
/* «Как к вам обращаться» в окне отправки расчёта (по желанию; имя уходит только в сообщение клиента). */
.send-name{ display: grid; gap: 6px; margin: 0 0 16px; }
.send-name label{ font-size: 14px; font-weight: 600; color: var(--ink); }
.send-name label span{ font-weight: 400; color: var(--ink-soft); }
.send-name input{ min-height: 52px; min-width: 0; padding: 0 16px; border-radius: 14px; border: 1px solid var(--btn-outline); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.send-name input:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 2px; }
.send-sheet__actions{ display: flex; flex-direction: column; gap: 12px; }
.send-sheet__hint--small{ margin: -4px 0 4px; font-size: 13px; }
.send-sheet__box{ max-height: calc(100vh - 32px); overflow: auto; }
.send-sheet__actions .hbtn{ min-height: 52px; font-size: 16px; }
.send-mail{ display: flex; flex-direction: column; gap: 12px; padding: 0 0 4px 16px; border-left: 2px solid var(--line); }
.send-mail[hidden]{ display: none; }
.send-steps{ margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); font-size: 15px; }
.send-mail .hbtn{ min-height: 52px; font-size: 16px; white-space: normal; text-align: center; line-height: 1.25; padding-left: 16px; padding-right: 16px; }
a.send-sheet__close{ display: flex; align-items: center; justify-content: center; text-decoration: underline; }
.send-sheet__close{ min-height: 44px; border: 0; background: none; color: var(--ink-soft); font: inherit; cursor: pointer; }
.summary__head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qhelp{ flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--btn-outline); background: transparent; color: var(--ink); font: 600 17px/1 'Jost', sans-serif; cursor: pointer; position: relative; }
.qhelp::after{ content: ""; position: absolute; inset: -4px; }
.qhelp:hover{ background: var(--line); }
.qhelp:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 2px; }
.levels-help{ margin: 0 0 16px; display: grid; gap: 6px; max-height: 52vh; overflow: auto; }
.levels-help dt{ font-weight: 600; margin-top: 8px; }
.levels-help dt span{ color: var(--accent-text); font-weight: 600; }
.levels-help dd{ margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.send-sheet__close:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 2px; border-radius: 8px; }


/* ---------- Готовые пакеты (раздел 1, над калькулятором; цены — BUNDLES в js/pricing.js) ---------- */
.vh{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bundles{ position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; scroll-margin-top: 90px; }
.bundle{ position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); min-width: 0; transition: background-color .5s ease; }
/* Фирменный — широкой карточкой сверху: слева что входит, справа цена и кнопка. */
.bundle--hit{ grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(240px, .8fr); grid-template-areas: "top top foot" "name list foot" "sub list foot"; grid-template-rows: auto auto 1fr; align-items: start; gap: 10px 40px; padding: 32px 36px; border-color: var(--btn-outline); box-shadow: inset 0 0 0 1px var(--btn-outline); }
.bundle--hit .bundle__top{ grid-area: top; justify-content: flex-start; gap: 14px; }
.bundle--hit .bundle__name{ grid-area: name; }
.bundle--hit .bundle__sub{ grid-area: sub; margin: 0; }
.bundle--hit .bundle__list{ grid-area: list; }
.bundle--hit .bundle__foot{ grid-area: foot; align-self: stretch; margin: 0; padding: 0 0 0 36px; border-top: 0; border-left: 1px solid var(--line); grid-template-columns: 1fr; align-content: center; }
.bundle__top{ display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bundle__tag{ font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--btn-outline); color: var(--ink); }
.bundle__tag--hit{ background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--on-accent); }
.bundle__tag--ny{ background: var(--wine); border-color: var(--wine); color: var(--on-accent); }
.bundle__time{ font-size: 13px; color: var(--ink-soft); }
.bundle__name{ font-size: 27px; line-height: 1.1; }
.bundle--hit .bundle__name{ font-size: clamp(36px, 3.6vw, 48px); }
.bundle__sub{ margin: -6px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.bundle__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.bundle--hit .bundle__list{ gap: 12px; font-size: 16px; }
.bundle__list li{ display: flex; gap: 10px; align-items: flex-start; }
.bundle__check{ flex: none; margin-top: 1px; color: var(--total); }
.bundle__foot{ margin-top: auto; display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.bundle__price{ margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bundle__price b{ font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1; color: var(--total); white-space: nowrap; }
.bundle--hit .bundle__price b{ font-size: clamp(44px, 4.4vw, 58px); }
.bundle__price s{ font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.bundle__save{ margin: 0; font-size: 13px; font-weight: 600; color: var(--green-text); }
.bundle__go{ margin-top: 6px; min-height: 48px; }
.bundle--hit .bundle__go{ min-height: 52px; font-size: 16px; }
.bundles__note{ margin: 20px 0 0; max-width: 80ch; font-size: 14px; color: var(--ink-soft); }
.calc-head{ margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.calc-head__or{ margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
@media (max-width: 1100px){
  .bundles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle--hit{ grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); grid-template-areas: "top foot" "name foot" "sub foot" "list foot"; grid-template-rows: auto auto auto 1fr; }
}
/* Телефон: карточки листаются вбок, по одной на экран (как фильтр игр). */
@media (max-width: 760px){
  .bundles{ display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--wrap-pad)); padding: 4px var(--wrap-pad) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .bundles::-webkit-scrollbar{ display: none; }
  .bundle, .bundle--hit{ flex: none; width: min(86%, 340px); scroll-snap-align: center; padding: 22px; gap: 14px; }
  .bundle--hit{ display: flex; }
  .bundle--hit .bundle__top{ justify-content: space-between; }
  .bundle--hit .bundle__sub{ margin-top: -6px; }
  .bundle--hit .bundle__name{ font-size: 32px; }
  .bundle--hit .bundle__list{ font-size: 14.5px; gap: 8px; }
  .bundle--hit .bundle__foot{ margin-top: auto; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .bundle--hit .bundle__price b{ font-size: 40px; }
  .calc-head{ margin-top: 48px; padding-top: 28px; }
}

/* ---------- «Как проходят наши вечера» (в разделе «Ведущие»): фото целиком — стопка распечаток ---------- */
.moments{ display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
#look .moments{ margin-top: 48px; padding-top: 0; border-top: 0; }
.moments__kicker{ margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.moments__title{ font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.moments__lead{ margin: 14px 0 0; color: var(--ink-soft); font-size: 15.5px; }
.moments__nav{ display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.moments__arrow{ display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--btn-outline); background: transparent; color: var(--ink); }
.moments__arrow--next{ background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--on-accent); }
.moments__arrow:focus-visible, .moments__thumb:focus-visible{ outline: 2px solid var(--btn-outline); outline-offset: 3px; }
.moments__count{ margin: 0 0 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; color: var(--ink-soft); }
.moments__count b{ font-size: 30px; font-weight: 700; color: var(--total); }
.moments__strip{ display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.moments__thumb{ display: block; min-width: 44px; min-height: 44px; padding: 3px; border-radius: 8px; border: 2px solid transparent; background: transparent; opacity: .55; transition: opacity .2s ease, border-color .2s ease; }
.moments__thumb img{ display: block; height: 44px; width: auto; max-width: none; border-radius: 4px; }
.moments__thumb:hover{ opacity: .85; }
.moments__thumb.is-on{ opacity: 1; border-color: var(--btn-outline); }
.moments__stage{ position: relative; display: grid; place-items: center; min-height: 560px; background: radial-gradient(ellipse 60% 55% at 50% 50%, var(--spot), transparent 70%); }
.moments__back{ position: absolute; width: 80%; max-width: 640px; aspect-ratio: 3 / 2; padding: 12px 12px 44px; background: var(--paper-back); border-radius: 3px; box-shadow: 0 16px 40px rgba(0,0,0,.4); overflow: hidden; }
.moments__back img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.moments__back--2{ transform: rotate(-8deg) translate(-9%, 5%); opacity: .45; }
.moments__back--1{ transform: rotate(6deg) translate(10%, -4%); opacity: .75; }
.moments__print{ position: relative; z-index: 1; margin: 0; width: min(100%, 680px); padding: 14px 14px 18px; background: var(--paper); border-radius: 3px; box-shadow: 0 24px 60px rgba(0,0,0,.5); transform: rotate(-1.5deg); cursor: pointer; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.moments__print.is-alt{ transform: rotate(1.5deg); }
.moments__print.is-square{ width: min(100%, 520px); }
.moments__print img{ display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: var(--paper); transition: opacity .25s ease; }
.moments__print img.is-loading{ opacity: .25; }
.moments__tape{ position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(199,167,104,.55); transform: rotate(-3deg); }
.moments__print figcaption{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 6px 0; }
.moments__cap{ font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; color: var(--paper-ink); }
.moments__tag{ flex: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-accent); }
/* Планшет и телефон: заголовок → фото → стрелки → лента (.moments__text раскрывается в общую сетку). */
@media (max-width: 1023px){
  .moments{ grid-template-columns: minmax(0, 1fr); gap: 0; }
  .moments__text{ display: contents; }
  .moments__stage{ order: 1; min-height: 0; padding: 36px 0 20px; }
  .moments__nav{ order: 2; justify-content: center; margin-top: 8px; }
  .moments__strip{ order: 3; justify-content: center; }
}
@media (max-width: 760px){
  .moments{ margin-top: 48px; padding-top: 36px; }
  .moments__stage{ padding: 28px 0 12px; }
  .moments__print{ padding: 10px 10px 14px; }
  .moments__print img{ max-height: 300px; }
  .moments__tape{ width: 84px; height: 24px; margin-left: -42px; top: -12px; }
  .moments__back{ padding: 8px 8px 30px; width: 84%; }
  .moments__cap{ font-size: 22px; }
  .moments__tag{ font-size: 11px; }
  .moments__strip{ justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--wrap-pad)); padding: 0 var(--wrap-pad); }
  .moments__strip::-webkit-scrollbar{ display: none; }
  .moments__thumb{ flex: none; }
}
@media (prefers-reduced-motion: reduce){ .moments__print, .moments__print img{ transition: none; } }
