/* Landing B — tokens, type, buttons, header, hero deck and shared motion primitives. */
:root {
  --bg: #0b0b0f; --bg-2: #121218; --ink: #f4f2f3; --ink-2: #b9b6bf; --ink-3: #8a8792;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --accent: #e11d2e; --accent-2: #ff4d5e; --hot: #ff7a45; --violet: #8b5cf6;
  --paper: #f6f4f1; --paper-ink: #17151a; --paper-ink-2: #55525c; --paper-line: #e3dfda;
  --f-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --r: 22px; --gut: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-ui); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Type */
.h2 { font: 600 clamp(25px, 2.9vw, 40px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 20px; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; margin: 0 0 16px; max-width: 62ch; text-wrap: pretty; }
.kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 16px; color: var(--accent-2); font: 600 13px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.fine { color: var(--ink-3); font-size: 13px; margin-top: 16px; }
.sec-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }

/* Buttons */
.btn { --bh: 44px; display: inline-flex; align-items: center; gap: 10px; height: var(--bh); padding: 0 22px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--hot), var(--accent) 55%, #b3122a); color: #fff; font: 600 15px/1 var(--f-ui); text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(225, 29, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .25); position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(225, 29, 46, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --bh: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --bh: 54px; padding: 0 28px; font-size: 16px; }
.btn--ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn--light { background: #fff; color: var(--paper-ink); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); }
.sm-only { display: none; }
@media (max-width: 760px) { .sm-only { display: inline; } .lg-only { display: none; } }
.link-quiet { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; }
.link-quiet:hover { color: var(--ink); }

/* Logo: three stacked cards */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__word { font: 600 18px/1 var(--f-display); letter-spacing: -.02em; }
.logo__mark { position: relative; width: 26px; height: 26px; display: inline-block; flex: none; }
.logo__mark i { position: absolute; inset: 3px 5px; border-radius: 4px; background: var(--accent); }
.logo__mark i:nth-child(1) { transform: rotate(-16deg) translateX(-3px); background: #5b1220; }
.logo__mark i:nth-child(2) { transform: rotate(-6deg); background: #a3162a; }
.logo__mark i:nth-child(3) { transform: rotate(6deg) translateX(3px); background: linear-gradient(160deg, var(--hot), var(--accent)); }
.logo:hover .logo__mark i:nth-child(1) { transform: rotate(-26deg) translateX(-6px); }
.logo:hover .logo__mark i:nth-child(3) { transform: rotate(16deg) translateX(6px); }
.logo__mark i { transition: transform .45s var(--spring); }
.logo__mark--xl { width: 64px; height: 64px; }
.logo__mark--xl i { inset: 6px 12px; border-radius: 8px; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.top.is-stuck { background: rgba(11, 11, 15, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.top__nav { display: flex; gap: 28px; }
.top__nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover { color: var(--ink); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__cta { display: flex; gap: 18px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 132px 0 0; overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background: radial-gradient(40% 50% at 72% 40%, rgba(225, 29, 46, .45), transparent 70%), radial-gradient(30% 40% at 90% 15%, rgba(139, 92, 246, .35), transparent 70%), radial-gradient(35% 40% at 55% 85%, rgba(255, 122, 69, .22), transparent 70%);
  filter: blur(10px); animation: glow 14s var(--ease) infinite alternate; }
@keyframes glow { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 200px); padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
.hero__title { font: 800 clamp(42px, 6.4vw, 92px)/.98 var(--f-display); letter-spacing: -.035em; margin: 0 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .word { display: inline-block; transform: translateY(105%) rotate(4deg); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: .08s; }
.hero__title .line:nth-child(2) .word:nth-child(1) { animation-delay: .16s; }
.hero__title .line:nth-child(2) .word:nth-child(2) { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.word--accent { background: linear-gradient(100deg, var(--hot), var(--accent-2) 40%, var(--violet) 80%, var(--hot)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1s var(--ease) .24s forwards, sheen 6s linear 1.2s infinite; }
@keyframes sheen { to { background-position: -220% 0; } }
.hero__lead { color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 560px; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin: 22px 0 0; color: var(--ink-3); font-size: 14px; max-width: 460px; }

/* The deck: cards fan out with scroll and lean towards the pointer */
.deck { --spread: 0; --mx: 0; --my: 0; --fan: 46px; --rot: 9deg; position: relative; height: min(600px, 62vw); perspective: 1400px; }
.deck__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(14deg - var(--my) * 10deg)) rotateY(calc(-14deg + var(--mx) * 16deg)) translateX(-4%); transition: transform .6s var(--ease); }
.card { --i: 0; --n: 6; --t: calc(var(--i) - 2.5); position: absolute; left: 50%; top: 50%; width: 236px; height: 330px; margin: -165px 0 0 -118px; border-radius: 20px;
  transform-style: preserve-3d; transform-origin: 50% 120%;
  transform: translate3d(calc(var(--t) * (14px + var(--spread) * var(--fan))), calc(var(--t) * var(--t) * var(--spread) * 7px), calc(var(--i) * 14px)) rotateZ(calc(var(--t) * (2deg + var(--spread) * var(--rot))));
  opacity: 0; animation: deal .9s var(--spring) forwards; animation-delay: calc(.35s + var(--i) * .09s); transition: transform .5s var(--ease); }
@keyframes deal { from { opacity: 0; translate: 0 140px; rotate: 0 0 1 -30deg; } to { opacity: 1; translate: 0 0; rotate: 0 0 1 0deg; } }
.card__face { position: absolute; inset: 0; border-radius: inherit; padding: 22px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #24222b, #16151b 60%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.card__face::after { content: ''; position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .16) 48%, rgba(255, 122, 69, .12) 52%, transparent 62%); transform: translateX(calc(var(--mx) * 30% - 10%)); mix-blend-mode: screen; }
.card:hover { transform: translate3d(calc(var(--t) * (14px + var(--spread) * var(--fan))), calc(var(--t) * var(--t) * var(--spread) * 7px - 28px), calc(var(--i) * 14px + 40px)) rotateZ(calc(var(--t) * (2deg + var(--spread) * var(--rot)))); }
.card__n { font: 600 12px/1 var(--f-display); color: var(--ink-3); letter-spacing: .08em; }
.card__ic { width: 30px; height: 30px; color: var(--accent-2); margin: 18px 0 14px; }
.card h3 { font: 600 21px/1.15 var(--f-display); margin: 0 0 8px; letter-spacing: -.02em; }
.card p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.card__art { margin-top: auto; height: 86px; border-radius: 12px; position: relative; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.card--c2 .card__face { background: linear-gradient(160deg, #2b1f2a, #17141b 65%); }
.card--c4 .card__face { background: linear-gradient(160deg, #20223a, #15151d 65%); }
.card--top .card__face { background: radial-gradient(120% 80% at 20% 0%, #ff7a45 0%, #e11d2e 45%, #7a0f22 100%); box-shadow: 0 40px 80px -24px rgba(225, 29, 46, .75), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.card--top .card__n, .card--top p { color: rgba(255, 255, 255, .82); }
.card--top h3 { font-size: 20px; }
.card--top .card__art { background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.card__brand { position: relative; width: 34px; height: 34px; margin: 18px 0 14px; display: block; }
.card__brand i { position: absolute; inset: 4px 7px; border-radius: 5px; background: #fff; opacity: .4; }
.card__brand i:nth-child(1) { transform: rotate(-16deg) translateX(-4px); opacity: .25; }
.card__brand i:nth-child(3) { transform: rotate(8deg) translateX(4px); opacity: 1; }
.deck__shadow { position: absolute; left: 15%; right: 15%; bottom: 4%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(8px); }

/* Card art, drawn in CSS */
.art-ticket::before { content: ''; position: absolute; inset: 18px 18px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) 0 68%, #fff 68%); -webkit-mask: radial-gradient(circle 7px at 68% 0, #0000 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 7px at 68% 100%, #0000 98%, #000) bottom/100% 51% no-repeat; mask: radial-gradient(circle 7px at 68% 0, #0000 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 7px at 68% 100%, #0000 98%, #000) bottom/100% 51% no-repeat; animation: bob 4s ease-in-out infinite; }
.art-people::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle 13px at 22% 50%, #ff7a45 98%, #0000), radial-gradient(circle 13px at 40% 50%, #e11d2e 98%, #0000), radial-gradient(circle 13px at 58% 50%, #8b5cf6 98%, #0000), radial-gradient(circle 13px at 76% 50%, #f4f2f3 98%, #0000); animation: bob 3.4s ease-in-out infinite; }
.art-bars::before { content: ''; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 56px; background: linear-gradient(to top, var(--accent) 0 0) 0 100%/14% 80% no-repeat, linear-gradient(to top, #ff7a45 0 0) 28% 100%/14% 50% no-repeat, linear-gradient(to top, #8b5cf6 0 0) 56% 100%/14% 95% no-repeat, linear-gradient(to top, #6b6b76 0 0) 84% 100%/14% 35% no-repeat; animation: grow 2.6s var(--ease) infinite alternate; transform-origin: bottom; }
.art-grid::before { content: ''; position: absolute; inset: 12px; background: linear-gradient(var(--accent) 0 0) 0 0/30% 46% no-repeat, linear-gradient(#8b5cf6 0 0) 50% 30%/30% 60% no-repeat, linear-gradient(#ff7a45 0 0) 100% 0/30% 34% no-repeat, linear-gradient(rgba(255,255,255,.18) 0 0) 0 100%/30% 40% no-repeat, linear-gradient(rgba(255,255,255,.18) 0 0) 100% 100%/30% 52% no-repeat; border-radius: 6px; }
.art-screen::before { content: 'Зал A · сейчас'; position: absolute; left: 14px; top: 14px; font: 600 11px/1 var(--f-ui); color: var(--ink-3); }
.art-screen::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 16px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2) 0 var(--p, 60%), rgba(255,255,255,.12) 0); animation: progress 6s linear infinite; }
.art-loop::before { content: ''; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin 2.8s linear infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes grow { from { transform: scaleY(.55); } }
@keyframes spin { to { transform: rotate(360deg); } }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes progress { from { --p: 4%; } to { --p: 100%; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: rgba(255, 255, 255, .015); }
.marquee__track { display: flex; gap: 32px; width: max-content; animation: marq 38s linear infinite; font: 600 clamp(20px, 2.4vw, 32px)/1 var(--f-display); letter-spacing: -.02em; color: var(--ink-2); }
.marquee__track b { color: var(--accent); font-weight: 400; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Reveal on scroll (JS adds .is-in; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-card { opacity: 0; transform: perspective(900px) rotateX(18deg) translateY(60px) scale(.96); transition: opacity .9s var(--ease), transform 1s var(--spring); transition-delay: var(--d, 0s); }
.js .reveal.is-in, .js .reveal-card.is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .js .reveal, .js .reveal-card { opacity: 1; transform: none; filter: none; }
}
