/* ─── Viral Production · screens system · Liquid Gold upgrade ──────
   5 экранов со scroll-snap, live-лента, команда, плеер.
   Palette (по промту): графит/почти чёрный фон, жемчужно-белый текст,
   глубокое золото + мягкий электрический фиолетовый в движении.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0e13;
  --text: #f2f6f8;            /* жемчужно-белый */
  --muted: #93a0ae;
  --accent: #2fd8c8;          /* как было: бирюза на текстах */
  --accent-ink: #06231f;
  --gold: #d8b25c;            /* золото — только в анимациях/движении */
  --violet: #8f7bf3;
  --line: rgba(255, 255, 255, 0.09);
  --gold-line: rgba(47, 216, 200, 0.35);
  --glass: rgba(255, 255, 255, 0.045);
  --font: "Golos Text", system-ui, -apple-system, sans-serif;
  --r-pill: 999px;
  --r-md: 14px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  padding-inline: clamp(24px, 4.5vw, 110px);
}

/* ═══ фоновые пятна: золото/фиолет ═══ */
.orb { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.orb-gold { width: 56vw; height: 56vw; background: radial-gradient(circle at 45% 45%, rgba(216,178,92,.16), transparent 65%); top: -20vw; right: -16vw; }
.orb-violet { width: 48vw; height: 48vw; background: radial-gradient(circle at 55% 55%, rgba(143,123,243,.12), transparent 65%); bottom: -18vw; left: -14vw; }

/* ═══ экраны + снап ═══ */
.screen {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
main > .screen:not(.clients) { border-top: 1px solid var(--line); }

/* ═══ Liquid Glass базовый класс ═══ */
.lg {
  background: var(--glass);
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 20px 50px rgba(0,0,0,.35);
  border-radius: var(--r-md);
}

/* ═══ reveal ═══ */
html.js .rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
html.js .rv.in { opacity: 1; transform: none; }

/* ═══ типографика ═══ */
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.big-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}
.big-title.center { text-align: center; }
.hl { color: var(--accent); }

/* ═══ кнопки ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover {
  box-shadow: 0 0 0 1px rgba(47,216,200,.45), 0 10px 36px rgba(47,216,200,.4);
  transform: translateY(-2px);
}
.btn-accent:active { transform: translateY(0) scale(.98); }
.btn-outline {
  background: rgba(255,255,255,.04);
  color: #fff;
  border: 1px solid var(--gold-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-outline:hover { background: rgba(216,178,92,.14); border-color: var(--accent); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(243,245,248,.85);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(243,245,248,.25);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}
.link-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ═══ 1 · HERO ═══ */
.hero { overflow: hidden; background: var(--bg); min-height: 100svh; justify-content: flex-start; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 38%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,12,.85) 0%, rgba(6,8,12,.25) 22%, transparent 40%),
    linear-gradient(90deg, rgba(6,8,12,.92) 0%, rgba(6,8,12,.55) 40%, rgba(6,8,12,.05) 68%, transparent 100%),
    linear-gradient(0deg, rgba(6,8,12,.6) 0%, transparent 18%);
}

/* золотые блик-виньетки на hero */
.hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60vw 40vh at 78% 30%, rgba(216,178,92,.12), transparent 70%);
}

.site-header { position: relative; z-index: 3; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; justify-self: start; }
.logo-a { font-weight: 900; font-size: 22px; letter-spacing: .04em; color: #fff; }
.logo-b { margin-top: 5px; font-weight: 600; font-size: 10px; letter-spacing: .52em; color: var(--accent); text-transform: uppercase; }

.site-nav {
  display: flex;
  gap: clamp(20px, 2.4vw, 44px);
  justify-content: center;
  background: rgba(10,13,17,.45);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  padding: 8px 10px;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 14px 44px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.site-nav a {
  color: rgba(242,246,248,.78);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color 180ms ease, background-color 180ms ease;
}
.site-nav a:hover { color: #fff; background: rgba(216,178,92,.12); }
.header-cta { justify-self: end; }

.hero-body {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 50px 90px;
  max-width: 1160px;
  width: 100%;
}
.hero-eyebrow { margin: 0 0 26px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.4rem, 6.2vw, 6.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}
.gold-glow { color: var(--accent); text-shadow: 0 0 34px rgba(47,216,200,.55); }
/* каскад букв hero-заголовка */
.hero-title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(4deg);
  transition: opacity 0.55s cubic-bezier(0.22,0.61,0.36,1), transform 0.55s cubic-bezier(0.22,0.61,0.36,1);
}
.hero-title.in .ch { opacity: 1; transform: none; }
.hero-title .ch-hl { text-shadow: 0 0 34px rgba(47,216,200,.55); }
.hero-sub { margin: 28px 0 0; max-width: 54ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; margin-top: 38px; }

.hero-scroll-hint {
  position: absolute; z-index: 2;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hint-line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: hint 1.8s ease-in-out infinite; }
.hint-text { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(242,246,248,.45); }
@keyframes hint { 0%,100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ═══ 2 · КЛИЕНТЫ ═══ */
.clients { flex-direction: column; justify-content: center; padding-block: 90px 60px; text-align: center; }
.clients .kicker, .clients .big-title { margin-inline: auto; }

.clients-track {
  margin-top: clamp(40px, 6vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients-track > .marquee-run { display: flex; align-items: center; gap: clamp(28px, 4vw, 60px); padding-right: clamp(28px, 4vw, 60px); animation: scrollleft 34s linear infinite; }
.clients-track:hover > .marquee-run { animation-play-state: paused; }
@keyframes scrollleft { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.partner { transform: translateY(0); transition: color 200ms ease, transform 600ms cubic-bezier(0.22,0.61,0.36,1); }
.clients-track.wave .partner { animation: wave 2.6s ease-in-out infinite; animation-delay: calc(var(--wi, 0) * 0.14s); }
@keyframes wave {
  0%, 100% { transform: translateY(0); color: rgba(243,245,248,.45); }
  12% { transform: translateY(-14px); color: var(--accent); }
  24% { transform: translateY(0); color: rgba(243,245,248,.45); }
}

.partner:hover { color: var(--accent); }
.partner-sep { color: var(--accent); font-size: 14px; opacity: .8; }
.clients-note { margin: clamp(26px,4vw,44px) auto 0; color: var(--muted); max-width: 52ch; font-size: 15px; }

/* ═══ 3 · LIVE ═══ */
.live { flex-direction: column; justify-content: center; padding-block: 70px 40px; }
.live-head { text-align: left; }
.live-hint { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

.live-marquee { margin-top: clamp(30px, 5vw, 60px); }
.marquee-mask {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  width: max-content;
  perspective: 1100px;
}
.live-glow-line {
  position: absolute; left: 0; right: 0; bottom: calc(50% - var(--tile-h, 340px) / 2 + 26px);
  height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .35;
  filter: blur(1px);
  animation: glowpulse 3.2s ease-in-out infinite;
}
.reel-tile {
  --tile-h: clamp(200px, 46svh, 380px);
  position: relative;
  width: calc(var(--tile-h) * 9 / 16);
  height: var(--tile-h);
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--glass);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transition: transform 260ms cubic-bezier(0.22,0.61,0.36,1), box-shadow 260ms ease, border-color 260ms ease;
  transform-style: preserve-3d;
}
.reel-tile:hover {
  transform: translateY(-10px) rotateX(6deg) rotateY(-6deg) scale(1.04);
  border-color: var(--accent);
  box-shadow: -18px 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(47,216,200,.3);
}
@keyframes glowpulse { 0%,100% { opacity: .18; } 50% { opacity: .55; } }
.marquee-track > .marquee-run {
  display: flex;
  gap: 18px;
  padding-right: 18px;
  animation: scrollleft 60s linear infinite;
}
.marquee-track:hover > .marquee-run { animation-play-state: paused; }

.reel-tile {
  --tile-h: clamp(200px, 46svh, 380px);
  position: relative;
  width: calc(var(--tile-h) * 9 / 16);
  height: var(--tile-h);
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--glass);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.reel-tile:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 34px rgba(47,216,200,.25); }
.reel-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.reel-cover-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(216,178,92,.14), transparent 62%),
    rgba(255,255,255,.03);
}
.reel-ph-idx { font-weight: 900; font-size: clamp(2rem, 3.4vw, 3rem); color: rgba(243,245,248,.18); letter-spacing: .04em; }
.reel-ph-play { color: rgba(243,245,248,.55); font-size: 20px; }
.reel-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(6,9,13,.65); border: 1px solid var(--gold-line);
  color: var(--accent);
}
.reel-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(6,9,13,.3);
  color: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}
.reel-play svg { filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.reel-tile:hover .reel-play { opacity: 1; }
.reel-tile.is-demo { cursor: default; }
.reel-tile.is-demo:hover { transform: none; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.reel-tile.is-demo .reel-play { display: none; }

/* ═══ 4 · КОМАНДА ═══ */
.team { flex-direction: column; justify-content: center; padding-block: 90px 60px; }
.team-grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 40px);
  max-width: 1060px;
  margin-inline: auto;
  width: 100%;
}
.team-card { text-align: center; }
.team-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.4);
  transition: transform .5s cubic-bezier(0.22,0.61,0.36,1), box-shadow .5s ease;
  will-change: transform;
}
.team-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,9,13,.55));
  opacity: 0; transition: opacity .4s ease;
}
.team-card:hover .team-photo { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 34px rgba(47,216,200,.22); }
.team-card:hover .team-photo::after { opacity: 1; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(0.22,0.61,0.36,1); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-card:nth-child(1) .team-photo { transition-delay: 0s; }
.team-card:nth-child(2) .team-photo { transition-delay: .08s; }
.team-card:nth-child(3) .team-photo { transition-delay: .16s; }
.team-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(47,216,200,.1), transparent 60%), rgba(255,255,255,.02);
}
.team-ph-role {
  font-weight: 800; font-size: 15px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(243,245,248,.3);
  writing-mode: vertical-rl;
}
.team-name { margin: 18px 0 0; font-weight: 700; font-size: 19px; color: #fff; }
.team-role {
  margin: 6px 0 0;
  font-size: 13px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}

/* ═══ 5 · КОНТАКТ ═══ */
.contact { justify-content: center; padding-block: 100px 70px; }
.contact-title {
  margin: 0 0 clamp(30px, 4vw, 50px);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(100deg, var(--text) 40%, var(--accent) 50%, var(--text) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sweep 5.5s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: end;
}
.contact-sub { margin: 0; max-width: 52ch; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-actions .link-ghost {
  border-bottom: 1px solid rgba(243,245,248,.25);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 1px;
  transition: background-size .35s ease, color 180ms ease;
}
.contact-actions .link-ghost:hover { background-size: 100% 1px; }
.contact-actions .btn-glow { animation: btnpulse 2.8s ease-in-out infinite; }
@keyframes btnpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,216,200,.35); }
  50% { box-shadow: 0 0 0 10px rgba(47,216,200,0); }
}

/* ═══ Плеер (glass) ═══ */
.player-modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(4, 8, 12, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.player-modal[hidden] { display: none; }
.player-stage video {
  max-height: 84svh; max-width: min(480px, 94vw);
  border-radius: 16px; background: #000;
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 60px rgba(47,216,200,.25), 0 30px 90px rgba(0,0,0,.6);
}
.player-stage iframe {
  width: min(400px, 94vw);
  aspect-ratio: 9 / 16;
  border: 0; border-radius: 16px; background: #000;
}
.marquee-mask {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; width: max-content; }

.player-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(10,14,19,.8);
  color: #fff; font-size: 18px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.player-close:hover { border-color: var(--accent); color: var(--accent); }
body.modal-open { overflow: hidden; }

/* ═══ Футер ═══ */
.site-footer {
  scroll-snap-align: end;
  border-top: 1px solid var(--line);
  background: #080b0f;
}
.footer-inner {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding-block: 30px;
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 180ms ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
}
@media (max-width: 760px) {
  .hero-title { font-size: clamp(1.8rem, 8.4vw, 3rem); line-height: 1.06; }
  .clients { text-align: left; }
  .clients .kicker, .clients .big-title, .clients-note { margin-inline: 0; }
  .clients .big-title { text-align: left; }
  .live { padding-block: 60px 30px; }
  .reel-tile { --tile-h: clamp(170px, 40svh, 260px); }
  .team-grid { gap: 14px; max-width: 480px; }
  .team-ph-role { font-size: 11px; letter-spacing: .14em; }
  .team-name { font-size: 16px; }
  .contact { padding-block: 70px 50px; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-copy { margin-left: 0; width: 100%; }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .clients-track > .marquee-run, .marquee-track > .marquee-run,
  .hint-line { animation: none; }
  .clients-track, .marquee-mask { overflow-x: auto; }
  .btn, .link-ghost, .site-nav a, .footer-nav a { transition: none; }
  .hero-title .ch { opacity: 1 !important; transform: none !important; transition: none !important; }
  .contact-title { animation: none !important; -webkit-text-fill-color: currentColor; }
  .clients-track.wave .partner { animation: none !important; }
  .live-glow-line { animation: none !important; }
  .contact-actions .btn-glow { animation: none !important; }
}
