/* ==========================================================================
   Digital Studio — публичный сайт
   Концепция: тёмный «ИИ-интерфейс», крупная типографика, один градиент-акцент.
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg: #05060a;
  --panel: #0c0f19;
  --text: #edeff8;
  --text-soft: #c9cee0;
  --muted: #8c92aa;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --violet: #8b6bff;
  --sky: #53b8ff;
  --cyan: #3ee8e0;
  --grad: linear-gradient(115deg, #a78bff 0%, #53b8ff 48%, #3ee8e0 100%);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --font-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

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

* {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

section {
  scroll-margin-top: 90px;
}

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.boot {
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ---------- Фон ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 75%);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 107, 255, 0.16), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  will-change: transform;
  z-index: 0;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
}

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(1200px, calc(100% - 24px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.nav.is-scrolled {
  background: rgba(8, 10, 17, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.logo {
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav__links a {
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--text);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.burger span:first-child {
  top: 17px;
}

.burger span:last-child {
  top: 25px;
}

.nav--open .burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav--open .burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.4s;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: var(--grad);
  color: #05060a;
  border-color: transparent;
  box-shadow: 0 14px 40px -14px rgba(83, 184, 255, 0.75);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Магнитный эффект: смещение задаёт JS через --mx / --my */
.magnetic {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s;
}

/* ---------- Появление при прокрутке ---------- */
/* Появление задаём через animation: переходы (transition) у карточек и строк не конфликтуют с ним. */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  opacity: 1;
  animation: revealIn 1.1s var(--ease) var(--d, 0s) both;
}

@keyframes revealIn {
  from {
    opacity: 0;
    translate: 0 36px;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: none;
  }
}

/* ---------- Общие элементы ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-soft);
}

.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s infinite;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.h2 {
  font: 700 clamp(32px, 4.8vw, 64px) / 1.04 var(--font-display);
  letter-spacing: -0.03em;
}

.h3 {
  font: 600 clamp(19px, 1.9vw, 23px) / 1.25 var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  max-width: 60ch;
}

.muted {
  color: var(--muted);
}

.section {
  position: relative;
  padding: clamp(96px, 13vw, 180px) 0;
}

.sec-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  position: relative;
  isolation: isolate;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s;
}

/* Подсветка под курсором */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--spx, -999px) var(--spy, -999px), rgba(139, 107, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--line-2);
}

/* Наклон карточки: углы задаёт JS через --rx / --ry */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), border-color 0.4s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 150px;
  overflow: hidden;
  isolation: isolate;
}

.hero__aura {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -1;
  background:
    radial-gradient(40% 42% at 72% 38%, rgba(139, 107, 255, 0.34), transparent 70%),
    radial-gradient(34% 36% at 88% 72%, rgba(62, 232, 224, 0.2), transparent 70%);
  filter: blur(30px);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 26px 0 26px;
  max-width: 14ch;
  font: 700 clamp(42px, 6.9vw, 104px) / 0.96 var(--font-display);
  letter-spacing: -0.04em;
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.word__in {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease) calc(var(--i, 0) * 70ms + 150ms);
}

.is-ready .word__in {
  transform: none;
}

.word__in.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 56ch;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.chips li {
  padding: 9px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--text-soft);
}

/* Визуализация ИИ: вращающееся ядро с кольцами */
.orb-wrap {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -14vw;
  width: min(680px, 84vw);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate3d(
      calc(var(--px, 0) * -30px),
      calc(-50% + var(--sy, 0px) * 0.22 + var(--py, 0) * -30px),
      0
    );
}

.orb {
  position: relative;
  width: 100%;
  height: 100%;
}

.orb__core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #c4b3ff 16%, #53b8ff 42%, #1a1d38 74%);
  box-shadow: 0 0 90px 12px rgba(83, 184, 255, 0.32), inset -20px -30px 60px rgba(0, 0, 0, 0.5);
  animation: breathe 6s ease-in-out infinite;
}

.orb__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.orb__ring--1 {
  inset: 6%;
  border-style: dashed;
  animation: spin 46s linear infinite;
}

.orb__ring--2 {
  inset: 16%;
  border-color: transparent;
  border-top-color: rgba(62, 232, 224, 0.8);
  border-right-color: rgba(139, 107, 255, 0.55);
  animation: spin 14s linear infinite;
}

.orb__ring--3 {
  inset: 25%;
  border: 1px dotted rgba(255, 255, 255, 0.22);
  animation: spin 26s linear infinite reverse;
}

.orb__tag {
  position: absolute;
  padding: 11px 15px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(12, 15, 25, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-soft);
  animation: float 7s ease-in-out infinite;
}

.orb__tag--a {
  top: 2%;
  right: 4%;
}

.orb__tag--b {
  bottom: 6%;
  left: 2%;
  animation-delay: -3.5s;
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font: 600 clamp(18px, 2.4vw, 28px) / 1 var(--font-display);
  color: var(--muted);
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}

.marquee__track i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- Проблема / последствия ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card__num {
  display: inline-block;
  margin-bottom: 28px;
  font: 600 13px var(--font-display);
  color: var(--muted);
}

.card p {
  color: var(--muted);
}

.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 24px;
  align-items: baseline;
  padding: 38px 16px 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), background 0.4s;
}

.row:hover {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(139, 107, 255, 0.09), transparent 65%);
}

.row__n {
  font: 600 14px var(--font-display);
  color: var(--cyan);
}

.row p {
  color: var(--muted);
}

/* ---------- Решение ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--grad);
  color: #05060a;
  box-shadow: 0 12px 30px -10px rgba(83, 184, 255, 0.6);
}

.pillar__icon svg {
  width: 26px;
  height: 26px;
}

.pillar p {
  color: var(--muted);
}

/* ---------- Выгоды: bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.bento__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 210px;
}

.bento__item p {
  color: var(--muted);
  max-width: 48ch;
}

.bento__item.size-lg {
  grid-column: span 4;
  min-height: 300px;
}

.bento__item.size-md,
.bento__item.size-sm {
  grid-column: span 2;
}

.bento__item.size-wide {
  grid-column: span 6;
}

.bento__item .h3 {
  font-size: clamp(22px, 2.6vw, 34px);
}

.bento__item.size-lg::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.18;
  filter: blur(40px);
  z-index: -1;
  transition: transform 0.8s var(--ease);
}

.bento__item.size-lg:hover::after {
  transform: scale(1.25);
}

/* ---------- Услуги и цены ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px 32px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.5s;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--spx, -999px) var(--spy, -999px), rgba(139, 107, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.price-card:hover,
.price-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px -40px rgba(83, 184, 255, 0.45);
}

.price-card:hover::before,
.price-card:focus-visible::before {
  opacity: 1;
}

.price-card.is-hot {
  background: linear-gradient(180deg, rgba(139, 107, 255, 0.2), rgba(10, 12, 19, 0.7));
  border-color: transparent;
}

.price-card.is-hot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #05060a;
  font-size: 12px;
  font-weight: 700;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font: 700 clamp(34px, 3.6vw, 48px) / 1 var(--font-display);
  letter-spacing: -0.03em;
}

.price small {
  font: 500 14px var(--font-body);
  letter-spacing: 0;
  color: var(--muted);
}

.price strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.ticks li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 15px;
  color: var(--text-soft);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.price-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  font-weight: 600;
  color: var(--cyan);
  transition: gap 0.4s var(--ease);
}

.price-card:hover .price-card__cta {
  gap: 14px;
}

.fine {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Демонстрации ---------- */
.demo {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.demo__tabs {
  display: grid;
  gap: 12px;
}

.demo__tab {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  text-align: left;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}

.demo__tab strong {
  font: 600 18px var(--font-display);
}

.demo__tab span {
  color: var(--muted);
  font-size: 15px;
}

.demo__tab:hover,
.demo__tab.is-active {
  border-color: rgba(83, 184, 255, 0.5);
  background: rgba(83, 184, 255, 0.06);
  transform: translateX(8px);
}

.demo__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.demo__panel {
  width: 100%;
  display: grid;
  place-items: center;
  animation: fadeUp 0.6s var(--ease);
}

.phone {
  width: min(380px, 100%);
  padding: 14px;
  border-radius: 40px;
  background: #0b0e18;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(83, 184, 255, 0.35);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 480px;
  padding: 20px 16px;
  border-radius: 28px;
  background: #080a12;
  overflow: hidden;
}

.msg {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.msg.is-in {
  opacity: 1;
  transform: none;
}

.msg--bot {
  align-self: flex-start;
  background: #161b2e;
  border-bottom-left-radius: 6px;
}

.msg--user {
  align-self: flex-end;
  background: var(--grad);
  color: #05060a;
  font-weight: 500;
  border-bottom-right-radius: 6px;
}

.typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #161b2e;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.browser {
  width: min(560px, 100%);
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: #0a0d16;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(139, 107, 255, 0.35);
}

.browser__bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2f45;
}

.browser__body {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.sk {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #171c2e, #262d47, #171c2e);
  background-size: 200% 100%;
  animation: shimmer 2.4s infinite linear;
}

.sk--hero {
  height: 130px;
  border-radius: 16px;
}

.sk--short {
  width: 55%;
}

.sk--grid {
  height: 70px;
}

/* ---------- Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.steps .sec-head {
  position: sticky;
  top: 130px;
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
}

.timeline::before,
.timeline::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
}

.timeline::before {
  background: var(--line);
}

.timeline::after {
  background: var(--grad);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  transition: transform 0.2s linear;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 22px 0;
}

.timeline__dot {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0b0e18;
  border: 1px solid var(--line-2);
  font: 600 15px var(--font-display);
}

.timeline__item p {
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Кейсы и отзывы ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 24px;
  background: #0f1322;
}

.case__industry {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case p,
.review p {
  color: var(--muted);
  margin-top: 10px;
}

.case__result {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(62, 232, 224, 0.08);
  color: #bff7f2;
  font-size: 15px;
}

.review__who {
  margin-top: 24px;
  display: grid;
  gap: 2px;
}

.review__who span {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 920px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 20px);
  transition: color 0.3s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--cyan);
}

.faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  color: var(--cyan);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__a {
  max-width: 70ch;
  padding: 0 0 28px;
  color: var(--muted);
  animation: fadeUp 0.5s var(--ease);
}

/* ---------- Финальный призыв ---------- */
.cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px);
  border-radius: 36px;
  border: 1px solid var(--line-2);
  background: #0b0e18;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 90deg, rgba(139, 107, 255, 0.6), rgba(83, 184, 255, 0.45), rgba(62, 232, 224, 0.45), rgba(139, 107, 255, 0.6));
  filter: blur(80px);
  opacity: 0.32;
  animation: spin 24s linear infinite;
}

.cta-box .h2 {
  max-width: 18ch;
}

.cta-box .lead {
  margin-bottom: 40px;
}

/* ---------- Контакты и форма ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin-top: 40px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--muted);
}

.contact-list a,
.contact-list p {
  font-weight: 600;
  text-align: right;
}

.form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(12, 15, 25, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field > span {
  font-size: 14px;
  color: var(--muted);
}

.field--wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(83, 184, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(83, 184, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.field select option {
  background: #0b0e18;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #53b8ff;
  flex-shrink: 0;
}

.form__msg {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--muted);
}

.form__msg[data-state='error'] {
  color: #ff8aa8;
}

.form__msg[data-state='ok'] {
  color: var(--cyan);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 10px;
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #05060a;
  font-size: 30px;
  animation: pop 0.6s var(--ease);
}

/* ---------- Подвал ---------- */
.footer {
  margin-top: 40px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.footer__in {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer__in p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 44ch;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer__links a {
  color: var(--muted);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--text);
}

.footer .fine {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* ---------- Анимации ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 232, 224, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(62, 232, 224, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 232, 224, 0);
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(8, 10, 17, 0.97);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav--open .nav__links a {
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-soft);
  }

  .grid-3,
  .pillars,
  .demo,
  .steps,
  .contact__grid,
  .footer__in {
    grid-template-columns: 1fr;
  }

  .steps .sec-head {
    position: static;
  }

  .grid-3 {
    max-width: 560px;
  }

  .demo__stage {
    min-height: 0;
  }

  .row {
    grid-template-columns: 56px 1fr;
    gap: 10px 16px;
  }

  .row p {
    grid-column: 2;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .orb-wrap {
    right: -30vw;
    opacity: 0.6;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav {
    top: 10px;
    padding-left: 18px;
  }

  .hero {
    padding: 120px 0 130px;
  }

  /* На телефоне ядро уходит в фон и не мешает чтению текста */
  .orb-wrap {
    top: 24%;
    right: -46vw;
    width: 110vw;
    opacity: 0.32;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .orb__tag {
    display: none;
  }

  .grid-4,
  .grid-2,
  .form__grid {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__item.size-lg,
  .bento__item.size-md,
  .bento__item.size-sm,
  .bento__item.size-wide {
    grid-column: 1 / -1;
  }

  .bento__item {
    min-height: 0;
  }

  .card,
  .price-card {
    padding: 26px 22px;
  }

  .price-card__badge {
    top: 18px;
    right: 18px;
  }

  .form {
    padding: 24px 20px;
  }

  .demo__tab:hover,
  .demo__tab.is-active {
    transform: none;
  }

  .contact-list li {
    flex-direction: column;
    gap: 6px;
  }

  .contact-list a,
  .contact-list p {
    text-align: left;
  }

  .chat {
    height: 440px;
  }
}

/* ---------- Пониженная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    translate: none;
    filter: none;
  }

  .word__in {
    transform: none;
  }

  .msg {
    opacity: 1;
    transform: none;
  }
}
