/* =========================================================
   Давид Майн — сайт канала
   Дизайн-система: тёмная тема, фиолетовый бренд + «утиный» жёлтый
   ========================================================= */

:root {
  --bg: #08070f;
  --bg-2: #0f0d1c;
  --bg-3: #171429;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f2ff;
  --muted: #a39ec4;
  --dim: #6e6990;
  --violet: #8079ff;
  --violet-2: #5d55f0;
  --violet-soft: rgba(128, 121, 255, 0.14);
  --duck: #ffd23f;
  --yt: #ff3b3b;
  --ok: #3ddc97;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--violet-2) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
html, body { overflow-x: clip; max-width: 100%; }

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--violet); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--violet-2); }

:focus-visible { outline: 2px solid var(--duck); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px; background: var(--duck); color: #000; font-weight: 700;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Фон: зерно + сетка ---------- */
.bg-grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, 2%); }
  80% { transform: translate(5%, 6%); }
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg);
  transition: clip-path 1s var(--ease-in-out), visibility 0s linear 1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__logo { width: 64px; animation: hop 0.9s var(--ease-in-out) infinite; filter: drop-shadow(0 18px 18px rgba(0,0,0,.5)); }
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(0) scale(1.1, .9); }
  50% { transform: translateY(-26px) scale(.95, 1.05); }
  85% { transform: translateY(0) scale(1.06, .94); }
}
.preloader__name { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.preloader__bar { width: 180px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--duck)); transition: width .3s var(--ease); }

/* ---------- Переход между страницами ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.page-transition span {
  background: var(--bg-3); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease-in-out);
}
.page-transition span:nth-child(2) { transition-delay: .04s; }
.page-transition span:nth-child(3) { transition-delay: .08s; }
.page-transition span:nth-child(4) { transition-delay: .12s; }
.page-transition span:nth-child(5) { transition-delay: .16s; }
.page-transition.is-active span { transform: scaleY(1); }
/* появление новой страницы: шторки уезжают вверх */
.pt-enter .page-transition span { transform: scaleY(1); transform-origin: top; transition-duration: 0s; }
.pt-enter.pt-reveal .page-transition span { transform: scaleY(0); transition-duration: .6s; }
.pt-enter .preloader { display: none; }

/* ---------- Прогресс скролла ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--duck));
}

/* ---------- Курсор ---------- */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
    border-radius: 50%; transform: translate3d(-100px, -100px, 0);
  }
  .cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--duck); }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1.5px solid rgba(255,255,255,.35);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
  }
  .cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(128,121,255,.12); border-color: var(--violet); }
  .cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 7, 15, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; position: relative; z-index: 2; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--violet), var(--violet-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px -8px rgba(128,121,255,.6);
  overflow: hidden; transition: transform .5s var(--spring);
}
.brand__mark img { height: 40px; width: auto; transform: translateY(4px); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.brand__sub { font-size: 12px; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.nav__link {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .3s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: #fff; }
.nav__pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px;
  background: var(--violet); z-index: -1;
  box-shadow: 0 6px 20px -6px rgba(128,121,255,.8);
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav__list { position: relative; isolation: isolate; }

.header-cta { flex-shrink: 0; }

.burger {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); margin-left: auto;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .5s var(--ease), opacity .3s, top .5s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.menu-open .burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(8,7,15,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { overflow: hidden; }
.mobile-menu ol a {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 8vw, 44px); line-height: 1.15;
  transform: translateY(110%); transition: transform .7s var(--ease), color .3s;
}
.mobile-menu ol a::before { counter-increment: m; content: "0" counter(m); font-family: var(--font-body); font-size: 13px; color: var(--dim); font-weight: 600; }
.mobile-menu ol a.is-active { color: var(--violet); }
.menu-open .mobile-menu ol a { transform: none; }
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .19s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .23s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .27s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .31s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .35s; }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: .39s; }
.menu-open .mobile-menu li:nth-child(8) a { transition-delay: .43s; }
.mobile-menu__foot { margin-top: 36px; opacity: 0; transition: opacity .5s .5s; }
.menu-open .mobile-menu__foot { opacity: 1; }

@media (max-width: 1180px) {
  .nav, .site-header .header-cta { display: none; }
  .burger { display: block; }
}

/* ---------- Кнопки ---------- */
.btn {
  --bg-btn: var(--violet);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg-btn); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(128,121,255,.9), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: #0a0912; }
.btn .btn__label { position: relative; display: inline-block; overflow: hidden; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--ghost { --bg-btn: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--yt { --bg-btn: var(--yt); box-shadow: 0 10px 30px -12px rgba(255,59,59,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--duck { --bg-btn: var(--duck); color: #14110a; box-shadow: 0 10px 30px -12px rgba(255,210,63,.8); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.link-arrow svg { width: 18px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.link-arrow:hover span { background-size: 100% 1.5px; }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--violet);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 800; margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
.h1 { font-size: clamp(42px, 8.4vw, 116px); }
.h2 { font-size: clamp(32px, 5vw, 64px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }
.muted { color: var(--muted); }
.accent { color: var(--violet); }
.duck { color: var(--duck); }

/* разбивка текста на буквы */
.split .char { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; transition: transform 1s var(--ease), opacity .6s; }
.split .word { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split.is-in .char { transform: none; opacity: 1; }

/* ---------- Секции ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero главной ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 18s var(--ease-in-out) infinite alternate;
}
.hero__aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: #3b33b8; }
.hero__aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 10vh; background: var(--violet); opacity: .35; animation-duration: 22s; }
.hero__aurora i:nth-child(3) { width: 26vw; height: 26vw; left: 40vw; bottom: -14vw; background: #b8902a; opacity: .22; animation-duration: 26s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vh) scale(1.1); }
  100% { transform: translate(-4vw, 8vh) scale(.95); }
}
.hero__floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(128,121,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,121,255,.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(56px, 8vw, 120px); align-items: center; }
.hero__text { container-type: inline-size; min-width: 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__badge b {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--yt); color: #fff; font-size: 12px;
}
.hero__badge b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.hero__title { margin: 26px 0 24px; font-size: clamp(34px, 6.2vw, 96px); font-size: min(11cqi, 96px); }
.hero__title .line { display: block; }
.hero__title .line--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__title .line--accent { color: var(--violet); }

/* --- Сцена с персонажем --- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
.stage { position: relative; width: 100%; max-width: 460px; justify-self: end; }
.stage__card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 36px; overflow: hidden; isolation: isolate;
  container-type: inline-size;
  background: linear-gradient(165deg, #3a32c9 0%, #221c78 38%, #120f33 75%, #0c0a20 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 60px 120px -50px rgba(110,100,255,.75), 0 0 0 8px rgba(255,255,255,.025), inset 0 1px 0 rgba(255,255,255,.2);
}
.stage__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.stage__bg {
  position: absolute; left: 0; right: 0; top: 13%; z-index: -1; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 40cqw; line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.13); user-select: none;
}
.stage__glow {
  position: absolute; left: 10%; right: 10%; bottom: 14%; height: 55%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(150,142,255,.55), transparent 65%); filter: blur(10px);
}
.stage__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 3; }
.stage__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); white-space: nowrap;
  background: rgba(10,8,25,.4); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stage__pill--live i { width: 8px; height: 8px; border-radius: 50%; background: var(--yt); box-shadow: 0 0 0 0 rgba(255,59,59,.6); animation: ping 2s var(--ease) infinite; }
.stage__platform {
  position: absolute; left: 18%; right: 18%; bottom: 23%; height: 9%; border-radius: 50%; z-index: 1;
  background: radial-gradient(ellipse, rgba(255,255,255,.35), rgba(128,121,255,.25) 45%, transparent 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 0 14px rgba(128,121,255,.06);
}
.stage__platform::after { content: ""; position: absolute; inset: -30% -18%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: spin 30s linear infinite; }
.stage__charwrap { position: absolute; left: 27%; width: 46%; bottom: 25%; z-index: 2; will-change: transform; }
.stage__char { width: 100%; filter: drop-shadow(0 26px 22px rgba(0,0,0,.55)); animation: float 6s var(--ease-in-out) infinite; transform-origin: 50% 100%; }
.stage__info {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  display: flex; align-items: center; padding: 12px 6px; border-radius: 22px;
  background: rgba(10,8,25,.55); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.stage__who b { display: block; font-family: var(--font-display); font-size: 15px; line-height: 1.2; }
.stage__who small { color: var(--muted); font-size: 12px; font-weight: 600; }
.stage__stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
.stage__stats div { text-align: center; padding: 4px 10px; border-left: 1px solid rgba(255,255,255,.1); }
.stage__stats div:first-child { border-left: 0; }
.stage__stats b { display: block; font-family: var(--font-display); font-size: clamp(16px, 7cqw, 22px); line-height: 1.2; }
.stage__stats small { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.stage__sticker {
  position: absolute; z-index: 4; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.4);
  animation: bob 5s var(--ease-in-out) infinite;
}
.stage__sticker svg { width: 28px; }
.stage__sticker--duck { left: -22px; top: 24%; background: var(--duck); color: #2a2205; --r: -12deg; transition: scale .4s var(--spring); }
.stage__sticker--duck:hover { scale: 1.12; }
.stage__sticker--cube { right: -18px; top: 52%; background: #fff; color: var(--violet-2); border-radius: 50%; width: 50px; height: 50px; --r: 10deg; animation-delay: -2.5s; }
.stage__sticker--cube svg { width: 24px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.5)); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); font-weight: 600;
}
.scroll-hint i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--line-2); position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .stage { justify-self: center; max-width: 400px; margin: 24px auto 0; }
  .stage__sticker--duck { left: -10px; }
  .stage__sticker--cube { right: -8px; }
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .scroll-hint { display: none; }
}

/* ---------- Бегущая строка ---------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--line); background: var(--bg-2);
}
.marquee--tilt { transform: rotate(-2deg) scale(1.04); margin: 40px 0; background: var(--violet); border: 0; color: #fff; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 34px); white-space: nowrap;
}
.marquee__item svg { width: 26px; height: 26px; color: var(--duck); flex-shrink: 0; }
.marquee--tilt .marquee__item svg { color: #fff; }
.marquee__item .o { color: transparent; -webkit-text-stroke: 1px currentColor; }
.marquee--tilt .marquee__item .o { -webkit-text-stroke-color: #fff; }
.marquee:not(.marquee--tilt) .marquee__item .o { -webkit-text-stroke-color: var(--muted); }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Карточки ---------- */
.card {
  position: relative; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .4s, background .4s, transform .6s var(--ease);
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(128,121,255,.16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::after { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---------- Участники ---------- */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { display: flex; flex-direction: column; }
.member__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--bg-3); }
.member__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.member:hover .member__media img { transform: scale(1.07); filter: saturate(1.1); }
.member__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,7,15,.85), transparent 55%); }
.member__num { position: absolute; top: 18px; left: 18px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(8,7,15,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.member__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.member__role { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--violet-soft); color: #c9c5ff;
}
.tag--duck { background: rgba(255,210,63,.12); color: var(--duck); }
.tag--yt { background: rgba(255,59,59,.12); color: #ff8a8a; }
.tag--ok { background: rgba(61,220,151,.12); color: var(--ok); }
.tag--dim { background: var(--surface-2); color: var(--muted); }
.member__credit { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); padding-top: 14px; border-top: 1px solid var(--line); }
.member__credit img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-3); }
@media (max-width: 960px) { .members { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .members { grid-template-columns: 1fr; } }

/* ---------- Видео ---------- */
.video-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.video-wrap > * { min-width: 0; }
.yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000;
  border: 1px solid var(--line); cursor: pointer; align-self: center; width: 100%;
}
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; opacity: .85; }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yt); color: #fff;
  box-shadow: 0 0 0 0 rgba(255,59,59,.5); animation: ping 2.4s var(--ease) infinite;
  transition: transform .5s var(--spring);
}
.yt:hover .yt__play { transform: scale(1.12); }
.yt__play svg { width: 34px; margin-left: 5px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.5); } 80%, 100% { box-shadow: 0 0 0 28px rgba(255,59,59,0); } }
.yt--poster img { object-position: center 30%; filter: blur(2px) brightness(.6); }
.yt--poster::after { content: "Смотреть на канале"; position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); }
.yt.is-playing .yt__play, .yt.is-playing img { display: none; }
.video-side { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.video-side .h3 { font-size: clamp(22px, 2.4vw, 30px); }
@media (max-width: 900px) { .video-wrap { grid-template-columns: 1fr; } }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.stat__num sup { font-size: .4em; color: var(--violet); vertical-align: top; margin-left: 4px; }
.stat__label { margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Плитки компаний на главной ---------- */
.co-tile { display: flex; flex-direction: column; }
.co-tile__media { aspect-ratio: 16 / 11; background: radial-gradient(circle at 50% 60%, rgba(128,121,255,.2), var(--bg-3) 70%); overflow: hidden; display: grid; place-items: center; }
.co-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.co-tile__media img.contain { object-fit: contain; padding: 10%; }
.co-tile:hover .co-tile__media img { transform: scale(1.07); }
.co-tile__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.co-tile__num { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--violet); }
.co-tile__body p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 6; } }

.tile { padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.tile__icon svg { width: 24px; }
.tile .h3 { margin-top: auto; }
.tile--top .h3 { margin-top: 10px; }
.co-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .co-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .co-grid { grid-template-columns: 1fr; } }
.tile p { margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(40px, 7vw, 90px);
  background: linear-gradient(135deg, #2a2391 0%, var(--violet-2) 45%, var(--violet) 100%);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta .lead { color: rgba(255,255,255,.82); margin-top: 18px; }
.cta .btn { --bg-btn: #fff; color: #0a0912; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); }
.cta .btn::before { background: var(--duck); }
.cta .btn--ghost { --bg-btn: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.cta .btn--ghost::before { background: #fff; }
.cta .btn--ghost:hover { color: #0a0912; box-shadow: inset 0 0 0 1.5px #fff; }
.cta__img { justify-self: center; width: min(260px, 80%); animation: float 6s var(--ease-in-out) infinite; filter: drop-shadow(0 30px 30px rgba(0,0,0,.4)); }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta__img { display: none; } }

/* ---------- Внутренние страницы: hero ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(50px, 7vw, 90px); overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(128,121,255,.35), transparent 65%); filter: blur(30px);
  animation: drift 20s var(--ease-in-out) infinite alternate;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .h1 { font-size: clamp(40px, 7.5vw, 104px); margin: 20px 0 22px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); font-weight: 600; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Обновления: таймлайн ---------- */
.updates-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; }
.search {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search input {
  width: 100%; height: 52px; padding: 0 18px 0 48px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); outline: none; transition: border-color .3s, background .3s;
}
.search input:focus { border-color: var(--violet); background: var(--surface-2); }
.search svg { position: absolute; left: 18px; top: 50%; width: 18px; transform: translateY(-50%); color: var(--dim); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); transition: all .3s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.timeline { position: relative; padding-left: 48px; }
.timeline__line { position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline__line i { position: absolute; inset: 0; background: linear-gradient(var(--violet), var(--duck)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.update { position: relative; margin-bottom: 22px; }
.update::before {
  content: ""; position: absolute; left: -41px; top: 34px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--violet); transition: background .4s, box-shadow .4s;
}
.update.is-in::before { background: var(--violet); box-shadow: 0 0 0 6px rgba(128,121,255,.18); }
.update.is-major::before { border-color: var(--duck); }
.update.is-major.is-in::before { background: var(--duck); box-shadow: 0 0 0 6px rgba(255,210,63,.18); }
.update .card { padding: 28px 30px; }
.update__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); font-weight: 600; margin-bottom: 12px; }
.update__ver { font-family: var(--font-display); font-weight: 800; color: var(--text); font-size: 15px; }
.update h3 { margin: 0 0 10px; }
.update p { margin: 0; color: var(--muted); }
.update__empty { padding: 60px 20px; text-align: center; color: var(--muted); display: none; }
.update__empty.is-shown { display: block; }
@media (max-width: 560px) { .timeline { padding-left: 34px; } .timeline__line { left: 9px; } .update::before { left: -32px; } .update .card { padding: 22px; } }

/* ---------- О нас ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.story + .story { margin-top: clamp(80px, 10vw, 140px); }
.story--flip .story__media { order: 2; }
.story__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.story__media::before {
  content: ""; position: absolute; inset: 8%; border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  transform: rotate(-4deg); transition: transform .8s var(--ease);
}
.story:hover .story__media::before { transform: rotate(3deg); }
.story__media img { position: relative; width: 70%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.5)); transition: transform .8s var(--spring); }
.story:hover .story__media img { transform: translateY(-10px) scale(1.03); }
.story__num { font-family: var(--font-display); font-size: clamp(80px, 12vw, 160px); font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.story .h2 { margin: 14px 0 20px; }
.story p { color: var(--muted); font-size: 18px; margin: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story--flip .story__media { order: 0; } .story__media { max-width: 360px; margin: 0 auto; width: 100%; } }

/* ---------- Компании ---------- */
.companies { display: grid; gap: 22px; }
.company { display: grid; grid-template-columns: 110px 1fr 1.1fr; gap: 32px; align-items: center; padding: 26px; }
.company__num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--violet); transition: color .4s; }
.company:hover .company__num { color: var(--violet); }
.company__body .h3 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.company__body p { margin: 0; color: var(--muted); }
.company__media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bg-3); display: grid; place-items: center; }
.company__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.company__media img.contain { object-fit: contain; padding: 8%; }
.company:hover .company__media img { transform: scale(1.06); }
.company__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 900px) { .company { grid-template-columns: 1fr; } .company__num { font-size: 42px; } }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { display: flex; flex-direction: column; }
.service__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(128,121,255,.22), transparent 65%); overflow: hidden; }
.service__media img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(0,0,0,.45)); transition: transform .8s var(--spring); }
.service:hover .service__media img { transform: translateY(-10px) rotate(-4deg) scale(1.05); }
.service__body { padding: 0 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service__body p { margin: 0; color: var(--muted); font-size: 15px; }
.service__body .link-arrow { margin-top: auto; padding-top: 12px; }
.service__brand { font-size: 12px; font-weight: 700; color: var(--duck); }
@media (max-width: 1060px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Формы ---------- */
.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 44px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px; outline: none;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a39ec4' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute; left: 19px; top: 18px; font-size: 16px; color: var(--dim); pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); background: rgba(128,121,255,.06); box-shadow: 0 0 0 4px rgba(128,121,255,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-10px) scale(.76); color: var(--violet); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--yt); }
.field .err { display: none; font-size: 13px; color: #ff8a8a; margin: 6px 4px 0; }
.field.is-invalid .err { display: block; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.form__note { font-size: 13px; color: var(--dim); margin: 0; max-width: 36ch; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-shown { display: block; animation: pop .7s var(--spring); }
.form-success .check { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,220,151,.14); color: var(--ok); }
.form-success .check svg { width: 40px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.contact-list a:hover { border-color: var(--line-2); transform: translateX(6px); }
.contact-list .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex-shrink: 0; }
.contact-list .ico svg { width: 22px; }
.contact-list .ico--yt { background: rgba(255,59,59,.12); color: var(--yt); }
.contact-list b { display: block; }
.contact-list small { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Ивенты ---------- */
.events { display: grid; gap: 26px; }
.event { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.event__media { position: relative; min-height: 340px; overflow: hidden; }
.event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.event:hover .event__media img { transform: scale(1.06); }
.event__date {
  position: absolute; top: 20px; left: 20px; z-index: 2; padding: 12px 16px; border-radius: 18px; text-align: center; line-height: 1;
  background: rgba(8,7,15,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2);
}
.event__date b { display: block; font-family: var(--font-display); font-size: 34px; }
.event__date small { font-size: 13px; color: var(--muted); font-weight: 700; }
.event__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.event__body .h3 { font-size: clamp(26px, 3.2vw, 40px); }
.event__info { display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.event__info div { display: flex; align-items: center; gap: 10px; }
.event__info svg { width: 18px; color: var(--violet); flex-shrink: 0; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { padding: 14px 6px; border-radius: 16px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); }
.countdown b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; }
.countdown small { color: var(--muted); font-size: 12px; font-weight: 600; }
.event__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: background .3s, transform .4s var(--spring); }
.share a:hover, .share button:hover { background: var(--violet); transform: translateY(-3px); }
.share svg { width: 18px; }
@media (max-width: 900px) { .event { grid-template-columns: 1fr; } .event__media { min-height: 240px; aspect-ratio: 16 / 9; } }

/* ---------- Подписчики ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr; } }
.sub-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.sub-card { padding: 30px; display: flex; align-items: center; gap: 20px; }
.sub-card__avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, var(--violet), var(--violet-2)); flex-shrink: 0; display: grid; place-items: end center; }
.sub-card__avatar img { width: 70%; }
@media (max-width: 800px) { .sub-hero { grid-template-columns: 1fr; } }

/* ---------- Пасхалка / 404 ---------- */
.center-screen { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; position: relative; overflow: hidden; }
.center-screen .h1 { font-size: clamp(44px, 9vw, 120px); margin: 18px 0; }
.big-404 { font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 30vw, 360px); line-height: .8; letter-spacing: -0.05em; position: relative; display: inline-flex; }
.big-404 span { display: inline-block; animation: wobble 3s var(--ease-in-out) infinite; }
.big-404 span:nth-child(2) { color: var(--violet); animation-delay: .2s; }
.big-404 span:nth-child(3) { animation-delay: .4s; }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-14px) rotate(-4deg); } 75% { transform: translateY(6px) rotate(3deg); } }
.egg-img { width: min(520px, 100%); border-radius: var(--r-lg); border: 1px solid var(--line-2); margin: 30px auto; box-shadow: 0 40px 80px -30px rgba(128,121,255,.6); transform: rotate(-2deg); transition: transform .6s var(--spring); }
.egg-img:hover { transform: rotate(1deg) scale(1.03); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ---------- Подвал ---------- */
.site-footer { padding: clamp(60px, 8vw, 100px) 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px; }
.footer-col h4 { margin: 0 0 18px; font-size: 14px; color: var(--dim); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); transition: color .3s, padding .3s var(--ease); }
.footer-col a:hover { color: var(--text); padding-left: 6px; }
.footer-big {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 10.5vw, 136px); line-height: .85; letter-spacing: -0.05em;
  margin: clamp(50px, 7vw, 90px) 0 30px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2);
  user-select: none; text-align: center;
}
.footer-big span { display: inline-block; transition: color .4s, transform .6s var(--spring); }
.footer-big span:hover { color: var(--violet); -webkit-text-stroke-color: var(--violet); transform: translateY(-10px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.footer-bottom p { margin: 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: background .3s, transform .4s var(--spring), color .3s; }
.socials a:hover { background: var(--yt); color: #fff; transform: translateY(-4px) rotate(-8deg); }
.socials svg { width: 20px; }
.egg-duck { width: 22px; height: 22px; display: inline-grid; place-items: center; opacity: .25; transition: opacity .3s, transform .5s var(--spring); vertical-align: middle; }
.egg-duck:hover { opacity: 1; transform: rotate(-20deg) scale(1.3); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Наверх ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .5s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--violet); }
.to-top svg { width: 20px; }
.to-top circle { transition: stroke-dashoffset .1s linear; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 16px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); transition: transform .6s var(--spring);
}
.toast.is-shown { transform: translate(-50%, 0); }

/* ---------- Утилиты ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split .char { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}
