/* ═══════════════════════════════════════════════════
   MCP Droid — общие стили
   ═══════════════════════════════════════════════════ */

@font-face{ font-family:"PT-Root-UI"; font-weight:300; font-style:normal; font-display:swap; src:url("/static/fonts/PT-Root-UI/PT-Root-UI_Light.woff2") format("woff2"); }
@font-face{ font-family:"PT-Root-UI"; font-weight:400; font-style:normal; font-display:swap; src:url("/static/fonts/PT-Root-UI/PT-Root-UI_Regular.woff2") format("woff2"); }
@font-face{ font-family:"PT-Root-UI"; font-weight:500; font-style:normal; font-display:swap; src:url("/static/fonts/PT-Root-UI/PT-Root-UI_Medium.woff2") format("woff2"); }
@font-face{ font-family:"PT-Root-UI"; font-weight:600; font-style:normal; font-display:swap; src:url("/static/fonts/PT-Root-UI/PT-Root-UI_Bold.woff2") format("woff2"); }

:root {
  --red:        #5f3dc4;
  --red-dark:   #4a2da3;
  --amber:      #ffcc19;
  --bg:         #2a1e4e;
  --bg-2:       #342659;
  --card-dark:  rgba(255,255,255,.075);
  --line-dark:  rgba(255,255,255,.15);
  --text:       #ece7f7;
  --muted:      #b3a6d1;
  --white:      #ffffff;
  --green:      #22c55e;

  --light-bg:      #f5f2fb;
  --light-card:    #ffffff;
  --light-border:  rgba(17,24,39,.09);
  --light-muted:   #6b6383;

  --shadow-sm:   0 4px 16px rgba(16,24,40,.06);
  --shadow-md:   0 8px 32px rgba(16,24,40,.08);
  --shadow-lg:   0 24px 64px rgba(0,0,0,.22);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --max: 1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PT-Root-UI", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7,10,18,.85);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.02em;
  color: var(--white);
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); font-weight: 700; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-login {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .15s;
}
.nav-login:hover { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(95,61,196,.28);
}
.btn-red:hover { box-shadow: 0 12px 32px rgba(95,61,196,.36); }
.btn-amber {
  background: var(--amber);
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(255,204,25,.22);
}
.btn-amber:hover { box-shadow: 0 12px 30px rgba(255,204,25,.32); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid var(--line-dark);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover { background: rgba(95,61,196,.06); }
.btn-dark {
  background: #33254d;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover { background: #3d2c66; }
.btn-white {
  background: #fff;
  color: #33254d;
  box-shadow: var(--shadow-md);
}
.btn-sm  { padding: 9px 16px; font-size: 13px; }
.btn-lg  { padding: 16px 28px; font-size: 16px; }
.btn-xl  { padding: 18px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--r-md); }

/* ── Section base ── */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-dark  { background: var(--bg);    color: var(--text); }
.section-mid   { background: var(--bg-2);  color: var(--text); }
.section-light { background: var(--light-bg); color: #33254d; }

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-dark  .section-kicker,
.section-mid   .section-kicker { color: #b9a4e6; }

h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -.055em;
  margin-bottom: 0;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}
.section-note {
  max-width: 380px;
  font-size: 15px;
  color: var(--light-muted);
  margin: 0;
  line-height: 1.65;
  flex-shrink: 0;
}
.section-dark  .section-note,
.section-mid   .section-note { color: var(--muted); }

/* ── Cards ── */
.card-light {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.card-dark {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ── Tags / badges ── */
.tag-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
}
.tag-red {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(95,61,196,.12);
  border: 1px solid rgba(95,61,196,.2);
  color: #b9a4e6;
  font-size: 11px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.badge-red   { background: rgba(95,61,196,.12); color: var(--red); border: 1px solid rgba(95,61,196,.2); }
.badge-amber { background: rgba(255,204,25,.15); color: #c8900a; border: 1px solid rgba(255,204,25,.3); }
.badge-dark  { background: #33254d; color: #8a97b0; border: 1px solid rgba(255,255,255,.08); }

/* ── Check icon ── */
.chk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #efeafb;
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.chk-green {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34,197,94,.12);
  color: #22c55e;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq { display: grid; gap: 8px; }
details {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  border-radius: var(--r-md);
  padding: 16px 20px;
}
.section-dark details,
.section-mid  details {
  background: rgba(255,255,255,.06);
  border-color: var(--line-dark);
}
summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  color: #33254d;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.section-dark summary,
.section-mid  summary { color: var(--white); }
summary::after { content: "+"; font-size: 18px; color: var(--red); font-weight: 900; flex-shrink: 0; }
details[open] summary::after { content: "−"; }
details p { color: var(--light-muted); margin: 12px 0 0; font-size: 14px; line-height: 1.65; }
.section-dark details p,
.section-mid  details p { color: var(--muted); }

/* ── Code box ── */
.codebox {
  background: #1b1338;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.codebox-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.codebox pre {
  margin: 0;
  padding: 18px;
  font-size: 13px;
  color: #c9deff;
  font-family: "JetBrains Mono", Consolas, monospace;
  overflow-x: auto;
  line-height: 1.7;
}
.code-copy {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.code-copy:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Tab pills ── */
.tab-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab-pill {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tab-pill-light {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--light-border);
  background: #fff;
  color: var(--light-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab-pill-light.active {
  background: #33254d;
  border-color: #33254d;
  color: #fff;
}

/* ── CTA banner ── */
.cta-banner {
  background:
    radial-gradient(circle at 80% 30%, rgba(95,61,196,.2), transparent 40%),
    linear-gradient(135deg, #33254d, #241a45);
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-banner h2 { color: #fff; max-width: 640px; }
.cta-banner p  { color: #8a97b0; font-size: 16px; margin: 14px 0 0; max-width: 560px; }
.cta-banner-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cta-sub { font-size: 12px; color: #5e6e8a; text-align: center; }

/* ── Footer ── */
footer {
  background: #241a45;
  color: var(--muted);
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--white); }

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { color: #3a4356; }
.breadcrumbs .current { color: var(--white); font-weight: 600; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 70% 0%, rgba(95,61,196,.12), transparent 36%),
    var(--bg);
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.0;
  letter-spacing: -.06em;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: #8f83ad;
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ── Compare table ── */
.compare-wrap {
  border-radius: var(--r-xl);
  border: 1px solid var(--light-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-row {
  display: grid;
  border-bottom: 1px solid var(--light-border);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row.head { background: #33254d; color: #fff; }
.compare-row > div { padding: 15px 20px; font-size: 14px; line-height: 1.5; }

/* ── Placeholder page ── */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  gap: 20px;
}
.placeholder-icon {
  font-size: 56px;
  line-height: 1;
}
.placeholder h2 { color: var(--white); }
.placeholder p { color: var(--muted); max-width: 480px; font-size: 16px; }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .cta-banner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .section { padding: 60px 0; }
  .section-head { display: block; }
  .section-note { margin-top: 14px; max-width: 100%; }
  .cta-banner { padding: 36px 24px; }
  .compare-row { grid-template-columns: 1fr !important; }
}
