/* =====================================================================
   Михаил Шкутов — лендинг. Дизайн-система.
   Тёмная технологичная тема, акцент фиолетовый → бирюзовый (AI/автоматизация).
   ===================================================================== */

:root {
  /* Цвета */
  --bg: #0a0c16;
  --bg-alt: #0f1222;
  --surface: #141830;
  --surface-2: #1a1f3a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --text-muted: #9ba3bf;
  --text-dim: #6b7390;

  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --accent-2-soft: rgba(34, 211, 238, 0.12);
  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-text: linear-gradient(90deg, #a78bfa 0%, #22d3ee 100%);
  --success: #34d399;

  /* Типографика */
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;

  /* Размеры */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: clamp(64px, 9vw, 112px);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 12px 40px rgba(124, 92, 255, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { position: relative; padding: var(--section-y) 0; overflow: clip; }
.section > .container { position: relative; z-index: 1; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- Фоновый декор секций: свечения, сетка, узлы. Всё под контентом. --- */
.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(640px 420px at 88% 12%, rgba(124, 92, 255, 0.13), transparent 62%);
}
.section:nth-of-type(even)::before {
  background: radial-gradient(640px 420px at 10% 90%, rgba(34, 211, 238, 0.10), transparent 62%);
}
.section--alt::before {
  background:
    radial-gradient(520px 360px at 92% 8%, rgba(124, 92, 255, 0.09), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: auto, 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 85%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 85%);
}
#process::after, #contacts::after, #faq::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0; opacity: .55;
  width: 600px; height: 400px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20400%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%237c5cff%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2322d3ee%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20stroke%3D%22url(%23g)%22%20stroke-width%3D%221%22%20opacity%3D%22.5%22%3E%3Cline%20x1%3D%2260%22%20y1%3D%2260%22%20x2%3D%22240%22%20y2%3D%22140%22%2F%3E%3Cline%20x1%3D%22240%22%20y1%3D%22140%22%20x2%3D%22420%22%20y2%3D%2270%22%2F%3E%3Cline%20x1%3D%22240%22%20y1%3D%22140%22%20x2%3D%22300%22%20y2%3D%22300%22%2F%3E%3Cline%20x1%3D%22420%22%20y1%3D%2270%22%20x2%3D%22540%22%20y2%3D%22200%22%2F%3E%3Cline%20x1%3D%22300%22%20y1%3D%22300%22%20x2%3D%22540%22%20y2%3D%22200%22%2F%3E%3Cline%20x1%3D%22300%22%20y1%3D%22300%22%20x2%3D%22120%22%20y2%3D%22340%22%2F%3E%3Cline%20x1%3D%22120%22%20y1%3D%22340%22%20x2%3D%2260%22%20y2%3D%2260%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22url(%23g)%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2260%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%22240%22%20cy%3D%22140%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%22420%22%20cy%3D%2270%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22300%22%20r%3D%227%22%2F%3E%3Ccircle%20cx%3D%22540%22%20cy%3D%22200%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%22340%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
#process::after { right: -160px; top: -60px; }
#contacts::after { left: -320px; bottom: -180px; transform: scaleX(-1); }
#faq::after { right: -220px; bottom: 40px; }
@media (max-width: 860px) { #process::after, #contacts::after, #faq::after { width: 360px; height: 240px; opacity: .4; } }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__label {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.section__desc { font-size: 17px; color: var(--text-muted); }
.section__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.section__cta-note { font-size: 14px; color: var(--text-dim); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(90deg, #7c5cff 0%, #22d3ee 100%); background-clip: padding-box; border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--light { background: #fff; color: #1a1040; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.link-arrow { font-weight: 600; color: var(--accent-2); }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 22, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo__mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
.logo__text small { font-size: 12px; color: var(--text-muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 24px; }
.nav__list a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .15s; }
.nav__list a:hover, .nav__list a.is-active { color: var(--text); }

.burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(500px 350px at 15% 90%, rgba(34, 211, 238, 0.14), transparent 60%);
}
.hero__net { position: absolute; right: -8%; top: -10%; width: 60%; height: 120%; opacity: .5; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero__content { max-width: 760px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }

.hero__title { font-size: clamp(36px, 5.4vw, 64px); max-width: 24ch; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero__lead { font-size: clamp(18px, 1.8vw, 21px); font-weight: 400; color: var(--text-muted); margin-bottom: 32px; max-width: 620px; }
.hero__sub { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__note { font-size: 14px; color: var(--text-dim); margin-bottom: 0; max-width: 520px; }
.hero__facts { display: grid; gap: 14px; }
.hero__facts li { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 14px; background: rgba(20, 24, 48, 0.75); border: 1px solid var(--border-strong); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__facts strong { font-family: var(--font-head); font-size: 24px; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__facts span { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }

.hero__visual { position: relative; }
.term { background: #0d1020; border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow), var(--glow); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border); }
.term__bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3f5c; }
.term__bar span:nth-child(1) { background: #ff5f57; } .term__bar span:nth-child(2) { background: #febc2e; } .term__bar span:nth-child(3) { background: #28c840; }
.term__bar em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.term__body { margin: 0; padding: 20px 22px 44px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65; color: #c9d1e6; overflow-x: auto; }
.c-muted { color: #5d6688; } .c-key { color: #c084fc; } .c-fn { color: #67e8f9; } .c-str { color: #86efac; } .c-ok { color: var(--success); }

.hero__badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); font-size: 13px; color: var(--text-muted); white-space: nowrap;
}
.hero__badge strong { font-family: var(--font-head); font-size: 18px; color: var(--text); }
.hero__badge-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: #c4b5fd; }
.hero__badge-icon svg { width: 18px; height: 18px; }
.hero__badge--1 { top: -22px; right: -18px; animation: float 6s ease-in-out infinite; }
.hero__badge--2 { bottom: -22px; left: -18px; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.about__card { position: sticky; top: 96px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.about__person { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.about__photo { flex-shrink: 0; width: 104px; height: 104px; padding: 3px; border-radius: 50%; background: var(--gradient); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; border-radius: 50%; display: block; }
.about__photo-placeholder { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--gradient); font-family: var(--font-head); font-size: 64px; font-weight: 800; color: #fff; }
.about__name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.about__role { font-size: 13.5px; color: var(--text-muted); }
.about__meta { display: grid; gap: 10px; font-size: 14px; margin-bottom: 20px; }
.about__meta li { display: flex; align-items: center; gap: 10px; }
.about__meta-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: #c4b5fd; flex-shrink: 0; }
.about__meta-icon svg { width: 15px; height: 15px; }
.about__meta a { color: var(--accent-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: #c4b5fd; font-size: 12px; font-weight: 600; }

.about__text > p { color: var(--text-muted); font-size: 17px; margin-bottom: 16px; }
.timeline { margin-top: 36px; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 77px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 40px; padding: 18px 0; }
.timeline li::before { content: ""; position: absolute; left: 72px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-dim); }
.timeline__item--current::before { background: var(--accent-2) !important; border-color: var(--accent-2) !important; box-shadow: 0 0 0 5px var(--accent-2-soft); }
.timeline__year { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--text-muted); padding-top: 2px; }
.timeline__item--current .timeline__year { color: var(--accent-2); }
.timeline strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.timeline p { font-size: 15px; color: var(--text-muted); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.services > .service { grid-column: span 3; }
.service {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service--featured { background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.08)), var(--surface); border-color: rgba(124, 92, 255, 0.45); box-shadow: var(--glow); }
.service__badge { position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: 999px; background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: #c4b5fd; margin-bottom: 20px; }
.service__icon svg { width: 26px; height: 26px; }
.service--featured .service__icon { background: var(--gradient); color: #fff; }
.service__title { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.service--featured .service__title { font-size: 26px; }
.service__desc { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.service__list { display: grid; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.service__list li { padding-left: 22px; position: relative; }
.service__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.service__for { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.service__for strong { color: var(--text); font-weight: 600; }
.service__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; padding-top: 18px; border-top: 1px solid var(--border); }
.service__foot .btn { flex-shrink: 0; }
.service__price { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--text-muted); }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.case:hover { border-color: var(--border-strong); }
.case--ai { border-color: rgba(34, 211, 238, 0.25); }
.case__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.case__metric { text-align: right; line-height: 1.1; }
.case__metric strong { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metric span { font-size: 12px; color: var(--text-muted); }
.case__tag { display: inline-block; margin-top: 6px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: #c4b5fd; font-size: 12px; font-weight: 600; }
.case--ai .case__tag { background: var(--accent-2-soft); color: #67e8f9; }
.case__title { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.case__body { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 8px 16px; font-size: 14.5px; }
.case__body dt { font-weight: 600; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; }
.case__body dd { margin: 0; color: var(--text-muted); }
.case__result { color: var(--text) !important; font-family: var(--font-head); font-weight: 600; font-size: 16px !important; }
.case__result strong { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 22px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-head); font-size: 44px; font-weight: 800; line-height: 1; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5; }
.step__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: #c4b5fd; margin-bottom: 20px; }
.step__icon svg { width: 24px; height: 24px; }
.step__title { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Deliverables ---------- */
.deliverables { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.deliverable { padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.deliverable__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-2-soft); color: #67e8f9; margin-bottom: 16px; }
.deliverable__icon svg { width: 22px; height: 22px; }
.deliverable h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.deliverable p { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.benefit__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: #c4b5fd; margin-bottom: 16px; }
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.benefit p { font-size: 14px; color: var(--text-muted); }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.platform h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.platform p { font-size: 14.5px; color: var(--text-muted); }
.platform--main { border-color: rgba(124, 92, 255, 0.45); }
.platform--ai { border-color: rgba(34, 211, 238, 0.35); }
.platform__tag { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--accent-soft); color: #c4b5fd; }
.platform--ai .platform__tag { background: var(--accent-2-soft); color: #67e8f9; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.testimonials > .testimonial { grid-column: span 2; }
.testimonials--five > .testimonial:nth-child(4), .testimonials--five > .testimonial:nth-child(5) { grid-column: span 3; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.testimonial p { font-size: 15px; color: var(--text); line-height: 1.65; }
.testimonial footer { margin-top: auto; display: flex; flex-direction: column; font-size: 13px; }
.testimonial footer strong { font-family: var(--font-head); font-size: 14px; }
.testimonial footer span { color: var(--text-muted); }
.testimonial footer small { margin-top: 6px; font-size: 12px; color: var(--text-dim); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.post:hover { border-color: var(--border-strong); }
.post__meta { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.post h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.post h3 a:hover { color: #c4b5fd; }
.post p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: #c4b5fd; font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contacts__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.contact-list { display: grid; gap: 18px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: #c4b5fd; flex-shrink: 0; }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list div > span { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.contact-list a:hover { color: var(--accent-2); }

.form { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 16px; }
.form__title { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ba3bf' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #f87171; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.form__status { font-size: 14px; min-height: 1.4em; color: var(--success); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__status.is-error { color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 24px; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand strong { font-family: var(--font-head); font-size: 17px; }
.footer__brand span { font-size: 13px; color: var(--text-muted); }
.footer__nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--text); }
.footer__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.footer__up:hover { color: var(--text); }

/* ---------- Inner pages (pages/*.html) ---------- */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 680px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--text); }
.prose { max-width: 760px; color: var(--text-muted); font-size: 17px; }
.prose h2 { color: var(--text); font-size: 26px; margin: 40px 0 14px; }
.prose h3 { color: var(--text); font-size: 20px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-2); }
.stub { padding: 40px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border-strong); color: var(--text-muted); text-align: center; }

/* ---------- Blog & articles ---------- */
.page-hero h1 { margin-top: 6px; }
.breadcrumbs span { color: var(--text-dim); }
.posts .post h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.posts .post h2 a:hover { color: #c4b5fd; }
.posts .post .link-arrow { display: inline-block; margin-top: 14px; font-size: 14px; }
.article .breadcrumbs { margin-bottom: 28px; }
.article__title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin: 6px 0 18px; }
.article__lead { font-size: 19px; color: var(--text); line-height: 1.55; margin-bottom: 14px; }
.article__meta { font-size: 13px; color: var(--text-dim); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.prose { max-width: none; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose p { font-size: 16.5px; line-height: 1.7; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.prose li { font-size: 16px; line-height: 1.65; }
.prose li strong, .prose p strong { color: var(--text); }
.prose__example { padding: 20px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.prose__example p { font-size: 15px; margin-bottom: 10px; }
.article__cta { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.08)), var(--surface); border: 1px solid rgba(124, 92, 255, 0.45); }
.article__cta h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.article__cta p { color: var(--text-muted); margin-bottom: 18px; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.article__nav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.article__nav-link:hover { border-color: var(--accent); }
.article__nav-link small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.article__nav-link span { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .article__nav { grid-template-columns: 1fr; } }

/* ---------- Cases pages ---------- */
.case__title a:hover { color: #c4b5fd; }
.case__short { font-size: 14.5px; color: var(--text-muted); margin-bottom: 14px; }
.case .link-arrow { font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.fact { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.fact strong { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1.1; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { font-size: 12.5px; color: var(--text-muted); }
.steps-list li { margin-bottom: 12px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; color: var(--text); }
.modal::backdrop { background: rgba(6, 8, 18, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__form { position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow), var(--glow); display: grid; gap: 14px; max-height: calc(100vh - 48px); overflow-y: auto; }
.modal__sub { font-size: 14px; color: var(--text-muted); margin-top: -6px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal__close:hover { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 640px) { .modal__form { padding: 22px; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__badge { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services > .service { grid-column: span 1; }
  .steps, .benefits { grid-template-columns: repeat(2, 1fr); }
  .deliverables { grid-template-columns: repeat(3, 1fr); }
  .platforms, .posts { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonials > .testimonial, .testimonials--five > .testimonial:nth-child(4), .testimonials--five > .testimonial:nth-child(5) { grid-column: span 1; }
  .hero__net { width: 100%; right: -20%; opacity: .3; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__card { position: static; max-width: 420px; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 24px; background: var(--bg); border-top: 1px solid var(--border);
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  html, body { overflow-x: hidden; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 12px 8px; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 16px; justify-content: center; }
  .burger { display: flex; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .services, .cases, .steps, .benefits, .platforms, .testimonials, .posts, .deliverables { grid-template-columns: 1fr; }
  .testimonials > .testimonial { grid-column: span 1; }
  .services > .service { grid-column: span 1; }
  .service__badge { position: static; align-self: flex-start; margin-bottom: 16px; }
  .hero__facts { grid-template-columns: 1fr; gap: 10px; }
  .case__body { grid-template-columns: 1fr; gap: 4px 0; }
  .case__body dd { margin-bottom: 10px; }
  .case__head { flex-direction: column-reverse; align-items: flex-start; }
  .case__metric { text-align: left; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 32px; }
  .timeline::before { left: 65px; }
  .timeline li::before { left: 60px; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .logo__text small { display: none; }
}
