:root {
  --bg: #0e0f11;
  --panel: #16181b;
  --surface: #1c1f23;
  --line: #2e3239;
  --muted: #8b919b;
  --dim: #4f545d;
  --red: #e3000b;
  --red-deep: #7c0a11;
  --white: #f4f1ec;
  --top: max(env(safe-area-inset-top), 12px);
  --bottom: max(env(safe-area-inset-bottom), 12px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--white); }
body { font-family: Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }

/* ——— Сцена: на компьютере — телефон по центру, на телефоне — во весь экран ——— */
.stage { height: 100%; display: grid; place-items: center; }
.phone { position: relative; width: 100vw; height: 100dvh; overflow: hidden; overflow: clip; background: var(--bg); isolation: isolate; }
.statusbar, .caption { display: none; }

@media (min-width: 560px) and (min-height: 700px) {
  .stage {
    background:
      radial-gradient(60% 50% at 50% 0%, rgba(227, 0, 11, .16), transparent 70%),
      radial-gradient(40% 40% at 50% 100%, rgba(227, 0, 11, .08), transparent 70%), #050506;
    gap: 18px; align-content: center;
  }
  .phone {
    width: 390px; height: min(844px, calc(100vh - 70px)); border-radius: 54px;
    box-shadow: 0 0 0 10px #151517, 0 0 0 11px #2a2a2e, 0 40px 120px rgba(0, 0, 0, .8);
    --top: 50px; --bottom: 22px;
  }
  .statusbar {
    display: flex; position: absolute; z-index: 50; left: 0; right: 0; top: 0; height: 50px;
    align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; pointer-events: none;
    font-weight: 600; font-size: 16px; letter-spacing: -.2px;
  }
  .sb-island { position: absolute; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
  .sb-icons { display: flex; gap: 6px; align-items: center; }
  .sb-icons svg { fill: currentColor; color: #fff; }
  .caption { display: block; margin: 0; font-size: 12px; color: #6c7079; letter-spacing: .2px; }
}

canvas#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; touch-action: none; transition: opacity .5s; }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 2;
  background: radial-gradient(120% 80% at 50% 35%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

.view { position: absolute; inset: 0; z-index: 5; }
.view-pov { pointer-events: none; }
.view-pov > * { pointer-events: auto; }

/* ——— Шапка ——— */
.top {
  position: absolute; left: 0; right: 0; top: var(--top); padding: 4px 16px 0;
  display: flex; align-items: flex-start; justify-content: space-between; z-index: 3;
}
.round {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: #e8e6e3; flex: none; text-decoration: none;
  transition: transform .2s var(--ease), background .2s;
}
.round:active { transform: scale(.92); }
.glass { background: rgba(18, 18, 20, .5); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.title { text-align: center; min-width: 0; padding-top: 0; }
.title .logo { height: 12px; display: block; margin: 0 auto 6px; opacity: .95; }
.film { font-weight: 600; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; }
.sub { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; }

/* ——— Сеансы ——— */
.times {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.time {
  height: 34px; padding: 0 14px; border-radius: 999px; display: flex; align-items: baseline; gap: 5px;
  line-height: 34px; color: #cfd2d6; font-weight: 600; font-size: 14px; transition: background .25s, color .25s;
}
.time small { font-size: 9px; font-weight: 600; letter-spacing: .6px; color: var(--dim); }
.time.on { background: var(--white); color: #111; }
.time.on small { color: #8a8a8a; }

/* ——— Зал ——— */
.hall { position: absolute; left: 0; right: 0; }
.screen-arc { position: absolute; overflow: visible; pointer-events: none; }
.screen-glow {
  position: absolute; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 246, 238, .14), rgba(255, 246, 238, .055) 50%, transparent 100%);
}
.screen-label {
  position: absolute; left: 0; right: 0; text-align: center; font-size: 9px; letter-spacing: 5px;
  color: #5b6068; font-weight: 600; pointer-events: none;
}
.seats { position: absolute; inset: 0; }
.row-label {
  position: absolute; width: 20px; margin-left: -10px; text-align: center; font-size: 10px; color: #8b919b;
  font-weight: 600; transform: translateY(-50%); pointer-events: none; text-shadow: 0 1px 4px #000;
}
.seat {
  position: absolute; border-radius: 6px; background: transparent; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: transparent; text-shadow: none;
  transition: background .2s, box-shadow .25s;
}
.seat::after { content: ""; position: absolute; inset: -3px; } /* попасть пальцем легче */
.seat.taken { cursor: default; }
.seat.sel { color: var(--red); }
.seat.shake { animation: shake .35s, deny .6s; }
@keyframes shake { 25% { translate: -2px 0; } 75% { translate: 2px 0; } }
@keyframes deny { from { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); } to { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0); } }

.legend {
  position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 18px;
  font-size: 11px; color: #b4b8bf; z-index: 3; text-shadow: 0 1px 6px #000;
}
.legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.free { background: #a3141c; }
.lg.taken { background: #55565c; }
.lg.sel { background: var(--white); }

/* ——— Нижняя панель ——— */
.bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 18px 20px calc(var(--bottom) + 12px); background: var(--panel);
  border-radius: 26px 26px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .04);
}
.pick-label { font-size: 12px; color: var(--muted); }
.pick-price { font-size: 20px; font-weight: 600; margin-top: 3px; letter-spacing: -.3px; }
.bar.empty .pick-price { display: none; }
.bar.empty .pick-label { font-size: 15px; }
.cta {
  height: 52px; padding: 0 30px; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 600; font-size: 16px; letter-spacing: -.1px; white-space: nowrap;
  box-shadow: 0 8px 26px rgba(227, 0, 11, .35); transition: transform .2s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.cta:active { transform: scale(.96); }
.cta:disabled { background: var(--surface); color: #4f545d; box-shadow: none; cursor: default; }
.ghost {
  height: 52px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #e8e6e3;
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .2s var(--ease), background .2s;
}
.ghost:active { transform: scale(.96); }

/* ——— Вид с места ——— */
.pov-back { position: absolute; left: 16px; top: calc(var(--top) + 4px); }
.pov-chip {
  position: absolute; left: 50%; top: calc(var(--top) + 6px); transform: translateX(-50%);
  height: 34px; padding: 0 16px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pov-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.pov-hint {
  position: absolute; left: 50%; bottom: 360px; transform: translateX(-50%); height: 30px; padding: 0 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .85);
  background: rgba(18, 18, 20, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  pointer-events: none !important; opacity: 0; transition: opacity .6s;
}
.pov-hint::before { content: "↔"; font-size: 13px; opacity: .8; }
.pov-hint.on { opacity: 1; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px calc(var(--bottom) + 10px);
  background: linear-gradient(180deg, rgba(22, 23, 26, .9), rgba(14, 15, 17, .97));
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  border-radius: 28px 28px 0 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -20px 60px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease);
}
.grabber { display: block; width: 100%; height: 22px; display: grid; place-items: center; }
.grabber i { width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); display: block; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: var(--red); }
.sheet-title { font-size: 26px; font-weight: 600; letter-spacing: -.6px; margin-top: 6px; }
.sheet-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mini { width: 76px; height: 64px; flex: none; margin-top: 2px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .ghost { flex: 1; }
.sheet-actions .cta { flex: 1.35; padding: 0 16px; }
.sheet.collapsed { transform: translateY(calc(100% - 118px - var(--bottom))); }

/* ——— Всплывающие окна ——— */
.pop {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 5, 6, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fadeIn .3s var(--ease);
}
.pop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.pop-card, .ticket {
  width: 100%; max-width: 340px; background: var(--panel); border-radius: 26px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .05);
  animation: rise .45s var(--ease);
}
@keyframes rise { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.pop-card p { font-size: 14px; line-height: 1.5; color: #d9d7d4; margin: 12px 0 0; }
.pop-card .ghost, .ticket .cta { width: 100%; margin-top: 18px; }
.muted { color: var(--muted) !important; font-size: 12px !important; }
.ticket .logo { height: 14px; display: block; }
.t-film { font-size: 22px; font-weight: 600; letter-spacing: -.4px; margin: 16px 0 14px; }
.t-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; color: var(--muted); }
.t-row b { color: var(--white); font-weight: 600; }
.t-cut { height: 1px; margin: 12px -22px; background: repeating-linear-gradient(90deg, #2e3239 0 6px, transparent 6px 12px); position: relative; }
.t-cut::before, .t-cut::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #0b0b0c; }
.t-cut::before { left: -11px; } .t-cut::after { right: -11px; }
.t-total { font-size: 15px; } .t-total b { font-size: 20px; }
.ticket p { margin: 12px 0 0; }

.loading { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); transition: opacity .6s; }
.loading img { height: 18px; animation: pulse 1.4s ease-in-out infinite; }
.loading.gone { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ——— Переходы между схемой и 3D ——— */
.hall { transform-origin: 0 0; }
.top, .times, .legend, .bar { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.phone.in3d .view-map { pointer-events: none; }
.phone.in3d .top { opacity: 0; transform: translateY(-16px); }
.phone.in3d .times { opacity: 0; transform: translateX(-50%) translateY(-16px); }
.phone.in3d .legend { opacity: 0; }
.phone.in3d .bar { transform: translateY(110%); }

.view-pov { --k: 0; }
.phone:not(.pov) .view-pov, .phone:not(.pov) .view-pov * { pointer-events: none; }
.pov-back { opacity: var(--k); translate: 0 calc((1 - var(--k)) * -12px); }
.pov-chip { opacity: var(--k); translate: 0 calc((1 - var(--k)) * -12px); }
.sheet { translate: 0 calc((1 - var(--k)) * 105%); }

/* ——— Оформление и билет ——— */
.screen {
  position: absolute; inset: 0; z-index: 25; background: #0b0c0e; display: flex; flex-direction: column; overflow: hidden;
  padding-top: calc(var(--top) + 4px); transform: translateX(104%); transition: transform .5s var(--ease);
}
.scr-top { padding: 0 16px; flex: none; }
.scr-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 16px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.scr-body::-webkit-scrollbar { display: none; }
.screen.open { transform: none; }
.scr-top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 10px; }
.scr-title { font-weight: 600; font-size: 17px; }
.round-spacer { width: 38px; }
.hold {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 14px; margin-bottom: 14px;
  background: rgba(227, 0, 11, .1); color: #ff8a8f; font-size: 13px; font-weight: 500;
}
.hold b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.hold.late { background: rgba(227, 0, 11, .22); animation: holdPulse 1.2s ease-in-out infinite; }
@keyframes holdPulse { 50% { background: rgba(227, 0, 11, .32); } }

.co-card { background: var(--panel); border-radius: 20px; padding: 14px; }
.order { display: flex; gap: 14px; align-items: center; }
.order-poster { width: 58px; height: 86px; border-radius: 10px; object-fit: cover; flex: none; }
.order-film { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.order-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.seat-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.seat-name { font-size: 16px; font-weight: 600; }
.seat-type { font-size: 12px; color: var(--muted); margin-top: 3px; }
.seat-right { text-align: right; }
.seat-right b { font-size: 16px; font-weight: 600; display: block; }
.link { color: #ff6b72; font-size: 13px; font-weight: 600; margin-top: 4px; background: none; text-decoration: none; }
.link.center { display: block; margin: 18px auto 4px; padding: 12px 20px; color: var(--muted); font-weight: 500; font-size: 14px; }

.co-h { font-size: 15px; font-weight: 600; margin: 26px 2px 10px; letter-spacing: -.1px; }
.field { position: relative; }
.field input {
  width: 100%; height: 56px; border-radius: 16px; border: 1.5px solid transparent; background: var(--panel); color: #fff;
  font: inherit; font-size: 16px; padding: 22px 16px 6px; outline: none; transition: border-color .2s;
}
.field label { position: absolute; left: 17px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .18s var(--ease); }
.field input:focus { border-color: #4a4e56; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 9px; font-size: 11px; }
.field.bad input { border-color: var(--red); }
.field-hint { font-size: 12px; color: var(--muted); margin: 7px 4px 0; min-height: 16px; }
.field-hint .err { color: #ff6b72; }
.field.bad + .field-hint .ok-hint { display: none; }

.pays { display: grid; gap: 8px; }
.pay {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--panel);
  border: 1.5px solid transparent; cursor: pointer; transition: border-color .2s, background .2s;
}
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay.on { border-color: rgba(255, 255, 255, .55); background: #1b1d21; }
.pay-ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; color: #222; }
.pay-ic svg { width: 24px; height: 24px; }
.pay-txt { flex: 1; min-width: 0; }
.pay-txt b { display: block; font-size: 15px; font-weight: 600; }
.pay-txt small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pay-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #4a4e56; flex: none; transition: box-shadow .2s; }
.pay.on .pay-dot { box-shadow: inset 0 0 0 6px #fff; }

.sum { margin-top: 26px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 5px 2px; }
.sum-row.total { color: #fff; font-size: 16px; padding-top: 12px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sum-row.total b { font-size: 20px; font-weight: 700; }
.legal { font-size: 11px; line-height: 1.5; color: #6c717a; margin: 14px 4px 0; }

.co-pay-bar { flex: none; padding: 12px 16px calc(var(--bottom) + 8px); background: #0b0c0e; box-shadow: 0 -1px 0 rgba(255, 255, 255, .05); }
.cta.wide { width: 100%; }

/* оплата */
.pay-card { text-align: center; padding: 30px 22px 24px; }
.pay-big { width: 64px; height: 64px; border-radius: 18px; background: #fff; margin: 0 auto; display: grid; place-items: center; color: #222; }
.pay-big svg { width: 40px; height: 40px; }
.pay-spin { margin: 18px auto 0; width: 26px; height: 26px; }
.pay-spin i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .15); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-check { display: none; width: 56px; height: 56px; margin: 4px auto 0; animation: pop .45s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.pay-pop.ok .pay-big, .pay-pop.ok .pay-spin { display: none; }
.pay-pop.ok .pay-check { display: block; }
.pay-title { font-size: 19px; font-weight: 600; margin-top: 16px; }
.pay-text { font-size: 14px; color: #d0cfcc; margin: 8px 0 0; line-height: 1.45; }
.pay-pop.ok .pay-text { font-size: 22px; font-weight: 700; color: #fff; }
.pay-card .muted { margin: 14px 0 0; }

/* билет */
.ticket-screen { background: #0b0c0e; }
.tk-head { text-align: center; padding: 6px 0 18px; }
.tk-ok { width: 44px; height: 44px; border-radius: 50%; background: #21a038; color: #fff; margin: 0 auto; display: grid; place-items: center; }
.tk-ok svg { width: 24px; height: 24px; }
.tk-title { font-size: 22px; font-weight: 700; margin-top: 12px; letter-spacing: -.4px; }
.tk-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tk-sub b { color: #e8e6e3; font-weight: 600; word-break: break-all; }
.e-ticket { border-radius: 24px; overflow: hidden; background: #f4f1ec; color: #111; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.et-top { background: #111214; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.et-top img { height: 14px; }
.et-top span { font-size: 9px; letter-spacing: 1.6px; font-weight: 700; color: #8b919b; }
.et-body { padding: 18px 18px 16px; }
.et-film { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.et-place { font-size: 12px; color: #6b6e74; margin-top: 4px; }
.et-grid { display: grid; gap: 8px; margin-top: 14px; }
.et-grid.two { grid-template-columns: 1.4fr 1fr; }
.et-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.et-grid div { background: #e9e5de; border-radius: 12px; padding: 9px 12px 10px; }
.et-grid span { display: block; font-size: 11px; color: #75777c; }
.et-grid b { display: block; font-size: 20px; font-weight: 700; margin-top: 2px; letter-spacing: -.3px; }
.et-type { font-size: 12px; color: #6b6e74; margin-top: 10px; }
.et-cut { position: relative; height: 0; border-top: 2px dashed #d3cec5; margin: 0 18px; }
.et-cut::before, .et-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #0b0c0e; }
.et-cut::before { left: -30px; } .et-cut::after { right: -30px; }
.et-qr { padding: 20px 18px 20px; text-align: center; }
.qr { width: 200px; height: 200px; margin: 0 auto; padding: 0; }
.qr svg { width: 100%; height: 100%; display: block; }
.et-order { font-size: 12px; color: #6b6e74; margin-top: 12px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.et-show { font-size: 13px; font-weight: 600; margin-top: 4px; }
.tk-bright { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.tk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tk-actions .ghost { display: grid; place-items: center; text-decoration: none; padding: 0 10px; font-size: 14px; }

.toast {
  position: absolute; left: 50%; bottom: calc(var(--bottom) + 96px); transform: translate(-50%, 20px); z-index: 40;
  background: #f4f1ec; color: #111; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 14px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); width: max-content; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.bar.has-ticket .pick-price { color: #ff6b72; font-size: 16px; cursor: pointer; }
.tk-head[hidden] { display: block; visibility: hidden; height: 8px; padding: 0; overflow: hidden; }

/* ——— Микроанимации оформления ——— */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.screen.anim .scr-body > * { animation: rise .55s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * 45ms); }

/* таймер: секунды «тикают» */
#coTimer { display: inline-block; min-width: 2.6em; }
#coTimer.tick { animation: tick .35s var(--ease); }
@keyframes tick { from { transform: translateY(-3px); opacity: .55; } }
.hold svg { transform-origin: 50% 56%; animation: sway 2s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-10deg); } }

/* поле почты */
.field input { transition: border-color .25s, background .25s, box-shadow .25s; }
.field input:focus { background: #1b1d21; box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); }
.field.shake { animation: shakeX .42s var(--ease); }
@keyframes shakeX { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.field-ok { position: absolute; right: 16px; top: 18px; width: 20px; height: 20px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.field.good .field-ok { opacity: 1; transform: none; }
.field.good input { padding-right: 46px; }
.field-hint .err { display: inline-block; animation: rise .3s var(--ease); }

/* способ оплаты */
.pay { transition: border-color .25s, background .25s, transform .2s var(--ease); }
.pay:active { transform: scale(.98); }
.pay-ic { transition: transform .3s var(--ease); }
.pay.just .pay-ic { animation: icHop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes icHop { 40% { transform: translateY(-4px) scale(1.08); } }
.pay-dot { transition: box-shadow .3s cubic-bezier(.3, 1.6, .5, 1), transform .3s; }
.pay.just .pay-dot { animation: dotPop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dotPop { from { transform: scale(.6); } }

/* кнопка оплаты: короткая загрузка */
.cta { position: relative; overflow: hidden; }
.btn-txt { display: inline-block; transition: opacity .2s, transform .25s var(--ease); }
.btn-spin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s; }
.cta.loading .btn-txt { opacity: 0; transform: translateY(-8px); }
.cta.loading .btn-spin { opacity: 1; transform: none; animation: spin .7s linear infinite; }
.cta:not(:disabled)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-120%); }
#coPayBtn::after { animation: shine 3.2s ease-in-out 1.2s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* окно банка */
.pay-pop:not([hidden]) .pay-card { animation: rise .45s var(--ease); }
.pay-big { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 255, 255, .06); } }
.pay-check svg circle { transform-origin: center; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.draw { stroke-dasharray: 40; stroke-dashoffset: 40; }
.pay-pop.ok .draw { animation: draw .45s .15s var(--ease) forwards; }
.ticket-screen.open .tk-ok .draw { animation: draw .5s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pay-pop.ok .pay-text { animation: rise .4s .1s var(--ease) both; }

/* билет */
.ticket-screen.open .tk-ok { animation: pop .5s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.screen.anim .e-ticket { animation: ticketIn .8s var(--ease) both; animation-delay: .35s; }
@keyframes ticketIn { from { opacity: 0; transform: translateY(40px) rotate(-2deg) scale(.96); } }
.screen.anim .qr { animation: qrIn .9s var(--ease) both .85s; }
@keyframes qrIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  .screen.anim .scr-body > *, .screen.anim .e-ticket, .screen.anim .qr, #coTimer.tick, .hold svg, .pay-big, #coPayBtn::after { animation: none !important; }
  .draw { stroke-dashoffset: 0; }
}

/* ——— Несколько мест ——— */
.seats-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.seats-head .link { margin: 0; }
.seats-card .seat-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; margin: 0; }
.seats-card .seat-line + .seat-line { border-top: 1px solid rgba(255, 255, 255, .06); }
.seats-card .seat-line b { font-size: 15px; font-weight: 600; }
.age { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 5px; vertical-align: 3px; box-shadow: inset 0 0 0 1.3px rgba(255, 255, 255, .45); color: #d9d7d4; }
.age.dark { box-shadow: inset 0 0 0 1.3px rgba(0, 0, 0, .35); color: #444; vertical-align: 4px; }
.pay.off { opacity: .45; cursor: default; }
.pay.off:active { transform: none; }
.et-grid.three.wide { grid-template-columns: 1fr 3fr; }
.et-grid.three.wide .et-seat { display: none; }
.et-grid.three.wide .et-row b { font-size: 15px; line-height: 1.35; padding-top: 3px; }
.et-note { font-size: 11px; color: #75777c; margin-top: 4px; }
.view-seats { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.view-seats[hidden] { display: none; }
.view-seats span { font-size: 12px; color: var(--muted); margin-right: 4px; }
.vs { min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #e8e6e3; font-weight: 700; font-size: 13px;
  transition: background .25s, color .25s, transform .2s var(--ease); }
.vs:active { transform: scale(.94); }
.vs.on { background: var(--white); color: #111; }
