:root {
  --bg: #FFF7EC;
  --surface: #FFFFFF;
  --text: #24163D;
  --muted: #6D6180;
  --brand: #7B2FF7;
  --accent: #FFC93C;
  --call: #19B85A;
  --line: rgba(36, 22, 61, .1);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(60, 20, 120, .12);
  --font-head: 'Rubik', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

body.adult {
  --bg: #3A1F5C;
  --surface: #4C2B73;
  --text: #FFF6FF;
  --muted: #E2D2F2;
  --brand: #FF5C9E;
  --accent: #FFC247;
  --line: rgba(255, 255, 255, .16);
  --shadow: 0 10px 30px rgba(20, 5, 40, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font-body);
  padding-bottom: 72px;
}
img { max-width: 100%; }
/* Карточки выезжают из-за краёв экрана — без горизонтальной прокрутки (clip не ломает sticky) */
main, .site-footer { overflow-x: clip; }
a { color: inherit; }
h1, h2 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 4vw, 40px); }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--call { background: var(--call); color: #fff; box-shadow: 0 6px 18px rgba(25, 184, 90, .4); }
.btn--light { background: rgba(255, 255, 255, .92); color: #24163D; }
.btn--big { padding: 16px 30px; font-size: 19px; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font: 800 24px var(--font-head); text-decoration: none; margin: 0; }
.logo-mark { color: var(--brand); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small { font: 700 12px var(--font-body); color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav a:hover { color: var(--text); }
.switch {
  text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px;
  background: var(--accent); color: #24163D;
}
.header-phone { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* Колесо */
.hero { position: relative; }
.hero-title {
  position: absolute; left: 0; right: 0; top: 18px; z-index: 150;
  text-align: center; color: #fff; pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.hero-title h1 { font-size: clamp(24px, 4.2vw, 46px); margin: 0; }
.hero-title p { margin: 4px 0 0; font-weight: 700; opacity: .92; }

.wheel {
  position: relative; overflow: hidden; outline: none;
  height: var(--wheel-h);
  touch-action: pan-y; user-select: none; cursor: grab;
}
.wheel:active { cursor: grabbing; }
/* Квадрат со стороной = диагональ колеса: при любом повороте углы закрыты */
.wheel-bg { position: absolute; left: 50%; top: 50%; width: var(--bg-d, 200vmax); height: var(--bg-d, 200vmax); margin: calc(var(--bg-d, 200vmax) / -2) 0 0 calc(var(--bg-d, 200vmax) / -2); transform-origin: 50% 50%; }
.wheel-bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; background-size: 120px 120px, cover; }
.wheel-bg-layer.is-on { opacity: 1; }
.wheel-track { position: absolute; inset: 0; }
.planet {
  position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none;
  filter: drop-shadow(0 -8px 30px rgba(0, 0, 0, .25));
}
.cake-cuts { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
/* Кусок активной куклы чуть светлее, как будто его подсветили */
.cake-slice { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
/* Разрез: тёмная щель и светлая кромка рядом */
.cake-cut-shadow { stroke: rgba(30, 10, 20, .55); stroke-width: 7; stroke-linecap: round; transform: translateX(-1.5px); }
.cake-cut { stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-linecap: round; transform: translateX(3px); }
.planet-base { fill: var(--planet-base, #5B2BC4); transition: fill .7s ease; }
.planet-glaze { fill: var(--planet-glaze, #FFF3E6); transition: fill .7s ease; }
.wheel-item {
  position: absolute; left: 0; top: 0; display: block;
  transform-origin: 50% 100%; will-change: transform;
  -webkit-user-drag: none;
}
.wheel-item svg, .wheel-item img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
  pointer-events: none;
}
.wheel-arrow {
  position: absolute; top: 46%; z-index: 160; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: #24163D; font-size: 34px; line-height: 1;
  box-shadow: var(--shadow);
}
.wheel-arrow--prev { left: max(12px, 4vw); }
.wheel-arrow--next { right: max(12px, 4vw); }
.wheel-info {
  position: absolute; left: 50%; bottom: 74px; z-index: 150;
  width: max-content; max-width: calc(100% - 24px);
  padding: 12px 26px 16px; border-radius: 26px;
  background: rgba(20, 8, 40, .38); backdrop-filter: blur(8px);
  text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
/* Анимируем содержимое, а не саму плашку: её прозрачность управляется прокруткой */
.wheel-info.is-in > * { animation: pop .45s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wheel-name { font: 800 clamp(28px, 5vw, 48px) var(--font-head); margin: 0; }
.wheel-price { margin: 2px 0 14px; font-weight: 800; font-size: 19px; }
.wheel-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; text-shadow: none; }
.wheel-dots { position: absolute; bottom: 50px; left: 0; right: 0; z-index: 150; display: flex; gap: 6px; justify-content: center; }
.wheel-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.wheel-dot.is-on { background: #fff; transform: scale(1.4); }

/* Переход героя в страницу. Секция героя вдвое выше колеса, колесо внутри «прилипает».
   Пока оно стоит, --sp идёт от 0 до 1 (wheel.js), а следующий раздел выезжает поверх
   (отрицательный отступ на высоту колеса). Крем с волной поднимается ровно вместе
   с верхним краем раздела, торт мягко тонет, карточки проявляются по мере прокрутки. */
:root { --wheel-h: max(580px, 100svh - 64px); }
.hero--wheel { height: calc(var(--wheel-h) * 2); }
.hero-sticky { position: sticky; top: 64px; }
.hero--wheel + .section { position: relative; z-index: 1; margin-top: calc(var(--wheel-h) * -1); }
.hero--wheel .hero-title { opacity: calc(1 - var(--sp, 0) * 2.2); translate: 0 calc(var(--sp, 0) * -40px); }
.wheel-track, .planet, .cake-cuts {
  translate: 0 var(--sink, 0px); scale: calc(1 - var(--sp, 0) * .25);
  opacity: calc(1 - var(--sp, 0) * .6);
}
.wheel-track, .cake-cuts { transform-origin: 50% var(--cy, 150%); }
.wheel-bg { scale: calc(1 + var(--sp, 0) * .2); }
.wheel-info { translate: -50% calc(var(--sink, 0px) * .6); opacity: calc(1 - var(--sp, 0) * 4); }
.wheel-dots, .wheel-arrow { opacity: calc(1 - var(--sp, 0) * 4); }
.wheel-fade {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 140; pointer-events: none;
  height: calc(46px + var(--sp, 0) * 100%);
  background: linear-gradient(to bottom, transparent 44px, var(--bg) 44px);
}
.wheel-wave {
  position: absolute; left: 0; top: 0; width: 200%; height: 46px;
  fill: var(--bg); animation: wave-drift 18s linear infinite;
}
.wheel-wave--back { opacity: .5; top: -12px; height: 58px; animation-duration: 26s; animation-direction: reverse; }
@keyframes wave-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wheel-wave { animation: none; } }

/* Секции */
.section { padding: 64px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-1deg); }
.card-art { aspect-ratio: 4 / 5; padding: 16px; background-size: 120px 120px, cover !important; }
.card-art svg, .card-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-body { padding: 12px 16px 16px; }
.card-name { font: 800 19px var(--font-head); margin: 0; }
.card-price { margin: 2px 0 0; color: var(--muted); font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px;
  border-radius: 50%; background: var(--brand); color: #fff; font: 800 20px var(--font-head);
}
.steps b { display: block; font-size: 20px; }
.steps span { color: var(--muted); }

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.addon { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.addon-icon { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.addon b { font-size: 19px; }
.addon span:last-child { color: var(--muted); font-size: 15px; }
.addons-note { color: var(--muted); font-weight: 700; margin: 14px 0 0; }

.videos, .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.video-ph, .photo-ph {
  aspect-ratio: 9 / 12; border-radius: var(--radius); display: grid; place-items: center; align-content: center;
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 14px, var(--line) 14px, var(--line) 28px);
  color: var(--muted); font-weight: 800; text-align: center;
}
.vcard { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.vcard::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transition: opacity .3s;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(20, 8, 40, .55));
}
.vplay {
  position: absolute; inset: 0; z-index: 2; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.vplay span {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), #FF4FA3, var(--accent), var(--brand));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.vplay span::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
}
.vplay span::after {
  content: ''; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--brand);
}
.vplay::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7);
  animation: vpulse 1.8s ease-out infinite;
}
@keyframes vpulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.vplay:hover span { transform: scale(1.08); }
.vcard.is-playing .vplay, .vcard.is-playing::after { opacity: 0; pointer-events: none; }
.vcard.is-playing .vplay { display: none; }
.pcard { position: relative; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); aspect-ratio: 9 / 16; }
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pcard:hover img { transform: scale(1.04); }
.photo-view {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(10, 4, 20, .88); cursor: zoom-out; animation: fade .2s ease;
}
.photo-view img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.photo-view .call-modal-close { position: fixed; top: 16px; right: 16px; background: #fff; color: #24163D; }
.video-ph span { font-size: 42px; color: var(--brand); }
.video-ph p { margin: 0; }
.photo-ph { aspect-ratio: 1; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review blockquote { margin: 12px 0; font-size: 18px; }
.review figcaption { color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #24163D; }

.faq { display: grid; gap: 10px; max-width: 800px; }
.faq-item { background: var(--surface); border-radius: 16px; padding: 4px 20px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 800; padding: 14px 0; }
.faq-item p { margin: 0 0 16px; color: var(--muted); }

/* Вопросы остаются под шапкой, пока прокручивается поездка по городам. */
#faq {
  position: sticky;
  top: var(--faq-stick-top, 0px);
  z-index: 20;
  background: var(--bg);
}

.cities p { font-weight: 700; color: var(--muted); }
.seo-text p { max-width: 860px; margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* «Выезжаем по городам»: дорога, таблички, фургон (управляет createCityRoad в main.js).
   Раздел листается как обычно, фургон едет, пока страница долистывается до подвала. */
.cities--road { padding-top: 0; padding-bottom: 0; }
/* Дорога + подвал: прилипают низом к экрану на время поездки (высоту и top ставит main.js) */
.road-pin {
  position: sticky; display: flex; flex-direction: column; justify-content: flex-end;
  overflow-x: clip;
}
.road-now { margin: -4px 0 10px; font-weight: 800; color: var(--muted); }
.road-now b { color: var(--brand); }
.road-view {
  position: relative; height: 400px; overflow: hidden;
  width: 100vw; margin-left: calc(50% - 50vw);
}
.road-world { position: absolute; left: 0; top: 0; bottom: 0; will-change: translate; }
.road-strip {
  position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 44px;
  background:
    linear-gradient(90deg, #fff 0 40px, transparent 40px 80px) 0 50% / 80px 4px repeat-x,
    linear-gradient(#5C5470, #474058);
  box-shadow: inset 0 4px 0 #3A3348;
}
.road-stop { position: absolute; bottom: 44px; width: 0; }
/* Табличка как на въезде в город: белая с тёмной рамкой, на столбе */
.road-sign {
  position: absolute; bottom: 0; left: 0; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center;
}
.road-sign::after { content: ''; width: 7px; height: 84px; background: linear-gradient(90deg, #9A94A8, #CFCBD8, #9A94A8); }
.road-sign span {
  white-space: nowrap; padding: 7px 14px; border-radius: 6px;
  background: #fff; color: #24163D; border: 3px solid #24163D; box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, .18);
  font: 800 19px var(--font-head); transition: background .3s, color .3s, scale .3s var(--spring);
}
.road-stop.is-here .road-sign span { background: var(--accent); scale: 1.08; }
.road-doll { position: absolute; bottom: 0; left: 36px; width: 160px; height: 230px; transform-origin: 50% 100%; opacity: 0; }
.road-doll img, .road-doll svg, .road-car-doll img, .road-car-doll svg { width: 100%; height: 100%; display: block; }
.road-doll img, .road-doll svg { object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25)); }
.road-car { position: absolute; left: 0; bottom: 20px; width: 270px; aspect-ratio: 2 / 1; transform-origin: 50% 100%; }
.road-car svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .25)); }
/* Кукла в боковом окне фургона: видна голова */
.road-car-doll { position: absolute; left: 13%; top: 27%; width: 48%; height: 27%; overflow: hidden; border-radius: 8px; z-index: 1; background: #CDEBFF; }
.road-car-doll img, .road-car-doll svg { object-fit: cover; object-position: 50% 8%; }
.road-car svg { z-index: 0; }
@media (max-width: 600px) {
  .road-view { height: 270px; }
  .road-car { width: 150px; bottom: 24px; }
  .road-doll { width: 95px; height: 140px; left: 24px; }
  .road-sign span { font-size: 13px; padding: 5px 10px; }
  .road-sign::after { height: 50px; }
}

/* Страница персонажа */
.ch-hero { background-size: 120px 120px, cover !important; color: #fff; padding: 40px 0; }
.ch-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.ch-art svg, .ch-art img { width: 100%; height: 560px; object-fit: contain; display: block; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); }
.ch-text { text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.ch-text h1 { font-size: clamp(32px, 5vw, 56px); }
.back { font-weight: 800; text-decoration: none; display: inline-block; margin-bottom: 14px; }
.ch-desc { font-size: 20px; }
.ch-facts { display: flex; gap: 14px; margin: 20px 0 24px; flex-wrap: wrap; }
.ch-facts div { background: rgba(255, 255, 255, .92); color: #24163D; border-radius: 16px; padding: 10px 18px; text-shadow: none; }
.ch-facts span { display: block; font-size: 13px; font-weight: 700; color: #6D6180; }
.ch-facts b { font-size: 20px; }
.ch-phone { font-weight: 800; margin-top: 8px; }

/* Подвал */
.site-footer { margin-top: 72px; padding: 40px 0 20px; background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-title { font-weight: 800; margin: 0 0 6px; }
.footer-phone { font: 800 22px var(--font-head); text-decoration: none; }
.vk { color: var(--brand); font-weight: 800; }
.copyright { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* Окно «Позвоните с телефона» для компьютера */
body.modal-open { overflow: hidden; }
.call-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 8, 40, .55); backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.call-modal-box {
  position: relative; width: min(440px, 100%); padding: 36px 32px 26px; text-align: center;
  background: var(--surface); color: var(--text); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: pop .25s ease;
}
.call-modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--text); font-size: 16px; font-weight: 800; cursor: pointer;
}
.call-modal-brand { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.call-modal-box h2 { font-size: 26px; margin: 0; }
.call-modal-phone { font: 800 34px var(--font-head); margin: 14px 0 22px; white-space: nowrap; }
.call-modal-box .btn { width: 100%; padding: 15px; font-size: 17px; border: 0; cursor: pointer; font-family: inherit; }
.call-modal-copy { background: var(--call); color: #fff; margin-bottom: 10px; }
.call-modal-call { background: var(--call); color: #fff; box-shadow: 0 8px 22px rgba(25, 184, 90, .35); }
.call-modal-dial { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.call-modal-vk { margin: 18px 0 8px; }
.call-modal-vk a { color: var(--brand); font-weight: 800; }
.call-modal-note { margin: 0; font-size: 13px; color: var(--muted); }

/* Нижняя кнопка звонка — всегда на виду */
.call-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300;
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 999px; background: var(--call); color: #fff;
  font-weight: 800; font-size: 18px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(25, 184, 90, .45);
}
.call-bar span { font-weight: 700; opacity: .9; }

@media (max-width: 860px) {
  .nav, .header-phone { display: none; }
  .switch { margin-left: auto; white-space: nowrap; font-size: 15px; padding: 7px 12px; }
  .logo { font-size: 21px; }
  .call-bar { display: flex; }
  .wheel-arrow { width: 38px; height: 38px; font-size: 24px; }
  .hero-title { top: 12px; }
  .hero-title h1 { font-size: 22px; }
  .hero-title p { font-size: 13px; }
  .wheel-info { bottom: 58px; padding: 8px 18px 12px; border-radius: 20px; }
  .wheel-name { font-size: 22px; }
  .wheel-price { font-size: 14px; margin: 0 0 8px; }
  .wheel-actions .btn { padding: 8px 18px; font-size: 15px; }
  .wheel-dots { bottom: 38px; gap: 5px; }
  :root { --wheel-h: clamp(520px, 100svh - 144px, 720px); }
  .wheel-fade { height: calc(34px + var(--sp, 0) * 100%); background: linear-gradient(to bottom, transparent 32px, var(--bg) 32px); }
  .wheel-wave { height: 34px; }
  .wheel-wave--back { top: -10px; height: 44px; }
  .wheel-dot { width: 7px; height: 7px; }
  .wheel-actions .btn--call { display: none; }
  .ch-hero-grid { grid-template-columns: 1fr; }
  .ch-call { display: none; }
  .ch-art svg, .ch-art img { height: 360px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 861px) { body { padding-bottom: 0; } }

/* ===== Анимации ===== */
:root { --spring: cubic-bezier(.3, 1.5, .5, 1); --smooth: cubic-bezier(.2, .7, .2, 1); }

/* Появление при прокрутке: main.js ставит блокам opacity/translate/scale и переменную --t (0…1)
   прямо от положения на экране — вниз проявляются, вверх скрываются обратно. */

/* Цветная черта под заголовками секций — прорисовывается вслед за заголовком */
.section h2::after {
  content: ''; display: block; width: 72px; height: 6px; margin-top: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), #FF4FA3, var(--accent), var(--brand)) 0 0 / 300% 100%;
  transform-origin: left; scale: clamp(0, calc((var(--t, 1) - .4) * 1.67), 1) 1;
  animation: gradient-run 6s linear infinite;
}
@keyframes gradient-run { to { background-position: 300% 0; } }

/* Шапка: тень, когда страница прокручена */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(60, 20, 120, .12); }
.logo-mark { display: inline-block; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 70%, 100% { rotate: 0deg; scale: 1; } 80% { rotate: 180deg; scale: 1.35; } 90% { rotate: 360deg; scale: 1; } }
.switch { display: inline-block; transition: transform .2s var(--spring); }
.switch:hover { transform: translateY(-2px) rotate(-3deg) scale(1.05); }
.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px;
  background: var(--brand); scale: 0 1; transition: scale .25s ease;
}
.nav a:hover::after { scale: 1 1; }

/* Заголовок героя въезжает при загрузке */
.hero-title h1 { animation: title-in .9s var(--spring) both; }
.hero-title p { animation: title-in .9s var(--spring) .15s both; }
@keyframes title-in { from { opacity: 0; translate: 0 -26px; scale: .92; } }

/* Куклы на колесе слегка покачиваются, каждая в своём ритме */
.wheel-item > * { animation: sway 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.wheel-item:nth-child(2n) > * { animation-duration: 3.9s; animation-delay: -1.2s; }
.wheel-item:nth-child(3n) > * { animation-duration: 3.1s; animation-delay: -2.1s; }
@keyframes sway { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-8px) rotate(1.6deg); } 70% { transform: translateY(-3px) rotate(-1.4deg); } }

/* Кнопки звонка: пробегающий блик и пульсирующее кольцо */
/* У .call-bar своё position: fixed — не перебиваем его */
.btn--call { position: relative; }
.btn--call, .call-bar { overflow: hidden; isolation: isolate; }
.btn--call::after, .call-bar::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  translate: -120% 0; animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { translate: -120% 0; } 100% { translate: 120% 0; } }
.call-bar { animation: ring 2.2s ease-out infinite; }
@keyframes ring {
  0% { box-shadow: 0 10px 26px rgba(25, 184, 90, .45), 0 0 0 0 rgba(25, 184, 90, .55); }
  100% { box-shadow: 0 10px 26px rgba(25, 184, 90, .45), 0 0 0 16px rgba(25, 184, 90, 0); }
}
.btn:active { transform: scale(.96); }

/* Карточки персонажей: 3D-наклон за курсором (main.js), блик и «выпрыгивающая» кукла */
.card, .program, .package { position: relative; transition: transform .25s ease-out, box-shadow .25s ease; }
.card:hover, .program:hover, .package:hover { box-shadow: 0 22px 50px rgba(60, 20, 120, .22); }
.card::after, .program::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .38), transparent 45%);
}
.card:hover::after, .program:hover::after { opacity: 1; }
.card-art svg, .card-art img { transition: transform .45s var(--spring); transform-origin: 50% 100%; }
/* Растёт от ног и не выше отступа карточки, чтобы голова не обрезалась */
.card:hover .card-art svg, .card:hover .card-art img { transform: scale(1.05); }

/* Шаги, дополнения, отзывы — приподнимаются при наведении */
.steps li, .addon, .review { transition: transform .25s var(--spring), box-shadow .25s ease; }
.steps li:hover, .addon:hover, .review:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(60, 20, 120, .18); }
.steps li::before {
  scale: clamp(0, calc((var(--t, 1) - .5) * 2), 1);
  rotate: calc((1 - clamp(0, calc((var(--t, 1) - .5) * 2), 1)) * -180deg);
}
.steps li:hover::before { animation: wiggle .6s ease; }
.addon-icon { display: inline-block; justify-self: start; }
.addon:hover .addon-icon { animation: wiggle .6s ease; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -14deg; scale: 1.15; } 50% { rotate: 10deg; } 75% { rotate: -6deg; } }

/* Вопросы: ответ мягко выезжает, у вопроса — плюс, который поворачивается */
.faq-item { transition: box-shadow .25s ease; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--brand); font: 800 22px/1 var(--font-head); transition: rotate .3s var(--spring), background .3s;
}
.faq-item[open] summary::after { rotate: 45deg; background: var(--accent); color: #24163D; }
.faq-item[open] p { animation: pop .4s var(--smooth); }
.faq-item:hover { box-shadow: 0 16px 36px rgba(60, 20, 120, .16); }

/* Страница персонажа: кукла парит, текст появляется по очереди */
.ch-art > * { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; rotate: 1deg; } }
.ch-text > * { animation: title-in .8s var(--spring) both; }
.ch-text > :nth-child(2) { animation-delay: .08s; }
.ch-text > :nth-child(3) { animation-delay: .16s; }
.ch-text > :nth-child(4) { animation-delay: .24s; }
.ch-text > :nth-child(5) { animation-delay: .32s; }

/* Запрет выделения текста и перетаскивания картинок (дополняет обработчики в main.js) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }

/* Фирменный курсор: фиолетовая стрелка с искоркой, над кнопками и ссылками — розовая ручка с маникюром, сердечком и блёсткой */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 2v20l5.5-5 3.5 8 3.5-1.5-3.5-7.7h7.5z' fill='%237B2FF7' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M22 2l1.3 3 3 1.3-3 1.3-1.3 3-1.3-3-3-1.3 3-1.3z' fill='%23FFC93C'/%3E%3C/svg%3E") 3 2, auto;
  }
  a, button, summary, label, select, [role='button'], .wheel, .wheel *, .pcard, .vplay, .wheel-dot {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M11 3.5a2.5 2.5 0 0 1 5 0V13a2.3 2.3 0 0 1 4.5.6 2.3 2.3 0 0 1 4.5.8 2.3 2.3 0 0 1 4.3 1.2V22c0 4.5-3 8-8 8h-3c-3 0-4.8-1.4-6.4-3.8L4.6 19.6a2.3 2.3 0 0 1 3.7-2.7L11 20z' fill='%23FFD6EA' stroke='%23FF3D9A' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M16 13v5M20.5 14v4.5M25 15v4' stroke='%23FF3D9A' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M11.9 5.8V3.6a1.6 1.6 0 0 1 3.2 0v2.2z' fill='%23FF3D9A'/%3E%3Cpath d='M12.8 3.4h.9' stroke='white' stroke-width='.9' stroke-linecap='round'/%3E%3Cpath d='M25.5 10.6l-2.6-2.4a1.6 1.6 0 0 1 2.6-1.8 1.6 1.6 0 0 1 2.6 1.8z' fill='%23FF3D9A' stroke='white' stroke-width='.8'/%3E%3Cpath d='M5 6.5l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8z' fill='%23FFC93C' stroke='white' stroke-width='.6'/%3E%3C/svg%3E") 13 2, pointer !important;
  }
  input, textarea { cursor: text; }
}
.sparkle {
  position: fixed; z-index: 2000; pointer-events: none; font-size: 13px; line-height: 1;
  translate: -50% -50%; text-shadow: 0 0 6px rgba(255, 255, 255, .9);
  animation: sparkle .8s ease-out forwards;
}
@keyframes sparkle { to { opacity: 0; scale: .2; rotate: 200deg; transform: translate(var(--dx), var(--dy)); } }

@media (prefers-reduced-motion: reduce) {
  .sparkle { display: none; }
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Кнопка перехода в развлекательный центр: на компьютере она есть в меню, на телефоне — отдельной кнопкой */
.switch--center { display: none !important; background: linear-gradient(90deg, #FF3FA4, #7B3CFF); color: #fff; }
@media (max-width: 860px) {
  .switch--center { display: inline-block !important; margin-left: auto; }
  .switch--center + .switch { margin-left: 8px; }
}
@media (max-width: 400px) {
  .switch--center .center-name { display: none; }
  .header-row .logo-text { font-size: 20px; }
  .header-row { gap: 8px; }
  .header-row .switch { font-size: 13px; padding: 6px 10px; }
}

/* Мобильный режим производительности. */
@media (max-width: 860px) {
  .site-header { background: color-mix(in srgb, var(--bg) 97%, #fff); backdrop-filter: none; }
  .section { content-visibility: auto; contain-intrinsic-size: auto 720px; }
  .logo-mark, .wheel-item > *, .call-bar, .btn--call::after, .call-bar::after,
  .section h2::after, .ch-art > * { animation: none !important; }
  .card, .steps li, .addon, .review, .faq-item { box-shadow: 0 5px 16px rgba(60,20,120,.1); }
}

/* Старые iPhone (iOS до 15.4) не знают svh — без запасного варианта высота колеса становилась нулевой */
@supports not (height: 1svh) {
  :root { --wheel-h: max(580px, 100vh - 64px); }
  @media (max-width: 860px) { :root { --wheel-h: clamp(520px, 100vh - 144px, 720px); } }
}
