/* ==========================================================================
   mgrishanov.ru — Максим Гришанов, backend-разработчик
   ========================================================================== */

:root {
  --bg:          #070a12;
  --bg-soft:     #0b1020;
  --surface:     #0f1526;
  --surface-2:   #141b30;
  --line:        rgba(148, 163, 208, .12);
  --line-strong: rgba(148, 163, 208, .22);

  --text:        #e9edf7;
  --text-soft:   #b3bdd4;
  --muted:       #7d89a6;

  --accent:      #4cc5ff;
  --accent-deep: #2b8fff;
  --accent-alt:  #8b7dff;
  --warm:        #ffb84d;
  --ok:          #45d9a4;

  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1180px;

  --shadow:      0 24px 60px -24px rgba(0, 0, 0, .85);
  --shadow-sm:   0 8px 24px -12px rgba(0, 0, 0, .7);

  --ease:        cubic-bezier(.22, .8, .3, 1);

  color-scheme: dark;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 650;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-deep); color: #fff; }

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 112px 0; position: relative; }
.section--tight { padding: 80px 0; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section-head--center .eyebrow::before { display: none; }

h2.title {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-soft);
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-alt) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--primary {
  --btn-fg: #04101f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  font-weight: 640;
  box-shadow: 0 12px 34px -14px rgba(76, 197, 255, .8);
}
.btn--primary:hover { box-shadow: 0 20px 44px -14px rgba(76, 197, 255, .95); }

.btn--ghost { background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-strong); }

.btn--block { width: 100%; }
.btn svg { width: 19px; height: 19px; }

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(7, 10, 18, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  gap: 11px;
  font-weight: 640;
  letter-spacing: -.02em;
  font-size: 17px;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  color: #04101f;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.logo__sub {
  color: var(--muted);
  font-weight: 450;
  font-size: 14px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  white-space: nowrap;
  font-size: 15px;
  color: var(--text-soft);
  transition: color .2s var(--ease);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { padding: 11px 22px; font-size: 15px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 99;
  background: rgba(7, 10, 18, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 20px 24px 32px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 13px 4px;
  font-size: 17px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 164px 0 104px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 150%;
  background-image:
    linear-gradient(to right, rgba(148, 163, 208, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 208, .07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 25%, transparent 78%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero__glow--a {
  width: 620px; height: 420px;
  top: -140px; left: 50%;
  transform: translateX(-62%);
  background: radial-gradient(circle, rgba(43, 143, 255, .5), transparent 68%);
}
.hero__glow--b {
  width: 480px; height: 360px;
  top: 60px; right: -80px;
  background: radial-gradient(circle, rgba(139, 125, 255, .36), transparent 68%);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 30px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(69, 217, 164, .18);
  flex: none;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(69, 217, 164, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(69, 217, 164, 0); }
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 16ch;
  margin-bottom: 26px;
}

.hero__lede {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: 38px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--bg-soft);
  padding: 24px 22px;
}
.fact__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 650;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}
.fact__n span { color: var(--accent); }
.fact__t { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  padding: 32px 30px 34px;
  background: linear-gradient(170deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 197, 255, .55), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(76, 197, 255, .09);
  border: 1px solid rgba(76, 197, 255, .2);
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; }
.card:nth-child(3n+2) .card__icon {
  background: rgba(139, 125, 255, .09);
  border-color: rgba(139, 125, 255, .22);
  color: var(--accent-alt);
}
.card:nth-child(3n) .card__icon {
  background: rgba(255, 184, 77, .09);
  border-color: rgba(255, 184, 77, .22);
  color: var(--warm);
}

.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 15.5px; margin-bottom: 20px; }

.card__list { display: grid; gap: 9px; }
.card__list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
.card__list li::before {
  content: '';
  width: 5px; height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  opacity: .75;
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--bg-soft);
  padding: 34px 28px 36px;
  position: relative;
  transition: background-color .35s var(--ease);
}
.step:hover { background: var(--surface); }
.step__n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.step h3 { font-size: 18.5px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.stack-box {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.stack-box h3 {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-soft);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease);
}
.tag:hover {
  color: var(--accent);
  border-color: rgba(76, 197, 255, .45);
  background: rgba(76, 197, 255, .07);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: start;
}
.plan {
  position: relative;
  padding: 34px 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.plan--featured {
  background: linear-gradient(168deg, rgba(43, 143, 255, .12) 0%, var(--surface) 55%);
  border-color: rgba(76, 197, 255, .35);
  box-shadow: var(--shadow);
}
.plan__flag {
  position: absolute;
  top: -1px; right: 24px;
  transform: translateY(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04101f;
  font-size: 12.5px;
  font-weight: 640;
  letter-spacing: .01em;
}
.plan h3 { font-size: 20px; margin-bottom: 8px; }
.plan__for { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.plan__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--text-soft);
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.plan__price b {
  display: block;
  font-size: 30px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 2px;
}
.plan__price b span { color: var(--accent); }
.plan ul { display: grid; gap: 11px; margin-bottom: 28px; flex: 1; }
.plan ul li {
  display: flex;
  gap: 11px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.5;
}
.plan ul li svg {
  width: 17px; height: 17px;
  margin-top: 4px;
  flex: none;
  color: var(--accent);
}

/* ---------- cases ---------- */

.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.case__row {
  background: var(--bg-soft);
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 240px;
  gap: 32px;
  align-items: start;
  transition: background-color .35s var(--ease);
}
.case__row:hover { background: var(--surface); }
.case__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.case__row h3 { font-size: 19px; margin-bottom: 0; }
.case__row p { font-size: 15px; color: var(--text-soft); }
.case__res {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(69, 217, 164, .07);
  border: 1px solid rgba(69, 217, 164, .2);
}
.case__res b {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--ok);
  margin-bottom: 3px;
}
.case__res span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  flex: none;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .faq__body {
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 72ch;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  padding: 104px 0 112px;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  width: 760px; height: 480px;
  left: 50%; top: -220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(43, 143, 255, .22), transparent 68%);
  filter: blur(70px);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              transform .3s var(--ease);
}
.contact-list a:hover {
  border-color: rgba(76, 197, 255, .4);
  background: var(--surface);
  transform: translateX(4px);
}
.contact-list svg { width: 21px; height: 21px; color: var(--accent); flex: none; }
.contact-list .c-label { font-size: 13px; color: var(--muted); display: block; }
.contact-list .c-value { font-size: 15.5px; color: var(--text); }

.form {
  padding: 34px 32px 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface) 0%, var(--bg-soft) 100%);
  box-shadow: var(--shadow);
}
.form__grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 520;
}
.field > label span { color: var(--accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 18, .6);
  color: var(--text);
  font-size: 15.5px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #5d6881; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 197, 255, .14);
}
.field select { appearance: none; cursor: pointer; }
.field--select { position: relative; }
.field--select::after {
  content: '';
  position: absolute;
  right: 18px; bottom: 20px;
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

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

.form__note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}
.form__note a { color: var(--text-soft); border-bottom: 1px solid var(--line-strong); }

.form__msg {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.5;
}
.form__msg.is-ok {
  display: block;
  background: rgba(69, 217, 164, .1);
  border: 1px solid rgba(69, 217, 164, .3);
  color: #9ff0d3;
}
.form__msg.is-err {
  display: block;
  background: rgba(255, 110, 110, .1);
  border: 1px solid rgba(255, 110, 110, .3);
  color: #ffb3b3;
}

.btn.is-loading { pointer-events: none; opacity: .65; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-soft);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--accent); }

/* ---------- ai automation ---------- */

.ai__box {
  position: relative;
  padding: 56px 52px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(139, 125, 255, .16), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(76, 197, 255, .09), transparent 60%),
    linear-gradient(170deg, var(--surface) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.ai__box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 125, 255, .7), rgba(76, 197, 255, .5), transparent);
}

.eyebrow--alt { color: var(--accent-alt); }
.ai__head { max-width: 780px; margin-bottom: 44px; }

.ai__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}

.ai__uses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.use {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 10, 18, .45);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.use:hover { border-color: rgba(139, 125, 255, .4); transform: translateY(-3px); }
.use__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(139, 125, 255, .1);
  border: 1px solid rgba(139, 125, 255, .25);
  color: var(--accent-alt);
  margin-bottom: 14px;
}
.use__icon svg { width: 19px; height: 19px; }
.use h3 { font-size: 16.5px; margin-bottom: 8px; }
.use p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.ai__models {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(7, 10, 18, .72);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
}
.term-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.term-bar span { margin-left: 8px; }
.ai__models-body { padding: 22px 22px 24px; }

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 13px;
  margin-bottom: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.flow span {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text-soft);
}
.flow span.is-ai {
  color: var(--accent-alt);
  border-color: rgba(139, 125, 255, .45);
  background: rgba(139, 125, 255, .1);
}
.flow i { font-style: normal; color: var(--muted); }

.mgroup { margin-bottom: 18px; }
.mgroup h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  font-size: 13.5px;
  font-weight: 520;
  color: var(--text-soft);
}
.chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  flex: none;
}
.chips--cloud { --c: var(--accent); }
.chips--ru    { --c: var(--warm); }
.chips--local { --c: var(--ok); }
.chips--tools { --c: var(--accent-alt); }
.chips--tools .chip { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 450; }

.ai__note {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.ai__cta { margin-top: 20px; }

@media (max-width: 1040px) {
  .ai__grid { grid-template-columns: 1fr; }
  .ai__models { position: static; }
}

@media (max-width: 680px) {
  .ai__box { padding: 32px 18px 34px; border-radius: 18px; }
  .ai__head { margin-bottom: 32px; }
  .ai__uses { grid-template-columns: 1fr; }
  .ai__models-body { padding: 18px 16px 20px; }
}

/* ---------- reveal animation ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .logo__sub { display: none; }
}

@media (max-width: 1040px) {
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 44px; }
  .case__row { grid-template-columns: 1fr 1fr; }
  .case__res { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .burger { display: grid; }
  .header__cta { gap: 10px; }
}

@media (max-width: 580px) {
  /* в шапке остаётся только бургер — CTA живёт в меню и в первом экране */
  .header__cta .btn { display: none; }
  .header__inner { height: 68px; }
  .mobile-nav { inset-block-start: 68px; }
  .logo { font-size: 15.5px; gap: 9px; }
  .logo__sub { display: none; }
  .logo__mark { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 78px; }
  .wrap { padding-inline: 16px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 132px 0 76px; }
  .hero h1 { max-width: none; }
  .hero__actions { gap: 11px; margin-bottom: 44px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr; }
  .fact { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 26px 22px 28px; }
  .plan { padding: 28px 22px 30px; }
  .case__row { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .form { padding: 26px 20px 28px; }
  .contact { padding: 76px 0 84px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .faq summary { padding: 17px 18px; font-size: 15.5px; }
  .faq .faq__body { padding: 0 18px 20px; }
}

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