/* ============================================================
   VIVAT — Москва. Лидген-лендинг. Дизайн-система.
   ============================================================ */

:root {
  /* Цвет — фирменный фиолетовый #32195A + коралловый #FF6161 */
  --brand:     #32195A;                 /* фирменный фиолетовый */
  --bg:        oklch(0.155 0.035 300);  /* near-black с фиолетовым тоном */
  --bg-2:      oklch(0.205 0.052 300);  /* поверхности */
  --bg-3:      oklch(0.255 0.062 300);  /* карточки/hover */
  --line:      oklch(0.36 0.060 300);   /* границы */
  --line-soft: oklch(0.29 0.050 300);

  --ink:       oklch(0.97 0.008 320);   /* основной текст / off-white */
  --ink-2:     oklch(0.83 0.022 312);   /* вторичный */
  --ink-3:     oklch(0.65 0.032 306);   /* приглушённый */

  /* Акцент (переключается в Tweaks) — производные следуют за --accent */
  --accent:        #FF6161;                 /* VIVAT коралловый */
  --accent-ink:    oklch(0.20 0.04 18);     /* текст на акценте */
  --accent-soft:   color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-glow:   color-mix(in oklab, var(--accent) 42%, transparent);

  /* Типографика */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  /* Сетка */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Плотность (переключается в Tweaks) */
  --section-pad: clamp(72px, 9vw, 140px);
}

[data-density="compact"] { --section-pad: clamp(52px, 6vw, 96px); }
[data-density="comfy"]   { --section-pad: clamp(96px, 12vw, 180px); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Утилиты ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: var(--section-pad); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }

.h-sec {
  font-size: clamp(30px, 4.4vw, 58px);
  margin-bottom: 18px;
}
.lead {
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 21px);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Кнопки ---------- */
.btn {
  --pad-y: 17px; --pad-x: 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px var(--accent-glow); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink-2); background: var(--bg-2); }

.btn--lg { --pad-y: 17px; --pad-x: 30px; font-size: 16px; }

.btn svg { width: 18px; height: 18px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-color: var(--line-soft); }
.site-header .wrap { max-width: 1360px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 88px;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { height: 26px; width: auto; display: block; }
.brand__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 25px; letter-spacing: 0.02em;
}
.brand__mark b { color: var(--accent); }
/* ---- Переключатель города ---- */
.city { position: relative; }
.city__btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.city__btn:hover, .city:hover .city__btn, .city:focus-within .city__btn { color: var(--ink); border-color: var(--ink-3); }
.city__btn .pin { width: 14px; height: 14px; color: var(--accent); }
.city__btn .chev { width: 12px; height: 12px; transition: transform .25s; }
.city:hover .city__btn .chev, .city:focus-within .city__btn .chev { transform: rotate(180deg); }
.city__menu {
  position: absolute; top: 100%; left: 0; margin-top: 10px; min-width: 180px; padding: 8px;
  background: color-mix(in oklab, var(--bg-2) 96%, transparent); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 24px 50px -26px rgba(0,0,0,.75); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 80;
}
.city::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.city:hover .city__menu, .city:focus-within .city__menu, .city.is-open .city__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.city__menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); transition: background .18s, color .18s;
}
.city__menu a:hover { background: var(--bg-3); color: var(--ink); }
.city__menu a.is-current { color: var(--ink); font-weight: 700; }
.city__menu a.is-current::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav > a:hover { color: var(--ink); }

/* ---- Выпадающее меню «Услуги» ---- */
.nav-item { position: relative; }
/* невидимый «мостик» под триггером, чтобы курсор не терял мега-меню в зазоре */
.nav-item::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 40px; }
.nav-item > .nav-trigger {
  font-size: 15px; color: var(--ink-2); transition: color .2s;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: none; border: 0; font-family: inherit; padding: 0;
}
.nav-item > .nav-trigger:hover,
.nav-item:hover > .nav-trigger,
.nav-item:focus-within > .nav-trigger { color: var(--ink); }
.nav-trigger .chev { width: 13px; height: 13px; transition: transform .25s; }
.nav-item:hover .chev,
.nav-item:focus-within .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  margin-top: 14px; width: 360px; padding: 10px;
  background: color-mix(in oklab, var(--bg-2) 96%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.75);
  backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility .22s;
  z-index: 80;
}
/* мостик, чтобы курсор не терял dropdown в зазоре */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border-radius: var(--radius-sm); transition: background .18s;
}
.dropdown a:hover { background: var(--bg-3); }
.dropdown a .d-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.dropdown a .d-ic svg { width: 18px; height: 18px; }
.dropdown a .d-txt b { display: block; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dropdown a .d-txt span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.dropdown .d-all { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.dropdown .d-all a { justify-content: space-between; align-items: center; color: var(--accent); font-weight: 700; font-size: 14px; }
.dropdown .d-all svg { width: 15px; height: 15px; }

/* ---- Мега-меню «Услуги» (4 колонки подуслуг) ---- */
.dropdown--mega {
  position: fixed; top: 88px; left: 50%; margin-top: 0;
  width: min(960px, calc(100vw - 40px)); padding: 22px;
}
.dropdown--mega .mega-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 26px;
}
.mega-col { min-width: 0; }
.dropdown--mega .mega-head {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin-bottom: 6px;
  border-radius: var(--radius-sm); border-bottom: 1px solid var(--line-soft);
}
.dropdown--mega .mega-head .d-ic { width: 30px; height: 30px; border-radius: 8px; }
.dropdown--mega .mega-head .d-ic svg { width: 16px; height: 16px; }
.dropdown--mega .mega-head__txt {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--ink);
}
.dropdown--mega .mega-head__txt svg { width: 13px; height: 13px; color: var(--ink-3); transition: transform .18s, color .18s; }
.dropdown--mega .mega-head:hover { background: var(--bg-3); }
.dropdown--mega .mega-head:hover .mega-head__txt svg { transform: translateX(3px); color: var(--accent); }
.dropdown--mega .mega-list { display: flex; flex-direction: column; }
.dropdown--mega .mega-list a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink-3); transition: background .16s, color .16s;
}
.dropdown--mega .mega-list a:hover { background: var(--bg-3); color: var(--ink); }
.dropdown--mega .d-all { margin-top: 16px; padding-top: 14px; }
@media (max-width: 1010px) {
  .dropdown--mega .mega-cols { grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
}
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); letter-spacing: 0.01em; white-space: nowrap; }
.header-cta .btn { --pad-y: 12px; --pad-x: 22px; font-size: 15px; }
.header-phone:hover { color: var(--ink); }

/* ---- Бургер + мобильное меню ---- */
.burger {
  display: none; width: 46px; height: 46px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.burger:hover { border-color: var(--ink-3); }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
  background: var(--bg);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gut) 24px;
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 88px); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility .25s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { padding: 14px 4px; font-size: 17px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); transition: color .18s; }
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .m-head { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.mobile-nav .m-sub { display: flex; flex-direction: column; }
.mobile-nav .m-sub a { padding-left: 16px; font-size: 15px; color: var(--ink-3); }
/* мобильные аккордеоны подуслуг */
.mobile-nav .m-acc { border-bottom: 1px solid var(--line-soft); }
.mobile-nav .m-acc > summary {
  list-style: none; cursor: pointer; padding: 13px 4px; font-size: 16px;
  color: var(--ink); font-weight: 600; display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav .m-acc > summary::-webkit-details-marker { display: none; }
.mobile-nav .m-acc > summary svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform .25s; }
.mobile-nav .m-acc[open] > summary svg { transform: rotate(180deg); }
.mobile-nav .m-acc a { border-bottom: 0; padding: 9px 4px 9px 16px; font-size: 14.5px; color: var(--ink-3); }
.mobile-nav .m-acc a:last-child { padding-bottom: 14px; }
.mobile-nav .m-acc .m-acc__all { color: var(--accent); font-weight: 600; }
.mobile-nav .m-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.mobile-nav .m-cta a { border-bottom: 0; padding: 0; }
.mobile-nav .m-phone { font-family: var(--font-mono); font-size: 15px; text-align: center; color: var(--ink); }
.mobile-nav .btn { width: 100%; }

@media (min-width: 961px) { .mobile-nav { display: none; } }
@media (max-width: 960px) {
  .nav, .header-phone { display: none; }
  .burger { display: flex; }
  .header-cta .btn--accent { display: none; }
}
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
}

/* ============================================================
   HERO — анимированный
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(580px, 84vh, 820px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}
/* Фоновое видео hero (паттерн бренда) */
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; display: none; overflow: hidden; }
.hero__video-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  /* видео белое с коралловыми штрихами → инвертируем (белый→чёрный, коралл→коралл)
     + screen-бленд: чёрный фон исчезает, коралловый паттерн светится на near-black */
  filter: invert(1) hue-rotate(178deg) saturate(1.45) brightness(1.08);
  mix-blend-mode: screen;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none;
  background:
    radial-gradient(118% 92% at 14% 36%, transparent 24%, var(--bg) 92%),
    linear-gradient(100deg, var(--bg) 2%, color-mix(in oklab, var(--bg) 72%, transparent) 32%, color-mix(in oklab, var(--bg) 18%, transparent) 66%, transparent 100%);
}
/* Переключение режима фона hero (Tweaks) */
[data-hero="video"] #hero-canvas { display: none; }
[data-hero="video"] .hero::after { display: none; }
[data-hero="video"] .hero__video-wrap,
[data-hero="video"] .hero__scrim { display: block; }
.hero::after { /* виньетка для читабельности */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 30%, transparent 30%, var(--bg) 92%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(72px, 10vh, 116px) clamp(84px, 12vh, 132px); }

.hero__pillars {
  display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 30px;
}
.pillar-chip {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px 8px 13px;
  display: inline-flex; align-items: center; gap: 9px;
  background: color-mix(in oklab, var(--bg-2) 60%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(14px);
  animation: chipIn .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.pillar-chip .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.pillar-chip:nth-child(1) { animation-delay: .15s; }
.pillar-chip:nth-child(2) { animation-delay: .27s; }
.pillar-chip:nth-child(3) { animation-delay: .39s; }
.pillar-chip:nth-child(4) { animation-delay: .51s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }

.hero h1 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 17ch;
  margin-bottom: 22px;
  text-wrap: normal;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .reveal { display: inline-block; opacity: 0; transform: translateY(0.7em); animation: wordUp .8s cubic-bezier(.2,.85,.25,1) forwards; }
@keyframes wordUp { to { opacity: 1; transform: none; } }

.hero__sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 52ch; margin-bottom: 30px;
  opacity: 0; animation: fadeIn 1s ease .9s forwards;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; opacity: 0; animation: fadeIn 1s ease 1.05s forwards; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; opacity: 0; animation: fadeIn 1s ease 1.2s forwards; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__trust svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
@keyframes fadeIn { to { opacity: 1; } }

.hero__formula {
  position: absolute; right: var(--gut); bottom: 38px; z-index: 2;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink-3); text-align: right; line-height: 1.9;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  opacity: 0; animation: fadeIn 1s ease 1.3s forwards;
}
.hero__formula b { color: var(--ink); }
.hero__formula .plus { color: var(--accent); }
@media (max-width: 760px) { .hero__formula { display: none; } }

/* ============================================================
   Манифест / бегущая строка
   ============================================================ */
.manifesto {
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklab, var(--brand) 48%, var(--bg));
}
.manifesto .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.manifesto h2 { font-size: clamp(23px, 2.7vw, 38px); line-height: 1.14; }
.manifesto__lead { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); margin: 22px 0 0; max-width: 52ch; text-wrap: pretty; }
.manifesto h2 .muted { color: var(--ink-3); }
.manifesto h2 .accent { color: var(--accent); }
.manifesto__aside { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 38px); }
.manifesto__aside p { color: var(--ink-2); margin: 0 0 18px; }
.manifesto__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.manifesto__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.manifesto__list li::before { content: "→"; color: var(--accent); font-weight: 700; }
@media (max-width: 820px) { .manifesto .wrap { grid-template-columns: 1fr; } .manifesto__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }

.marquee {
  border-block: 1px solid var(--line-soft);
  overflow: hidden; padding-block: 22px; background: var(--bg);
  display: flex; gap: 0; --mq-dur: 32s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; flex: 0 0 auto; gap: 48px; padding-right: 48px; white-space: nowrap; animation: marqueeScroll var(--mq-dur) linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 38px); color: var(--ink); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "•"; color: var(--accent); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ============================================================
   4 опоры
   ============================================================ */
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px;
}
@media (max-width: 1000px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 32px 26px 28px;
  position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s;
}
.pillar:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--bg-3); }
.pillar__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 5.4vw, 68px); line-height: 1; margin: 0 0 16px; color: var(--accent); white-space: nowrap; }
.pillar h3 { font-size: 19px; margin-bottom: 8px; }
.pillar p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ============================================================
   Услуги (SEO)
   ============================================================ */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 52px; }
@media (max-width: 880px) { .services { grid-template-columns: 1fr; } }

.svc {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--bg-2); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  transition: border-color .3s, transform .3s;
}
.svc:hover { border-color: var(--accent); transform: translateY(-4px); }
.svc__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--bg-3) 0 14px, var(--bg-2) 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.svc__media .ph-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
  border: 1px dashed var(--line); border-radius: 8px; padding: 7px 12px;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}
.svc__tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 5px 11px; border-radius: 999px; font-weight: 700;
}
.svc__body { padding: 26px 28px 8px; }
.svc__body h3 { font-size: clamp(21px, 2.3vw, 28px); margin-bottom: 12px; }
.svc__body p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; }
.svc__feat { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 9px; }
.svc__feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.svc__feat li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.svc__foot { padding: 18px 28px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.svc__kw { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.svc__link svg { width: 16px; height: 16px; transition: transform .2s; color: var(--accent); }
.svc:hover .svc__link svg { transform: translateX(4px); }

/* ---------- Mercury: бесконечный жидкий-металл цикл (бренд-зоны / pop-up) ---------- */
.svc--popup .svc__media {
  background: radial-gradient(120% 120% at 50% 30%, #2b2440, #12101d 70%);
}
.svc--popup .svc__media .merc {
  position: absolute; inset: -45%; z-index: 0;
  background:
    radial-gradient(38% 38% at 30% 32%, var(--accent), transparent 60%),
    radial-gradient(42% 42% at 72% 38%, #d7d8e6, transparent 62%),
    radial-gradient(48% 48% at 48% 76%, var(--brand), transparent 64%),
    radial-gradient(34% 34% at 82% 80%, #ffd2c6, transparent 60%),
    radial-gradient(40% 40% at 18% 78%, #8f8fb0, transparent 62%);
  filter: blur(32px) saturate(1.35);
  mix-blend-mode: screen;
  animation: mercFlow 16s ease-in-out infinite;
  will-change: transform;
}
.svc--popup .svc__media .merc--2 {
  inset: -50%;
  background:
    radial-gradient(40% 40% at 60% 30%, #c9c9dd, transparent 60%),
    radial-gradient(46% 46% at 30% 70%, var(--accent), transparent 62%),
    radial-gradient(42% 42% at 78% 72%, var(--brand), transparent 60%);
  filter: blur(40px) saturate(1.2);
  animation: mercFlow2 22s ease-in-out infinite;
  opacity: .9;
}
.svc--popup .svc__media .sheen {
  position: absolute; inset: -50%; z-index: 1;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(255,255,255,.22) 12%, transparent 26%, transparent 100%);
  mix-blend-mode: overlay;
  animation: mercSpin 11s linear infinite;
}
.svc--popup .svc__media .ph-label {
  position: relative; z-index: 2;
  border-color: color-mix(in oklab, #fff 30%, transparent);
  color: #fff;
  background: color-mix(in oklab, #110f1a 38%, transparent);
  backdrop-filter: blur(4px);
}
.svc--popup .svc__tag { z-index: 2; }
@keyframes mercFlow {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); }
  33%  { transform: translate(7%,-5%) rotate(120deg) scale(1.08); }
  66%  { transform: translate(-5%,6%) rotate(240deg) scale(1.03); }
  100% { transform: translate(0,0) rotate(360deg) scale(1); }
}
@keyframes mercFlow2 {
  0%   { transform: translate(0,0) rotate(0deg) scale(1.05); }
  50%  { transform: translate(-8%,4%) rotate(-180deg) scale(1.12); }
  100% { transform: translate(0,0) rotate(-360deg) scale(1.05); }
}
@keyframes mercSpin { to { transform: rotate(360deg); } }

/* ============================================================
   Процесс 48 часов
   ============================================================ */
.process { background: color-mix(in oklab, var(--brand) 48%, var(--bg)); border-block: 1px solid var(--line-soft); }
.process .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; counter-reset: step; }
@media (max-width: 900px) { .process .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; } }
@media (max-width: 480px) { .process .steps { grid-template-columns: 1fr; } }
.step { padding: 0 26px 0 0; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 13px; right: 18px; left: 44px; height: 1px; background: var(--line); }
@media (max-width: 900px) { .step::after { display: none !important; } }
.step__dot {
  counter-increment: step;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  position: relative; z-index: 1; background: var(--bg-2);
}
.step__dot::before { content: counter(step); }
.step__time { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin: 18px 0 8px; letter-spacing: 0.06em; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ============================================================
   Цифры
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 26px; background: var(--bg-2); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; white-space: nowrap; }
.stat__num .suf { color: var(--accent); font-size: 0.62em; }
.stat__label { color: var(--ink-2); font-size: 15px; margin-top: 12px; }

/* ============================================================
   Кейсы
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  transition: transform .3s, border-color .3s;
}
.case:hover { transform: translateY(-4px); border-color: var(--accent); }
.case__media { aspect-ratio: 4/3; background: repeating-linear-gradient(135deg, var(--bg-3) 0 14px, var(--bg-2) 14px 28px); display: flex; align-items: center; justify-content: center; position: relative; }
.case__media .ph-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 11px; }
.case__tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); background: color-mix(in oklab, var(--bg) 70%, transparent); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.case__body { padding: 22px 24px 26px; }
.case__body h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.case__body p { color: var(--ink-3); font-size: 14px; margin: 0; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ============================================================
   Лидформа
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(70% 120% at 80% 0%, var(--accent-soft), transparent 60%);
}
.lead-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-copy h2 { font-size: clamp(32px, 4.6vw, 60px); margin-bottom: 20px; }
.lead-copy h2 .accent { color: var(--accent); }
.lead-copy p { color: var(--ink-2); max-width: 46ch; }
.lead-bullets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lead-bullets li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.lead-bullets li svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

.lead-form {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}
.lead-form h3 { font-size: 24px; margin-bottom: 6px; }
.lead-form .form-sub { color: var(--ink-3); font-size: 14px; margin: 0 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: 14px 16px; font-family: var(--font-body); font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .18s; user-select: none;
}
.chip-radio input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.chip-radio span:hover { border-color: var(--ink-3); color: var(--ink); }
.lead-form .btn { width: 100%; margin-top: 10px; }
.form-fine { font-size: 12px; color: var(--ink-3); margin: 14px 0 0; text-align: center; }
.form-fine a { color: var(--ink-2); text-decoration: underline; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .ok-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form-success .ok-ic svg { width: 28px; height: 28px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-2); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding-block: clamp(48px, 6vw, 80px) 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand__mark { font-size: 30px; }
.foot-brand p { color: var(--ink-3); font-size: 14.5px; max-width: 34ch; margin: 16px 0 0; }
.foot-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 600; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-col a { color: var(--ink-2); font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-3); }
.foot-bottom .socials { display: flex; gap: 18px; }
.foot-bottom .socials a:hover { color: var(--accent); }

/* ============================================================
   Sticky mobile CTA
   ============================================================ */
.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 70; display: flex; gap: 10px;
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 9px 9px 22px;
  backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  align-items: center; transition: transform .4s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100vw - 28px);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta .lbl { font-weight: 700; font-size: 14px; }
.sticky-cta .lbl small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-weight: 400; }
@media (max-width: 520px) { .sticky-cta .lbl { display: none; } .sticky-cta { padding-left: 9px; } }

/* ---------- Reveal on scroll ---------- */
.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal-up { opacity: 1; transform: none; }
  .hero .reveal, .hero__sub, .hero__cta, .pillar-chip, .hero__formula { opacity: 1 !important; transform: none !important; }
  /* бесконечная бегущая строка — оставляем по явной просьбе клиента */
  .marquee__track { animation-duration: var(--mq-dur) !important; }
  /* mercury-эффект на карточке бренд-зон — по явной просьбе клиента */
  .svc--popup .merc { animation-duration: 16s !important; }
  .svc--popup .merc--2 { animation-duration: 22s !important; }
  .svc--popup .sheen { animation-duration: 11s !important; }
}
