﻿:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-soft: #0d1422;
  --surface: rgba(14, 20, 34, 0.92);
  --surface-strong: rgba(18, 26, 44, 0.97);
  --surface-light: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --text: #eef2ff;
  --text-soft: #b3bfd7;
  --text-faint: #74819b;
  --accent: #7c6df0;
  --accent-2: #9b8dff;
  --accent-soft: rgba(124,109,240,0.16);
  --green: #54d39a;
  --amber: #efc766;
  --blue: #66b6ff;
  --red: #f17f89;
  --shadow: 0 30px 80px rgba(0,0,0,0.28);
  --radius: 20px;
  --radius-sm: 14px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --surface: rgba(255,255,255,0.92);
  --surface-strong: rgba(255,255,255,0.98);
  --surface-light: rgba(17,24,39,0.03);
  --border: rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.14);
  --text: #101828;
  --text-soft: #475467;
  --text-faint: #7a8699;
  --accent: #685cf0;
  --accent-2: #5448df;
  --accent-soft: rgba(104,92,240,0.11);
  --shadow: 0 30px 80px rgba(15,23,42,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Onest', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,109,240,0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(102,182,255,0.12), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #05070d 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(104,92,240,0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(102,182,255,0.10), transparent 28%),
    linear-gradient(180deg, #f6f8fd 0%, #eef2f8 100%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(7,11,19,0.74);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
:root[data-theme="light"] .topbar { background: rgba(255,255,255,0.78); }
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; display: block; }
.brand-text span { color: var(--accent-2); }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: .18s ease;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.current {
  color: var(--text);
  border-color: var(--border);
  background: var(--accent-soft);
}
.topbar-right { display: flex; align-items: center; gap: 12px; justify-self: end; }
.theme-toggle, .tg-btn, .btn-ghost, .tariff-btn, .dl-btn, .contact-card a, .kb-promo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: .18s ease;
}
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-light); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { transform: translateY(-1px); background: var(--accent-soft); }
.tg-btn, .btn-ghost, .tariff-btn, .dl-btn, .kb-promo, .contact-card a {
  padding: 11px 16px; border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 600;
}
.tg-btn { background: linear-gradient(135deg, #229ed9, #1879a6); color: #fff; border-color: transparent; }
.btn-ghost, .kb-promo, .contact-card a, .tariff-btn, .dl-btn { background: var(--surface); }
.btn-ghost:hover, .kb-promo:hover, .contact-card a:hover, .tariff-btn:hover, .dl-btn:hover, .tg-btn:hover { transform: translateY(-1px); }
.site-main { padding: 34px 32px 64px; }
.doc-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 28px; align-items: start; }
.doc-grid.no-sidebar { grid-template-columns: minmax(0,1fr); }
.doc-aside { position: sticky; top: 96px; display: grid; gap: 14px; }
.doc-panel, .page, .hero, .card, .home-highlight, .contact-card, .dl-card, .tariff-card, .kb-col, .callout, .params-block, .step, .kb-placeholder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.doc-panel { border-radius: var(--radius); padding: 18px; }
.doc-panel h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; color: var(--text); }
.panel-icon, .link-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.doc-panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: var(--text-soft); border-radius: 12px; border: 1px solid transparent; margin-bottom: 6px;
}
.doc-panel a:hover, .doc-panel a.current { color: var(--text); background: var(--accent-soft); border-color: var(--border); }
.page { border-radius: 28px; overflow: hidden; }
.doc-grid.no-sidebar .page { background: transparent; border: 0; box-shadow: none; }
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 42px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124,109,240,0.18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(102,182,255,0.16), transparent 28%),
    linear-gradient(180deg, var(--surface-strong), rgba(10,15,26,0.88));
}
:root[data-theme="light"] .hero { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.96)); }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); border: 1px solid var(--border); background: rgba(255,255,255,0.04); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.03; max-width: 940px; margin-bottom: 18px; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-lead { max-width: 860px; font-size: 18px; color: var(--text-soft); }
.hero-actions-wide, .hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-stat { min-width: 180px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.stat-val { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-soft); }
.content { padding: 30px 0 0; }
.content > * + * { margin-top: 22px; }
.cards-grid, .contact-cards, .dl-cards, .tariffs-grid, .home-highlight-grid, .kb-grid, .shot-grid { display: grid; gap: 18px; }
.cards-grid, .contact-cards, .dl-cards, .tariffs-grid, .kb-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards-grid.home-products, .home-highlight-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .contact-card, .dl-card, .tariff-card, .kb-col, .kb-placeholder-card { border-radius: 22px; padding: 24px; }
.card-header, .tariff-head, .contact-card, .dl-card { display: flex; flex-direction: column; gap: 14px; }
.card-header { flex-direction: row; align-items: flex-start; }
.card-icon, .tariff-icon, .dl-badge svg, .contact-card a svg { width: 22px; height: 22px; }
.card-icon, .tariff-icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.tariff-icon{width:auto;height:auto;flex:0 0 auto;border-radius:0;background:transparent;border:0;display:flex;align-items:center;justify-content:center}
.tariff-icon svg{width:2.1em;height:2.1em;display:block;color:#101828}
:root:not([data-theme="light"]) .tariff-icon svg{color:#eef2ff}
.card-icon.green, .badge.green { color: var(--green); }
.card-icon.amber, .badge.amber { color: var(--amber); }
.card-icon.blue { color: var(--blue); }
.card-icon.purple, .dl-badge.purple { color: var(--accent-2); }
.card-title, .tariff-title, .dl-title, .contact-title, .kb-col-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.card-sub, .tariff-sub, .contact-sub, .partner-url, .dl-desc, .card-body, .kb-link, .step-desc, .param-val, .callout, .footer { color: var(--text-soft); }
.partner-link { text-decoration: none; }
.partner-url { word-break: break-all; font-size: 13px; }
.product-tabs { display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.product-tabs.centered, .tariffs-top.centered { justify-content: center; }
.product-tab { border: 0; background: transparent; color: var(--text-soft); padding: 10px 16px; border-radius: 999px; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 8px; }
.product-tab.active { background: var(--accent-soft); color: var(--text); }
.product-mark { font-size: 16px; line-height: 1; }
.tariffs-top { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.tariffs-grid.centered-three { grid-template-columns: repeat(3, minmax(240px, 320px)); justify-content: center; }
.tariff-card.featured { background: linear-gradient(180deg, rgba(124,109,240,0.18), rgba(14,20,34,0.92)); }
:root[data-theme="light"] .tariff-card.featured { background: linear-gradient(180deg, rgba(104,92,240,0.10), rgba(255,255,255,0.98)); }
.tariff-price { font-size: 42px; font-weight: 800; line-height: 1; margin-top: 8px; }
.tariff-divider, .kb-col-line { height: 1px; background: var(--border); margin: 16px 0; }
.tariff-list, .kb-links, .step-list { display: grid; gap: 12px; }
.tariff-list { padding-left: 18px; }
.kb-sections { display: grid; gap: 22px; }
.kb-section { display: grid; gap: 18px; }
.kb-section-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.kb-col { text-decoration: none; display: block; }
.kb-col:hover { transform: translateY(-2px); }
.kb-placeholder { display: grid; }
.kb-placeholder-card { min-height: 180px; display: grid; align-content: center; gap: 10px; }
.kb-selector { display: flex; justify-content: center; margin-top: 24px; }
.callout { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 18px; }
.callout-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent-2); display: inline-grid; place-items: center; }
.contact-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
.contact-card a { width: fit-content; margin-top: 6px; }
.dl-cards, .tariffs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.params-block { border-radius: 20px; overflow: hidden; }
.params-block-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; }
.params-block-body { padding: 6px 0; }
.param-row { display: grid; grid-template-columns: 180px minmax(0,1fr) auto; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.param-row:first-child { border-top: 0; }
.param-key { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; }
.step-list { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 16px; padding: 18px 20px; border-radius: 18px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--text); }
.step-title { font-weight: 700; margin-bottom: 4px; }
.shot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.shot { overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }
.shot figcaption { padding: 14px 16px; color: var(--text-soft); }
.shot-compact{display:flex;flex-direction:column;align-items:center;justify-self:start;width:fit-content;max-width:220px}.shot-compact img{width:100%;aspect-ratio:auto;object-fit:contain;margin:18px auto 0;border-radius:14px}.shot-compact figcaption{width:100%}
.shot-grid-auth-pair{grid-template-columns:repeat(2,minmax(0,320px));gap:12px;align-items:stretch;justify-content:start}.shot-grid-auth-pair .shot-compact{width:100%;max-width:320px;height:100%}.shot-grid-auth-pair .shot-compact img{width:100%;height:220px;object-fit:contain}.shot-grid-auth-pair .shot-compact figcaption{flex:1 1 auto}.shot-grid-auth-pair .shot-directory-window{max-width:320px}
.lightbox { position: fixed; inset: 0; background: rgba(4,6,12,.82); display: grid; place-items: center; padding: 30px; z-index: 200; }
.lightbox-figure { max-width: min(1100px, 100%); }
.lightbox-img { max-height: 82vh; border-radius: 18px; }
.lightbox-cap { margin-top: 12px; text-align: center; color: #fff; }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.home-highlight { padding: 22px; border-radius: 20px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 0; font-size: 14px; }
[hidden] { display: none !important; }
@media (max-width: 1180px) {
  .cards-grid.home-products, .home-highlight-grid, .dl-cards { grid-template-columns: 1fr; }
  .tariffs-grid.centered-three { grid-template-columns: repeat(2, minmax(240px, 320px)); }
}
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; justify-items: start; }
  .site-nav { justify-content: flex-start; }
  .topbar-right { justify-self: start; }
  .site-main { padding: 24px 20px 48px; }
  .doc-grid, .doc-grid.no-sidebar { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
  .cards-grid, .contact-cards, .kb-grid, .shot-grid, .tariffs-grid, .tariffs-grid.centered-three { grid-template-columns: 1fr; }
  .hero { padding: 32px 24px; }
  .param-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav a, .tg-btn, .btn-ghost, .tariff-btn, .dl-btn, .kb-promo, .contact-card a { width: 100%; justify-content: center; }
  .hero h1 { font-size: 34px; }
  .footer { flex-direction: column; }
  .product-tabs { width: 100%; }
  .product-tab { flex: 1 1 auto; justify-content: center; }
}

.switch-shell{border-radius:22px;padding:24px;display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}
.switch-copy{max-width:700px;color:var(--text-soft)}
.switch-copy strong{display:block;color:var(--text);margin-bottom:6px}
.kb-tabs-inline{display:flex;flex-wrap:wrap;margin-bottom:12px}
[data-kb-product-link]{display:none}
[data-kb-product-link].active{display:block}
.overview-grid,.format-grid{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
.format-code{font-family:'JetBrains Mono',monospace;font-size:13px;line-height:1.6;white-space:pre-wrap;word-break:break-word;padding:16px 18px;border-radius:16px;border:1px solid var(--border);background:rgba(255,255,255,0.03);color:var(--text-soft)}
.tariffs-grid{grid-template-columns:repeat(3,minmax(240px,1fr));justify-content:center}
.tariff-card.center{text-align:center}
.tariff-head.center{align-items:center}
.tariff-price{font-size:36px;line-height:1;font-weight:800;margin:8px 0 4px}
.tariff-note{color:var(--text-soft);min-height:48px}
.tariffs-tabs-centered{justify-content:center}
@media (max-width: 980px){.overview-grid,.format-grid,.tariffs-grid{grid-template-columns:1fr}}

.tg-btn{min-width:42px}
.topbar-right .tg-btn{padding:0;width:42px;height:42px;overflow:hidden;font-size:0;gap:0;display:grid;place-items:center}
.topbar-right .tg-btn svg{width:20px;height:20px;display:block;flex:none}
.home-hero-simple{padding-bottom:28px}
.home-product-stack{display:grid;gap:22px}
.product-showcase{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:24px;align-items:stretch;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:26px;padding:30px}
.product-showcase-copy{display:grid;align-content:start;gap:18px}
.product-showcase-copy h2{font-size:40px;line-height:1.05;letter-spacing:-0.03em}
.product-showcase-copy p{font-size:18px;color:var(--text-soft);max-width:780px}
.product-showcase-actions{display:flex;gap:14px;flex-wrap:wrap}
.product-contact-btn{font-size:15px}
.product-showcase-side{display:grid;gap:14px}
.showcase-point{padding:18px 20px;border-radius:20px;border:1px solid var(--border);background:rgba(255,255,255,0.03)}
.showcase-point strong{display:block;margin-bottom:6px;font-size:17px}
.showcase-point span{color:var(--text-soft)}
@media (max-width: 980px){.product-showcase{grid-template-columns:1fr}.product-showcase-copy h2{font-size:32px}}

.hero-lead-plain{max-width:none;text-align:center}
.ws-accent{color:#5448df}
.home-top-info-grid{margin-top:28px}
.product-lead-block{display:grid;gap:8px}
.product-lead-block strong{font-size:22px;line-height:1.2;color:var(--text)}
.product-lead-block p{font-size:18px;color:var(--text-soft);max-width:860px}
.product-showcase-copy h2 .ws-accent,.hero-chip .ws-accent{color:#5448df}

.tariffs-switch-row{display:flex;justify-content:center;align-items:center;width:100%;margin-bottom:18px}
.switch-shell .tariffs-tabs-centered,.tariffs-switch-row .tariffs-tabs-centered{margin:0 auto;justify-content:center}
.tariff-note br{content:''}

.product-showcase-copy h2{display:flex;align-items:center;gap:12px}
.product-title-icon{width:1em;height:1em;flex:0 0 auto;align-self:center;color:#101828;position:relative;top:0}
:root:not([data-theme="light"]) .product-title-icon{color:#eef2ff}
.home-highlight p{color:var(--text-soft)}
.products-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width: 980px){.products-feature-grid{grid-template-columns:1fr}}
.partner-logo-shell{width:46px;height:46px;flex:0 0 46px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,0.04);border:1px solid var(--border)}
.partner-logo-img{width:100%;height:100%;object-fit:cover;border-radius:14px;display:block}
.hero-lead .product-contact-btn{margin-left:10px;vertical-align:middle}
.partner-promo{margin-top:18px;padding:18px 20px;border-radius:18px;border:1px solid var(--border);background:rgba(255,255,255,0.03);display:grid;gap:12px}
.partner-promo-row{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-wrap:wrap}
.partner-promo-label{font-size:17px;font-weight:600;color:var(--text)}
.copy-chip{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);padding:10px 14px;border-radius:999px;font:inherit;font-weight:600;cursor:pointer;transition:.18s ease}
.copy-chip:hover{transform:translateY(-1px);background:var(--accent-soft)}
.copy-chip.copied{background:var(--accent-soft);border-color:var(--accent)}
.partner-promo-widgets{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.promo-widget{position:relative}
.promo-output{background:linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.03));border:1px solid var(--border);border-radius:18px;padding:18px 18px 16px;display:grid;gap:10px}
.promo-label{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-soft)}
.promo-code-row{display:flex;align-items:center;gap:10px}
.promo-code{flex:1;display:inline-flex;justify-content:center;align-items:center;padding:10px 14px;border-radius:999px;border:1.5px dashed var(--accent-2);background:var(--surface);color:var(--accent-2);font-family:'JetBrains Mono',monospace;font-size:15px;font-weight:700;white-space:nowrap}
.copy-promo-btn{width:42px;height:42px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);display:grid;place-items:center;cursor:pointer;transition:.18s ease;flex:0 0 42px}
.copy-promo-btn:hover{transform:translateY(-1px);background:var(--accent-soft)}
.copy-promo-btn svg{width:18px;height:18px}
.promo-description{font-size:14px;color:var(--text-soft)}
.promo-toast{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);padding:10px 14px;border-radius:10px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s ease;white-space:nowrap}
.promo-toast.show{opacity:1}
@media (max-width: 980px){.partner-promo-widgets{grid-template-columns:1fr}}
.partner-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.partner-card>.card-header,.partner-card>.partner-url,.partner-card>.card-body{grid-column:1/-1}
.partner-card>.promo-widget{min-width:0}
@media (max-width: 980px){.partner-card{grid-template-columns:1fr}}
.cards-grid .partner-link{display:block;height:100%}
.partner-card{height:100%;align-content:start;grid-auto-rows:min-content}
.switch-shell.kb-switch-centered,.doc-content .switch-shell{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.doc-content .switch-shell .switch-copy{max-width:none;color:var(--text-soft)}
.doc-content .switch-shell .switch-copy strong{font-size:18px;font-weight:500;color:var(--text-soft);margin-bottom:14px}
.doc-content .switch-shell .product-tabs{justify-content:center;margin:0 auto}
.docs-landing>.hero,.docs-landing>.content{margin:0}
.docs-landing>.content{padding-top:22px}
.docs-landing .kb-sections{margin-top:0}
.docs-landing .kb-section{background:transparent}
.docs-landing .footer,.footer{align-items:center}

.doc-panel-title-link{display:flex;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;color:var(--text);border-radius:12px;border:1px solid transparent;margin-bottom:12px;font-size:14px;font-weight:700}
.doc-panel-title-link:hover,.doc-panel-title-link.current{background:var(--accent-soft);border-color:var(--border)}
.docs-kb-page>.hero,.docs-kb-page>.content{margin:0}
.docs-kb-page>.content{padding-top:22px}
.docs-kb-page .footer,.footer{align-items:center}
.docs-product-tabs-only{display:inline-flex;justify-content:center;margin:0 auto 24px;width:auto;max-width:max-content}
.docs-landing .content{display:grid;justify-items:center}
.docs-landing .kb-sections{width:100%}

.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.preset-card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:22px;padding:24px;display:grid;gap:12px;align-content:start}
.preset-num{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--accent-soft);color:var(--text);font-family:'JetBrains Mono',monospace;font-weight:700;font-size:15px}
.preset-name{font-size:22px;line-height:1.2;font-weight:700;color:var(--text)}
.preset-desc{color:var(--text-soft);font-size:15px;line-height:1.7}
.preset-tags{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width: 980px){.preset-grid{grid-template-columns:1fr}}

.doc-panel a .link-icon{width:16px;height:16px;flex:0 0 16px;color:var(--text-faint);transition:.18s ease}
.doc-panel a span{flex:1 1 auto}
.doc-panel a:hover .link-icon,.doc-panel a.current .link-icon{color:var(--text)}
:root[data-theme="light"] .doc-panel a .link-icon{color:#667085}
:root[data-theme="light"] .doc-panel a:hover .link-icon,:root[data-theme="light"] .doc-panel a.current .link-icon{color:#101828}
:root:not([data-theme="light"]) .doc-panel a .link-icon{color:#98a2b3}
:root:not([data-theme="light"]) .doc-panel a:hover .link-icon,:root:not([data-theme="light"]) .doc-panel a.current .link-icon{color:#eef2ff}


.nav-toggle{display:none;width:42px;height:42px;border-radius:12px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);cursor:pointer;align-items:center;justify-content:center;padding:0;flex:0 0 auto}
.nav-toggle svg{width:20px;height:20px;display:block}
.nav-toggle:hover,.nav-toggle[aria-expanded="true"]{transform:translateY(-1px);background:var(--accent-soft);border-color:var(--accent-2)}
body.menu-open{overflow:hidden}
.mobile-nav-backdrop{display:none}
@media (max-width: 980px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 14px;position:sticky;top:0;left:0;right:0;z-index:100;background:var(--surface-strong);backdrop-filter:none;border-bottom:1px solid var(--border);box-shadow:0 12px 30px rgba(0,0,0,.22)}
  .topbar-brand{min-width:0;max-width:calc(100vw - 154px);overflow:hidden}
  .brand-text{font-size:15px;line-height:1.1}
  .nav-toggle{display:inline-flex}
  .site-nav{position:fixed;left:14px;right:14px;top:64px;z-index:101;display:grid;grid-template-columns:1fr;gap:10px;padding:14px;border-radius:20px;background:#111827;border:1px solid rgba(255,255,255,.14);box-shadow:0 24px 70px rgba(0,0,0,.45);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(.98);transition:.18s ease;max-height:calc(100vh - 84px);overflow:auto}
  .site-nav.menu-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
  .mobile-nav-backdrop{position:fixed;inset:0;z-index:90;background:rgba(7,11,19,.46);opacity:0;visibility:hidden;pointer-events:none;transition:.18s ease}
  .mobile-nav-backdrop.show{display:block;opacity:1;visibility:visible;pointer-events:auto}
  .site-nav a{width:100%;text-align:left;padding:13px 14px;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.05);color:var(--text)}
  :root[data-theme="light"] .site-nav{background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,250,252,.98));border:1px solid rgba(15,23,42,.10);box-shadow:0 24px 70px rgba(15,23,42,.12)}
  :root[data-theme="light"] .site-nav a{background:rgba(15,23,42,.03);border:1px solid rgba(15,23,42,.06);color:#101828}
  :root[data-theme="light"] .site-nav a:hover,:root[data-theme="light"] .site-nav a.current{background:rgba(104,92,240,.10);border-color:rgba(104,92,240,.18);color:#101828}
  :root[data-theme="light"] .mobile-nav-backdrop{background:rgba(15,23,42,.12)}
  .topbar-right{justify-self:end;width:auto;gap:10px;position:relative;z-index:102;display:flex;align-items:center}
  .site-main{padding:16px 14px 42px}
  .hero{padding:24px 18px;border-radius:22px}
  .hero h1{font-size:30px;line-height:1.08}
  .hero-lead,.hero-lead-plain{font-size:16px;line-height:1.6}
  .hero-stats{display:grid;grid-template-columns:1fr;gap:10px}
  .home-top-info-grid,.cards-grid.home-products,.overview-grid,.format-grid,.contact-cards,.partner-promo-widgets,.kb-grid,.shot-grid,.tariffs-grid,.tariffs-grid.centered-three{grid-template-columns:1fr}
  .home-highlight,.card,.contact-card,.dl-card,.tariff-card,.kb-col,.partner-card{padding:18px}
  .home-product-stack{gap:18px}
  .product-showcase,.product-showcase.product-showcase-rich{grid-template-columns:1fr;padding:20px;gap:16px;border-radius:22px}
  .product-showcase-copy{gap:14px}
  .product-showcase-copy h2{font-size:28px;line-height:1.1;flex-wrap:wrap}
  .product-showcase-copy p,.product-lead-block p{font-size:16px}
  .product-showcase-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .product-showcase-actions a,.contact-card a,.tariff-btn,.btn-ghost,.kb-promo,.dl-btn{width:100%;justify-content:center}
  .product-showcase-side{gap:10px}
  .showcase-point{padding:16px}
  .overview-grid .card{padding:18px}
  .tariffs-switch-row{margin-bottom:14px}
  .product-tabs{width:100%;justify-content:center}
  .product-tab{flex:1 1 calc(50% - 8px);justify-content:center}
  .tariff-head.center{gap:12px}
  .tariff-price{font-size:34px}
  .tariff-note{min-height:0}
  .partner-card{grid-template-columns:1fr;gap:12px}
  .partner-card>.card-header,.partner-card>.partner-url,.partner-card>.card-body,.partner-card>.promo-widget{grid-column:1/-1}
  .partner-logo-shell{width:64px;height:64px}
  .promo-output{padding:16px}
  .promo-code-row{flex-wrap:wrap;align-items:flex-start}
  .promo-code{word-break:break-all}
  .params-block{border-radius:18px}
  .param-row{grid-template-columns:1fr;gap:8px;padding:12px 16px}
  .step{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px}
  .step-num{width:30px;height:30px}
  .doc-panel{padding:14px}
  .doc-panel a{padding:9px 10px}
  .footer{padding-top:20px;font-size:13px}
}
@media (max-width: 640px){
  .hero h1{font-size:26px}
  .product-showcase-copy h2{font-size:24px}
  .home-highlight strong,.card-title,.tariff-title,.contact-title,.kb-col-title{font-size:18px}
  .theme-toggle,.topbar-right .tg-btn,.nav-toggle{width:40px;height:40px}
  .site-nav{top:60px;left:10px;right:10px}
}

.seo-keyword-cloud{display:grid;gap:14px;margin-top:22px}.seo-keyword-cloud p{color:var(--text-soft);font-size:15px;line-height:1.75}.seo-keyword-cloud strong{color:var(--text)}
