/* ══════════════════════════════════════════
   Sula Code — design system
   ══════════════════════════════════════════ */

@font-face {
  font-family: "Renault Life";
  src: url("Renault Life/RenaultLife-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Renault Life";
  src: url("Renault Life/RenaultLife.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Renault Life";
  src: url("Renault Life/RenaultLife-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090e;
  --bg-soft: #0d0e15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --ink: #eceef4;
  --muted: #8a8ea4;
  --muted-dim: #63667a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --blue: #2f48ff;
  --blue-lit: #5b6dff;
  --blue-soft: #8f9bff;
  --grad: linear-gradient(135deg, #2f48ff 0%, #6d5bff 55%, #22d3ee 130%);

  /* Второй акцент. Закреплён за порядковыми маркерами — номера шагов,
     индексы карточек, счётчики — плюс рекомендуемый тариф.
     Никогда на ценах и суммах: тёплый тон на числе читается как ошибка. */
  --amber: #ff9f43;
  --amber-lit: #ffb86b;
  --grad-amber: linear-gradient(135deg, #ff9f43 0%, #ff7a3d 100%);

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-blue: 0 16px 44px rgba(47, 72, 255, 0.28);

  --font: "Renault Life", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Заголовки — Renault Life Bold. Bebas Neue не содержит кириллицы,
     поэтому для русского текста он всё равно не применяется. */
  --font-display: "Renault Life", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Латинский логотип — единственное место, где Bebas реально работает */
  --font-brand: "Bebas Neue", "Renault Life", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; }

::selection { background: rgba(47, 72, 255, 0.35); color: #fff; }

.container {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.section { padding: 6.5rem 0; position: relative; }

/* ── Background decor ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 75%);
  pointer-events: none;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.orb-1 { top: -12%; left: -8%; width: 620px; height: 620px; background: rgba(47, 72, 255, 0.24); }
.orb-2 { top: 38%; right: -14%; width: 560px; height: 560px; background: rgba(109, 91, 255, 0.16); }
.orb-3 { bottom: -10%; left: 25%; width: 520px; height: 520px; background: rgba(34, 211, 238, 0.09); }
/* Тёплое пятно связывает янтарный акцент с холодным фоном */
.orb-4 { top: 62%; left: -6%; width: 460px; height: 460px; background: rgba(255, 159, 67, 0.07); }

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 109, 255, 0.13) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* ══════════ Typography ══════════ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 1rem;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-lit);
  box-shadow: 0 0 0 4px rgba(47, 72, 255, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 72, 255, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(47, 72, 255, 0.04); }
}

.section-head { max-width: 640px; margin-bottom: 3.25rem; }
.section-head h2,
.contact-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff 20%, #9ba0bd 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 54ch;
}

/* ══════════ Buttons ══════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-position 0.5s ease;
  box-shadow: var(--shadow-blue);
}
.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 20px 48px rgba(47, 72, 255, 0.42);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: default; transform: none; }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--blue-lit);
  box-shadow: none;
}

.btn-small { padding: 0.68rem 1.3rem; font-size: 0.88rem; }
.btn-wide { width: 100%; }
.btn-card { width: 100%; margin-top: auto; }

.btn.is-loading { opacity: 0.75; cursor: wait; }
.btn.is-success { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 16px 40px rgba(34, 197, 94, 0.3); }
.btn.is-error { animation: shake 0.4s ease; }
@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ══════════ Header ══════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 9, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 14, 0.88);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-right: auto;
}
.logo svg { transition: transform 0.3s ease; }
.logo:hover svg { transform: rotate(-8deg) scale(1.05); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.main-nav a { position: relative; transition: color 0.2s ease; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════ Hero ══════════ */

.hero { padding: 4.5rem 0 3rem; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 1.4rem;
}
.hero-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats > div { padding-left: 1.5rem; }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dd {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted-dim);
}

/* Lead card */
.hero-lead-card,
.calc-result {
  position: relative;
  overflow: hidden;
  padding: 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
/* hero-card статична — стеклянный backdrop ей по карману */
.hero-lead-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Панель результата sticky и обновляется на каждый клик. backdrop-filter
   тут заставлял пересчитывать размытие фона на каждый кадр — заменён
   непрозрачным фоном (визуально тот же оттенок поверх body #08090e). */
.calc-result {
  background: linear-gradient(160deg, #16171d, #0d0e14);
}
.card-glow {
  position: absolute;
  top: -70px; right: -70px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(47, 72, 255, 0.3) 0%, transparent 68%);
  pointer-events: none;
}
.hero-lead-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lead-sub {
  margin: 0.4rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.quick-form { display: grid; gap: 0.7rem; }
.lead-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-dim);
  text-align: center;
}

/* Inputs */
input[type="text"],
textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-lit);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(47, 72, 255, 0.16);
}
input::placeholder, textarea::placeholder { color: var(--muted-dim); }
textarea { resize: vertical; min-height: 110px; }

/* Marquee */
.marquee {
  margin-top: 4.5rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted-dim);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:hover { color: var(--blue-soft); }
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ══════════ Services ══════════ */

/* ── Bento-сетка ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}
.sc-4 { grid-column: span 4; }
.sc-3 { grid-column: span 3; }
.sc-2 { grid-column: span 2; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease;
}
/* Широкие карточки — текст слева, визуализация справа */
.service-card--row {
  flex-direction: row;
  align-items: center;
  gap: 1.9rem;
}
.service-card--row .sc-body { flex: 1; }
.service-card--row .sc-stage { flex: 0 0 42%; }

/* Свечение под курсором */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 72, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
/* Трассирующая градиентная рамка.
   Маска вырезает середину, поэтому виден только контур в 1px. */
.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 62%, var(--blue-lit) 82%, #22d3ee 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: var(--surface-2);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; animation: trace-border 3s linear infinite; }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes trace-border {
  to { --angle: 360deg; }
}

/* Номер-призрак в углу */
.sc-index {
  position: absolute;
  top: 0.7rem; right: 1.1rem;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(255, 159, 67, 0.07);
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: color 0.35s ease;
}
.service-card:hover .sc-index { color: rgba(255, 159, 67, 0.16); }

.sc-body { position: relative; }
.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.svc-tags li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted-dim);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.service-card:hover .svc-tags li {
  color: var(--blue-soft);
  border-color: rgba(91, 109, 255, 0.35);
}

/* ══════════ Визуализации в карточках ══════════ */

.sc-stage {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(47, 72, 255, 0.07), transparent),
    rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.service-card--row .sc-stage { min-height: 168px; }
.viz { position: relative; }

/* — 01. Браузер — */
.viz-browser {
  width: 100%;
  max-width: 260px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(10, 11, 18, 0.9);
  overflow: hidden;
}
.vb-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.vb-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.vb-url {
  flex: 1;
  height: 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.vb-body { padding: 10px; display: grid; gap: 7px; }
.vb-hero {
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(47, 72, 255, 0.5), rgba(109, 91, 255, 0.28));
  background-size: 200% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}
.vb-row { display: flex; gap: 6px; }
.vb-row span {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.vb-row span:first-child { flex: 3; }
.vb-row span:last-child { flex: 2; }
.vb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vb-grid b {
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  animation: card-pop 2.8s ease-in-out infinite;
}
.vb-grid b:nth-child(2) { animation-delay: 0.25s; }
.vb-grid b:nth-child(3) { animation-delay: 0.5s; }
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
@keyframes card-pop {
  0%, 100% { background: rgba(255, 255, 255, 0.07); }
  50% { background: rgba(91, 109, 255, 0.3); }
}

/* — 02. Телефон — */
.viz-phone {
  width: 84px;
  height: 148px;
  padding: 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 11, 18, 0.9);
  position: relative;
}
.vp-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}
.vp-screen {
  height: 100%;
  padding-top: 12px;
  border-radius: 11px;
  overflow: hidden;
}
.vp-scroll {
  display: grid;
  gap: 6px;
  animation: scroll-y 6s linear infinite;
}
.vp-scroll span {
  height: 15px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
}
.vp-scroll span:nth-child(3n) { background: rgba(91, 109, 255, 0.34); }
@keyframes scroll-y {
  to { transform: translateY(-50%); }
}

/* — 03. Чат — */
.viz-chat {
  display: grid;
  gap: 7px;
  width: 100%;
  max-width: 170px;
}
.vc-msg {
  height: 17px;
  border-radius: 9px;
  opacity: 0;
  animation: msg-in 4.5s ease-in-out infinite;
}
.vc-in {
  width: 74%;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 3px;
}
.vc-out {
  width: 60%;
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue), var(--blue-lit));
  border-bottom-right-radius: 3px;
  animation-delay: 0.6s;
}
.vc-short { width: 46%; animation-delay: 1.2s; }
.vc-typing {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 5px 8px;
  width: fit-content;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: msg-in 4.5s ease-in-out infinite;
  animation-delay: 1.8s;
}
.vc-typing i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-soft);
  animation: bounce 1.2s ease-in-out infinite;
}
.vc-typing i:nth-child(2) { animation-delay: 0.15s; }
.vc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes msg-in {
  0%, 8% { opacity: 0; transform: translateY(6px); }
  18%, 78% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* — 04. Потоки автоматизации — */
.viz-flow { width: 100%; max-width: 230px; height: 110px; }
.vf-node {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(91, 109, 255, 0.45);
  border-radius: 7px;
  background: rgba(47, 72, 255, 0.16);
}
.vf-n1 { top: 8px; left: 0; }
.vf-n2 { top: 8px; right: 0; }
.vf-n3 { bottom: 8px; left: 0; }
.vf-n4 { bottom: 8px; right: 0; }
.vf-wire {
  position: absolute;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.vf-wire i {
  position: absolute;
  top: -1.5px; left: 0;
  width: 16px; height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue-lit), #22d3ee);
  animation: travel 2.2s linear infinite;
}
.vf-w1 { top: 21px; left: 26px; right: 26px; }
.vf-w2 { bottom: 21px; left: 26px; right: 26px; }
.vf-w2 i { animation-delay: 0.7s; }
.vf-w3 {
  top: 21px; bottom: 21px; left: 13px;
  width: 1px; height: auto;
}
.vf-w3 i {
  width: 4px; height: 14px;
  top: 0; left: -1.5px;
  background: linear-gradient(180deg, transparent, var(--blue-lit), #22d3ee);
  animation: travel-y 2.2s linear infinite;
  animation-delay: 1.1s;
}
@keyframes travel {
  from { left: -16px; }
  to { left: 100%; }
}
@keyframes travel-y {
  from { top: -14px; }
  to { top: 100%; }
}

/* — 05. Терминал — */
.viz-term {
  display: grid;
  gap: 9px;
  width: 100%;
  max-width: 190px;
}
.vt-line {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-lit), rgba(255, 255, 255, 0.16));
  width: 0;
  animation: type-line 5s ease-in-out infinite;
}
.vt-line:nth-child(2) { animation-delay: 0.5s; max-width: 82%; }
.vt-line:nth-child(3) { animation-delay: 1s; max-width: 64%; }
.vt-cursor {
  animation-delay: 1.5s;
  max-width: 34%;
  background: linear-gradient(90deg, #4ade80, rgba(74, 222, 128, 0.3));
}
@keyframes type-line {
  0% { width: 0; }
  22%, 76% { width: 100%; }
  96%, 100% { width: 0; }
}

/* — 06. Хаб интеграций — */
.viz-hub { width: 130px; height: 130px; }
.vh-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 0 22px rgba(47, 72, 255, 0.5);
}
.vh-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.vh-r1 { width: 74px; height: 74px; }
.vh-r2 { width: 118px; height: 118px; border-style: dashed; opacity: 0.45; }
.vh-sat {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 10px rgba(143, 155, 255, 0.7);
  transform-origin: 5px 5px;
}
.vh-s1 { animation: orbit-a 7s linear infinite; }
.vh-s2 { animation: orbit-a 7s linear infinite; animation-delay: -3.5s; }
.vh-s3 { animation: orbit-b 10s linear infinite reverse; background: #22d3ee; }
.vh-s4 { animation: orbit-b 10s linear infinite reverse; animation-delay: -5s; background: #22d3ee; }
@keyframes orbit-a {
  from { transform: rotate(0deg) translateX(37px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(37px) rotate(-360deg); }
}
@keyframes orbit-b {
  from { transform: rotate(0deg) translateX(59px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(59px) rotate(-360deg); }
}

/* ══════════ Calculator ══════════ */

.calc {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: start;
}

.calc-form {
  display: grid;
  gap: 1.9rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.calc-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.calc-step {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(91, 109, 255, 0.35);
  background: rgba(47, 72, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue-soft);
}
.calc-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted-dim);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Рамка нарисована внутренней тенью, а не border.
   Прозрачный border в 1px поверх градиента даёт рваный шов
   на скруглении в точках касания — слева и справа по центру. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.chip:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  transform: translateY(-1px);
}
.chip.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 72, 255, 0.3);
}

/* Индикатор всегда видим — по его форме понятно,
   можно ли выбрать несколько вариантов или только один */
.chip-mark {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border: 1.5px solid var(--line-strong);
  background: transparent center / 9px no-repeat;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.chip--radio .chip-mark { border-radius: 50%; }
.chip--check .chip-mark { border-radius: 4px; }

.chip:hover .chip-mark { border-color: var(--blue-soft); }

/* Оба индикатора в активном состоянии — белая заливка
   и синий элемент внутри: точка для одиночного, галочка для множественного */
.chip--radio.active .chip-mark,
.chip--check.active .chip-mark {
  border-color: #fff;
  background-color: #fff;
}
.chip--radio.active .chip-mark {
  /* Полупиксельная растушёвка убирает зубцы на краю точки */
  background-image: radial-gradient(circle, var(--blue) 0 2.6px, transparent 3.1px);
  background-size: auto;
}
.chip--check.active .chip-mark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f48ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}


/* Result panel */
.calc-result { position: sticky; top: 100px; }
.calc-result-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.calc-price {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.2rem;
  /* Цена — синяя: тёплый оттенок на числе читается как предупреждение */
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-price.flash { animation: flash-in 0.35s ease; }
@keyframes flash-in {
  from { opacity: 0.35; transform: translateY(-4px); }
}
.calc-price-note {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.4em;
}

.calc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 1.5rem 0;
  padding: 1.1rem 0;
  border-block: 1px solid var(--line);
}
.calc-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.3rem;
}
.calc-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Расшифровка сметы */
.calc-breakdown {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.bd-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.85rem;
  animation: bd-in 0.25s ease;
}
.bd-label { color: var(--muted); }
.bd-row--base .bd-label { color: var(--ink); font-weight: 700; }
.bd-note {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: #4ade80;
}
.bd-value {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted-dim);
}
.bd-row--base .bd-value { color: var(--ink); }
@keyframes bd-in {
  from { opacity: 0; transform: translateX(-4px); }
}
.calc-disclaimer {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: var(--muted-dim);
  text-align: center;
}

/* ══════════ Automation demo ══════════ */

.auto-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.auto-pipeline { display: grid; gap: 0.55rem; }

.auto-step {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.auto-step + .auto-step::before {
  content: "";
  position: absolute;
  top: -0.55rem; left: 2.1rem;
  width: 1px; height: 0.55rem;
  background: var(--line-strong);
}
/* Кольцо — внутренней тенью, по той же причине, что и у .chip */
.auto-step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-dim);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.auto-step-body h4 { font-size: 0.95rem; font-weight: 700; }
.auto-step-body p { font-size: 0.82rem; color: var(--muted-dim); }

.auto-step.running {
  border-color: var(--blue-lit);
  background: rgba(47, 72, 255, 0.09);
}
.auto-step.running .auto-step-num {
  background: var(--grad);
  color: #fff;
  animation: pulse-ring 1s ease-in-out infinite;
}
/* Кольцо гасим внутри анимации, иначе она перебьёт box-shadow базового правила */
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 72, 255, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(47, 72, 255, 0); }
}
.auto-step.done { border-color: rgba(34, 197, 94, 0.35); }
.auto-step.done .auto-step-num {
  background: rgba(34, 197, 94, 0.9);
  box-shadow: none;
  color: #05210f;
  font-size: 0.9rem;
}

/* Console */
.auto-console {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #06070b;
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.console-dots i:first-child { background: #ff5f57; }
.console-dots i:nth-child(2) { background: #febc2e; }
.console-dots i:last-child { background: #28c840; }
.console-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-dim);
}
.console-badge {
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 159, 67, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 67, 0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber-lit);
}

.console-body {
  height: 296px;
  overflow-y: auto;
  padding: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
}
.console-body::-webkit-scrollbar { width: 6px; }
.console-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.console-idle { color: var(--muted-dim); }
.console-line { display: flex; gap: 0.7rem; animation: line-in 0.25s ease; }
@keyframes line-in {
  from { opacity: 0; transform: translateX(-6px); }
}
.console-time { color: var(--muted-dim); flex-shrink: 0; }
.console-msg { color: #b9bdd0; }
.console-line.ok .console-msg { color: #4ade80; }
.console-line.info .console-msg { color: var(--blue-soft); }
.console-line.warn .console-msg { color: #fbbf24; }

.console-actions {
  display: flex;
  gap: 0.7rem;
  padding: 1.1rem;
  border-top: 1px solid var(--line);
}
.console-actions .btn { flex: 1; }

/* ══════════ Timeline ══════════ */

.timeline { display: grid; gap: 0.7rem; }

.tl-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.tl-item.open { border-color: var(--line-strong); background: var(--surface-2); }

.tl-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 1.35rem 1.6rem;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tl-step {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-lit);
  flex-shrink: 0;
}
.tl-title { flex: 1; font-size: 1.08rem; font-weight: 700; }
.tl-dur {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-dim);
  padding: 0.24rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.tl-caret {
  flex-shrink: 0;
  color: var(--muted-dim);
  transition: transform 0.3s ease;
}
.tl-item.open .tl-caret { transform: rotate(180deg); color: var(--blue-soft); }

.tl-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.tl-item.open .tl-body { grid-template-rows: 1fr; }
.tl-body-inner { overflow: hidden; }
.tl-body-content { padding: 0 1.6rem 1.5rem 5.1rem; }
.tl-body-content p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0.9rem; }
.tl-deliverables { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tl-deliverables li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--muted-dim);
}

/* ══════════ Pricing ══════════ */

.pricing-panel {
  padding: 5rem 0;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(47, 72, 255, 0.09), transparent 70%),
    var(--bg-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }

/* Рекомендуемый тариф — единственная карточка в янтаре,
   поэтому взгляд попадает на неё раньше остальных трёх */
.price-card--featured {
  border-color: rgba(255, 159, 67, 0.4);
  background: linear-gradient(165deg, rgba(255, 159, 67, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 22px 56px rgba(255, 122, 61, 0.16);
}
.price-card--featured .price-tier { color: var(--amber-lit); }
/* Класс продублирован намеренно: базовое правило .price-card li::before
   имеет ту же специфичность и лежит ниже по файлу — иначе оно бы победило */
.price-card--featured.price-card li::before {
  background-color: rgba(255, 159, 67, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb86b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.price-card--featured .btn-card {
  background: var(--grad-amber);
  box-shadow: 0 16px 40px rgba(255, 122, 61, 0.3);
}
.price-card--featured .btn-card:hover {
  box-shadow: 0 20px 48px rgba(255, 122, 61, 0.45);
}

.price-popular {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: var(--grad-amber);
  color: #2a1400;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.55rem 0 0.1rem;
}
.price-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
  min-height: 2.6em;
}
.price-card ul {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.price-card li,
.pm-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.89rem;
  color: var(--muted);
}
.price-card li::before,
.pm-list li::before {
  content: "";
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: rgba(47, 72, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9bff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.pricing-mobile { display: none; }

.pm-tabs {
  position: relative;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}
.pm-tab-indicator {
  position: absolute;
  top: 0.3rem; left: 0;
  height: calc(100% - 0.6rem);
  border-radius: 999px;
  background: var(--grad);
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.pm-tab-btn {
  position: relative;
  flex: 1;
  padding: 0.6rem 0.3rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease;
}
.pm-tab-btn.active { color: #fff; }

.pm-shell { display: flex; align-items: center; gap: 0.6rem; }
.pm-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem;
  border: 1px solid rgba(91, 109, 255, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(47, 72, 255, 0.12), rgba(255, 255, 255, 0.03));
  min-height: 400px;
}
/* Тот же янтарь, но только когда в карусели показан популярный тариф */
.pm-card.is-featured {
  border-color: rgba(255, 159, 67, 0.4);
  background: linear-gradient(165deg, rgba(255, 159, 67, 0.12), rgba(255, 255, 255, 0.03));
}
.pm-card.is-featured .pm-title { color: var(--amber-lit); }
.pm-card.is-featured .pm-list li::before {
  background-color: rgba(255, 159, 67, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb86b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.pm-card.is-featured .pm-cta {
  background: var(--grad-amber);
  box-shadow: 0 16px 40px rgba(255, 122, 61, 0.3);
}

.pm-card.is-changing { animation: card-in 0.32s ease; }
@keyframes card-in {
  from { opacity: 0; transform: translateX(14px); }
}
.pm-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.pm-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.3rem;
}
.pm-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.3rem; }
.pm-list { display: grid; gap: 0.6rem; margin-bottom: 1.8rem; }

.pm-nav {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.pm-nav::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.pm-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pm-next::before { transform: translate(-70%, -50%) rotate(45deg); }

/* ══════════ Contact ══════════ */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-lead {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 1.1rem 0 2rem;
  max-width: 46ch;
}
.contact-trust { display: grid; gap: 0.85rem; }
.contact-trust li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.contact-trust svg { flex-shrink: 0; color: var(--blue-lit); }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ══════════ Footer ══════════ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  background: rgba(0, 0, 0, 0.3);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.footer-copy { color: var(--muted-dim); font-size: 0.85rem; }
.footer-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-soft);
  transition: color 0.2s ease;
}
.footer-cta:hover { color: var(--ink); }

/* ══════════ Reveal animations ══════════ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

.services-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.14s; }

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

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-lead-card { max-width: 480px; }
  .calc,
  .auto-wrap { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }

  /* Bento схлопывается в две равные колонки */
  .sc-4, .sc-3, .sc-2 { grid-column: span 3; }
  .service-card--row { flex-direction: column; align-items: stretch; gap: 1.4rem; }
  .service-card--row .sc-stage { flex: none; min-height: 132px; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(8, 9, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .menu-toggle { display: flex; }
  .nav-wrap > .btn-small { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 760px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .marquee { margin-top: 3rem; }
  .hero-stats > div { padding-left: 1rem; }
  .hero-stats dd { font-size: 0.75rem; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
  }
  .hero-actions .btn {
    min-width: 0;
    padding: 0.9rem 0.75rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }
  .section-head { margin-bottom: 2.25rem; }

  .sc-4, .sc-3, .sc-2 { grid-column: span 6; }
  .service-card { padding: 1.5rem; }
  .sc-index { font-size: 2.1rem; }

  .calc-form { padding: 1.4rem; gap: 1.5rem; }
  .calc-label { flex-wrap: wrap; gap: 0.45rem; }
  .calc-hint { flex-basis: 100%; padding-left: 2.05rem; }
  .calc-result { padding: 1.6rem; }
  .hero-lead-card { padding: 1.7rem; }

  .console-body { height: 230px; }
  .console-actions { flex-direction: column; }

  .tl-head { padding: 1.15rem 1.2rem; gap: 0.8rem; flex-wrap: wrap; }
  .tl-title { flex-basis: 100%; order: 3; }
  .tl-body-content { padding: 0 1.2rem 1.3rem; }

  .pricing-grid { display: none; }
  .pricing-mobile { display: block; }
  .pricing-panel { padding: 3.5rem 0; }


  .contact-form { padding: 1.6rem; }
  .footer-wrap { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 2rem); }
  .logo-text { display: none; }
  .hero-stats > div { padding-left: 0.7rem; }
  .chip { padding: 0.55rem 0.85rem; font-size: 0.83rem; }
  .pm-shell { gap: 0.4rem; }
  .pm-card { padding: 1.6rem 1.3rem; }
}

@media (max-width: 350px) {
  .hero-actions { grid-template-columns: 1fr; }
}
