/* ============================================================
   VIONEX LEADS — квалифицированные лиды для автосалонов
   Тёмная премиальная тема / стекло / фиолетовые градиенты
   ============================================================ */

:root {
  --bg: #070810;
  --bg-soft: #0B0D18;
  --card: #111421;
  --surface: #171A2A;
  --text: #F6F7FB;
  --muted: #A8ADBD;
  --violet: #8B5DFF;
  --violet-2: #BA72FF;
  --cyan: #68E7EE;
  --green: #ADF35B;
  --danger: #ff6b86;
  --line: rgba(246, 247, 251, 0.08);
  --line-strong: rgba(246, 247, 251, 0.14);
  --glass: rgba(17, 20, 33, 0.62);
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
  --shadow-l: 0 30px 80px rgba(2, 3, 10, 0.55);
  --shadow-violet: 0 18px 50px rgba(139, 93, 255, 0.28);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-width: 320px;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: rgba(139, 93, 255, 0.45); color: #fff; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; scroll-margin-top: calc(var(--header-h) + 16px); }

.section { padding: 110px 0; }
.section--after-hero { padding-top: 48px; }
.section--tight { padding: 84px 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Фоновые эффекты ---------- */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(246,247,251,0.5) 40%, transparent 60%),
    radial-gradient(1.2px 1.2px at 32% 64%, rgba(246,247,251,0.35) 40%, transparent 60%),
    radial-gradient(1.8px 1.8px at 55% 12%, rgba(186,114,255,0.5) 40%, transparent 60%),
    radial-gradient(1.3px 1.3px at 71% 42%, rgba(246,247,251,0.3) 40%, transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 22%, rgba(104,231,238,0.45) 40%, transparent 60%),
    radial-gradient(1.1px 1.1px at 24% 86%, rgba(246,247,251,0.3) 40%, transparent 60%),
    radial-gradient(1.7px 1.7px at 63% 78%, rgba(186,114,255,0.35) 40%, transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 66%, rgba(246,247,251,0.32) 40%, transparent 60%),
    radial-gradient(1.4px 1.4px at 44% 34%, rgba(246,247,251,0.28) 40%, transparent 60%),
    radial-gradient(1.3px 1.3px at 6% 52%, rgba(104,231,238,0.3) 40%, transparent 60%);
}

.bg-glow {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.bg-glow--violet {
  top: -22vw;
  right: -18vw;
  background: radial-gradient(circle, rgba(139, 93, 255, 0.34), transparent 62%);
  animation: glowDrift 26s ease-in-out infinite alternate;
}
.bg-glow--cyan {
  bottom: -28vw;
  left: -20vw;
  background: radial-gradient(circle, rgba(104, 231, 238, 0.16), transparent 60%);
  animation: glowDrift 32s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}

/* ---------- Появление секций ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

.btn--primary {
  background: linear-gradient(120deg, var(--violet) 0%, var(--violet-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(139, 93, 255, 0.4); }
.btn--primary:active { transform: translateY(-1px); }

.btn--ghost {
  background: rgba(139, 93, 255, 0.08);
  border-color: rgba(139, 93, 255, 0.45);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(139, 93, 255, 0.16); border-color: var(--violet); transform: translateY(-2px); }

.btn--sm { padding: 12px 22px; font-size: 15px; border-radius: 13px; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.link-more:hover { color: var(--violet-2); }
.link-more svg { transition: transform 0.25s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 8, 16, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(7, 8, 16, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(2, 3, 10, 0.45);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, rgba(139, 93, 255, 0.24), rgba(186, 114, 255, 0.08));
  border: 1px solid rgba(139, 93, 255, 0.4);
  box-shadow: inset 0 0 18px rgba(139, 93, 255, 0.18);
}
.logo__name { white-space: nowrap; }
.logo__name b { color: var(--violet-2); font-weight: 800; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(246, 247, 251, 0.06); }

.header__cta { margin-left: 8px; flex-shrink: 0; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  background: rgba(246, 247, 251, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  position: relative;
  z-index: 130;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.25s, top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 8, 16, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 32px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: 14px 6px;
  font-size: 24px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu a:hover { color: var(--violet-2); }
.mobile-menu .btn { margin-top: 26px; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 72px) 0 56px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 8, 16, 0.82) 0%, rgba(7, 8, 16, 0.55) 34%, rgba(7, 8, 16, 0.18) 58%, rgba(7, 8, 16, 0.1) 100%),
    linear-gradient(180deg, rgba(7, 8, 16, 0.55) 0%, rgba(7, 8, 16, 0.08) 34%, rgba(7, 8, 16, 0.3) 70%, var(--bg) 100%),
    url("hero-car.jpg") center 42% / cover no-repeat;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.6; }
}

.hero h1 {
  font-size: clamp(33px, 3.9vw, 50px);
  margin: 0 0 22px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--violet) 10%, var(--violet-2) 55%, var(--cyan) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* --- Визуал: интерфейс VIONEX --- */
.hero__visual { position: relative; }

.crm-window {
  position: relative;
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, rgba(23, 26, 42, 0.92), rgba(11, 13, 24, 0.94));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-l), inset 0 1px 0 rgba(246, 247, 251, 0.06);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.crm-window::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 93, 255, 0.22), transparent 65%);
  pointer-events: none;
}
.crm-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.crm-window__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.crm-window__bar i:nth-child(1) { background: rgba(255, 107, 134, 0.5); }
.crm-window__bar i:nth-child(2) { background: rgba(186, 114, 255, 0.5); }
.crm-window__bar i:nth-child(3) { background: rgba(173, 243, 91, 0.5); }
.crm-window__title {
  margin-left: 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crm-window__body { padding: 22px; position: relative; }

/* цепочка этапов */
.pipe {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: rgba(7, 8, 16, 0.5);
  border: 1px solid var(--line);
}
.pipe__step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.pipe__dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(139, 93, 255, 0.12);
  border: 1px solid rgba(139, 93, 255, 0.35);
  color: var(--violet-2);
  flex-shrink: 0;
}
.pipe__step.done { color: var(--text); }
.pipe__step.done .pipe__dot {
  background: rgba(173, 243, 91, 0.12);
  border-color: rgba(173, 243, 91, 0.4);
  color: var(--green);
}
.pipe__line {
  flex: 1;
  height: 2px;
  min-width: 16px;
  margin: 0 10px;
  border-radius: 2px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.pipe__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--violet-2), transparent);
  transform: translateX(-100%);
  animation: pipeFlow 2.6s linear infinite;
}
.pipe__line:nth-of-type(4)::after { animation-delay: 1.3s; }
@keyframes pipeFlow { to { transform: translateX(100%); } }

/* карточка лида */
.lead-card {
  border-radius: var(--radius-m);
  background: rgba(17, 20, 33, 0.86);
  border: 1px solid var(--line-strong);
  padding: 22px;
  position: relative;
}
.lead-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.lead-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 8px 22px rgba(139, 93, 255, 0.35);
  flex-shrink: 0;
}
.lead-card__name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.lead-card__city { color: var(--muted); font-size: 13.5px; }
.lead-card__score { margin-left: auto; text-align: center; }

/* ---------- Лид-магнит на первом экране ---------- */

/* --- Карточка лида на первом экране --- */
.lead-card--hero {
  border: 1.5px solid transparent;
  background: linear-gradient(165deg, rgba(23, 26, 42, 0.96), rgba(11, 13, 24, 0.97)) padding-box,
    linear-gradient(140deg, #8B5DFF 0%, #BA72FF 45%, #68E7EE 100%) border-box;
  box-shadow: 0 26px 70px rgba(2, 3, 10, 0.6), 0 0 54px rgba(139, 93, 255, 0.22);
}
.lead-demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet-2);
  background: rgba(139, 93, 255, 0.12);
  border: 1px solid rgba(186, 114, 255, 0.45);
}
.lead-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-s);
  background: rgba(7, 8, 16, 0.55);
  border: 1px solid var(--line);
}
.lead-score-row__text { display: grid; gap: 2px; }
.lead-score-row__text b { font-size: 15px; }
.lead-score-row__text span { font-size: 13px; color: var(--muted); }
.score-ring { position: relative; width: 66px; height: 66px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring__bg { stroke: rgba(246, 247, 251, 0.09); }
.score-ring__val {
  stroke: url(#scoreGrad);
  stroke-linecap: round;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 1.6s var(--ease) 0.3s;
}
.in .score-ring__val { stroke-dashoffset: 14; }
.score-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
}

.lead-card__rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.lead-field {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(7, 8, 16, 0.55);
  border: 1px solid var(--line);
}
.lead-field dt {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.lead-field dd { margin: 0; font-size: 14.5px; font-weight: 600; }

.lead-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid;
}
.status-pill--green { color: var(--green); border-color: rgba(173, 243, 91, 0.4); background: rgba(173, 243, 91, 0.08); }
.status-pill--violet { color: var(--violet-2); border-color: rgba(186, 114, 255, 0.4); background: rgba(186, 114, 255, 0.08); }
.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
  animation: pulse 2.2s ease-in-out infinite;
}

/* карточка лида в первом экране */
.crm-holder { position: relative; }

/* ---------- Заголовки секций ---------- */
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 18px 0 16px; }
.sec-head h2 .grad {
  background: linear-gradient(100deg, var(--violet), var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }

.sec-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-2);
}

/* ---------- Карточки: общее ---------- */
.card {
  position: relative;
  border-radius: var(--radius-m);
  background: linear-gradient(170deg, rgba(23, 26, 42, 0.75), rgba(17, 20, 33, 0.85));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(139, 93, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-7px); border-color: rgba(139, 93, 255, 0.42); box-shadow: 0 26px 60px rgba(2, 3, 10, 0.5); }
.card:hover::after { opacity: 1; }

/* ---------- Направления ---------- */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.direction-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 208px; }
.direction-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(139, 93, 255, 0.1);
  border: 1px solid rgba(139, 93, 255, 0.3);
  color: var(--violet-2);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.direction-card:hover .direction-card__icon { transform: scale(1.08) rotate(-4deg); background: rgba(139, 93, 255, 0.2); }
.direction-card h3 { font-size: 17.5px; margin: 0; }
.direction-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- О компании ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}
.about__text p { color: var(--muted); font-size: 18px; }
.about__text p strong { color: var(--text); font-weight: 600; }
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card { padding: 24px; }
.about-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(104, 231, 238, 0.09);
  border: 1px solid rgba(104, 231, 238, 0.28);
  color: var(--cyan);
}
.about-card:nth-child(2n) .about-card__icon {
  background: rgba(139, 93, 255, 0.1);
  border-color: rgba(139, 93, 255, 0.3);
  color: var(--violet-2);
}
.about-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.about-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Продукты ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card { padding: 28px 24px; display: flex; flex-direction: column; }
.product-card__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-2);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.product-card h3 { font-size: 17.5px; margin: 0 0 10px; }
.product-card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; flex: 1; }
.product-card .btn { align-self: flex-start; }

/* ---------- Пример лида ---------- */
.lead-example__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.lead-full {
  border-radius: var(--radius-l);
  background: linear-gradient(165deg, rgba(23, 26, 42, 0.92), rgba(11, 13, 24, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.lead-full__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 16, 0.4);
}
.lead-full__title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.lead-full__id { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.lead-full__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px;
}
.lead-full .lead-field--wide { grid-column: 1 / -1; }
.lead-full__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 16, 0.4);
}
.lead-full__date { color: var(--muted); font-size: 13px; }

.lead-example__side p { color: var(--muted); font-size: 17px; }
.lead-example__side .note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-s);
  border: 1px dashed rgba(139, 93, 255, 0.4);
  background: rgba(139, 93, 255, 0.07);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Процесс ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
  position: relative;
}
.process-step { padding: 30px 26px; }
.process-step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 10px 26px rgba(139, 93, 255, 0.35);
  margin-bottom: 18px;
}
.process-step h3 { font-size: 18px; margin: 0 0 10px; }
.process-step p { font-size: 14.5px; color: var(--muted); margin: 0; }
.process-step__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

/* ---------- AI-агенты ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ai-card { padding: 24px 20px; position: relative; }
.ai-card__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(139, 93, 255, 0.45);
}
.ai-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(139, 93, 255, 0.1);
  border: 1px solid rgba(139, 93, 255, 0.3);
  color: var(--violet-2);
}
.ai-card:nth-child(3n+2) .ai-card__icon {
  background: rgba(104, 231, 238, 0.09);
  border-color: rgba(104, 231, 238, 0.28);
  color: var(--cyan);
}
.ai-card:nth-child(3n) .ai-card__icon {
  background: rgba(173, 243, 91, 0.08);
  border-color: rgba(173, 243, 91, 0.28);
  color: var(--green);
}
.ai-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.ai-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- CTA-панели и формы ---------- */
.cta-panel {
  position: relative;
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, rgba(139, 93, 255, 0.14), rgba(17, 20, 33, 0.9) 45%);
  border: 1px solid rgba(139, 93, 255, 0.32);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  padding: 56px;
}
.cta-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(139, 93, 255, 0.26), transparent 65%);
  pointer-events: none;
}
.cta-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
  position: relative;
}
.cta-panel h2 { font-size: clamp(28px, 3.2vw, 40px); }
.cta-panel .cta-sub { color: var(--muted); font-size: 17px; margin-bottom: 26px; }

.cta-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
}
.cta-benefits svg { flex-shrink: 0; color: var(--green); }

.form { display: grid; gap: 14px; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { position: relative; display: grid; gap: 7px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label i { color: var(--violet-2); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 17px;
  border-radius: 13px;
  background: rgba(7, 8, 16, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15.5px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 173, 189, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 93, 255, 0.16);
  background: rgba(7, 8, 16, 0.85);
}
.field.error input, .field.error select, .field.error textarea { border-color: var(--danger); }
.field .field__err {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
}
.field.error .field__err { display: block; }

.field--select { position: relative; }
.field--select::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select option { background: var(--surface); color: var(--text); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.consent input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--violet);
  flex-shrink: 0;
  cursor: pointer;
}
.consent a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }
.consent.error { color: var(--danger); }

.form__success {
  display: none;
  text-align: center;
  padding: 46px 20px;
}
.form__success.show { display: block; animation: fadeUp 0.5s var(--ease); }
.form__success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(173, 243, 91, 0.1);
  border: 1px solid rgba(173, 243, 91, 0.4);
  color: var(--green);
  box-shadow: 0 0 44px rgba(173, 243, 91, 0.18);
}
.form__success h3 { font-size: 22px; }
.form__success p { color: var(--muted); margin: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-wrap { position: relative; }
.form-wrap.sent form { display: none; }

/* ---------- Кейсы (новые) ---------- */
.cases-all-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--violet-2);
  font-weight: 600;
}
.cases-all-link svg { transition: transform .3s var(--ease); }
.cases-all-link:hover svg { transform: translateX(4px); }

.kcase {
  position: relative;
  display: grid;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.kcase:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 93, 255, 0.45);
  box-shadow: 0 24px 60px -24px rgba(139, 93, 255, 0.35);
}

/* главный кейс */
.kcase--main {
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: 640px;
  margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(23, 26, 42, 0.9), rgba(11, 13, 24, 0.95));
}
.kcase--main .kcase__body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }

.kcase__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.kcase__cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--cyan);
}
.kcase__meta-badge {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(7, 8, 16, .45);
}
.kcase__demo {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet-2);
  padding: 5px 11px; border-radius: 999px;
  border: 1px dashed rgba(186, 114, 255, .45); background: rgba(139, 93, 255, .08);
}

.kcase__title { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.18; margin: 0 0 14px; }
.kcase__title--sm { font-size: 20px; }
.kcase__task { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 24px; max-width: 52ch; }

/* показатели */
.kcase__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.kcase__stats--2x2 { grid-template-columns: repeat(2, 1fr); }
.kstat {
  padding: 14px 16px; border-radius: 14px;
  background: rgba(23, 26, 42, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.kstat__num { display: block; font-size: clamp(30px, 2.6vw, 38px); font-weight: 800; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.kstat__label { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.kstat--cyan .kstat__num { color: var(--cyan); }
.kstat--violet .kstat__num { color: var(--violet-2); }
.kstat--green .kstat__num { color: var(--green); }

/* воронка */
.kfunnel { display: grid; gap: 7px; margin-bottom: 20px; }
.kfunnel__step {
  position: relative;
  width: var(--w);
  min-width: 132px;
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(139, 93, 255, .16), rgba(104, 231, 238, .1));
  border: 1px solid rgba(139, 93, 255, .28);
  transform-origin: left center;
}
[data-funnel] .kfunnel__step { transform: scaleX(0); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
[data-funnel].in .kfunnel__step { transform: scaleX(1); opacity: 1; }
[data-funnel].in .kfunnel__step:nth-child(2) { transition-delay: .12s; }
[data-funnel].in .kfunnel__step:nth-child(3) { transition-delay: .24s; }
[data-funnel].in .kfunnel__step:nth-child(4) { transition-delay: .36s; }
.kfunnel__step b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kfunnel__step span { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.kfunnel--sm .kfunnel__step b { font-size: 14px; }

.kcase__price { font-size: 14.5px; color: var(--muted); margin: 0 0 6px; }
.kcase__price b { font-size: 19px; color: var(--violet-2); font-weight: 800; }
.kcase__footnote { font-size: 12px; color: var(--muted); opacity: .75; margin: 0 0 20px; }

.kcase__actions { margin-top: auto; }
.kcase__actions .btn svg { transition: transform .3s var(--ease); }
.kcase__actions .btn:hover svg { transform: translateX(4px); }

/* медиа */
.kcase__media { position: relative; min-height: 100%; overflow: hidden; }
.kcase__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(.92);
  transition: transform .8s var(--ease);
}
.kcase:hover .kcase__media img { transform: scale(1.03); }
.kcase__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 13, 24, .55) 0%, rgba(11, 13, 24, 0) 38%),
              linear-gradient(0deg, rgba(7, 8, 16, .5) 0%, rgba(7, 8, 16, 0) 40%);
  pointer-events: none;
}
.kcase__media--sm { min-height: 230px; max-height: 260px; }

/* панель CRM поверх фото главного кейса */
.kcase__panel {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  padding: 14px 18px 12px;
  border-radius: 14px;
  background: rgba(11, 13, 24, .72);
  border: 1px solid rgba(139, 93, 255, .3);
  backdrop-filter: blur(12px);
}
.kcase__panel-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.kcase__panel-up::before { content: ""; display: inline-block; margin-right: 5px; border: 4px solid transparent; border-bottom-color: var(--green); transform: translateY(-2px); }
.kcase__panel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.kcase__spark { width: 100%; height: 64px; display: block; }
.kcase__spark-line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .kcase__spark-line { animation: sparkDraw 1.6s var(--ease) .2s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.kcase__panel-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.kcase__panel-foot span:first-child { color: var(--text); font-weight: 700; }
.kcase__panel-up { color: var(--green); }

/* дополнительные кейсы */
.kcases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kcases-grid .kcase { grid-template-columns: 1fr; }
.kcase__body--sm { padding: 24px 22px; display: flex; flex-direction: column; }
.kcase__body--sm .kcase__tags { margin-bottom: 12px; }
.kcase__body--sm .kcase__task { font-size: 14px; margin-bottom: 18px; }
.kcase__body--sm .kcase__stats { margin-bottom: 16px; }
.kcase__body--sm .kfunnel { margin-bottom: 16px; }

.kcase__more { margin: 4px 0 14px; border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.kcase__more summary {
  cursor: pointer; list-style: none;
  font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--violet-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.kcase__more summary::-webkit-details-marker { display: none; }
.kcase__more summary::after { content: "+"; font-size: 15px; line-height: 1; }
.kcase__more[open] summary::after { content: "–"; }
.kcase__done { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.kcase__done li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: rgba(246, 247, 251, .78); }
.kcase__done li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
}
.kcase__morelink {
  margin-top: auto;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  color: var(--violet-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.kcase__morelink svg { transition: transform .3s var(--ease); }
.kcase__morelink:hover svg { transform: translateX(4px); }

/* CTA после кейсов */
.kcta {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 30px 34px;
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, rgba(139, 93, 255, .14), rgba(17, 20, 33, .9) 45%);
  border: 1px solid rgba(139, 93, 255, .32);
  box-shadow: var(--shadow-l);
}
.kcta h3 { font-size: clamp(20px, 2vw, 26px); margin: 0 0 8px; }
.kcta p { color: var(--muted); font-size: 15px; margin: 0 0 14px; max-width: 60ch; }
.kcta__points { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.kcta__points li { position: relative; padding-left: 18px; font-size: 13.5px; color: rgba(246, 247, 251, .85); }
.kcta__points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(173, 243, 91, .6);
}
.kcta__btn { flex-shrink: 0; }

/* модалка кейса */
.case-modal h4 { margin: 18px 0 6px; font-size: 15px; color: var(--violet-2); }
.case-modal h4:first-child { margin-top: 0; }
.case-modal p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- CRM-каналы ---------- */
.crm__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.channel:hover {
  border-color: rgba(104, 231, 238, 0.5);
  background: rgba(104, 231, 238, 0.07);
  transform: translateY(-3px);
}
.channel svg { color: var(--cyan); flex-shrink: 0; }
.crm__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.crm__note svg { flex-shrink: 0; margin-top: 3px; color: var(--violet-2); }
.crm__text p { color: var(--muted); font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius-m);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(139, 93, 255, 0.45); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-item__q:hover { color: var(--violet-2); }
.faq-item__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(139, 93, 255, 0.1);
  border: 1px solid rgba(139, 93, 255, 0.3);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.faq-item__icon svg { transition: transform 0.35s var(--ease); }
.faq-item.open .faq-item__icon { background: rgba(139, 93, 255, 0.22); }
.faq-item.open .faq-item__icon svg { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-item__a-inner {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Финальный CTA ---------- */
.final { padding-bottom: 130px; }

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 70px 0 34px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 44px;
  margin-bottom: 52px;
}
.footer__about p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__nav { display: grid; gap: 10px; }
.footer__nav a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer__nav a:hover { color: var(--violet-2); }
.footer__contacts { display: grid; gap: 12px; align-content: start; }
.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.footer__contacts a:hover { color: var(--violet-2); }
.footer__contacts svg { color: var(--violet-2); flex-shrink: 0; }
.footer__legal { display: grid; gap: 8px; align-content: start; }
.footer__legal button {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer__legal button:hover { color: var(--violet-2); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: grid;
  gap: 12px;
}
.footer__req { font-size: 12.5px; color: var(--muted); opacity: 0.75; line-height: 1.7; }
.footer__disclaimer { font-size: 12.5px; color: var(--muted); opacity: 0.9; }
.footer__copy { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 5, 11, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border-radius: var(--radius-l);
  background: linear-gradient(170deg, #151829, #0B0D18);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-l);
  padding: 40px;
  transform: translateY(22px) scale(0.98);
  transition: transform 0.35s var(--ease);
  position: relative;
}
.modal.open .modal__box { transform: none; }
.modal__box--wide { max-width: 720px; }
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(246, 247, 251, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.modal__close:hover { color: var(--text); border-color: var(--violet); transform: rotate(90deg); }
.modal h3 { font-size: 24px; margin-bottom: 10px; padding-right: 34px; }
.modal .modal__sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.modal .legal-text { color: var(--muted); font-size: 14.5px; }
.modal .legal-text h4 { color: var(--text); font-size: 16px; margin: 22px 0 8px; }
.modal .legal-text p { margin-bottom: 10px; }
.modal .legal-text ul { margin: 0 0 10px; padding-left: 20px; }

body.modal-open { overflow: hidden; }

/* ---------- Cookie-баннер ---------- */
.cookie {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 140;
  max-width: 420px;
  padding: 22px 24px;
  border-radius: var(--radius-m);
  background: rgba(17, 20, 33, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-l);
  backdrop-filter: blur(14px);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s var(--ease), opacity 0.45s, visibility 0.45s;
}
.cookie.show { transform: none; opacity: 1; visibility: visible; }
.cookie p { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.cookie p button {
  background: none;
  border: none;
  padding: 0;
  color: var(--violet-2);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie__row { display: flex; gap: 10px; }
.cookie__row .btn { flex: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 160;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(17, 20, 33, 0.95);
  border: 1px solid rgba(173, 243, 91, 0.4);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .kcases-grid { grid-template-columns: 1fr; }
  .kcase--main { grid-template-columns: 1fr; min-height: 0; }
  .kcase--main .kcase__media { order: -1; }
  .kcase__media { min-height: 240px; max-height: 300px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__sub { max-width: none; }
  .about__grid, .lead-example__grid, .crm__grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel__grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-panel { padding: 40px 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .btn { white-space: normal; text-align: center; }
  .hero__grid > * { min-width: 0; }
  .section { padding: 76px 0; }
  .section--tight { padding: 60px 0; }
  .hero { padding-top: calc(var(--header-h) + 44px); padding-bottom: 64px; }
  .hero__actions { gap: 18px; }
  .hero__actions .btn { width: 100%; }
  .directions-grid, .products-grid, .ai-grid, .process, .about-cards, .form__row {
    grid-template-columns: 1fr;
  }
  .kcase__stats { grid-template-columns: repeat(2, 1fr); }
  .kfunnel__step { min-width: 0; width: 100%; }
  .kcase--main .kfunnel__step { width: max(var(--w), 200px); }
  .kcta { flex-direction: column; align-items: flex-start; gap: 22px; }
  .kcta__btn { width: 100%; justify-content: center; }
  .lead-full__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-panel { padding: 32px 20px; border-radius: 22px; }
  .modal__box { padding: 30px 22px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .pipe { flex-wrap: wrap; gap: 10px; }
  .pipe__line { display: none; }
  .lead-card__rows { grid-template-columns: 1fr; }
    }

@media (max-width: 400px) {
  .lead-full__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 33px; }
}
