/* =========================================================
   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(3, 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 { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 1px var(--accent), 0 18px 44px rgba(27, 59, 240, 0.16); }
.plan--featured:hover { box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent), 0 24px 56px rgba(27, 59, 240, 0.22); }
.plan__badge { position: absolute; top: -13px; left: clamp(28px, 3vw, 40px); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; color: #fff; background: var(--accent); padding: 6px 15px; border-radius: 100px; box-shadow: 0 6px 16px rgba(27, 59, 240, 0.28); }
.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__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%; }
.pricing__note { text-align: center; margin-top: 34px; font-size: 0.96rem; color: var(--muted); }
.pricing__note strong { color: var(--accent); font-weight: 800; }

/* Единый ценник (клон для корп-клиентов) */
.price-solo { position: relative; max-width: 620px; margin: 0 auto; padding: clamp(32px, 4vw, 54px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow-md), 0 0 0 1px var(--accent), 0 20px 48px rgba(27, 59, 240, 0.16); overflow: hidden; }
.price-solo__aura { position: absolute; top: -46%; left: 50%; transform: translateX(-50%); width: 480px; height: 340px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.price-solo__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.price-solo__label { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.price-solo__amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: clamp(2.8rem, 6.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.price-solo__from { font-size: 0.3em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-solo__per { font-size: 0.28em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-solo__desc { margin: 20px auto 0; max-width: 470px; font-size: 1rem; color: var(--muted); line-height: 1.58; }
.price-solo__feats { margin: 30px 0 34px; display: grid; gap: 14px; text-align: left; width: 100%; max-width: 460px; }
.price-solo__feats li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.97rem; color: var(--ink-soft); line-height: 1.45; }
.price-solo__feats li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.price-solo__cta { justify-content: center; width: 100%; max-width: 340px; }

/* =========================================================
   ЭКОСИСТЕМА
   ========================================================= */
.eco { background: var(--bg-warm); }
.eco__grid { display: grid; grid-template-columns: repeat(4, 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 { position: relative; background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%); border-color: transparent; box-shadow: 0 10px 40px rgba(27, 59, 240, 0.10); }
.eco-card--active::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; background: linear-gradient(135deg, var(--accent), var(--flow)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.eco-card--active:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(27, 59, 240, 0.17); }
.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 { background: linear-gradient(135deg, var(--accent), var(--flow)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.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: var(--accent); }
.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 { position: relative; margin-top: auto; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--flow)); color: #fff; font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 6px 16px rgba(27, 59, 240, 0.24); }

/* =========================================================
   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: #8e9dff; }

.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; }

/* Вторичный путь — написать Майе в Telegram (не конкурирует с основной кнопкой формы) */
.form__or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 0.8rem; }
.form__or::before, .form__or::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.10); }
.form__tg {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; color: var(--accent); font-weight: 600; font-size: 0.95rem;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(27,59,240,0.25);
  transition: background 0.2s, border-color 0.2s;
}
.form__tg:hover { background: rgba(27,59,240,0.06); border-color: var(--accent); }
.form__tg svg { color: #229ED9; flex-shrink: 0; }

/* 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__eco { margin-top: 22px; max-width: 360px; }
.footer__eco-label { display: block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer__eco-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.eco-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.eco-chip__icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.eco-chip__arrow { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.eco-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27, 59, 240, 0.14); }
.eco-chip:hover .eco-chip__arrow { color: var(--accent); transform: translateX(3px); }
.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__col a.footer__mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; box-shadow: var(--shadow-sm); transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer__col a.footer__mail svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer__col a.footer__mail:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.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; }
  .footer__col h4, .footer__eco-label { font-size: 0.96rem; letter-spacing: 0.1em; color: var(--ink); }
  .footer__eco { max-width: none; }
  .footer__eco-chips { flex-direction: column; }
  .eco-chip { width: 100%; justify-content: flex-start; padding: 13px 17px; font-size: 0.98rem; }
  .eco-chip__arrow { margin-left: auto; }
  /* Крупнее надписи разделов на мобильном */
  .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; }
}

/* =========================================================
   ПРИМЕР РАБОТЫ - галерея разворотов продукта + лайтбокс
   ========================================================= */
.ex { position: relative; margin-top: clamp(28px, 4vw, 44px); }
.ex__track {
  display: flex; gap: clamp(16px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 22px; margin: 0; list-style: none; scrollbar-width: none;
}
.ex__track::-webkit-scrollbar { display: none; }
.ex__slide { flex: 0 0 auto; width: clamp(265px, 80vw, 430px); scroll-snap-align: start; list-style: none; }
@media (min-width: 760px) { .ex__slide { width: clamp(360px, 40vw, 460px); } }
/* На телефоне: трек во всю ширину экрана + узкий слайд, чтобы край следующего разворота явно выглядывал (подсказка «листай») */
@media (max-width: 760px) {
  .ex__track {
    margin-left: calc(-1 * clamp(20px, 5vw, 56px));
    margin-right: calc(-1 * clamp(20px, 5vw, 56px));
    padding-left: clamp(20px, 5vw, 56px);
    padding-right: clamp(20px, 5vw, 56px);
    scroll-padding-left: clamp(20px, 5vw, 56px);
  }
  .ex__slide { width: 76vw; }
}

.ex__card {
  display: block; width: 100%; padding: 0; text-align: left; cursor: zoom-in;
  font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ex__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line); }
.ex__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ex__imgwrap { display: block; position: relative; aspect-ratio: 1150 / 1300; overflow: hidden; background: var(--bg-warm); }
.ex__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ex__imgwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(20,19,16,0.06)); pointer-events: none; }
.ex__cap { display: block; padding: 16px 18px 20px; font-size: 0.96rem; line-height: 1.5; color: var(--muted); }
.ex__cap b { color: var(--accent); font-weight: 800; }

.ex__nav {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  color: var(--ink); cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ex__nav svg { width: 22px; height: 22px; }
.ex__nav--prev { left: -8px; }
.ex__nav--next { right: -8px; }
.ex__nav:hover { transform: translateY(-50%) scale(1.08); box-shadow: var(--shadow-lg); }
.ex__nav[hidden] { display: none; }
@media (hover: none) { .ex__nav { display: none; } }

.ex__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.ex__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.ex__dot.is-active { width: 22px; background: var(--accent); }

.ex__foot { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ex__note { font-size: 0.86rem; color: var(--muted); max-width: 520px; line-height: 1.5; }

/* Лайтбокс */
.ex-lb {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20, 19, 16, 0.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.ex-lb.is-open { display: flex; opacity: 1; }
.ex-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
.ex-lb__img { max-width: min(94vw, 920px); max-height: 84vh; width: auto; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); background: #fff; }
.ex-lb__cap { color: #efeef0; font-size: 0.98rem; text-align: center; max-width: 720px; line-height: 1.5; }
.ex-lb__close, .ex-lb__nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 50%; transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.ex-lb__close { top: 20px; right: 20px; width: 48px; height: 48px; }
.ex-lb__close svg { width: 22px; height: 22px; }
.ex-lb__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.ex-lb__nav svg { width: 26px; height: 26px; }
.ex-lb__nav--prev { left: clamp(10px, 3vw, 34px); }
.ex-lb__nav--next { right: clamp(10px, 3vw, 34px); }
.ex-lb__close:hover, .ex-lb__nav:hover { background: rgba(255, 255, 255, 0.22); }
.ex-lb__nav:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 560px) {
  .ex-lb__nav { top: auto; bottom: 16px; transform: none; width: 48px; height: 48px; }
  .ex-lb__nav:hover { transform: scale(1.08); }
  .ex-lb__nav--prev { left: 26%; }
  .ex-lb__nav--next { right: 26%; }
  .ex-lb__img { max-height: 72vh; }
}
@media (prefers-reduced-motion: reduce) {
  .ex__track { scroll-behavior: auto; }
  .ex-lb, .ex__card, .ex__nav { transition: none; }
}

/* =========================================================
   ПОЛОСА ВЕЩДОКОВ к шагу 02 - сырые улики разведки ниши
   ========================================================= */
.proof { margin-top: clamp(34px, 4.5vw, 56px); padding-top: clamp(24px, 3vw, 34px); border-top: 1px dashed var(--line); }
.proof__tie { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.proof__tie-num { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.proof__tie-label { font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.proof__grid { display: grid; grid-template-columns: 1.1fr 1fr 0.92fr; gap: clamp(16px, 2vw, 24px); align-items: start; }
.proof__item { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.proof__cap { font-size: 0.8rem; color: var(--muted); opacity: 0.9; }

/* Улика 1 - скриншот Trends: «захваченный» вид, без ARST-скруглений */
.proof__shot { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Улика 2 - мок комментария: системный шрифт, серый аватар, обрезка снизу */
.proof__cmt { position: relative; display: flex; gap: 11px; padding: 14px 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.proof__cmt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.proof__cmt-ava { width: 34px; height: 34px; border-radius: 50%; background: #d9d6d0; flex-shrink: 0; }
.proof__cmt-body { min-width: 0; }
.proof__cmt-user { font-size: 0.82rem; font-weight: 700; color: #3c3a40; }
.proof__cmt-text { font-size: 0.9rem; line-height: 1.45; color: #222; margin: 3px 0 7px; }
.proof__cmt-meta { font-size: 0.74rem; color: #8a857e; }

/* Улика 3 - белое пятно: наш вывод, пометка маркером */
.proof__item--gap-spacer { }
.proof__gap { font-size: 0.98rem; line-height: 1.5; color: var(--ink); }
.proof__gap-tag { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.proof__mark { background: linear-gradient(transparent 55%, rgba(27, 59, 240, 0.18) 55%); font-weight: 700; padding: 0 2px; }

@media (max-width: 900px) {
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .proof__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   РЕЗУЛЬТАТ ДО ДЕНЕГ - полоса-обещание перед ценами
   ========================================================= */
.freebie {
  background: linear-gradient(180deg, var(--surface), var(--ok-soft));
  border: 1px solid var(--ok);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 56px);
  text-align: center;
}
.freebie__head { max-width: 720px; margin: 0 auto clamp(26px, 3.5vw, 42px); }
.freebie__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--ok); background: var(--ok-soft);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 18px;
}
.freebie__eyebrow svg { width: 15px; height: 15px; }
.freebie__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.16; }

.flow { display: flex; align-items: stretch; justify-content: center; gap: clamp(8px, 1.4vw, 18px); flex-wrap: nowrap; }
.flow-step {
  flex: 1 1 0; max-width: 300px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2vw, 28px) clamp(15px, 1.6vw, 22px);
}
.flow-step--accent { border-color: var(--ok); box-shadow: 0 12px 40px var(--ok-soft); }
.flow-step__num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 1.05rem;
}
.flow-step--accent .flow-step__num { background: var(--ok); color: #fff; }
.flow-step__t { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 5px; }
.flow-step__d { font-size: 0.92rem; line-height: 1.45; color: var(--muted); }

.flow-arrow { display: flex; align-items: center; color: var(--muted); flex-shrink: 0; }
.flow-arrow svg { width: 26px; height: 26px; }

.freebie__foot { margin-top: clamp(26px, 3.5vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.freebie__bound { font-size: 0.9rem; color: var(--muted); max-width: 580px; line-height: 1.5; }
.freebie__bound strong { color: var(--ok); font-weight: 800; }

@media (max-width: 1024px) {
  .flow { gap: 8px; }
  .flow-arrow svg { width: 20px; height: 20px; }
  .flow-step__t { font-size: 0.98rem; }
}
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: center; gap: 10px; }
  .flow-step { max-width: 460px; width: 100%; flex: none; flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; }
  .flow-step__body { text-align: left; }
  .flow-arrow svg { transform: rotate(90deg); width: 22px; height: 22px; }
}
@media (max-width: 460px) {
  .freebie { padding: 24px 16px; }
  .flow-step { padding: 16px 16px; }
}

/* =========================================================
   ГАРАНТИЯ «ОПЛАТА ПОСЛЕ ПРИЁМКИ» - бейдж над тарифами, CTA, disclaimer
   ========================================================= */
.pay-badge {
  display: flex; align-items: center; gap: 14px;
  max-width: 760px; margin: 0 auto clamp(26px, 3vw, 38px);
  padding: 16px 22px;
  background: var(--ok-soft); border: 1px solid var(--ok);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.pay-badge__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ok); color: #fff;
}
.pay-badge__icon svg { width: 22px; height: 22px; }
.pay-badge__text { font-size: 0.98rem; line-height: 1.45; color: var(--ink-soft); }
.pay-badge__text strong { color: var(--ink); font-weight: 800; }

.pricing__disclaimer { margin-top: 14px; font-size: 0.82rem; line-height: 1.5; color: var(--muted); text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing__disclaimer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.cta__guarantee {
  display: flex; align-items: flex-start; gap: 10px;
  margin: -8px 0 28px; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  font-size: 0.96rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9);
}
.cta__guarantee svg { flex-shrink: 0; width: 20px; height: 20px; color: #8fe3b0; margin-top: 1px; }

@media (max-width: 600px) {
  .pay-badge { flex-direction: column; text-align: center; gap: 12px; padding: 18px 18px; }
}

/* ============ ИИ-продавец: чат-виджет «Майя» ============ */
.ams-bubble, .ams-panel, .ams-panel * { box-sizing: border-box; }
.ams-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 180;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent, 0 16px 40px rgba(27,59,240,0.24));
  transition: transform .25s var(--ease, ease), background .2s, opacity .2s;
}
.ams-bubble:hover { background: var(--accent-deep); transform: translateY(-3px) scale(1.04); }
.ams-bubble__dot {
  position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok, #12a150); border: 2px solid var(--accent);
}
.ams-bubble--hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.ams-suppress .ams-bubble, .ams-suppress .ams-panel { opacity: 0 !important; pointer-events: none !important; }

.ams-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 360;
  width: 384px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface, #fff); border: 1px solid var(--line, rgba(20,19,16,.1));
  border-radius: var(--r-lg, 24px); box-shadow: var(--shadow-lg, 0 30px 80px rgba(20,19,16,.18));
  font-family: var(--font); opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .22s ease, transform .22s var(--ease, ease);
}
.ams-panel--in { opacity: 1; transform: none; }
.ams-panel[hidden] { display: none; }

.ams-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--accent); color: #fff; flex-shrink: 0;
}
.ams-head__who { display: flex; align-items: center; gap: 11px; }
.ams-ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ams-head__txt { display: flex; flex-direction: column; line-height: 1.2; }
.ams-head__txt b { font-size: 1rem; font-weight: 700; }
.ams-head__txt i { font-size: .76rem; font-style: normal; opacity: .85; margin-top: 2px; }
.ams-head__actions { display: flex; align-items: center; gap: 2px; }
.ams-x, .ams-tg { background: none; border: none; color: #fff; cursor: pointer; opacity: .8; padding: 4px; border-radius: 8px; transition: opacity .2s, background .2s; display: flex; align-items: center; }
.ams-x:hover, .ams-tg:hover { opacity: 1; background: rgba(255,255,255,.12); }
.ams-tg:disabled { opacity: .4; cursor: default; }

.ams-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg, #f7f6f2); }
.ams-msg { display: flex; max-width: 86%; }
.ams-msg--user { align-self: flex-end; }
.ams-msg--bot { align-self: flex-start; }
.ams-bub {
  padding: 11px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.5;
  white-space: normal; word-wrap: break-word;
}
.ams-msg--bot .ams-bub { background: var(--surface, #fff); color: var(--ink, #18171d); border: 1px solid var(--line-soft, rgba(20,19,16,.06)); border-bottom-left-radius: 5px; }
.ams-msg--user .ams-bub { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.ams-bub span { display: block; }
.ams-bub b { font-weight: 700; }
.ams-bub ul { margin: 6px 0; padding-left: 18px; }
.ams-bub li { margin: 2px 0; }

.ams-typing .ams-bub { display: flex; gap: 4px; padding: 14px; }
.ams-typing .ams-bub span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted, #645f5a); opacity: .5; animation: amsBlink 1.2s infinite; }
.ams-typing .ams-bub span:nth-child(2) { animation-delay: .2s; }
.ams-typing .ams-bub span:nth-child(3) { animation-delay: .4s; }
@keyframes amsBlink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }

.ams-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 12px 4px; padding: 11px 14px; border: none; cursor: pointer; width: calc(100% - 24px);
  background: #229ED9; color: #fff; border-radius: 12px;
  font-family: var(--font); font-size: .9rem; font-weight: 600; line-height: 1.2;
  transition: background .2s, transform .15s;
}
.ams-cta:hover { background: #1c8dc2; }
.ams-cta:active { transform: scale(.985); }
.ams-cta:disabled { opacity: .5; cursor: default; }
.ams-cta svg { flex-shrink: 0; }

.ams-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; background: var(--surface, #fff); border-top: 1px solid var(--line-soft, rgba(20,19,16,.06)); flex-shrink: 0; }
.ams-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line, rgba(20,19,16,.12)); border-radius: 14px;
  padding: 10px 13px; font-family: var(--font); font-size: .94rem; line-height: 1.4; max-height: 120px;
  background: var(--bg, #f7f6f2); color: var(--ink, #18171d); outline: none; transition: border-color .2s;
}
.ams-input textarea:focus { border-color: var(--accent); }
.ams-send {
  width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.ams-send:hover { background: var(--accent-deep); }
.ams-send:active { transform: scale(0.92); }
.ams-busy .ams-send { opacity: .5; pointer-events: none; }

@media (max-width: 600px) {
  /* width:100% (не 100vw) + box-sizing убирают горизонтальный "выезд" кнопки за край */
  .ams-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; overflow: hidden; }
  .ams-bubble { right: 16px; bottom: 16px; }
  /* font-size 16px не даёт iOS автозумить при фокусе (из-за зума вёрстку и уводило вбок) */
  .ams-input textarea { font-size: 16px; }
  /* безопасная зона под нижний жест/панель iPhone, чтобы кнопка не пряталась */
  .ams-input { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .ams-bubble, .ams-panel { transition: none; }
  .ams-typing .ams-bub span { animation: none; }
}
