/* =========================================================
   ARST Lab - автоматизация бизнес-процессов и внедрение ИИ.
   Светлая тема. Часть экосистемы ARST.
   Шрифт: Manrope. Акцент: синий + потоки данных (cyan/violet).
   ========================================================= */

:root {
  /* Палитра (единая с экосистемой ARST) */
  --bg: #f7f6f2;
  --bg-warm: #f1efe9;
  --surface: #ffffff;
  --ink: #18171d;
  --ink-soft: #3c3a40;
  --muted: #645f5a;
  --line: rgba(20, 19, 16, 0.10);
  --line-soft: rgba(20, 19, 16, 0.06);
  --accent: #1b3bf0;
  --accent-deep: #1430c4;
  --accent-soft: rgba(27, 59, 240, 0.10);
  --accent-wash: rgba(27, 59, 240, 0.16);
  /* Акценты "лаборатории / данных" - только для схем и бликов */
  --flow: #06b6d4;
  --flow-2: #6366f1;
  --ok: #12a150;
  --ok-soft: rgba(18, 161, 80, 0.10);

  /* Типографика */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Радиусы и тени */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 2px 8px rgba(20, 19, 16, 0.04);
  --shadow-md: 0 10px 40px rgba(20, 19, 16, 0.07);
  --shadow-lg: 0 30px 80px rgba(20, 19, 16, 0.10);
  --shadow-accent: 0 16px 40px rgba(27, 59, 240, 0.24);

  /* Слой */
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.field__input:focus-visible { outline: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

em { font-style: normal; font-weight: 800; color: var(--accent); }

.section { padding: clamp(72px, 11vh, 150px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vh, 90px) 0; }

.section__head { max-width: 780px; margin: 0 auto clamp(44px, 6vw, 76px); text-align: center; }
.section__head--left { text-align: left; margin-left: 0; margin-right: 0; }
.section__title {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.section__sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--muted);
  line-height: 1.6;
}
.section__sub a { color: var(--accent); font-weight: 600; }
.section__sub a:hover { text-decoration: underline; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border-radius: 100px;
  padding: 16px 28px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.btn__arrow { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 22px 50px rgba(27, 59, 240, 0.32); }

.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line); }

.btn--lg { padding: 19px 34px; font-size: 1.04rem; }
.btn--sm { padding: 12px 22px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.scrolled {
  padding: 11px 0;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.logo__mark { color: var(--ink); }
.logo__lab { color: var(--accent); font-weight: 700; }
.logo__dot { color: var(--accent); }

.nav { display: flex; gap: 34px; margin-left: auto; }
.nav__link { font-size: 0.96rem; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.3s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.header__cta { margin-left: 8px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(247, 246, 242, 0.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.mobile-menu__link { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; padding: 8px; }
.mobile-menu__cta { margin-top: 8px; }
.mobile-menu__mail { margin-top: 18px; color: var(--muted); font-weight: 600; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--flow-2)); z-index: 200; transition: width 0.1s linear; }

/* ---------- Custom cursor (desktop) ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 300; mix-blend-mode: normal; opacity: 0; transition: opacity 0.3s ease; }
.cursor { width: 38px; height: 38px; border: 1.5px solid var(--accent); transition: transform 0.18s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s ease, background 0.3s ease; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor.is-hover { width: 56px; height: 56px; background: var(--accent-soft); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Reveal анимации ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Без JS контент должен оставаться видимым */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
html:not(.js) .hero__title .line > span { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: clamp(132px, 19vh, 220px) 0 clamp(60px, 8vh, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.blob--1 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(27,59,240,0.18), transparent 70%); top: -160px; right: -120px; }
.blob--2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(99,102,241,0.14), transparent 70%); bottom: -180px; left: -140px; }
.grain { position: absolute; inset: 0; opacity: 0.5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"); }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px; border-radius: 100px;
  background: rgba(255,255,255,0.5); border: 1px solid var(--line-soft);
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(100%); opacity: 0; }
.hero__title.in .line > span { animation: lineUp 0.95s var(--ease) forwards; }
.hero__title.in .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title.in .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes lineUp { to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__title .line > span { transform: none; opacity: 1; animation: none; } }

.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.26rem); color: var(--ink-soft); line-height: 1.62; max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__micro { display: inline-flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--muted); }
.hero__micro svg { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; }

/* ---------- Hero: живой граф автоматизации ---------- */
.flowgraph { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; }
.flowgraph::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(27,59,240,0.08), rgba(99,102,241,0.04) 45%, transparent 66%); z-index: 0; pointer-events: none; }
.flowgraph svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.fg-ring { fill: none; stroke: rgba(27,59,240,0.10); stroke-width: 1; }
.fg-ring--soft { stroke: rgba(27,59,240,0.07); }
.fg-ring-dash { fill: none; stroke: rgba(27,59,240,0.22); stroke-width: 1.4; stroke-dasharray: 3 11; stroke-linecap: round; transform-origin: 200px 200px; animation: ringSpin 36s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fg-ring-dash { animation: none; } }
.fg-link { fill: none; stroke: rgba(27,59,240,0.28); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.flowgraph.in .fg-link { animation: drawLink 1.3s var(--ease) forwards; }
.flowgraph.in .fg-link.l2 { animation-delay: 0.18s; }
.flowgraph.in .fg-link.l3 { animation-delay: 0.34s; }
.flowgraph.in .fg-link.l4 { animation-delay: 0.5s; }
.flowgraph.in .fg-link.l5 { animation-delay: 0.66s; }
.flowgraph.in .fg-link.l6 { animation-delay: 0.8s; }
@keyframes drawLink { to { stroke-dashoffset: 0; } }

.fg-packet { fill: var(--flow); filter: drop-shadow(0 0 5px rgba(6,182,212,0.7)); offset-rotate: 0deg; }
.fg-packet.p1 { animation: flow 2.6s linear infinite; }
.fg-packet.p2 { animation: flow 2.9s linear infinite; animation-delay: 0.6s; fill: var(--flow-2); }
.fg-packet.p3 { animation: flow 3.1s linear infinite; animation-delay: 1.1s; }
.fg-packet.p4 { animation: flow 2.7s linear infinite; animation-delay: 1.5s; fill: var(--flow-2); }
@keyframes flow { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fg-packet { display: none; } .fg-link { stroke-dashoffset: 0 !important; animation: none !important; } }

.fg-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 82px; height: 82px; border-radius: 21px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease);
  opacity: 0;
}
.flowgraph.in .fg-node { animation: nodeIn 0.7s var(--ease-spring) forwards; }
.flowgraph.in .fg-node:nth-child(2) { animation-delay: 0.1s; }
.flowgraph.in .fg-node:nth-child(3) { animation-delay: 0.2s; }
.flowgraph.in .fg-node:nth-child(4) { animation-delay: 0.3s; }
.flowgraph.in .fg-node:nth-child(5) { animation-delay: 0.4s; }
.flowgraph.in .fg-node:nth-child(6) { animation-delay: 0.5s; }
.flowgraph.in .fg-node:nth-child(7) { animation-delay: 0.6s; }
@keyframes nodeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.fg-node:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: var(--shadow-lg); z-index: 5; }
.fg-node svg { width: 30px; height: 30px; }
.fg-node span { font-size: 0.64rem; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
.fg-node--center { width: 104px; height: 104px; border-radius: 27px; background: var(--accent); box-shadow: 0 18px 44px rgba(27,59,240,0.34); z-index: 2; }
.fg-node--center::after { content: ""; position: absolute; inset: -8px; border-radius: 33px; border: 1.5px solid var(--accent-wash); animation: corePulse 2.6s var(--ease) infinite; }
@keyframes corePulse { 0% { transform: scale(0.92); opacity: 0.7; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fg-node--center::after { animation: none; } }
.fg-node--center svg { width: 38px; height: 38px; color: #fff; }
.fg-node--center span { color: rgba(255,255,255,0.85); }
@media (prefers-reduced-motion: reduce) { .fg-node { opacity: 1; animation: none; } }

/* =========================================================
   ЛЕНТА ИНТЕГРАЦИЙ (marquee)
   ========================================================= */
.marquee-wrap { padding: clamp(28px, 4vh, 48px) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.marquee-label { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.marquee { display: flex; overflow: hidden; -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; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.06rem; color: var(--ink-soft); white-space: nowrap; opacity: 0.72; transition: opacity 0.3s var(--ease); }
.marquee__item:hover { opacity: 1; }
.marquee__item svg { width: 26px; height: 26px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* =========================================================
   МЕТРИКИ
   ========================================================= */
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.metric { text-align: center; padding: clamp(22px, 3vw, 38px) 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.metric:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.metric__num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.metric__num em { color: var(--accent); }
.metric__label { margin-top: 14px; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }

/* =========================================================
   УСЛУГИ (bento)
   ========================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.scard {
  position: relative; padding: clamp(26px, 3vw, 38px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.scard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.scard:hover::before { opacity: 1; }
.scard__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: transform 0.5s var(--ease-spring), background 0.4s var(--ease); }
.scard__icon svg { width: 28px; height: 28px; color: var(--accent); }
.scard:hover .scard__icon { transform: scale(1.08) rotate(-4deg); }
.scard__title { font-size: 1.24rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.scard__text { color: var(--muted); font-size: 0.99rem; line-height: 1.6; }

/* =========================================================
   КАК РАБОТАЕМ (пайплайн)
   ========================================================= */
.steps { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 38px; height: 2px; background: var(--line); display: none; }
.steps__line-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--flow-2)); transition: width 1.4s var(--ease); }
.steps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 24px); position: relative; z-index: 1; }
.step { text-align: left; }
.step__dot { width: 76px; height: 76px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-weight: 800; font-size: 1.3rem; color: var(--accent); position: relative; transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease); }
.step.lit .step__dot { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); transform: translateY(-4px); }
.step__num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; margin-bottom: 9px; }
.step__title { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 9px; }
.step__text { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* =========================================================
   ПОЧЕМУ МЫ
   ========================================================= */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.why-card { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg); background: var(--bg-warm); border: 1px solid var(--line-soft); transition: transform 0.5s var(--ease), background 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.why-card:hover { transform: translateY(-4px); background: var(--surface); box-shadow: var(--shadow-md); }
.why-card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-card__icon svg { width: 24px; height: 24px; color: var(--accent); }
.why-card__title { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 11px; }
.why-card__text { color: var(--muted); font-size: 0.96rem; line-height: 1.58; }

/* =========================================================
   КЕЙСЫ
   ========================================================= */
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.case { display: flex; flex-direction: column; padding: clamp(26px, 2.8vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case__tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 100px; margin-bottom: 20px; }
.case__title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 13px; line-height: 1.3; }
.case__text { color: var(--muted); font-size: 0.96rem; line-height: 1.58; margin-bottom: 24px; }
.case__results { margin-top: auto; display: flex; flex-direction: column; gap: 13px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.case__result { display: flex; align-items: baseline; gap: 12px; }
.case__result-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1; flex-shrink: 0; min-width: 92px; }
.case__result-num em { color: var(--ok); }
.case__result-label { font-size: 0.89rem; color: var(--muted); line-height: 1.35; }

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.review { display: flex; flex-direction: column; padding: clamp(26px, 2.8vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review__quote { font-size: 1.02rem; line-height: 1.62; color: var(--ink-soft); margin-bottom: 26px; }
.review__stars { display: flex; gap: 3px; margin-bottom: 20px; color: #f5a623; }
.review__stars svg { width: 18px; height: 18px; }
.review__author { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--flow-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; flex-shrink: 0; }
.review__name { font-weight: 800; font-size: 0.99rem; letter-spacing: -0.01em; }
.review__role { font-size: 0.86rem; color: var(--muted); margin-top: 2px; }

/* =========================================================
   КОМАНДА
   ========================================================= */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.team-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.team-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.team-card__photo { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), var(--flow-2)); overflow: hidden; }
.team-card__photo:not(:has(img))::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.18), transparent 55%); }
.team-card__initials { position: relative; z-index: 1; font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; opacity: 0.95; }
.team-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: clamp(20px, 2.2vw, 28px); }
.team-card__name { font-size: 1.24rem; font-weight: 800; letter-spacing: -0.02em; }
.team-card__role { margin-top: 8px; color: var(--accent); font-weight: 700; font-size: 0.96rem; line-height: 1.35; }
.team-card__bio { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* =========================================================
   ЦЕНЫ
   ========================================================= */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan--featured { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); border-color: transparent; }
.plan--featured .plan__name, .plan--featured .plan__price, .plan--featured .plan__feat { color: #fff; }
.plan--featured .plan__feat svg { color: var(--flow); }
.plan--featured .plan__desc { color: rgba(255,255,255,0.66); }
.plan__badge { position: absolute; top: 22px; right: 22px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--flow); padding: 6px 13px; border-radius: 100px; }
.plan__name { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.plan__price { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price span { font-size: 0.92rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; letter-spacing: 0; }
.plan--featured .plan__price span { color: rgba(255,255,255,0.6); }
.plan__desc { margin-top: 16px; font-size: 0.96rem; color: var(--muted); line-height: 1.5; }
.plan__feats { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.plan__feat { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.plan__feat svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan--featured .btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.plan--featured .btn--ghost:hover { background: rgba(255,255,255,0.16); }
.pricing__note { text-align: center; margin-top: 34px; font-size: 0.96rem; color: var(--muted); }
.pricing__note strong { color: var(--accent); font-weight: 800; }

/* =========================================================
   ЭКОСИСТЕМА
   ========================================================= */
.eco { background: var(--bg-warm); }
.eco__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.eco-card { display: flex; flex-direction: column; padding: clamp(26px, 2.8vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.eco-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.eco-card--active { background: var(--ink); color: #fff; }
.eco-card--active .eco-card__desc { color: rgba(255,255,255,0.66); }
.eco-card__logo { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.eco-card__logo b { color: var(--accent); }
.eco-card--active .eco-card__logo b { color: var(--flow); }
.eco-card__name { font-size: 1.06rem; font-weight: 800; margin-bottom: 9px; }
.eco-card__desc { font-size: 0.94rem; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.eco-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.94rem; color: var(--accent); }
.eco-card--active .eco-card__link { color: #fff; }
.eco-card__link svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.eco-card__link:hover svg { transform: translateX(4px); }
.eco-card__here { margin-top: auto; font-size: 0.86rem; font-weight: 700; color: var(--flow); display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 26px 4px; font-size: clamp(1.04rem, 1.5vw, 1.2rem); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); transition: color 0.3s var(--ease); }
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 0.4s var(--ease); }
.faq-icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq-icon::after { top: 0; left: 10px; width: 2px; height: 22px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-a__inner { padding: 0 4px 28px; color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 760px; }

/* =========================================================
   CTA + ФОРМА
   ========================================================= */
.cta { position: relative; overflow: hidden; }
.cta__box { position: relative; background: var(--ink); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 80px); overflow: hidden; }
.cta__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(27,59,240,0.4), transparent 65%); top: -240px; right: -160px; filter: blur(40px); pointer-events: none; }
.cta__glow--2 { background: radial-gradient(circle, rgba(99,102,241,0.32), transparent 65%); top: auto; bottom: -260px; left: -160px; right: auto; }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.cta__inner > * { min-width: 0; }
.cta__title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin-bottom: 20px; }
.cta__sub { font-size: clamp(1rem, 1.4vw, 1.16rem); color: rgba(255,255,255,0.72); line-height: 1.6; margin-bottom: 30px; }
.cta__mail { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; }
.cta__mail svg { width: 19px; height: 19px; color: var(--flow); }

.form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-lg); }
.form__row { margin-bottom: 18px; }
.field__label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.field__input, .field__textarea { width: 100%; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); font-size: 1rem; font-family: inherit; color: var(--ink); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); }
.field__input:focus, .field__textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__textarea { resize: vertical; min-height: 96px; }
.form .btn { width: 100%; margin-top: 6px; }
.form__hint { margin-top: 14px; font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.5; }
.form__error { margin-top: 12px; font-size: 0.86rem; color: #e0463e; text-align: center; line-height: 1.5; }
.form__error a { color: #e0463e; font-weight: 700; text-decoration: underline; }
.field--invalid { border-color: #e0463e !important; box-shadow: 0 0 0 4px rgba(224,70,62,0.10) !important; }

/* Honeypot - скрыт от людей, виден ботам */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Чекбокс согласия */
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 6px; cursor: pointer; }
.consent__box { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.consent__text { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.consent__text a { color: var(--accent); font-weight: 600; }
.consent__text a:hover { text-decoration: underline; }
.consent.invalid .consent__text { color: #e0463e; }
.consent.invalid .consent__box { outline: 2px solid #e0463e; outline-offset: 2px; border-radius: 4px; }
[data-consent-error] { display: block; font-size: 0.8rem; color: #e0463e; margin: 0 0 8px; min-height: 1px; }
.form__success { display: none; text-align: center; padding: 30px 10px; }
.form__success.show { display: block; }
.form__success svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 18px; }
.form__success h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.form__success p { color: var(--muted); }

/* =========================================================
   ФУТЕР
   ========================================================= */
.footer { padding: clamp(56px, 7vh, 88px) 0 36px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); margin-bottom: 50px; }
.footer__brand .logo { font-size: 1.4rem; margin-bottom: 16px; }
.footer__tagline { color: var(--muted); font-size: 0.98rem; line-height: 1.6; max-width: 320px; }
.footer__col h4 { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: var(--muted); font-size: 0.96rem; margin-bottom: 12px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.footer__copy { font-size: 0.88rem; color: var(--muted); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a { font-size: 0.88rem; color: var(--muted); transition: color 0.3s var(--ease); }
.footer__legal a:hover { color: var(--accent); }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (min-width: 901px) { .steps__line { display: block; } }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .flowgraph { max-width: 440px; margin: 0 auto; order: 2; }
  .hero__content { order: 1; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid, .why__grid, .cases__grid, .reviews__grid, .eco__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero { padding-top: 116px; }
  .hero__actions .btn { flex: 1; }
  .services__grid, .why__grid, .cases__grid, .reviews__grid, .eco__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .step { display: flex; gap: 18px; text-align: left; align-items: flex-start; }
  .step__body { flex: 1; min-width: 0; }
  .step__dot { margin-bottom: 0; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; font-size: 1.1rem; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  /* Крупнее надписи разделов на мобильном */
  .eyebrow { font-size: 0.92rem; letter-spacing: 0.10em; margin-bottom: 16px; }
  .section__title { font-size: clamp(2.3rem, 8.5vw, 3.2rem); }
  .pricing__note { font-size: 1.02rem; }
}

@media (max-width: 460px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .flowgraph { max-width: 320px; }
}
