

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Geist:wght@500;600;700&display=swap');

:root {
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,.82);
  background: #000;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

[data-lang="en"] .ru { display: none !important; }
[data-lang="ru"] .en { display: none !important; }

#langToggle {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
#langToggle:hover { background: rgba(255,255,255,.05); color: #fff; }

.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.docs-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.docs-logo img {
  height: 20px;
  width: auto;
  object-fit: contain;
  display: block;
}

.docs-search {
  flex: 1;
  max-width: 420px;
  margin-left: 24px;
  position: relative;
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.docs-search-results.open { display: block; }
.docs-search-result {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.docs-search-result:last-child { border-bottom: none; }
.docs-search-result:hover, .docs-search-result.sel { background: rgba(255,255,255,.06); }
.docs-search-result-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.docs-search-result-group { font-size: 11px; color: rgba(255,255,255,.4); }
.docs-search-empty { padding: 14px; font-size: 13px; color: rgba(255,255,255,.4); }

.docs-search input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 0 40px 0 36px;
  font-size: 13px;
  color: #fff;
  background: rgba(255,255,255,.04);
  outline: none;
}

.docs-search input::placeholder { color: rgba(255,255,255,.35); }
.docs-search input:focus { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

.docs-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.35);
}

.docs-search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
}

.docs-search-kbd kbd {
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-family: inherit;
  color: rgba(255,255,255,.45);
}

.docs-header-spacer { flex: 1; }

.docs-header-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.docs-main-site-link {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.docs-main-site-link:hover { color: #fff; }

.docs-login-btn {
  height: 36px;
  padding: 0 16px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
}
.docs-login-btn:hover { background: rgba(255,255,255,.85); }

.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  min-height: calc(100vh - 56px);
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .docs-layout { grid-template-columns: 220px 1fr; }
  .docs-toc { display: none; }
}

.docs-sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.sidebar-overview {
  display: block;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.sidebar-overview:hover { color: rgba(255,255,255,.7); }

.sidebar-group { margin-bottom: 20px; }

.sidebar-group-label {
  padding: 0 20px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.sidebar-link {
  display: block;
  padding: 6px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: background 0.1s;
}
.sidebar-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,.06); font-weight: 500; }

.docs-content { padding: 40px 48px; min-width: 0; }

.docs-eyebrow {
  font: 600 10px var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}

.docs-page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}

.docs-page-lede {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 640px;
  margin-bottom: 40px;
}

.docs-content { counter-reset: docsec; }
.docs-section { margin-bottom: 56px; padding-top: 8px; counter-increment: docsec; }

.docs-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.docs-section-title::before {
  content: "0" counter(docsec);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.25);
  flex: none;
}

.docs-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  max-width: 720px;
}
.docs-notice-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,.6);
  margin-top: 1px;
}
.docs-notice p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.docs-notice strong { color: #fff; font-weight: 600; }

.docs-prose p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  max-width: 720px;
}

.docs-prose ul, .docs-prose ol {
  margin: 0 0 14px 20px;
  max-width: 700px;
}
.docs-prose li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.docs-prose strong { color: rgba(255,255,255,.85); font-weight: 600; }
.docs-prose code {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12.5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 1px 6px;
  color: rgba(255,255,255,.8);
}

.docs-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) { .docs-card-grid { grid-template-columns: 1fr; } }

.docs-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 18px 20px;
  background: rgba(255,255,255,.015);
  display: block;
  transition: border-color 0.15s, background 0.15s;
}
.docs-card:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.035); }

.docs-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.docs-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}

.docs-toc {
  padding: 28px 20px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,.08);
}

.docs-toc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 12px;
}

.docs-toc-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
}
.docs-toc-link:hover { color: #fff; }
.docs-toc-link.active { color: #fff; border-left-color: #fff; font-weight: 500; }

.docs-feedback {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.docs-feedback-label {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}
.docs-feedback-row { display: flex; gap: 8px; }
.docs-feedback-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, transform .15s;
}
.docs-feedback-btn:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.05); }
.docs-feedback-btn.sel { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); transform: scale(1.08); }
.docs-feedback-thanks {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-top: 10px;
  display: none;
}
.docs-feedback-thanks.show { display: block; }

.docs-last-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.32);
}

.docs-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.docs-footer a { color: rgba(255,255,255,.45); }
.docs-footer a:hover { color: #fff; }
.docs-footer-links { display: flex; gap: 16px; }
