/* ============ VOSMEDIA — общие стили ============ */
:root {
  --bg: #0A0D16;
  --bg-alt: #0D1120;
  --panel: #10141F;
  --panel-2: #141928;
  --line: #1A1F2E;
  --line-2: #1E2333;
  --line-3: #262C3D;
  --line-btn: #2A3040;
  --accent: #3B63E8;
  --accent-2: #5C7CF5;
  --accent-hover: #7C97FF;
  --text: #F5F6FA;
  --muted: #A7AEC2;
  --muted-2: #8A93AC;
  --muted-3: #6B7388;
  --dim: #C7CCDA;
  --success: #5FE0A0;
  --pad-x: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; transition: color .15s, opacity .15s; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: #fff; }
img, video { display: block; max-width: 100%; }

.oswald { font-family: 'Oswald', sans-serif; }
.container { max-width: 1600px; margin: 0 auto; }

/* ---------- Навигация ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,22,.92); backdrop-filter: blur(10px);
}
.logo {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: .02em; color: var(--text) !important;
}
.logo span { color: var(--accent); }
.logo-img { height: 26px; width: auto; display: block; }
@media (max-width: 480px) { .logo-img { height: 22px; } }
.logo-wrap { display: flex; flex-direction: column; gap: 2px; }
.logo-tag {
  font-size: 10.5px; letter-spacing: .05em; color: var(--muted-2);
  white-space: nowrap;
}
@media (max-width: 480px) { .logo-tag { font-size: 9px; letter-spacing: .02em; } }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block; border: none; cursor: pointer; text-align: center;
  background: var(--accent); color: #fff !important;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 6px;
  transition: background .15s, transform .1s;
}
.btn:hover { background: #4C71F0; }
.btn:active { transform: translateY(1px); }
.btn--sm { font-size: 13px; letter-spacing: .04em; padding: 12px 22px; }
.btn--ghost { background: transparent; border: 1px solid var(--line-btn); color: var(--text) !important; }
.btn--ghost:hover { background: rgba(255,255,255,.04); border-color: #3A4152; }
.btn--pill { border-radius: 20px; }

/* ---------- Секции / заголовки ---------- */
.section { padding: 96px var(--pad-x); }
.section--alt { background: var(--bg-alt); }
.kicker {
  color: var(--accent-2); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.kicker--muted { color: var(--muted-2); letter-spacing: .06em; white-space: nowrap; }
.h1 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 64px; line-height: 1.05; text-transform: uppercase; margin: 0; }
.h2 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 38px; line-height: 1.12; text-transform: uppercase; margin: 0; }
.h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; text-transform: uppercase; margin: 0; }
.accent { color: var(--accent); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.body-text { font-size: 16px; line-height: 1.7; color: var(--muted); }

/* ---------- Медиа-заглушки (заменить на реальные видео/фото) ---------- */
.media-slot {
  width: 100%; height: 100%; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59,99,232,.14), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(92,124,245,.08), transparent 50%),
    var(--panel-2);
  color: var(--muted-3); font-size: 13px; letter-spacing: .04em;
  text-align: center; padding: 12px;
  position: relative; overflow: hidden;
}
.media-slot::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px dashed rgba(138,147,172,.28);
  border-radius: 6px; pointer-events: none;
}
.media-slot--play::after {
  content: '';
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(59,99,232,.85);
  top: calc(50% - 45px); left: calc(50% - 27px);
}
.media-slot--play .play-tri {
  position: absolute; z-index: 1;
  top: calc(50% - 29px); left: calc(50% - 7px);
  width: 0; height: 0;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}
.media-slot--play span { position: relative; z-index: 2; margin-top: 64px; }

/* ---------- Hover-видео: тихий предпросмотр при наведении, звук по кнопке Play ---------- */
.hv-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.hv-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(59,99,232,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background .25s ease, opacity .3s ease;
  z-index: 2;
}
.hv-play:hover { transform: scale(1.1); background: var(--accent); }
.hv-tri {
  width: 0; height: 0;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  border-left: 20px solid #fff; margin-left: 5px;
}
.hv-engaged .hv-play { opacity: 0; pointer-events: none; }
.hv-label {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-size: 12px; color: rgba(245,246,250,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.8); pointer-events: none;
  transition: opacity .3s ease;
}
.hv-engaged .hv-label { opacity: 0; }

/* ---------- Формы ---------- */
.vm-in {
  background: transparent; border: none; border-bottom: 1px solid var(--line-btn);
  color: var(--text); font-size: 15px; padding: 10px 2px;
  font-family: 'Inter', sans-serif; width: 100%;
}
.vm-in:focus { outline: none; border-bottom-color: var(--accent); }
.vm-in::placeholder { color: var(--muted-3); }
.form-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
.form-success { color: var(--success); font-size: 14px; }

/* ---------- Калькулятор ---------- */
.calc-card {
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 44px;
}
.calc-step { display: flex; flex-direction: column; gap: 20px; }
.calc-step[hidden] { display: none; }
.calc-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; text-transform: uppercase; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-opt {
  cursor: pointer; padding: 16px 18px; border-radius: 8px;
  border: 1px solid var(--line-3); background: var(--bg-alt);
  transition: border-color .15s, background .15s;
}
.calc-opt:hover { border-color: var(--accent); }
.calc-opt.selected { border-color: var(--accent); background: rgba(59,99,232,.10); }
.calc-opt-label { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; }
.calc-opt-note { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.chip {
  cursor: pointer; padding: 9px 14px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--line-3); background: var(--bg-alt);
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.selected { border-color: var(--accent); background: rgba(59,99,232,.12); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chips--pill .chip, .chips--pill .calc-opt { border-radius: 20px; }
.range-label { font-size: 14px; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-nav { display: flex; gap: 14px; margin-top: 8px; }
.calc-btn {
  background: var(--accent); border: none; color: #fff; padding: 12px 24px;
  border-radius: 6px; font-family: 'Oswald', sans-serif; font-size: 13px;
  text-transform: uppercase; cursor: pointer; letter-spacing: .03em;
}
.calc-btn:hover { background: #4C71F0; }
.calc-btn--ghost { background: transparent; border: 1px solid var(--line-btn); color: var(--text); }
.calc-btn--ghost:hover { background: rgba(255,255,255,.04); }
.calc-price { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 36px; color: var(--accent); }
.calc-note { font-size: 14px; color: var(--muted-2); }
.extra-row {
  cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 6px; border: 1px solid var(--line-3);
  background: var(--bg-alt); transition: border-color .15s, background .15s;
}
.extra-row:hover { border-color: var(--accent); }
.extra-row.selected { border-color: var(--accent); background: rgba(59,99,232,.10); }
.extra-price { font-size: 13px; color: var(--accent-2); white-space: nowrap; }

/* ---------- Карточки ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-top {
  padding: 56px var(--pad-x) 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.footer-top, .footer-top a { color: var(--muted-2); }
.footer-top .branches { color: var(--muted-3); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-geo a { color: var(--accent-2); }
.footer-geo a:hover { color: var(--accent-hover); text-decoration: underline; }
.footer-logo {
  padding: 0 var(--pad-x) 56px;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 110px;
  line-height: 1; color: var(--accent); letter-spacing: -.01em;
}

/* ---------- Видео-шапка ---------- */
[id] { scroll-margin-top: 90px; }

.nav--overlay {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav--overlay.nav--solid {
  background: rgba(10,13,22,.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.vhero {
  position: relative; height: 100svh; min-height: 620px;
  overflow: hidden; background: #05070C;
}
.vhero-fallback { position: absolute; inset: 0; overflow: hidden; }
.vhero-fallback::before {
  content: ''; position: absolute; inset: -22%;
  background:
    radial-gradient(640px 420px at 22% 32%, rgba(59,99,232,.34), transparent 62%),
    radial-gradient(720px 520px at 78% 68%, rgba(92,124,245,.20), transparent 62%),
    radial-gradient(520px 420px at 58% 14%, rgba(26,54,150,.30), transparent 62%),
    radial-gradient(460px 380px at 12% 82%, rgba(20,25,45,.9), transparent 65%);
  animation: vheroDrift 16s ease-in-out infinite alternate;
}
.vhero-fallback::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(108deg, transparent 42%, rgba(255,255,255,.055) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: vheroSweep 7.5s ease-in-out infinite;
}
@keyframes vheroDrift {
  from { transform: translate(-4%, -3%) scale(1) rotate(-1deg); }
  to   { transform: translate(4%, 3%) scale(1.14) rotate(1.5deg); }
}
@keyframes vheroSweep {
  0%, 15% { background-position: 120% 0; }
  55%, 100% { background-position: -60% 0; }
}
.vhero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%; opacity: 0; transition: opacity 1.2s ease;
}
.vhero.has-video .vhero-video { opacity: 1; }

.vhero-dim {
  position: absolute; inset: 0; background: rgba(5,7,12,.58);
  transition: opacity 1.6s ease;
}
/* после «оседания» заголовка видео остаётся слегка затемнённым, а не полностью открытым */
.vhero--settled .vhero-dim { opacity: .45; }
.vhero-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5,7,12,.65) 0%,
    transparent 24%,
    transparent 46%,
    rgba(5,7,12,.42) 66%,
    rgba(5,7,12,.82) 82%,
    rgba(5,7,12,.97) 100%);
}

.vhero-content {
  position: absolute; inset: 0;
  padding: 0 var(--pad-x) 72px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center; gap: 16px; z-index: 2;
}
.vhero-move {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: translateY(calc(-42svh + 50%));
  transition: transform 1.4s cubic-bezier(.22, .61, .2, 1);
  animation: vheroIn 1.1s cubic-bezier(.16, .84, .3, 1) .25s both;
}
.vhero--settled .vhero-move { transform: translateY(0); }
@keyframes vheroIn {
  from { opacity: 0; letter-spacing: .06em; margin-bottom: -24px; }
  to   { opacity: 1; letter-spacing: 0; margin-bottom: 0; }
}
.vhero-title {
  font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  line-height: 1.06; margin: 0; max-width: 1100px;
  font-size: clamp(42px, 6.4vw, 96px);
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
  transition: font-size 1.4s cubic-bezier(.22, .61, .2, 1);
}
.vhero--settled .vhero-title { font-size: clamp(24px, 2.6vw, 40px); }
.vhero-sub {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s ease .55s, transform .9s ease .55s;
}
.vhero--settled .vhero-sub { opacity: 1; transform: none; }
.vhero-sub p { margin: 0; max-width: 620px; font-size: 15.5px; line-height: 1.6; color: var(--dim); text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.vhero .kicker, .vhero-stats { text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.vhero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.vhero-stats { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }

.vhero-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  width: 22px; height: 22px; margin-left: -11px;
  border-right: 2px solid rgba(245,246,250,.65);
  border-bottom: 2px solid rgba(245,246,250,.65);
  transform: rotate(45deg);
  animation: vheroCue 2s ease-in-out infinite;
  opacity: 0; transition: opacity .8s ease 1.2s;
}
.vhero--settled .vhero-cue { opacity: 1; }
@keyframes vheroCue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* --- Модификация шапки: текстовая зона ПОД видео (.vhero--band) --- */
.vhero--band { display: flex; flex-direction: column; }
.vhero--band .vhero-screen {
  position: relative; flex: 1 1 auto; min-height: 300px;
  overflow: hidden; z-index: 1;
}
.vhero--band .vhero-screen .vhero-fallback,
.vhero--band .vhero-screen .vhero-video,
.vhero--band .vhero-screen .vhero-dim,
.vhero--band .vhero-screen .vhero-grad { position: absolute; inset: 0; }
/* видео не перекрывается текстом: лёгкое затемнение только на интро, потом чистый кадр */
.vhero--band .vhero-grad {
  background: linear-gradient(180deg, rgba(5,7,12,.55) 0%, transparent 24%);
}
.vhero--band.vhero--settled .vhero-dim { opacity: 0; }
.vhero--band .vhero-cue { bottom: 16px; }

.vhero-band {
  position: relative; z-index: 2;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 26px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px 40px; flex-wrap: wrap;
}
/* заголовок: на интро — крупно по центру экрана поверх видео, затем «оседает» в свою зону */
.vhero--band .vhero-move {
  align-items: flex-start; text-align: left;
  transform: translate(calc(50vw - 50% - var(--pad-x)), calc(-52svh + 50%)) scale(1.9);
  transform-origin: center center;
  will-change: transform;
}
.vhero--band.vhero--settled .vhero-move { transform: none; }
.vhero--band .vhero-title {
  font-size: clamp(22px, 2.2vw, 34px);
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
  transition: text-shadow 1.4s cubic-bezier(.22, .61, .2, 1);
}
.vhero--band.vhero--settled .vhero-title {
  text-shadow: none;
}
.vhero-band-left { display: flex; flex-direction: column; gap: 10px; flex: 1 1 480px; min-width: 260px; }
.vhero-tagline {
  margin: 0; max-width: 560px; font-size: 14.5px; line-height: 1.55; color: var(--muted);
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s ease .55s, transform .8s ease .55s;
}
.vhero--settled .vhero-tagline { opacity: 1; transform: none; }
.vhero-geo {
  margin: 0; font-size: 13px; line-height: 1.5; letter-spacing: .01em;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s ease .7s, transform .8s ease .7s;
}
.vhero-geo .accent { font-size: 9px; }
.vhero--settled .vhero-geo { opacity: 1; transform: none; }
.vhero--band .vhero-sub { align-items: flex-end; gap: 14px; }
.vhero--band .vhero-sub p { display: none; }
.vhero--band .vhero-actions { justify-content: flex-end; }
.vhero--band .vhero-stats { gap: 26px; justify-content: flex-end; text-shadow: none; }
.vhero--band .kicker { text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .vhero-move, .vhero-title, .vhero-sub, .vhero-dim { transition: none !important; animation: none !important; }
  .vhero-fallback::before, .vhero-fallback::after, .vhero-cue { animation: none !important; }
}
@media (max-width: 600px) {
  .vhero { min-height: 520px; }
  .vhero-content { padding-bottom: 56px; }
  .vhero-band { padding: 20px var(--pad-x); }
  .vhero--band .vhero-sub { align-items: flex-start; }
  .vhero--band .vhero-actions, .vhero--band .vhero-stats { justify-content: flex-start; }
}

/* ============ Scroll-анимации ============ */
/* Скрытые состояния применяются только после инициализации JS (body.anim-ready),
   чтобы без JS и при prefers-reduced-motion контент оставался видимым. */

/* --- Стиль A: «Кинотрейлер» — проявление кадра (blur + scale + fade) --- */
.anim-a.anim-ready [data-rev] {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(7px);
  transition:
    opacity .85s ease,
    transform .85s cubic-bezier(.22, .61, .2, 1),
    filter .85s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform, filter;
}
.anim-a.anim-ready [data-rev].rev-in {
  opacity: 1; transform: none; filter: none;
}
/* Ховеры A: подъём карточек + кино-zoom медиа */
.anim-a .card { transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .45s ease; }
.anim-a .card:hover { transform: translateY(-5px); border-color: #2E3D66; box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.anim-a .media-slot { transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.anim-a .card:hover .media-slot,
.anim-a a:hover .media-slot { transform: scale(1.05); }

/* --- Стиль B: «Продюсерская» — редакционные направленные сдвиги --- */
.anim-b.anim-ready [data-rev] {
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity .7s ease,
    transform .75s cubic-bezier(.22, .61, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.anim-b.anim-ready [data-rev][data-rev-dir="right"] { transform: translateX(36px); }
.anim-b.anim-ready [data-rev][data-rev-dir="up"] { transform: translateY(28px); }
.anim-b.anim-ready [data-rev].rev-in { opacity: 1; transform: none; }
/* Реверс-шторка на большом логотипе */
.anim-b.anim-ready .footer-logo[data-rev] {
  transform: none;
  clip-path: inset(100% 0 0 0);
  letter-spacing: .10em;
  transition: opacity .9s ease, clip-path 1.1s cubic-bezier(.22,.61,.2,1), letter-spacing 1.3s cubic-bezier(.22,.61,.2,1);
}
.anim-b.anim-ready .footer-logo[data-rev].rev-in {
  clip-path: inset(0 0 0 0);
  letter-spacing: -.01em;
}
/* Ховеры B: медиа-zoom в bento и лентах, без подъёма карточек */
.anim-b .media-slot { transition: transform .9s cubic-bezier(.2,.6,.2,1); }
.anim-b .bento > *:hover .media-slot,
.anim-b .hscroll a:hover .media-slot { transform: scale(1.06); }

/* --- Бегущая строка клиентов (стиль B) --- */
.marquee {
  overflow: hidden; display: flex; gap: 12px; flex-wrap: nowrap !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .marquee-track {
  display: flex; gap: 12px; flex: 0 0 auto; min-width: 100%;
  justify-content: space-around;
  animation: vmMarquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes vmMarquee { to { transform: translateX(calc(-100% - 12px)); } }

@media (prefers-reduced-motion: reduce) {
  .marquee .marquee-track { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  :root { --pad-x: 32px; }
  .h1 { font-size: 52px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px var(--pad-x); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-logo { font-size: 64px; }
  .calc-card { padding: 28px 20px; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --pad-x: 20px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 26px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-logo { font-size: 44px; }
  .btn { padding: 14px 20px; font-size: 13px; }
}

/* ---------- Бэкстейдж: фото-плитка ---------- */
/* Justified-галерея: ряды заполняются вплотную, пропорции фото сохраняются */
.bs-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bs-photo {
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-2);
  flex-grow: 0; flex-shrink: 0;
}
.bs-photo img {
  width: 100%; height: 100%;
  display: block; object-fit: fill;
  transition: transform .35s ease;
}
.bs-photo:hover img { transform: scale(1.03); }

/* ── Кнопка «Подробнее» на карточках форматов ── */
.btn-more {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px; border-radius: 5px; border: none;
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-hover) 100%);
  background-size: 200% 100%; background-position: 0% 0%;
  color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: background-position .4s, transform .18s, box-shadow .18s;
  animation: btnMoreGlow 3s ease-in-out infinite;
}
.btn-more::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: btnSheen 3s ease-in-out infinite;
}
.btn-more:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(59,99,232,.55);
  animation: none;
}
.btn-more:hover::after { left: 150%; transition: none; }
@keyframes btnMoreGlow {
  0%, 55%, 100% { box-shadow: 0 0 0 0 rgba(92,124,245,0); }
  27%           { box-shadow: 0 0 0 8px rgba(92,124,245,.25); }
}
@keyframes btnSheen {
  0%        { left: -100%; }
  45%, 100% { left: 150%; }
}

/* ─────────── Интерактивный плеер «видео + список» ─────────── */
.vpack { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .vpack { grid-template-columns: 1fr; } }
.vpack-stage {
  position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line-3);
}
.vpack-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vpack-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted); font-size: 14px; padding: 24px; line-height: 1.5;
}
.vpack-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(59,99,232,.92); display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s; z-index: 2;
}
.vpack-play:hover { transform: translate(-50%,-50%) scale(1.08); background: var(--accent); }
.vpack-play::after { content: ''; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.vpack-list { display: flex; flex-direction: column; gap: 8px; }
.vpack-item {
  text-align: left; display: flex; flex-direction: column; gap: 3px;
  padding: 12px 15px; border: 1px solid var(--line-3); border-radius: 8px;
  background: var(--panel); color: var(--fg); cursor: pointer;
  transition: border-color .2s, background .2s; width: 100%; font-family: inherit;
}
.vpack-item:hover { border-color: var(--accent); }
.vpack-item.active { border-color: var(--accent); background: rgba(59,99,232,.08); }
.vpack-item .vp-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.vpack-item .vp-name { font-weight: 600; font-size: 14px; }
.vpack-item.soon { opacity: .55; }
.vpack-item.soon .vp-name::after { content: ' · скоро'; font-weight: 400; color: var(--muted-3); }

/* Модификатор: окно подстраивается под реальное соотношение сторон видео.
   Горизонтальные — по ширине колонки; вертикальные — по высоте, окно становится узким и высоким.
   Точные размеры задаёт JS в зависимости от videoWidth/videoHeight текущего ролика. */
.vpack--fit .vpack-stage {
  aspect-ratio: 16 / 9; height: auto; width: 100%;
  max-width: 100%; background: #080b14; margin: 0 auto; display: block;
}
.vpack--fit .vpack-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Модификатор: прокручиваемый список (когда роликов много) */
.vpack-list--scroll { max-height: 560px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 820px) { .vpack-list--scroll { max-height: none; } }

/* ═══════════════════════════════════════════════════════════════
   CINEMA REEL — 3D-карусель «Процесс, люди, площадка»
   ═══════════════════════════════════════════════════════════════ */
.reel{
  --reel-card-w: clamp(230px, 25vw, 360px);
  --reel-gap: 18px;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
}

/* ── Сцена: тёмный кинозал с виньеткой и зерном ── */
.reel-stage{
  position: relative; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(130% 110% at 50% -10%, rgba(59,99,232,.14) 0%, transparent 58%),
    linear-gradient(180deg, #0c0d13 0%, #07070b 100%);
  border: 1px solid rgba(92,124,245,.18);
  box-shadow: inset 0 0 120px rgba(0,0,0,.8), 0 34px 80px rgba(0,0,0,.55);
}
.reel-stage::before{            /* кинозерно */
  content:''; position:absolute; inset:0; z-index:4; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.05; mix-blend-mode:overlay;
  animation: reelGrain .5s steps(4) infinite;
}
@keyframes reelGrain{
  0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)}
  50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(0,0)}
}
.reel-stage::after{             /* виньетка по бокам */
  content:''; position:absolute; inset:0; z-index:3; pointer-events:none;
  background:
    linear-gradient(90deg, #07070b 0%, rgba(7,7,11,.55) 5%, transparent 14%,
                    transparent 86%, rgba(7,7,11,.55) 95%, #07070b 100%);
}

/* ── Перфорация киноплёнки ── */
.reel-perf{
  position: relative; z-index: 2; height: 20px;
  background-image: linear-gradient(90deg, rgba(196,190,178,.42) 0 58%, transparent 58%);
  background-size: 40px 8px; background-repeat: repeat-x; background-position: center;
  opacity: .45;
}
.reel-perf--top{ border-bottom: 1px solid rgba(255,255,255,.05); }
.reel-perf--bot{ border-top: 1px solid rgba(255,255,255,.05); }

/* ── Вьюпорт с 3D-перспективой ── */
.reel-viewport{
  position: relative; z-index: 2;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 34px 26px 38px;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.reel-viewport::-webkit-scrollbar{ display:none; }
.reel-viewport.is-drag{ cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }

.reel-track{
  display: flex; gap: var(--reel-gap);
  transform-style: preserve-3d;
  width: max-content;
}

/* ── Карточка ── */
.reel-card{
  flex: 0 0 var(--reel-card-w);
  width: var(--reel-card-w);
  scroll-snap-align: center;
  transform-style: preserve-3d;
  will-change: transform, filter;
  transition: filter .45s cubic-bezier(.22,.61,.36,1);
}
.reel-card-inner{
  position: relative; display: block; width: 100%;
  aspect-ratio: 3/2; border-radius: 8px; overflow: hidden;
  background: var(--panel-2, #12131a);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 22px 46px rgba(0,0,0,.6);
  transition: transform .5s cubic-bezier(.22,.61,.36,1),
              box-shadow .5s cubic-bezier(.22,.61,.36,1),
              border-color .4s;
  cursor: zoom-in;
}
.reel-card img{
  width:100%; height:100%; display:block; object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
/* блик-развёртка по карточке */
.reel-card-inner::after{
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%);
  transform: translateX(-120%); opacity:0;
  transition: transform .85s cubic-bezier(.22,.61,.36,1), opacity .3s;
}
.reel-card-inner:hover::after{ transform: translateX(120%); opacity:1; }
.reel-card-inner:hover{
  transform: translateY(-10px);
  border-color: rgba(92,124,245,.55);
  box-shadow: 0 34px 70px rgba(0,0,0,.7), 0 0 0 1px rgba(92,124,245,.35),
              0 0 46px rgba(59,99,232,.34);
}
.reel-card-inner:hover img{ transform: scale(1.07); }

/* центральная карточка — акцентная рамка + свечение */
.reel-card.is-focus .reel-card-inner{
  border-color: rgba(92,124,245,.42);
  box-shadow: 0 30px 64px rgba(0,0,0,.68), 0 0 40px rgba(59,99,232,.26);
}

/* номер кадра в углу */
.reel-num{
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  font-family:'Oswald',sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; color: #fff;
  padding: 4px 10px; border-radius: 3px;
  background: rgba(8,9,14,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s, transform .35s;
}
.reel-card-inner:hover .reel-num,
.reel-card.is-focus .reel-num{ opacity:1; transform:translateY(0); }

/* ── Стрелки ── */
.reel-nav{
  position: absolute; top: 50%; z-index: 6;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transform: translateY(-50%);
  background: rgba(11,13,20,.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(92,124,245,.4);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 0 0 rgba(59,99,232,.5);
  transition: background .3s, border-color .3s, transform .3s, box-shadow .3s, opacity .3s;
}
.reel-nav--prev{ left: 14px; }
.reel-nav--next{ right: 14px; }
.reel-nav svg{ width: 22px; height: 22px; transition: transform .3s; }
.reel-nav:hover{
  background: linear-gradient(135deg, var(--accent,#3b63e8), var(--accent-hover,#5c7cf5));
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 16px 44px rgba(0,0,0,.6), 0 0 34px rgba(59,99,232,.6);
}
.reel-nav--next:hover svg{ transform: translateX(3px); }
.reel-nav--prev:hover svg{ transform: translateX(-3px); }
.reel-nav:disabled{ opacity:.2; pointer-events:none; }
/* пульсация, пока пользователь не листал */
.reel:not(.is-touched) .reel-nav--next{ animation: reelPulse 2.1s ease-out infinite; }
@keyframes reelPulse{
  0%   { box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 0 0 rgba(92,124,245,.55); }
  70%  { box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 0 16px rgba(92,124,245,0); }
  100% { box-shadow: 0 12px 34px rgba(0,0,0,.55), 0 0 0 0 rgba(92,124,245,0); }
}

/* ── Подсказка «листайте» ── */
.reel-hint{
  position: absolute; left: 50%; bottom: 14px; z-index: 6;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(10,12,18,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(92,124,245,.34);
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #dfe4f5; white-space: nowrap; pointer-events: none;
  transition: opacity .5s, transform .5s;
}
.reel.is-touched .reel-hint{ opacity: 0; transform: translate(-50%, 10px); }
.reel-hint i{ display:inline-block; font-style:normal; color: var(--accent-2,#5c7cf5); }
.reel-hint i:first-child{ animation: reelSwipeL 1.8s ease-in-out infinite; }
.reel-hint i:last-child { animation: reelSwipeR 1.8s ease-in-out infinite; }
@keyframes reelSwipeR{ 0%,100%{transform:translateX(0);opacity:.45} 50%{transform:translateX(6px);opacity:1} }
@keyframes reelSwipeL{ 0%,100%{transform:translateX(0);opacity:.45} 50%{transform:translateX(-6px);opacity:1} }

/* ── Нижняя панель: прогресс + счётчик ── */
.reel-bar{
  display: flex; align-items: center; gap: 18px;
}
.reel-progress{
  flex: 1; height: 3px; border-radius: 100px;
  background: rgba(255,255,255,.09); overflow: hidden;
}
.reel-progress i{
  display: block; height: 100%; width: 20%; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent,#3b63e8), var(--accent-2,#5c7cf5));
  box-shadow: 0 0 14px rgba(92,124,245,.75);
  transition: width .25s cubic-bezier(.22,.61,.36,1), margin-left .25s cubic-bezier(.22,.61,.36,1);
}
.reel-count{
  font-family:'Oswald',sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .16em; color: var(--muted-2,#8b90a5); white-space: nowrap;
}
.reel-count b{ color: var(--accent-2,#5c7cf5); font-weight: 700; }

/* ── Лайтбокс ── */
.reel-lb{
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(4,5,9,.94); backdrop-filter: blur(14px);
  padding: 4vh 5vw;
  opacity: 0; transition: opacity .3s;
}
.reel-lb.is-open{ display: grid; opacity: 1; }
.reel-lb img{
  max-width: 100%; max-height: 86vh; display:block;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px rgba(0,0,0,.85);
  animation: reelZoom .4s cubic-bezier(.22,.61,.36,1);
}
@keyframes reelZoom{ from{opacity:0; transform:scale(.93)} to{opacity:1; transform:scale(1)} }
.reel-lb-close, .reel-lb-nav{
  position: absolute; z-index: 2; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color:#fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  transition: background .25s, transform .25s;
}
.reel-lb-close:hover, .reel-lb-nav:hover{ background: var(--accent,#3b63e8); transform: scale(1.1); }
.reel-lb-close{ top: 22px; right: 26px; font-size: 22px; line-height:1; }
.reel-lb-nav--prev{ left: 24px; top: 50%; margin-top:-25px; }
.reel-lb-nav--next{ right: 24px; top: 50%; margin-top:-25px; }
.reel-lb-cap{
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family:'Oswald',sans-serif; font-size: 12px; letter-spacing: .2em;
  color: rgba(255,255,255,.55);
}

/* ── Мобильные ── */
@media (max-width: 860px){
  .reel{ --reel-card-w: clamp(210px, 62vw, 300px); --reel-gap: 12px; }
  .reel-viewport{ padding: 24px 16px 34px; }
  .reel-nav{ width: 44px; height: 44px; }
  .reel-nav--prev{ left: 8px; } .reel-nav--next{ right: 8px; }
  .reel-hint{ font-size: 10px; padding: 7px 14px; letter-spacing:.14em; }
  .reel-lb-nav{ width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce){
  .reel-stage::before, .reel-nav, .reel-hint i{ animation: none !important; }
  .reel-viewport{ scroll-behavior: auto; }
}

/* ── Подсветка незаполненного обязательного поля (контакт) ── */
.vm-in--err, .qz-in--err{
  border-color:#e2555f !important;
  box-shadow:0 0 0 2px rgba(226,85,95,.22);
}
