/* Nova Play Cafe — экраны, собранные строго из системы (screens.md, Landing 390/1440, Domain 1–4, Flow).
   Порядок WonderWalk: hero → ряд значков → плитки → зоны → абонементы → разовый визит → доказательства → квиз → вейвер → вопросы → подвал. */

/* ============ шапка (WW .lp-hero__topbar) ============ */
.hdr { background: var(--paper); position: relative; z-index: var(--z-header); }
.hdr__in { display: flex; align-items: center; gap: 8px; height: var(--header-h); max-width: var(--maxw-desktop); margin: 0 auto; padding: env(safe-area-inset-top) var(--gutter) 0; box-sizing: content-box; position: relative; }
.logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; border-radius: 12px; transition: var(--t-press); }
.logo:active { transform: scale(var(--scale-press)); }
.logo img { height: 46px; width: auto; }
.hdr__back, .hdr__title { display: none; }
.nav, .hdr__addr { display: none; }
.hdr__r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* внутренние страницы на телефоне: липкая, «назад» + заголовок по центру, без пилюли */
@media (max-width: 1023.98px) {
  body:not([data-page=landing]) .hdr { position: sticky; top: 0; box-shadow: 0 1px 0 var(--pink-2); }
  body:not([data-page=landing]) .hdr__back { display: inline-flex; }
  body:not([data-page=landing]) .hdr__title { display: block; position: absolute; left: 50%; transform: translateX(-50%); font-size: 16px; font-weight: 700; white-space: nowrap; }
  body:not([data-page=landing]) .hdr__buy { display: none; }
  body:not([data-page=landing]) .hdr__in > .logo { display: none; }
}
@media (min-width: 1024px) {
  .hdr__in { gap: 36px; }
  .logo img { height: 56px; }
  .nav { display: flex; gap: 6px; flex: 1; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 10px; transition: var(--t-hover); }
  .nav a:hover { color: var(--brand-2); }
  .nav a[aria-current=page] { color: var(--brand-2); font-weight: 800; }
  .hdr__addr { display: block; font-size: 14px; line-height: 18px; color: var(--ink-soft); text-align: right; }
  .hdr__menu { display: none; }
  .hdr__r { margin-left: 0; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .hdr__addr { display: none; } .hdr__in { gap: 20px; } }

/* ============ hero (move 1 облако + move 7 наклейка + move 2 пилюля) ============ */
.hero { position: relative; }
.hero__media { position: relative; height: clamp(260px, calc(var(--lp-vh) - 344px), 470px); overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__sticker { right: 16px; top: 18px; width: 108px; height: 108px; }
.hero__cloud { position: relative; margin-top: -80px; z-index: 2; }
.cloud-top { display: block; width: 100%; height: auto; }
.hero__panel { position: relative; margin-top: -1px; padding: 0 20px 52px; text-align: center; background: var(--cloud-fill); }
.hero__spk1 { left: 22px; top: 18px; width: 26px; height: 26px; }
.hero__spk2 { right: 34px; top: 64px; width: 14px; height: 14px; }
.hero__panel .eye { margin-bottom: 8px; }
.hero__t { font-size: var(--t-h1); line-height: var(--t-h1-lh); letter-spacing: var(--t-h1-ls); margin: 0 0 12px; }
.hero__sub { margin: 0 auto 20px; max-width: 32ch; font-size: var(--t-body); line-height: var(--t-body-lh); }
.hero__ctas { display: grid; gap: 10px; }
/* ряд круглых значков заказчицы (move 5) — меню зон */
.mapwrap { position: relative; background: var(--paper); z-index: 3; }
.wave { display: block; width: 100%; height: auto; margin-top: -26px; }
.map { display: flex; align-items: flex-start; padding: 4px 4px 6px; margin-top: -12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.map::-webkit-scrollbar { display: none; }
.map a { flex: 1 0 72px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--logo-blue); font-size: var(--t-icon-label); font-weight: 700; line-height: 17px; text-align: center; padding: 4px 2px; border-right: 1px solid var(--ring-pink); min-height: 44px; transition: var(--t-press); }
.map a:last-child { border-right: 0; }
.map a:active { transform: scale(var(--scale-press)); }
.map img { width: var(--icon-disc); height: var(--icon-disc); border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px var(--ring-pink), 0 8px 16px rgba(212, 7, 84, .18); background: #fff; }
@media (hover: hover) { .map a:hover span { text-decoration: underline; text-underline-offset: 3px; } }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 6px var(--gutter) 18px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 621px) and (max-width: 1023.98px) { .hero__panel { padding-left: calc(50% - 290px); padding-right: calc(50% - 290px); } .map { justify-content: center; } .map a { flex: 0 0 110px; } }
@media (min-width: 1024px) {
  .hero { padding: 36px var(--gutter) 0; }
  .hero__in { position: relative; max-width: var(--maxw-desktop); margin: 0 auto; height: 700px; }
  .hero__media { position: absolute; left: 0; top: 0; width: 100%; height: 560px; border-radius: 40px; }
  .hero__sticker { right: 40px; top: 36px; width: 160px; height: 160px; border-width: 5px; }
  .hero__cloud { position: absolute; left: 40px; bottom: 0; width: 640px; margin: 0; }
  .hero__panel { padding: 2px 48px 40px; border-radius: 0 0 40px 40px; text-align: left; }
  .hero__spk1 { left: auto; right: 40px; top: 6px; width: 22px; height: 22px; }
  .hero__spk2 { display: none; }
  .hero__panel .eye { margin-bottom: 10px; }
  .hero__t { margin-bottom: 14px; }
  .hero__sub { margin: 0 0 24px; max-width: 40ch; font-size: var(--t-lead); line-height: var(--t-lead-lh); }
  .hero__ctas { display: flex; align-items: center; gap: 14px; }
  .hero__ctas .cta-speed { width: auto; }
  .hero__ctas .pill { width: auto; padding: 0 28px; }
  .hero__ghost { width: auto; min-height: var(--control-lg); }
  .mapwrap { background: transparent; max-width: var(--maxw-desktop); margin: 32px auto 0; }
  .wave { display: none; }
  .map { background: var(--paper); border-radius: var(--radius-pill); padding: 18px 24px; margin: 0; overflow: visible; }
  .map a { flex: 1 1 0; }
  .trust { padding: 14px 0 0; gap: 14px; }
}

/* ============ концепция: плитки (WW .lp-tile) + сетка фактов ============ */
.concept { background: var(--cream); padding-top: 40px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-tile); overflow: hidden; background: var(--photo-empty); text-decoration: none; transition: var(--t-press); }
.tile .pic { position: absolute; inset: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--photo-scrim-tile); pointer-events: none; }
.tile__t { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; }
.tile__t b { display: block; font-size: 16px; line-height: 20px; font-weight: 800; }
.tile__t span { display: block; font-size: 14px; line-height: 18px; opacity: .95; }
.tile:active { transform: scale(var(--scale-press)); }
@media (hover: hover) { .tile:hover .tile__t b { text-decoration: underline; text-underline-offset: 3px; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--pink-2); border-radius: var(--radius-row); overflow: hidden; margin-top: 16px; }
.facts > div { background: var(--paper); padding: 12px 14px; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--ink-soft); font-size: 14px; line-height: 20px; }
@media (min-width: 1024px) {
  .concept { padding-top: 64px; padding-bottom: 40px; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .tile { aspect-ratio: 4 / 3; }
  .tile::after { background: var(--photo-scrim); }
  .facts { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
}

/* ============ зоны (WW «Become the Illusion») ============ */
.zone { background: var(--paper); padding: 40px 0; }
.zone--flip { background: var(--cream); }
.zone__line { font-size: 16px; line-height: 24px; color: var(--plum-meta); }
.car { position: relative; }
.car__frame { position: relative; margin: 12px calc(-1 * var(--gutter)) 0; }
.car__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); padding: 0 var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.car__track::-webkit-scrollbar { display: none; }
.car__s { flex: none; width: 82%; scroll-snap-align: start; }
.car__s .pic { aspect-ratio: 4 / 5; border-radius: 20px; }
.car__sticker { left: calc(var(--gutter) + 12px); bottom: 14px; width: 120px; height: 84px; }
#zone-cafe .car__sticker { width: 130px; height: 92px; }
.car__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.car__nav .icb { display: none; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink-1); }
.dots i.on { width: 20px; border-radius: 4px; background: var(--brand-2); }
.quote { font-size: 15px; line-height: 22px; font-style: italic; color: var(--ink-soft); background: var(--cream); border-radius: var(--radius-inset); padding: 12px 14px; margin: 14px 0; }
.zone--flip .quote { background: var(--paper); color: var(--ink-soft); }
.zone__links { display: grid; gap: 0; }
@media (min-width: 1024px) {
  .zone { padding: 56px 0; }
  .zone__in { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
  .zone__t { grid-column: 1; grid-row: 1; align-self: end; }
  .zone__more { grid-column: 1; grid-row: 2; }
  .car { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .zone--flip .zone__in { grid-template-columns: 7fr 5fr; }
  .zone--flip .zone__t, .zone--flip .zone__more { grid-column: 2; }
  .zone--flip .car { grid-column: 1; }
  .zone__line { font-size: var(--t-lead); line-height: var(--t-lead-lh); }
  .car__frame { margin: 0; }
  .car__track { gap: 12px; padding: 0; scroll-padding-left: 0; }
  .car__s { width: calc((100% - 24px) / 3); }
  .car__sticker { left: 12px; bottom: 12px; }
  .car__nav { justify-content: flex-start; }
  .car__nav .icb { display: inline-flex; }
  .dots { flex: 1; }
  .dots i { flex: 1; height: 4px; border-radius: 2px; }
  .dots i.on { width: auto; }
  .zone__links { display: flex; gap: 12px; align-items: center; }
  .zone__links .ghost { width: auto; }
  .zone__links .txtb { width: auto; }
}

/* ============ абонементы (WW «Pick Your Pass») ============ */
.passes { background: var(--cream); padding-top: 44px; padding-bottom: 20px; }
.cloud--head { margin: 0 0 22px; padding: 34px 20px 24px; }
.cloud__sub { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.cloud__spk1 { left: 18px; bottom: 26px; width: 18px; height: 18px; }
.cloud__spk2 { right: 22px; top: 34px; width: 12px; height: 12px; }
.cloud__spk3 { right: 30px; bottom: 24px; width: 14px; height: 14px; }
.cloud__spk4 { left: 22px; top: 36px; width: 18px; height: 18px; }
.packs { display: grid; gap: 16px; }
.card { background: var(--paper); border-radius: var(--radius-card); overflow: hidden; }
.pack { display: flex; flex-direction: column; }
.pack--best { box-shadow: 0 0 0 3px var(--brand); }
.pack__ph { position: relative; }
.pack__ph .pic { aspect-ratio: 16 / 9; }
.pack__badge { position: absolute; top: 10px; left: 10px; z-index: 2; box-shadow: 0 0 0 2px #fff; }
.pack__b { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.pack__b .incl { flex: 1; }
.pack__name { font-size: var(--t-h3); line-height: var(--t-h3-lh); letter-spacing: var(--t-h3-ls); margin: 0 0 4px; }
.pack__price { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 16px; }
.pack__price .disp { font-size: var(--t-price); line-height: var(--t-price); color: var(--ink); letter-spacing: 0; }
.pack__sib { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.after { margin: 14px 8px 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
@media (min-width: 768px) and (max-width: 1023.98px) { .packs { grid-template-columns: 1fr 1fr; } .pack--best { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .passes { padding-top: 88px; padding-bottom: 64px; }
  .cloud--head { max-width: 640px; margin: 0 auto 36px; padding: 40px 40px 32px; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
  .pack__b { padding: 16px 24px 24px; }
}

/* ============ разовый визит (WW .lp-singles + .lp-counter) ============ */
.singles { background: var(--paper); padding-top: 44px; padding-bottom: 56px; }
.list { background: var(--cream); border-radius: var(--radius-card); padding: 4px 16px; }
.totalcard__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 6px 14px; }
.totalcard__lab { font-size: 14px; line-height: 20px; color: var(--ink-soft); max-width: 22ch; }
.totalcard__sum { font-size: var(--t-total); line-height: var(--t-total); color: var(--ink); letter-spacing: 0; }
.totalcard__sum.zero { color: var(--ink-mute); }
.totalcard__note { margin: 14px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .singles { padding-top: 88px; padding-bottom: 80px; }
  .cloud--left { max-width: 520px; text-align: left; padding: 40px 40px 32px; margin: 0 0 36px; }
  .singles__in { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
  .list { padding: 8px 20px; }
  .totalcard { background: var(--paper); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); }
  .totalcard .sum { padding-bottom: 6px; border-bottom: 1px solid var(--divider); }
  .totalcard__row { padding: 14px 0; }
  .totalcard__lab { font-weight: 700; color: var(--ink); }
  .totalcard__note { text-align: left; }
}

/* ============ доказательства ============ */
.proof { background: var(--cream); padding-top: 44px; padding-bottom: 40px; }
.proof__big { margin: 8px 0 0; }
.proof__big .disp { font-size: 44px; line-height: 44px; color: var(--ink); letter-spacing: 0; }
.proof__line { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin: 2px 0 16px; }
.revempty { text-align: left; margin-bottom: 16px; }
.revempty .ghost { margin-top: 12px; }
.revempty .ghost .ic { width: 16px; height: 16px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pgrid .pic { aspect-ratio: 1; border-radius: var(--radius-inset); }
@media (min-width: 1024px) {
  .proof { padding-top: 64px; padding-bottom: 64px; }
  .proof__in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
  .proof__big .disp { font-size: 64px; line-height: 60px; }
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}

/* ============ квиз (WW quiz) — ответы не анимируются ============ */
.quiz { background: var(--paper); padding-top: 44px; padding-bottom: 48px; }
.qbox { background: var(--pink-2); border-radius: var(--radius-card); padding: 18px 16px 16px; }
.qtop { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-size: 14px; font-weight: 700; color: var(--ink); }
/* ссылки на розовой панели квиза — сливовые (raspberry на pink-2 только ≥ 24 px) */
.qbox .link, .qbox > .qres > .txtb { color: var(--ink); }
.qq { font: 800 20px/26px var(--font-body); color: var(--ink); margin: 2px 0 12px; }
.qopts { display: grid; gap: 10px; }
.qopt { display: flex; align-items: center; gap: 10px; min-height: var(--control-md); border: 2px solid var(--ring-field); border-radius: var(--radius-row); padding: 10px 14px; font-weight: 700; background: var(--paper); font-size: 16px; text-align: left; transition: var(--t-press), border-color var(--dur-hover) var(--ease-out); }
.qopt .rd { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ring-mute); flex: none; }
.qopt span { display: flex; flex-direction: column; }
.qopt small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
@media (hover: hover) { .qopt:hover { border-color: var(--ring-pink); } }
.qopt:active { transform: scale(var(--scale-press)); }
.qopt[aria-pressed=true] { border-color: var(--brand-2); }
.qopt[aria-pressed=true] .rd { box-shadow: inset 0 0 0 7px var(--brand-2); }
.qdots { display: flex; gap: 6px; margin-top: 14px; }
.qdots i { flex: 1; height: 4px; border-radius: 2px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ring-pink); }
.qdots i.on, .qdots i.done { background: var(--brand-2); box-shadow: none; }
.qres__card { background: var(--paper); border-radius: var(--radius-row); padding: 16px; }
.qres__t { font-size: var(--t-h3); line-height: var(--t-h3-lh); margin: 0 0 4px; }
.qres__t:focus { outline: none; }
.qres__p { font: 800 18px/24px var(--font-body); }
.qres__w { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin: 4px 0 14px; }
@media (min-width: 1024px) {
  .quiz { padding-top: 64px; padding-bottom: 64px; }
  .quiz__in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
  .qbox { padding: 24px; }
  .qopts--row { grid-template-columns: repeat(3, 1fr); }
  .qopts--row .qopt { justify-content: center; }
  .qopts--row .qopt .rd { display: none; }
}

/* ============ вейвер-блок (пауза, зона родителя) ============ */
.waiver { background: var(--cream); padding-top: 44px; padding-bottom: 44px; }
.waiver__txt { font-size: 16px; line-height: 24px; color: var(--ink-soft); margin: 4px 0 14px; }
@media (min-width: 1024px) {
  .waiver { padding-top: 64px; padding-bottom: 64px; }
  .waiver__in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
  .waiver__btn { width: auto; }
  .waiver__box { background: var(--paper); border-radius: var(--radius-card); padding: 24px; }
  .waiver__box .incl { margin: 0; }
}

/* ============ вопросы ============ */
.faq { background: var(--paper); padding-top: 44px; padding-bottom: 48px; }
.faq .h-sec { margin-bottom: 16px; }
@media (min-width: 1024px) { .faq { padding-top: 64px; padding-bottom: 72px; } .faq__in { max-width: calc(720px + 2 * var(--gutter)); text-align: center; } .acc { text-align: left; } .faq .h-sec { margin-bottom: 24px; } }

/* ============ подвал (WW .lp-foot, cream) ============ */
.foot { background: var(--cream); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; line-height: 20px; color: var(--ink-soft); }
body[data-page=landing] .foot { padding-bottom: calc(var(--cta-h) + 34px + env(safe-area-inset-bottom)); }
.partyb { display: grid; background: var(--paper); border-radius: var(--radius-card); overflow: hidden; margin-bottom: 28px; text-align: left; }
.partyb__ph .pic { aspect-ratio: 16 / 9; }
.partyb__t { padding: 16px 16px 18px; }
.partyb__h { font-size: var(--t-h3); line-height: var(--t-h3-lh); margin: 0 0 6px; }
.partyb__t p:not(.eye) { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.fcols { display: grid; gap: 12px; text-align: center; justify-items: center; }
.logo--foot img { height: 52px; }
.fb { display: block; color: var(--ink); font-weight: 700; margin-top: 6px; }
.foot address a, .flinks a { color: var(--brand-2); font-weight: 700; text-decoration: none; }
.flinks { line-height: 44px; }
.flinks a { display: inline-block; min-height: 44px; }
@media (hover: hover) { .foot address a:hover, .flinks a:hover { text-decoration: underline; } }
.fbot { margin-top: 18px; text-align: center; display: grid; gap: 4px; }
@media (min-width: 1024px) {
  body[data-page=landing] .foot { padding-bottom: 40px; }
  .foot { padding-top: 40px; }
  .partyb { grid-template-columns: 1fr 1.3fr; align-items: center; }
  .partyb__ph .pic { aspect-ratio: 16 / 10; }
  .partyb__t { padding: 32px 40px; }
  .partyb__t .ghost { width: auto; }
  .fcols { grid-template-columns: 1fr 1.4fr 1fr; text-align: left; justify-items: start; gap: 24px; align-items: start; }
  .fbot { display: flex; justify-content: space-between; text-align: left; border-top: 1px solid var(--pink-2); padding-top: 14px; }
}

/* ============ липкая панель покупки (WW .lp-sticky) ============ */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-panel); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: var(--shadow-bar); border-top: 1px solid var(--pink-2); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%); transition: transform var(--dur-banner) var(--ease-out); }
.bar.on { transform: none; }
.bar__in { display: flex; align-items: center; gap: 12px; max-width: var(--maxw); margin: 0 auto; }
.bar__m { flex: 1; min-width: 0; line-height: 1.25; }
.bar__m b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__m span { display: block; font-size: 14px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo--bar { display: none; }
@media (min-width: 1024px) {
  .bar { top: 0; bottom: auto; padding: 0 var(--gutter); border-top: 0; box-shadow: var(--shadow-bar-d); transform: translateY(-120%); }
  .bar__in { max-width: var(--maxw-desktop); height: 76px; gap: 20px; }
  .logo--bar { display: inline-flex; } .logo--bar img { height: 44px; }
  .bar__m b { font-size: 16px; }
}
html[data-motion=reduce] .bar { transition: opacity var(--dur-reduced) linear; transform: none; opacity: 0; pointer-events: none; }
html[data-motion=reduce] .bar.on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .bar { transition: opacity var(--dur-reduced) linear; transform: none; opacity: 0; pointer-events: none; } .bar.on { opacity: 1; pointer-events: auto; } }

/* ============ страницы после оплаты ============ */
.pg { min-height: calc(var(--lp-vh) - var(--header-h)); background: var(--cream); }
.pg__in { padding-top: 16px; padding-bottom: 48px; }
.pg.enter-fwd { animation: np-page-in var(--dur-screen-web) var(--ease-slide-web); }
@keyframes np-page-in { from { opacity: 0; transform: translateX(var(--shift-page-web)); } to { opacity: 1; transform: none; } }
html[data-motion=reduce] .pg.enter-fwd { animation: kb-fade-in var(--dur-reduced) linear; }
.pghead { margin-bottom: 14px; }
.pghead .eye { margin-bottom: 2px; }
.pg__t { font-size: 30px; line-height: 30px; margin: 0 0 6px; }
.pg__t--sm { font-size: 26px; line-height: 28px; }
.pg__t:focus { outline: none; }
.pg__sub { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.pg__sub b { color: var(--ink); }
.pg__meta { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin: 8px 2px 0; }
.pgrid2 { display: grid; gap: 16px; }
.pside { display: grid; gap: 12px; align-content: start; }
.mlab { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.wcard { background: var(--paper); border-radius: var(--radius-row); padding: 14px 16px 4px; }
.wcard__t { display: block; font-weight: 700; margin-bottom: 8px; }
/* карточка билета / пропуска (Ticket card) */
.tcards { display: grid; gap: 10px; }
.tcard { background: var(--paper); border-radius: var(--radius-card); padding: 12px; display: flex; gap: 12px; align-items: center; }
.tcard__t { min-width: 0; display: grid; gap: 2px; justify-items: start; }
.tcard__t small { font-size: 14px; line-height: 18px; color: var(--ink-soft); }
.tcard__t b { font-size: 17px; line-height: 22px; font-weight: 800; }
.tcard__t > span { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.tcard__t strong { font-size: 16px; font-weight: 800; }
.tcard .badge { margin-top: 4px; }
.cells { display: flex; gap: 4px; margin: 6px 0 2px; width: 100%; max-width: 260px; }
.cells i { flex: 1; max-width: 22px; aspect-ratio: 1; border-radius: var(--radius-tag); background: #fff; box-shadow: inset 0 0 0 1.5px var(--ring-pink); }
.cells i.u { background: var(--brand-2); box-shadow: none; }
.hist { background: var(--paper); border-radius: var(--radius-row); padding: 4px 14px; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 14px; line-height: 20px; }
.hist li:last-child { border-bottom: 0; }
.hist li b { font-weight: 800; white-space: nowrap; }
.hist__empty { justify-content: center !important; text-align: center; color: var(--ink-soft); padding: 16px 0 !important; }
@media (min-width: 1024px) {
  .pg__in { padding-top: 40px; padding-bottom: 80px; }
  .pg__t { font-size: 48px; line-height: 48px; }
  .pg__t--sm { font-size: 40px; line-height: 40px; }
  .pgrid2 { grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
  .tcard { padding: 16px; gap: 16px; }
}
/* мембершип: вкладки на телефоне, на компьютере — календарь слева, детали справа */
.pghead--row { display: grid; gap: 10px; }
.mgrid { display: block; }
.mpanel { margin-top: 12px; }
.mpanel[hidden] { display: none !important; }
.canceled { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; }
.kvl { background: var(--paper); border-radius: var(--radius-row); padding: 4px 14px; margin-bottom: 12px; }
.kvl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-variant-numeric: tabular-nums; }
.kvl div:last-child { border-bottom: 0; }
.kvl dd { font-weight: 800; text-align: right; }
@media (min-width: 1024px) {
  .pghead--row { grid-template-columns: 1fr auto; align-items: end; }
  .pghead--row .tabs { display: none; }
  .mgrid { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; }
  .mpanel[hidden] { display: block !important; }
  .mpanel--cal { grid-column: 1; grid-row: 1 / span 2; }
  #mb-pass { grid-column: 2; grid-row: 1; }
  #mb-bill { grid-column: 2; grid-row: 2; }
  .mpanel { margin-top: 0; margin-bottom: 20px; }
}
/* календарь закрытых дней (Domain 4) — дни не анимируются */
.calbox { background: var(--paper); border-radius: var(--radius-card); padding: 12px; }
.calnav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.calnav b { font-weight: 800; font-size: 16px; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-h span { color: var(--ink-soft); font-size: 14px; font-weight: 700; padding: 4px 0; }
.cd { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--radius-cell); background: var(--cream); font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; transition: var(--t-press); }
.cd.np { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pink-2); color: var(--ink-soft); }
.cd.mo { background: transparent; color: var(--closed-ink); text-decoration: line-through; }
.cd.cl { background: var(--ink); color: #fff; }
.cd.pc { background: var(--warn-tint); color: var(--warn); }
.cd.td { box-shadow: 0 0 0 2px var(--brand-2); }
.cd.se { box-shadow: 0 0 0 2px var(--brand-2), inset 0 0 0 2px #fff; z-index: 1; }
.cd--pad { background: transparent; pointer-events: none; }
@media (hover: hover) { .cd.plan:hover, .cd.np:hover { box-shadow: inset 0 0 0 2px var(--ring-pink); } }
.cd:active { transform: scale(.92); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--ink-soft); margin: 10px 0 2px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.l-plan { background: var(--cream); }
.l-off { box-shadow: inset 0 0 0 1.5px var(--pink-2); }
.l-closed { background: var(--ink); }
.l-part { background: var(--warn-tint); box-shadow: inset 0 0 0 1px #F2DDB0; }
.l-mon { background: var(--closed-fill); }
.l-today { box-shadow: inset 0 0 0 2px var(--brand-2); }
.daydet { background: var(--paper); border-radius: var(--radius-row); padding: 12px 14px; margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--ink-soft); min-height: 48px; }
.daydet b { color: var(--ink); font-weight: 800; }
.daydet .badge { margin-left: 6px; }
.daydet p { margin-top: 4px; }
.calempty { margin: 10px 0 0; }
@media (min-width: 1024px) { .calbox { padding: 16px 20px; } .cd { min-height: 48px; } .cal-g { gap: 6px; } }
@media (max-width: 359px) { .calbox { padding: 10px 6px; } .cal-h, .cal-g { gap: 2px; } }

/* ============ окна: наполнение ============ */
/* меню телефона — шторка сверху */
html.is-sheet .ov--menu, .ov--menu { align-items: flex-start; padding: 0; }
.ov--menu .panel, html.is-sheet .ov--menu .panel { max-width: none; width: 100%; max-height: var(--lp-vh); border-radius: 0 0 var(--radius-sheet) var(--radius-sheet); background: var(--cream); padding: env(safe-area-inset-top) var(--gutter) 20px; animation: np-menu-in var(--dur-sheet) var(--ease-drawer); }
.ov--menu.out .panel, html.is-sheet .ov--menu.out .panel { animation: np-menu-out var(--dur-sheet-out) var(--ease-drawer) forwards; }
@keyframes np-menu-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes np-menu-out { from { transform: none; } to { transform: translateY(-100%); } }
html[data-motion=reduce] .ov--menu .panel, html[data-motion=reduce].is-sheet .ov--menu .panel { animation: kb-fade-in var(--dur-reduced) linear; }
html[data-motion=reduce] .ov--menu.out .panel, html[data-motion=reduce].is-sheet .ov--menu.out .panel { animation: kb-fade-out var(--dur-reduced) linear forwards; }
.menu__h { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu__h .logo img { height: 46px; }
.menu__l { display: grid; gap: 6px; margin: 8px 0 16px; }
.menu__l button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius-row); background: transparent; font-size: 18px; font-weight: 700; color: var(--ink); }
.menu__l button .ic { color: transparent; }
.menu__l button[aria-current=true] { background: var(--paper); color: var(--brand-2); font-weight: 800; }
.menu__l button[aria-current=true] .ic { color: var(--brand-2); }
.menu__l button:active { background: var(--paper); }
@media (hover: hover) { .menu__l button:hover { background: var(--paper); } }
.menu__info { font-size: 14px; line-height: 20px; color: var(--ink-soft); padding: 0 16px; margin-bottom: 14px; }
/* окно зоны */
.itgrid { display: grid; gap: 16px; }
.car--item .car__frame { margin-top: 0; }
.car--item .car__s { width: 86%; }
.car--item .car__nav .icb { display: inline-flex; }
.it__t .zone__line { margin-bottom: 12px; }
@media (min-width: 768px) {
  .car--item .car__frame { margin: 0; }
  .car--item .car__track { padding: 0; scroll-padding-left: 0; }
  .car--item .car__s { width: 100%; }
  .car--item .car__s .pic { border-radius: var(--radius); }
}
@media (min-width: 1024px) { .itgrid { grid-template-columns: 1fr 1fr; gap: 28px; } .it__t { padding-top: 8px; } }
/* карточка плана */
.pl-name { font-size: var(--t-h3); line-height: var(--t-h3-lh); margin: 0; }
.wbox { background: var(--cream); border-radius: var(--radius-inset); padding: 12px 12px 2px; margin: 4px 0 12px; }
.pl-not { margin-bottom: 12px; }
.pl-not p:not(.eye) { font-size: 14px; line-height: 20px; }
.pl-small { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips li { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--cream); font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink-soft); }
.chips li.hit { background: var(--warn-tint); color: var(--warn); }
.tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--divider); margin-top: 14px; padding-top: 12px; font-weight: 800; }
.tot .disp { font-size: var(--t-total); line-height: var(--t-total); color: var(--ink); letter-spacing: 0; }
/* оплата */
.sumbox { background: var(--cream); border-radius: var(--radius-row); padding: 4px 14px 12px; margin-bottom: 14px; }
.sumbox .cnts .r:last-child { border-bottom: 1px solid var(--divider); }
.sumbox .sum { padding-top: 6px; }
.co-card { margin: -2px 0 6px; }
.fld--zip { max-width: 160px; }
/* читалка */
.rd-top { flex: none; padding: 20px 24px 0; background: var(--paper); }
.rd-top .sh-h { margin-bottom: 10px; }
.prog { height: 3px; background: var(--pink-2); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand-2); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
#rd-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px 20px; -webkit-overflow-scrolling: touch; }
.rd-meta { font-size: 14px; line-height: 20px; color: var(--ink-soft); margin-bottom: 4px; }
.legal { font-size: 14px; line-height: 22px; color: var(--ink); }
.legal h4 { font-size: 14px; margin: 14px 0 4px; font-weight: 800; }
.legal p { max-width: 64ch; }
.legal__end { display: flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 700; color: var(--ok); }
.legal__end .ic { width: 16px; height: 16px; }
.rd-bot { flex: none; padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--pink-2); }
html.is-sheet #ov-reader .panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(var(--lp-vh) * .88); max-height: none; }
html.is-sheet .rd-top { padding: 6px var(--gutter) 0; touch-action: none; }
html.is-sheet #rd-scroll { padding: 12px var(--gutter) 20px; }
html.is-sheet .rd-bot { padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
/* ожидание банка */
.wait { text-align: center; padding: 20px 0 16px; }
.wait .spin--lg { display: block; margin: 0 auto 14px; }
.wait__b { font-weight: 700; font-size: 14px; }
.wait__s { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
html.is-sheet .ov--wait .panel { padding-top: 22px; }
/* подпись вейвера */
.ov--sign .panel { padding: 22px 24px 24px; }
html.is-sheet .ov--sign { align-items: stretch; padding: 10px; }
html.is-sheet .ov--sign .panel { border-radius: var(--radius-modal); height: 100%; max-height: none; padding: 18px var(--gutter) 0; animation: kb-modal-in var(--dur-modal) var(--ease-out); }
html.is-sheet .ov--sign.nudge .panel { animation: np-nudge var(--dur-banner) var(--ease-out); }
html[data-motion=reduce].is-sheet .ov--sign .panel { animation: kb-fade-in var(--dur-reduced) linear; }
html[data-motion=reduce].is-sheet .ov--sign.nudge .panel { animation: none; }
.sg-head { margin-bottom: 12px; }
.sg-head__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sg-head .eye { margin: 0; }
.sg-paid .ic { width: 14px; height: 14px; }
.sg-t { font: 800 22px/28px var(--font-body); color: var(--ink); margin: 2px 0 2px; }
.ov[data-state=partial] #sg-state { background: var(--pink-2); color: var(--brand-2); }
.ov[data-state=error] #sg-state { background: var(--err-tint); color: var(--err); }
.ov[data-state=submitting] #sg-state, .ov[data-state=signed] #sg-state { background: var(--ok-tint); color: var(--ok); }
.sg-body { display: grid; gap: 0 32px; }
.sg-body .eye { margin-top: 6px; }
@media (min-width: 720px) { .sg-body { grid-template-columns: 1fr 1fr; } }
.kids { display: grid; gap: 8px; margin-bottom: 4px; }
.kid { background: var(--cream); border-radius: var(--radius-inset); padding: 8px 12px 0; }
.kid__h { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-weight: 700; }
.kid .fld input { height: 48px; }
.sigpad { position: relative; border-radius: var(--radius-input); background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ring-field); overflow: hidden; }
.sigpad.err { box-shadow: inset 0 0 0 2px var(--err); }
.sigpad.has { box-shadow: inset 0 0 0 1.5px var(--ring-pink); }
.sigpad__draw { position: relative; height: 132px; touch-action: none; }
.sigpad__draw canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sigpad__line { position: absolute; left: 16px; right: 16px; bottom: 24px; border-bottom: 1.5px dashed var(--ring-mute); pointer-events: none; }
.sigpad__ph { position: absolute; left: 0; right: 0; top: 44px; text-align: center; color: var(--ink-mute); font-size: 14px; pointer-events: none; }
.sigpad.has .sigpad__ph { display: none; }
.sigpad__typed { padding: 12px; }
.sigpad__typed .fld { margin: 0; }
.typed-prev { min-height: 44px; margin-top: 8px; font: italic 600 26px/1.3 "Snell Roundhand", "Segoe Script", "Brush Script MT", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.padtools { display: flex; justify-content: space-between; gap: 8px; }
.sg-bot { display: grid; gap: 2px; margin-top: 12px; }
html.is-sheet .sg-bot { position: sticky; bottom: 0; z-index: 3; background: var(--paper); margin: 12px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--pink-2); }
.ov[data-state=submitting] #sg-skip { color: var(--ring-mute); pointer-events: none; text-decoration: none; }
.ov[data-state=submitting] .sg-body input, .ov[data-state=submitting] .sigpad { pointer-events: none; opacity: .7; }
#sg-done { padding: 28px 8px; }
html.is-sheet .ov--sign[data-state=signed] { align-items: center; padding: 14px; }
html.is-sheet .ov--sign[data-state=signed] .panel { height: auto; padding: 22px 18px; }
.ov--sign[data-state=signed] .panel { max-width: 440px; }
/* QR у стойки */
.qv { text-align: center; padding: 4px 0 8px; }
.qv__qr { width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto 14px; background: #fff; border-radius: var(--radius-card); box-shadow: inset 0 0 0 1.5px var(--pink-2); padding: 18px; }
.qv__qr svg { width: 100%; height: 100%; fill: var(--ink); }
.qv__name { display: block; font-size: 22px; font-weight: 800; }
.qv .badge { margin-top: 8px; }
.qv__hint { margin-top: 10px; }
/* праздник */
.pt-ph .pic { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-top: 14px; }
.pt-r { margin-top: 10px; }
#pt-sent { padding: 24px 0 8px; }
.padtools .link { min-width: 44px; justify-content: center; }

/* ============ движение: только принятые системой случаи (motion.md → Accepted) ============ */
/* облачная панель — проявление один раз при прокрутке, только ниже первого экрана */
.cloud--head.rv { opacity: 0; transform: translateY(var(--shift-reveal)); }
.cloud--head.rv.in { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-reveal), transform var(--dur-reveal) var(--ease-reveal); }
/* вопросы: раскрытие --dur-accordion; повторное открытие просто перезапускает */
.acc details[open] .acc__b { animation: np-acc var(--dur-accordion) var(--ease-standard); }
@keyframes np-acc { from { opacity: 0; transform: translateY(calc(var(--shift-list) * -1)); } to { opacity: 1; transform: none; } }
/* подписной момент 1: билеты появляются каскадом, одна искра на первом */
.tcards.celebrate > li { animation: kb-list-in var(--dur-list) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger-section)); }
.tcard { position: relative; }
.pop { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; animation: np-pop var(--dur-spring-pop) var(--spring-pop) both; animation-delay: calc(var(--stagger-section) * 3); }
@keyframes np-pop { from { opacity: 0; transform: scale(var(--scale-alert-in)); } to { opacity: 1; transform: none; } }
/* подписной момент 2: галочка «подписано» рисует себя */
#sg-done .okmark .ic { stroke-dasharray: 24; stroke-dashoffset: 0; animation: np-draw var(--dur-banner) var(--ease-out) both; }
@keyframes np-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
/* подписной момент 3: «ближайшее закрытие» въезжает сверху, одно */
.notice.arrive { animation: np-notice var(--dur-banner) var(--ease-out) both; animation-delay: var(--dur-screen-web); }
@keyframes np-notice { from { opacity: 0; transform: translateY(var(--shift-notice)); } to { opacity: 1; transform: none; } }
/* подписной момент 4: QR у стойки раскрывается на месте */
.ov--qr .panel { animation-duration: var(--dur-photo-open); }
.ov--qr.out .panel { animation-duration: var(--dur-photo-close); }
html[data-motion=reduce] .cloud--head.rv { transform: none; }
html[data-motion=reduce] .cloud--head.rv.in { transition: opacity var(--dur-reduced) linear; }
html[data-motion=reduce] .tcards.celebrate > li, html[data-motion=reduce] .notice.arrive, html[data-motion=reduce] .acc details[open] .acc__b { animation: kb-fade-in var(--dur-reduced) linear both; animation-delay: 0ms; }
html[data-motion=reduce] .pop { animation: none; }
html[data-motion=reduce] #sg-done .okmark .ic { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cloud--head.rv { transform: none; } .cloud--head.rv.in { transition: opacity var(--dur-reduced) linear; }
  .tcards.celebrate > li, .notice.arrive, .acc details[open] .acc__b { animation: kb-fade-in var(--dur-reduced) linear both; animation-delay: 0ms; }
  .pop, #sg-done .okmark .ic { animation: none; }
}

/* полоса «нет связи» (Offline strip): тёмная, золотой знак, сама не исчезает */
.offline { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: var(--radius-inset); padding: 10px 12px; margin: 0 0 12px; font-size: 14px; line-height: 20px; }
.offline .ic { color: var(--gold); width: 18px; height: 18px; margin-top: 1px; }
.offline b { font-weight: 800; }
/* подсказка при опечатке в email */
.fld__suggest { font-size: 14px; line-height: 20px; color: var(--ink); }
.fld__suggest button { color: var(--brand-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; position: relative; }
.fld__suggest button::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
/* календарь листается пальцем: следует за пальцем 1:1 */
#cal { touch-action: pan-y; }
/* поля и подпись не прячутся под закреплённой внизу кнопкой при прокрутке к ним */
html.is-sheet .ov--sign .panel { scroll-padding-bottom: 150px; scroll-padding-top: 12px; }
html.is-sheet .ov--co .panel, html.is-sheet .ov--plan .panel, html.is-sheet .ov--mid .panel { scroll-padding-bottom: 170px; }
/* телефон: колонки окон «растворяются», чтобы закреплённая внизу кнопка (Pay, Continue, Sign & finish, Send request)
   прилипала к краю шторки с первого кадра — липкий элемент не выходит за пределы своего родителя */
@media (max-width: 767.98px) { .two--co > div, .two--plan > div, .two--party > form, .two--party > div { display: contents; } }
@media (max-width: 719.98px) { .sg-body > div { display: contents; } }
