/**
 * КодГор — премиальный cinematic-дизайн мероприятия / билетов
 * Apple Event × Cyberpunk × VIP festival (тёмный фон, неон, зелёный акцент)
 */

:root {
  --ev-neon: #22c55e;
  --ev-neon-soft: rgba(34, 197, 94, 0.45);
  --ev-gold: #fbbf24;
  --ev-gold-glow: rgba(251, 191, 36, 0.55);
  --ev-glass: rgba(15, 23, 42, 0.55);
  --ev-glass-border: rgba(148, 163, 184, 0.22);
  --ev-text-dim: #94a3b8;
  --ev-headline: #f8fafc;
}

body.event-page {
  overflow-x: hidden;
}

body.event-page .main {
  padding: 0;
}

/*
 * Декоративные билеты — только внутри .event-hero (не sibling под body).
 * Слои: event-hero__bg z:1 → deco билеты z:2 → event-hero__inner z:10.
 * Так они видны поверх mesh/grid, но всегда под текстом и CTA (pointer-events: none).
 */

/* ========= Декоративные билеты по бокам hero (desktop): фоновый слой ========= */
.event-deco-tickets {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
}

.event-deco-ticket {
  pointer-events: none;
  position: absolute;
  top: 24%;
  width: min(294px, 36vw);
  height: 448px;
  border-radius: 18px;
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(34, 197, 94, 0.05) 40%,
      rgba(2, 6, 23, 0.94) 100%
    ),
    rgba(8, 12, 22, 0.78);
  border: 1px solid rgba(34, 197, 94, 0.22);
  box-shadow:
    0 0 36px rgba(34, 197, 94, 0.08),
    0 28px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: center center;
  will-change: transform, filter, opacity;
}

.event-deco-ticket::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.14) 48%,
    rgba(34, 197, 94, 0.1) 52%,
    transparent 64%
  );
  background-size: 240% 240%;
  animation: evHoloSweep 7s ease-in-out infinite;
  opacity: 0.38;
  pointer-events: none;
}

.event-deco-ticket--right::before {
  opacity: 0.52;
}

.event-deco-ticket--left::before {
  opacity: 0.26;
}

.event-deco-ticket::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 46%;
  border-top: 2px dashed rgba(148, 163, 184, 0.22);
  pointer-events: none;
}

.event-deco-ticket__inner {
  position: relative;
  padding: 28px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-deco-ticket__brand {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(74, 222, 128, 0.72);
  font-weight: 700;
}

.event-deco-ticket__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(248, 250, 252, 0.72);
}

.event-deco-ticket__barcode {
  margin-top: auto;
  height: 42px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    #e2e8f0 0px,
    #e2e8f0 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.35;
  mix-blend-mode: screen;
}

.event-deco-ticket__qr {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-image:
    linear-gradient(90deg, rgba(34, 197, 94, 0.35) 50%, transparent 50%),
    linear-gradient(rgba(34, 197, 94, 0.35) 50%, transparent 50%);
  background-size: 8px 8px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  opacity: 0.45;
}

/* Якорь по краю hero; transform/opacity/filter дополняются JS (cinematic scroll) */
.event-deco-ticket--left {
  left: 0;
  transform: translate3d(-220px, 0, 0) rotate(-12deg);
  border-color: rgba(34, 197, 94, 0.16);
  box-shadow:
    0 0 28px rgba(0, 0, 0, 0.65),
    0 28px 56px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.event-deco-ticket--right {
  right: 0;
  left: auto;
  transform: translate3d(220px, 0, 0) rotate(12deg);
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow:
    0 0 52px rgba(34, 197, 94, 0.22),
    0 0 120px rgba(52, 211, 153, 0.08),
    0 28px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .event-deco-tickets {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-deco-ticket,
  .event-deco-ticket::before {
    animation: none !important;
  }
}

@keyframes evHoloSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ========= Fullscreen Hero ========= */
.event-hero {
  position: relative;
  min-height: min(100vh, 1080px);
  padding: clamp(72px, 12vh, 120px) clamp(16px, 4vw, 48px) clamp(48px, 8vh, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.event-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #030508;
  overflow: hidden;
}

.event-hero__bg-mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(34, 197, 94, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 85%, rgba(16, 185, 129, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59, 130, 246, 0.06), transparent 60%);
  animation: evMeshDrift 22s ease-in-out infinite alternate;
}

.event-hero__bg-orbs .event-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: evOrbFloat 14s ease-in-out infinite;
}

.event-hero__bg-orbs .event-orb:nth-child(1) {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  left: -10%;
  top: -8%;
  background: rgba(34, 197, 94, 0.35);
  animation-delay: 0s;
}

.event-hero__bg-orbs .event-orb:nth-child(2) {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  right: -5%;
  bottom: 10%;
  background: rgba(59, 130, 246, 0.18);
  animation-delay: -4s;
}

.event-hero__bg-orbs .event-orb:nth-child(3) {
  width: min(360px, 45vw);
  height: min(360px, 45vw);
  left: 35%;
  bottom: -12%;
  background: rgba(34, 197, 94, 0.2);
  animation-delay: -7s;
}

.event-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.5;
}

.event-hero__bg-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 2px;
  height: 120%;
  transform: translateX(-50%) rotate(12deg);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 197, 94, 0.35),
    transparent
  );
  filter: blur(2px);
  animation: evBeamPulse 5s ease-in-out infinite;
}

.event-hero__bg-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  animation: evParticle 12s linear infinite;
}

.event-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.event-hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #bbf7d0;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.event-chip--pulse {
  animation: evChipGlow 3s ease-in-out infinite;
}

.event-hero__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ev-headline);
  text-transform: uppercase;
  text-shadow:
    0 0 40px rgba(34, 197, 94, 0.28),
    0 0 80px rgba(34, 197, 94, 0.12);
}

.event-hero__subtitle {
  margin: 0 0 22px;
  font-size: clamp(14px, 1.8vw, 18px);
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 540px;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.25);
}

.event-hero__tags {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ev-neon);
  font-weight: 600;
}

.event-hero__meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--ev-text-dim);
}

.event-hero__meta-line strong {
  color: #e2e8f0;
  font-weight: 600;
}

.event-countdown {
  margin-bottom: 22px;
}

.event-countdown__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ev-text-dim);
  margin-bottom: 12px;
}

.event-countdown__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.event-countdown__cell {
  position: relative;
  padding: 18px 14px 14px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(2, 6, 23, 0.85));
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow:
    0 0 40px rgba(34, 197, 94, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.event-countdown__cell::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg, transparent, rgba(34, 197, 94, 0.12), transparent);
  animation: evSpin 12s linear infinite;
  opacity: 0.5;
}

.event-countdown__value {
  position: relative;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.event-countdown__unit {
  position: relative;
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ev-neon);
  font-weight: 700;
}

.event-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.event-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #022c22;
  background: linear-gradient(135deg, #4ade80, var(--ev-neon));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 18px 50px rgba(34, 197, 94, 0.45);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}

.event-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 22px 60px rgba(34, 197, 94, 0.55);
}

.event-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(2, 6, 23, 0.55);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.event-btn-secondary:hover {
  border-color: var(--ev-neon-soft);
  background: rgba(34, 197, 94, 0.08);
  transform: translateY(-2px);
}

.event-hero__visual {
  position: relative;
  height: min(560px, 72vh);
  perspective: 1200px;
}

.event-float-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.event-float-card {
  position: absolute;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.12),
    rgba(15, 23, 42, 0.65)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.event-float-card--a {
  width: 72%;
  left: 8%;
  top: 6%;
  height: 120px;
  padding: 18px 22px;
  animation: evFloatA 8s ease-in-out infinite;
}

.event-float-card--b {
  width: 64%;
  right: 0;
  top: 38%;
  height: 100px;
  padding: 16px 20px;
  animation: evFloatB 9s ease-in-out infinite;
}

.event-float-card__tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ev-gold);
  font-weight: 800;
  margin-bottom: 8px;
}

.event-float-card__text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

.event-float-pass {
  position: absolute;
  left: 12%;
  bottom: 4%;
  width: 76%;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.18),
      rgba(2, 6, 23, 0.92)
    ),
    rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow:
    0 0 60px rgba(34, 197, 94, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: evFloatPass 10s ease-in-out infinite;
}

.event-float-pass__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.event-float-pass__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ev-neon);
  font-weight: 800;
}

.event-float-pass__qr {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.15) 50%, transparent 50%);
  background-size: 6px 6px;
  animation: evQrPulse 2.8s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.event-float-pass__line {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ev-neon), transparent);
  margin-bottom: 10px;
  opacity: 0.85;
}

.event-float-pass__foot {
  font-size: 12px;
  color: var(--ev-text-dim);
}

.event-float-pass__foot strong {
  color: #fff;
}

/* Reasons */
.event-reasons {
  position: relative;
  padding: clamp(56px, 10vw, 110px) clamp(16px, 4vw, 48px);
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(34, 197, 94, 0.08), transparent 55%);
}

.event-reasons__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.event-reasons__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ev-headline);
}

.event-reasons__lead {
  margin: 0;
  font-size: 15px;
  color: var(--ev-text-dim);
  line-height: 1.55;
}

.event-reasons__grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.event-reason-card {
  position: relative;
  padding: 24px 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.72));
  border: 1px solid var(--ev-glass-border);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s,
    box-shadow 0.35s;
}

.event-reason-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(34, 197, 94, 0.35),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}

.event-reason-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(34, 197, 94, 0.18);
}

.event-reason-card:hover::after {
  opacity: 1;
}

.event-reason-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.45));
}

.event-reason-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
}

.event-reason-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ev-text-dim);
}

/* Hall & seats */
.event-hall-wrap {
  position: relative;
  padding: clamp(48px, 9vw, 100px) clamp(16px, 4vw, 40px) clamp(80px, 12vw, 120px);
}

.event-hall-wrap__title {
  text-align: center;
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.event-hall-wrap__sub {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 560px;
  font-size: 14px;
  color: var(--ev-text-dim);
  line-height: 1.55;
}

.event-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 400px);
  gap: clamp(20px, 4vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.event-stage {
  position: relative;
  margin-bottom: 28px;
  padding: 28px 16px 48px;
  border-radius: 24px;
  background: radial-gradient(ellipse 80% 90% at 50% 100%, rgba(34, 197, 94, 0.35), transparent 72%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.22);
  overflow: hidden;
}

.event-stage__label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ev-neon);
  font-weight: 800;
  margin-bottom: 8px;
}

.event-stage__beam {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 560px);
  height: 160%;
  background: conic-gradient(from 200deg at 50% 100%, transparent 40%, rgba(34, 197, 94, 0.18), transparent 60%);
  filter: blur(16px);
  pointer-events: none;
  animation: evStageBeam 6s ease-in-out infinite;
}

.event-seat-map {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

/* ——— Интерактивная схема зала (zoom / pan) ——— */
.event-hall-viewport {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.event-hall-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.65);
}

.event-hall-toolbar__venue {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ev-neon);
}

.event-hall-toolbar__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.event-hall-zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}

.event-hall-zoom-btn:hover {
  border-color: var(--ev-neon-soft);
  color: var(--ev-neon);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.event-hall-zoom-btn--text {
  width: auto;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.event-hall-toolbar__hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--ev-text-dim);
}

@media (max-width: 720px) {
  .event-hall-toolbar__hint {
    width: 100%;
    margin-left: 0;
    opacity: 0.85;
  }
}

.event-hall-scrollpad {
  position: relative;
  height: min(520px, 62vh);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-x pan-y;
}

.event-hall-scrollpad .event-seat,
.event-hall-scrollpad .hall-seat {
  touch-action: manipulation;
  pointer-events: auto;
}

.event-hall-scrollpad--dragging {
  cursor: grabbing;
}

.event-hall-canvas {
  position: absolute;
  left: 0;
  top: 0;
  padding: 28px 20px 36px;
  transform-origin: 0 0;
  will-change: transform;
}

.hall-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hall-row__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hall-row__zone {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ev-text-dim);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.45);
}

.hall-row__zone--vip {
  color: var(--ev-gold);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.12);
}

.hall-row__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.hall-row__blocks {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.hall-block {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
}

.hall-aisle {
  flex-shrink: 0;
  align-self: stretch;
  min-height: 32px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.09),
    rgba(34, 197, 94, 0.02)
  );
  border: 1px dashed rgba(34, 197, 94, 0.18);
}

.hall-aisle--md {
  width: 16px;
}

.hall-aisle--lg {
  width: min(56px, 8vw);
}

.hall-stage-foot {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.22),
    rgba(2, 6, 23, 0.92)
  );
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow:
    0 0 40px rgba(34, 197, 94, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Сцена сверху (зритель смотрит на зал: сцена впереди, ряды ниже) */
.hall-stage-foot--top {
  margin-top: 0;
  margin-bottom: 20px;
  background: linear-gradient(
    0deg,
    rgba(34, 197, 94, 0.22),
    rgba(2, 6, 23, 0.92)
  );
}

.hall-stage-foot__label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.42em;
  color: #ecfdf5;
  text-shadow: 0 0 28px rgba(34, 197, 94, 0.45);
}

.hall-seat {
  width: 30px;
  height: 28px;
  font-size: 10px;
  border-radius: 8px;
}

.hall-seat--ghost {
  opacity: 0.18;
  cursor: default;
  border-style: dotted;
  pointer-events: none;
}

.hall-legacy-row {
  justify-content: center;
}

@media (max-width: 520px) {
  .hall-seat {
    width: 26px;
    height: 24px;
    font-size: 9px;
  }

  .event-hall-scrollpad {
    height: min(440px, 54vh);
  }
}

.event-seat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.event-seat-row__zone {
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ev-text-dim);
  margin-bottom: 4px;
}

.event-seat {
  position: relative;
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.95));
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.event-seat:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--ev-neon-soft);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
}

.event-seat--vip {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow:
    0 0 18px rgba(251, 191, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.event-seat--vip:hover:not(:disabled) {
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.45);
}

.event-seat--selected {
  border-color: var(--ev-gold);
  background: radial-gradient(ellipse at 50% 20%, rgba(250, 204, 21, 0.75), rgba(34, 197, 94, 0.85));
  color: #022c22;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.55),
    0 0 28px rgba(34, 197, 94, 0.65);
  animation: evSeatPulse 1.8s ease-in-out infinite;
  z-index: 2;
}

.event-seat--dimmed {
  opacity: 0.22;
  filter: grayscale(0.5);
  pointer-events: none;
}

.event-seat--taken {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(0.8);
  border-style: dashed;
}

.event-seat--taken::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
}

/* Pass panel */
.event-pass-panel {
  position: sticky;
  top: 92px;
}

.event-pass-panel__glass {
  border-radius: 24px;
  padding: 26px 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow:
    0 0 60px rgba(34, 197, 94, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px);
}

.event-pass-card {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 200px;
}

.event-pass-card__placeholder {
  text-align: center;
  padding: 32px 12px;
  color: var(--ev-text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.event-pass-card__filled[hidden],
.event-pass-card__placeholder[hidden] {
  display: none !important;
}

.event-pass-card__filled {
  animation: evFadeUp 0.5s ease;
}

.event-pass-card__vip {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ev-neon);
  font-weight: 900;
  margin-bottom: 10px;
}

.event-pass-card__row {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.event-pass-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--ev-gold);
  margin-bottom: 16px;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.35);
}

.event-pass-card__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.65;
}

.event-pass-card__perks li::before {
  content: '✓ ';
  color: var(--ev-neon);
  font-weight: 800;
}

.event-form .event-field {
  margin-bottom: 12px;
}

.event-form label span:first-child {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ev-text-dim);
  margin-bottom: 6px;
}

.event-form input,
.event-form textarea {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: #f8fafc;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.event-form input:focus,
.event-form textarea:focus {
  border-color: var(--ev-neon-soft);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.event-field--invalid input,
.event-field--invalid textarea {
  border-color: rgba(249, 115, 115, 0.65) !important;
}

.event-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ev-text-dim);
}

.event-consent a {
  color: var(--ev-neon);
}

.event-btn-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #022c22;
  background: linear-gradient(135deg, #4ade80, var(--ev-neon));
  box-shadow: 0 16px 44px rgba(34, 197, 94, 0.42);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.event-btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
}

.event-btn-submit:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.event-form-msg {
  margin-top: 12px;
  min-height: 20px;
  font-size: 13px;
}

.event-catalog-error {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(249, 115, 115, 0.35);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.event-catalog-error[hidden] {
  display: none !important;
}

/* Animations */
@keyframes evMeshDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-3%, 4%) scale(1.05);
  }
}

@keyframes evOrbFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -24px);
  }
}

@keyframes evBeamPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}

@keyframes evParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) translateX(40px);
    opacity: 0;
  }
}

@keyframes evChipGlow {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
  }
  50% {
    box-shadow: 0 0 36px rgba(34, 197, 94, 0.35);
  }
}

@keyframes evSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes evFloatA {
  0%,
  100% {
    transform: translateY(0) rotateX(8deg) rotateY(-6deg);
  }
  50% {
    transform: translateY(-14px) rotateX(10deg) rotateY(-4deg);
  }
}

@keyframes evFloatB {
  0%,
  100% {
    transform: translateY(0) rotateX(6deg) rotateY(8deg);
  }
  50% {
    transform: translateY(12px) rotateX(8deg) rotateY(6deg);
  }
}

@keyframes evFloatPass {
  0%,
  100% {
    transform: translateY(0) rotateX(4deg);
  }
  50% {
    transform: translateY(-10px) rotateX(6deg);
  }
}

@keyframes evQrPulse {
  0%,
  100% {
    opacity: 0.85;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.55);
  }
}

@keyframes evStageBeam {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes evSeatPulse {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.55);
  }
  50% {
    box-shadow: 0 0 36px rgba(34, 197, 94, 0.85);
  }
}

@keyframes evFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .event-hero__inner {
    grid-template-columns: 1fr;
  }

  .event-hero__visual {
    height: 420px;
    max-width: 420px;
    margin: 0 auto;
  }

  .event-split {
    grid-template-columns: 1fr;
  }

  .event-pass-panel {
    position: relative;
    top: auto;
  }
}

/* Телефон: карточки колонкой. Планшет/ПК (>768px): слои и 3D как на десктопе */
@media (max-width: 768px) {
  .event-hero__visual {
    height: auto;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    margin: 20px auto 8px;
    perspective: none;
  }

  .event-float-stack {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    transform: none !important;
    transform-style: flat;
  }

  .event-float-card,
  .event-float-card--a,
  .event-float-card--b,
  .event-float-pass {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  .event-float-card--a,
  .event-float-card--b {
    padding: 16px 18px;
    animation: evFloatMobileCard 7s ease-in-out infinite;
  }

  .event-float-card--b {
    animation-delay: 0.35s;
  }

  .event-float-pass {
    padding: 18px 20px;
    animation: evFloatMobilePass 8s ease-in-out infinite;
  }

  .event-float-card__tag {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
  }

  .event-float-card__text {
    font-size: 15px;
    line-height: 1.35;
  }

  .event-float-pass__foot {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* Десктоп и планшет: исходная сцена с наложением карточек */
@media (min-width: 769px) {
  .event-hero__visual {
    height: min(560px, 72vh);
    max-width: none;
    width: auto;
    perspective: 1200px;
  }

  .event-float-stack {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
  }

  .event-float-card {
    position: absolute;
  }

  .event-float-card--a {
    width: 72%;
    left: 8%;
    top: 6%;
    right: auto;
    bottom: auto;
    height: 120px;
    padding: 18px 22px;
    animation: evFloatA 8s ease-in-out infinite;
  }

  .event-float-card--b {
    width: 64%;
    right: 0;
    left: auto;
    top: 38%;
    bottom: auto;
    height: 100px;
    padding: 16px 20px;
    animation: evFloatB 9s ease-in-out infinite;
    animation-delay: 0s;
  }

  .event-float-pass {
    position: absolute;
    left: 12%;
    right: auto;
    top: auto;
    bottom: 4%;
    width: 76%;
    height: auto;
    padding: 22px;
    animation: evFloatPass 10s ease-in-out infinite;
  }
}

@keyframes evFloatMobileCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes evFloatMobilePass {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 600px) {
  .event-countdown__grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .event-hero__title {
    font-size: 26px;
  }

  .event-seat {
    width: 36px;
    height: 32px;
    font-size: 11px;
  }
}

/* ========= Главная: cinematic banner ========= */
.event-cinematic-banner {
  position: relative;
  margin: 24px clamp(12px, 3vw, 20px) 8px;
  border-radius: clamp(20px, 4vw, 32px);
  overflow: hidden;
  isolation: isolate;
  min-height: min(420px, 78vh);
}

.event-cinematic-banner__bg {
  position: absolute;
  inset: 0;
  background: #030508;
}

.event-cinematic-banner__bg .event-hero__bg-mesh,
.event-cinematic-banner__bg .event-hero__bg-orbs,
.event-cinematic-banner__bg .event-hero__bg-grid {
  position: absolute;
  inset: 0;
}

.event-cinematic-banner__inner {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 7vw, 72px) clamp(20px, 5vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}

.event-cinematic-banner__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.8vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 36px rgba(34, 197, 94, 0.35);
}

.event-cinematic-banner__tags {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ev-neon);
}

.event-cinematic-banner__meta {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ev-text-dim);
}

.event-cinematic-banner__meta strong {
  color: #e2e8f0;
}

.event-cinematic-banner__urgency {
  margin: -8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.95);
  text-shadow: 0 0 24px rgba(250, 204, 21, 0.35);
}

.event-cinematic-banner .event-countdown__grid {
  max-width: 100%;
}

.event-cinematic-banner__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.event-cinematic-banner__visual-mini {
  position: relative;
  height: 260px;
}

.event-cinematic-banner__visual-mini .event-float-pass {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  animation: evFloatPass 9s ease-in-out infinite;
}

@media (max-width: 900px) {
  .event-cinematic-banner__inner {
    grid-template-columns: 1fr;
  }

  .event-cinematic-banner__visual-mini {
    height: auto;
  }
}

/* ========= Главная: баннер мероприятия первым экраном ========= */
.event-cinematic-banner--lead {
  margin-top: 12px;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.18),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(34, 197, 94, 0.08);
}

/* ========= Sticky «Купить билет» ========= */
.event-sticky-cta {
  position: fixed;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #022c22;
  background: linear-gradient(135deg, #4ade80, var(--ev-neon));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 18px 50px rgba(34, 197, 94, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

.event-sticky-cta--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.event-sticky-cta:hover {
  transform: translateY(-2px);
}

.event-sticky-cta--visible:hover {
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .event-sticky-cta {
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 768px) {
  .event-sticky-cta {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
  }

  body.event-page--sticky-cta {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* ========= Инфо-блоки: о мероприятии, ведущие, программа, таймлайн ========= */
.event-info-block,
.event-hosts,
.event-program-detail,
.event-timeline {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 32px);
}

.event-info-block__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.event-hosts__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-host-card {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(2, 6, 23, 0.88));
  border: 1px solid rgba(34, 197, 94, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.event-host-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #022c22;
  background: linear-gradient(135deg, #4ade80, var(--ev-neon));
  margin-bottom: 14px;
}

.event-host-card__avatar--gold {
  color: #422006;
  background: linear-gradient(135deg, #fde68a, var(--ev-gold));
}

.event-host-card__name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ev-headline);
}

.event-host-card__role {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-neon);
  font-weight: 700;
}

.event-host-card__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ev-text-dim);
}

.event-program-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.event-program-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.event-program-step__num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(34, 197, 94, 0.45);
  line-height: 1;
}

.event-program-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ev-headline);
}

.event-program-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ev-text-dim);
}

.event-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  position: relative;
}

.event-timeline__list::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--ev-neon), rgba(34, 197, 94, 0.1));
}

.event-timeline__item {
  display: grid;
  grid-template-columns: 72px 20px 1fr;
  gap: 16px;
  align-items: start;
  padding: 0 0 28px;
}

.event-timeline__time {
  font-size: 15px;
  font-weight: 800;
  color: var(--ev-gold);
  text-align: right;
  padding-top: 2px;
}

.event-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--ev-neon);
  box-shadow: 0 0 20px var(--ev-neon-soft);
  position: relative;
  z-index: 1;
}

.event-timeline__body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ev-headline);
}

.event-timeline__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ev-text-dim);
}

/* ========= Легенда зала и список мест ========= */
.event-hall-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 auto 20px;
  max-width: 1120px;
  padding: 0 clamp(12px, 3vw, 20px);
}

.event-hall-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ev-text-dim);
  font-weight: 600;
}

.event-hall-legend__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: var(--ev-text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    color 0.2s,
    background 0.2s;
}

.event-hall-legend__btn:hover {
  border-color: var(--ev-neon-soft);
  color: #e2e8f0;
}

.event-hall-legend__btn--active {
  border-color: var(--ev-neon);
  color: var(--ev-neon);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.event-hall-legend__swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

.event-hall-legend__swatch--free {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

.event-hall-legend__swatch--selected {
  background: radial-gradient(ellipse at 50% 20%, rgba(34, 197, 94, 0.55), rgba(6, 78, 59, 0.95));
  border-color: var(--ev-neon);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.event-hall-legend__swatch--taken {
  opacity: 0.35;
  background: #1e293b;
  border-style: dashed;
}

.event-hall-legend__swatch--vip {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.event-seat-picker {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.event-seat-picker__title {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ev-neon);
  font-weight: 800;
}

.event-seat-picker__hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ev-text-dim);
}

.event-seat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
}

.event-seat-list__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.65);
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.event-seat-list__btn:hover {
  border-color: var(--ev-neon-soft);
}

.event-seat-list__btn--selected {
  border-color: var(--ev-neon);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.event-seat-list__btn--vip .event-seat-list__price {
  color: var(--ev-gold);
}

.event-seat-list__price {
  font-weight: 800;
  color: var(--ev-neon);
  white-space: nowrap;
}

.event-seat-list__empty {
  padding: 12px;
  font-size: 13px;
  color: var(--ev-text-dim);
  text-align: center;
}

.event-pass-card__count {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-neon);
  font-weight: 700;
}

.event-pass-card__seats {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  max-height: 120px;
  overflow-y: auto;
}

.event-pass-card__seats li + li {
  margin-top: 4px;
}

@media (max-width: 768px) {
  .event-timeline__list::before {
    left: 76px;
  }

  .event-timeline__item {
    grid-template-columns: 60px 16px 1fr;
    gap: 12px;
  }
}

/* Тестовое окно «оплаты» (DEMO_AUTO_CONFIRM) */
.event-demo-pay {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(420px, 92vw);
}

.event-demo-pay::backdrop {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(6px);
}

.event-demo-pay__card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.event-demo-pay__badge {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ev-gold);
  font-weight: 700;
}

.event-demo-pay__title {
  margin: 0 0 8px;
  font-size: 22px;
}

.event-demo-pay__sum {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--ev-neon);
}

.event-demo-pay__note {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ev-text-dim);
}

.event-demo-pay__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-demo-pay__actions .event-btn-submit {
  flex: 1;
  min-width: 140px;
}

.event-btn-ghost {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
}

.event-btn-ghost:hover {
  border-color: var(--ev-neon-soft);
}
