/* Cybempire — сайт клуба. Тёмно-фиолетовая «тронная» база, имперское золото, малиновый неон.
   Шрифты: Unbounded (заголовки, широкий), Onest (текст). Общие токены — и для личного кабинета (lk/). */
:root {
  --ink: #140c2b;        /* фон — глубокий фиолетовый */
  --throne: #21154a;     /* поверхности */
  --throne-2: #2c1d5e;
  --gold: #e9b949;       /* главное действие, эмблема */
  --gold-hi: #ffe29a;
  --crimson: #ff3d7f;    /* неоновый акцент: «занято», вспышки */
  --ice: #8be9ff;        /* «свободно», живые данные */
  --paper: #f4eeff;      /* основной текст */
  --muted: #b4a9d6;
  --faint: #7c70a6;
  --line: rgba(180, 160, 255, .16);
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 22px; --r-md: 14px; --r-sm: 9px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: 19px; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #c98f2a); color: #2a1600; box-shadow: 0 8px 30px -8px rgba(233, 185, 73, .65), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(233, 185, 73, .8), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-line { border-color: rgba(244, 238, 255, .35); color: var(--paper); background: rgba(20, 12, 43, .35); backdrop-filter: blur(6px); }
.btn-line:hover { border-color: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- шапка ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 4vw, 48px);
  transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(20, 12, 43, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 17px var(--display); letter-spacing: .01em; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.links a:hover { color: var(--paper); }
.nav-cta { height: 42px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 0 11px; }
.burger i { display: block; height: 2px; background: var(--paper); border-radius: 2px; margin: 6px 0; transition: transform .2s; }
.nav.open .burger i:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- главный экран ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2vw;
  padding: 110px clamp(16px, 5vw, 72px) 60px; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.a1 { width: 60vmax; height: 40vmax; left: -15vmax; top: -18vmax; background: radial-gradient(circle, #5b2bd6, transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.a2 { width: 50vmax; height: 40vmax; right: -18vmax; bottom: -10vmax; background: radial-gradient(circle, #ff3d7f88, transparent 62%); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.12); } }
/* «пол тронного зала» — неоновая сетка в перспективе */
.floor { position: absolute; left: -40%; right: -40%; bottom: -12%; height: 55%; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(233, 185, 73, .22) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(139, 233, 255, .16) 1.5px, transparent 1.5px);
  background-size: 64px 64px; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: run 6s linear infinite; }
@keyframes run { to { background-position: 0 64px, 0 0; } }

.wordmark { font-weight: 900; font-size: clamp(66px, 12.5vw, 196px); line-height: .92; letter-spacing: -.05em; }
/* одно слово с золотым бликом, который раз в несколько секунд проходит по буквам */
.wm { display: inline-block; background: linear-gradient(100deg, var(--paper) 30%, var(--gold-hi) 50%, var(--paper) 70%); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite; padding-right: .04em;
  filter: drop-shadow(0 .06em .18em rgba(233, 185, 73, .18)); }
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -120% 0; } }
.tagline { margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 30ch; }
.live { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ice); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(139, 233, 255, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(139, 233, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 233, 255, 0); } }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.facts { display: flex; gap: 38px; margin: 44px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { color: var(--faint); font-size: 14px; }
.facts dd { margin: 0; font: 700 30px var(--display); }

/* орбита: обложки игр клуба кружат вокруг эмблемы */
.orbit-wrap { position: relative; height: min(76vh, 640px); perspective: 1400px; display: grid; place-items: center; }
.orbit .throne { position: absolute; left: calc(var(--tw) / -2); top: calc(var(--tw) / -2); width: var(--tw); animation: face 48s linear infinite; transform-style: preserve-3d; }
@keyframes face { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.orbit { position: absolute; width: 1px; height: 1px; transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(0deg); animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotateX(-12deg) rotateY(-360deg); } }
.orbit .card { position: absolute; left: calc(var(--w) / -2); top: calc(var(--w) * -0.75); width: var(--w); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  transform: rotateY(var(--a)) translateZ(var(--r)); backface-visibility: hidden; box-shadow: 0 26px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(233,185,73,.35);
  opacity: 0; animation: arrive .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes arrive { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.orbit .card img { width: 100%; height: 100%; object-fit: cover; }
.orbit .card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,12,43,.75)); }
.tile-fallback { width: 100%; height: 100%; display: grid; place-items: center; font: 900 56px/1 var(--display); color: rgba(255,255,255,.28); letter-spacing: -.04em; background: linear-gradient(160deg, hsl(var(--h) 70% 48%), hsl(calc(var(--h) + 50) 60% 22%)); }
.orbit { --tw: clamp(130px, 14vw, 200px); }
.throne img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 0 30px rgba(233, 185, 73, .45)); animation: float 6s ease-in-out infinite; }
.halo { position: absolute; inset: -60%; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(233,185,73,.35), rgba(255,61,127,.12) 40%, transparent 65%); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- секции ---------- */
.sect { padding: clamp(70px, 9vw, 130px) clamp(16px, 5vw, 72px) 0; max-width: 1360px; margin: 0 auto; }
.sect-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 44px; }
.sect-head p { color: var(--muted); max-width: 52ch; }
.placeholder { color: var(--faint); padding: 40px 0; }

/* знамёна зон: вертикальный стяг с «ласточкиным хвостом» внизу */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; align-items: start; }
.banner { position: relative; padding: 26px 24px 64px; background: linear-gradient(180deg, color-mix(in srgb, var(--zc) 30%, var(--throne)), var(--throne) 46%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 34px), 0 100%); display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.banner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--zc); box-shadow: 0 0 24px var(--zc); }
.banner h3 { font-size: 22px; }
.banner .specs { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.price-now { display: flex; align-items: baseline; gap: 8px; }
.price-now b { font: 900 40px/1 var(--display); color: var(--gold-hi); }
.price-now span { color: var(--muted); font-size: 14px; }
.price-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.price-rows li b { white-space: nowrap; }
.price-rows li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.price-rows li span { color: var(--muted); }
.price-rows .pkg span::before { content: "Пакет: "; color: var(--faint); }
.seatmap { display: grid; gap: 5px; margin-top: auto; padding-top: 8px; }
.seat { width: 100%; aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.08); }
.seat.free { background: var(--ice); box-shadow: 0 0 10px rgba(139, 233, 255, .55); }
.seat.busy { background: var(--crimson); opacity: .75; }
.seat.booked { background: var(--gold); opacity: .8; }
.seat-legend { font-size: 13.5px; color: var(--muted); }
.seat-legend b { color: var(--ice); }

/* стена игр — две бегущие ленты навстречу друг другу */
.games-sect { max-width: none; padding-left: 0; padding-right: 0; }
.games-sect .sect-head { max-width: 1360px; margin-left: auto; margin-right: auto; padding: 0 clamp(16px, 5vw, 72px); }
.wall { display: grid; gap: 18px; overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lane { display: flex; gap: 18px; width: max-content; animation: lane 70s linear infinite; }
.lane.rev { animation-direction: reverse; animation-duration: 84s; }
.wall:hover .lane { animation-play-state: paused; }
@keyframes lane { to { transform: translateX(-50%); } }
.game { position: relative; margin: 0; width: 190px; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; flex: none; background: var(--throne); }
.game img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game:hover img { transform: scale(1.06); }
.game figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 12px 12px; font-weight: 600; font-size: 14.5px; background: linear-gradient(transparent, rgba(20,12,43,.92)); }
.game small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

/* шаги — это реальная последовательность, поэтому номера */
.steps { list-style: none; counter-reset: s; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 30px 26px 0 0; position: relative; }
.steps li::before { content: counter(s); display: block; font: 900 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 20px; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ранги — лестница */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.rank { background: var(--throne); border-radius: var(--r-md) var(--r-md) 4px 4px; padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--rc); min-height: calc(130px + var(--step) * 34px); }
.rank b { font: 700 18px var(--display); }
.rank span { color: var(--muted); font-size: 14px; }
.rank strong { margin-top: auto; font: 900 34px var(--display); color: var(--rc); }
.rank strong small { font: 500 14px var(--body); color: var(--muted); margin-left: 4px; }

/* контакты */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact span { color: var(--faint); font-size: 14px; }
.contact a, .contact p { font-size: 19px; font-weight: 600; text-decoration: none; }
.contact a:hover { color: var(--gold-hi); }

.foot { margin-top: clamp(80px, 10vw, 140px); padding: 34px clamp(16px, 5vw, 72px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.foot .brand { color: var(--paper); font-size: 15px; }
.foot a { margin-left: auto; color: var(--muted); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; min-height: auto; }
  .orbit-wrap { height: 380px; order: -1; margin: 0 -16px -30px; }
  .sect-head { grid-template-columns: 1fr; }
  .facts { gap: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 64px; gap: 12px; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open { background: rgba(20, 12, 43, .97); height: auto; flex-wrap: wrap; padding-bottom: 16px; }
  .nav.open .links { display: flex; flex-direction: column; width: 100%; order: 3; gap: 14px; margin: 6px 0 4px; }
  .nav.open .nav-cta { display: inline-flex; order: 4; width: 100%; margin: 0; }
  .steps { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .game { width: 140px; }
  .facts dd { font-size: 24px; }
  .wordmark { font-size: 23vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .orbit .card { opacity: 1; }
}

.map-box { margin-top: 36px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--throne); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
@media (max-width: 640px) { .map-box { height: 300px; } }

.banner .soon { margin-top: auto; padding: 10px 14px; border-radius: 10px; background: rgba(233, 185, 73, .14); color: var(--gold-hi); font-weight: 600; font-size: 14px; }
