  :root {
    --bg: #f8fafc;
    --card: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --accent: #06b6d4;
    --ok: #059669;
    --line: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-hover: 0 18px 40px rgba(15, 23, 42, .14);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "Segoe UI", "Inter", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
  }
  a { color: var(--primary); text-decoration: none; }
  .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

  /* ===== Header ===== */
  .top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .top .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; }
  .logo .mark {
    width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex; align-items: center; justify-content: center; font-size: 19px;
  }
  .nav { display: flex; gap: 22px; align-items: center; }
  .nav a { color: #cbd5e1; font-size: 14.5px; transition: color .15s; }
  .nav a:hover { color: #fff; }
  .btn {
    display: inline-block; padding: 10px 20px; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: transform .12s, box-shadow .12s;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.35); }
  .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
  .btn-ghost:hover { background: rgba(255,255,255,.16); }
  .mobile-cta { display: none; }

  /* ===== Гамбургер (мобильное меню) ===== */
  .burger {
    display: none; flex: 0 0 42px; width: 42px; height: 42px; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px; cursor: pointer; transition: background .15s;
  }
  .burger:hover { background: rgba(255,255,255,.16); }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #e2e8f0; transition: transform .2s, opacity .2s; }
  .burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ===== Hero ===== */
  .hero {
    background: radial-gradient(900px 500px at 85% -10%, rgba(124,58,237,.45), transparent 60%),
                radial-gradient(700px 420px at 10% 10%, rgba(6,182,212,.28), transparent 55%),
                linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
    color: #fff;
    padding: 96px 0 72px;
    position: relative; overflow: hidden;
  }
  .hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: #e0e7ff; margin-bottom: 22px;
  }
  .hero h1 { font-size: 46px; line-height: 1.15; font-weight: 800; max-width: 820px; letter-spacing: -.5px; }
  .hero h1 .grad { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero .sub { margin-top: 22px; font-size: 18px; color: #cbd5e1; max-width: 680px; }
  .hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
  .hero .note { margin-top: 16px; font-size: 13.5px; color: #94a3b8; }
  .hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
  .hero-img img { width: 100%; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
  .stats {
    margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
  }
  .stat {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 18px 20px;
  }
  .stat b { display: block; font-size: 26px; font-weight: 800; color: #fff; }
  .stat span { font-size: 13.5px; color: #94a3b8; }

  /* ===== Sections ===== */
  section { padding: 72px 0; }
  .sec-title { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
  .sec-h2 { font-size: 32px; font-weight: 800; letter-spacing: -.4px; }
  .sec-sub { color: var(--muted); margin-top: 12px; font-size: 16px; max-width: 720px; }

  /* ===== Problem / Solution ===== */
  .problem { background: #fff; border-bottom: 1px solid var(--line); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
  .panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
  .panel h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
  .panel ul { list-style: none; }
  .panel li { padding: 7px 0 7px 26px; position: relative; color: #334155; font-size: 15px; }
  .panel.pain li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 700; }
  .panel.solve li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

  /* ===== Cards grid ===== */
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 40px; }
  .card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
  }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .card .ico {
    width: 48px; height: 48px; border-radius: 12px; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(124,58,237,.12));
    margin-bottom: 16px;
  }
  .card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
  .card p { font-size: 14.5px; color: var(--muted); }
  .card .tag {
    display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600;
    color: var(--primary); background: rgba(79,70,229,.08);
    padding: 3px 10px; border-radius: 999px;
  }

  /* ===== Embed ===== */
  .embed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 36px; }
  .embed-item {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 18px; font-size: 15px; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
  }
  .embed-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

  /* ===== How it works ===== */
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
  .how-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; margin-top: 40px; }
  .how-inner .steps { grid-template-columns: 1fr 1fr; margin-top: 0; gap: 16px; }
  .how-img img { width: 100%; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
  .step .num {
    width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(79,70,229,.35);
  }
  .step h4 { font-size: 16.5px; margin-bottom: 6px; }
  .step p { font-size: 14px; color: var(--muted); }

  /* ===== Tech ===== */
  .tech { background: #0f172a; color: #e2e8f0; }
  .tech .sec-title { color: #a5b4fc; }
  .tech .sec-h2 { color: #fff; }
  .tech .sec-sub { color: #94a3b8; }
  .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 36px; }
  .tech-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 20px; }
  .tech-item b { display: block; font-size: 15px; margin-bottom: 4px; color: #fff; }
  .tech-item span { font-size: 13.5px; color: #94a3b8; }

  /* ===== Scenarios ===== */
  .scenario { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
  .scenario .card { position: relative; overflow: hidden; }
  .scenario .card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
  }

  /* ===== Deployment ===== */
  .deploy { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
  .deploy .card h3 { display: flex; align-items: center; gap: 8px; }
  .deploy ul { list-style: none; margin-top: 10px; }
  .deploy li { font-size: 14px; color: var(--muted); padding: 4px 0 4px 22px; position: relative; }
  .deploy li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

  /* ===== CTA ===== */
  .cta { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; text-align: center; }
  .cta .sec-h2 { color: #fff; }
  .cta p { color: #e0e7ff; margin-top: 12px; font-size: 16px; }
  .cta .btn { background: #fff; color: var(--primary); margin-top: 26px; font-size: 16px; padding: 14px 32px; }

  footer { background: #0f172a; color: #a5b4fc; padding: 28px 0; font-size: 14px; }
  footer .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

  @media (max-width: 940px) {
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .how-inner { grid-template-columns: 1fr; gap: 30px; }
    .how-inner .steps { grid-template-columns: 1fr; }
  }

  @media (max-width: 820px) {
    .top .container { gap: 10px; }
    .burger { display: flex; }
    .mobile-cta { display: inline-block; margin-left: auto; }
    .nav { display: none; }
    .nav.open {
      display: flex; flex-direction: column; align-items: stretch;
      position: absolute; top: 64px; left: 0; right: 0;
      padding: 6px 24px 16px;
      background: #0f172a;
      border-bottom: 1px solid rgba(255,255,255,.08);
      box-shadow: 0 18px 40px rgba(0,0,0,.35);
      max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .nav.open a { font-size: 16px; padding: 13px 2px; }
    .nav.open a + a { border-top: 1px solid rgba(255,255,255,.07); }
    .nav.open a.btn { display: none; }
    .hero h1 { font-size: 32px; }
    .two-col { grid-template-columns: 1fr; }
    section { padding: 52px 0; }
    .sec-h2 { font-size: 26px; }
  }

/* ===== страницы решений (лендинги под запросы) ===== */
.hero.compact { padding: 54px 0 40px; }
.hero.compact h1 { font-size: 40px; line-height: 1.15; }
.hero.compact .sub { max-width: 780px; }
.crumbs { font-size: 13px; color: #64748b; margin: 0 0 14px; }
.crumbs a { color: #475ec2; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 860px; }
.prose h2 { font-size: 27px; line-height: 1.25; margin: 0 0 14px; color: #0f172a; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; color: #0f172a; }
.prose p { color: #334155; line-height: 1.72; margin: 0 0 14px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; color: #334155; line-height: 1.7; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; }
.prose .lead { font-size: 18px; color: #1e293b; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 8px; }
.cards3 .card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 6px 18px rgba(15,23,42,.05); }
.cards3 .card b { display: block; font-size: 17px; margin-bottom: 8px; color: #0f172a; }
.cards3 .card span { color: #475569; line-height: 1.6; font-size: 15px; }
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: #0f172a; font-size: 16px; }
.faq summary::marker { color: #475ec2; }
.faq details p { margin: 12px 0 0; color: #334155; line-height: 1.7; }
.solutions-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.solutions-nav a { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: #eef2ff; color: #3b4fa8; text-decoration: none; border: 1px solid #dbe3ff; }
.solutions-nav a:hover { background: #e0e7ff; }
@media (max-width: 820px) {
  .cards3 { grid-template-columns: 1fr; }
  .hero.compact h1 { font-size: 29px; }
}
