:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666666;
  --muted-2: #888888;
  --border: #eaeaea;
  --soft: #f5f5f5;
  --soft-2: #fafafa;
  --link: #0a0a0a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --radius: 14px;
  --max: 980px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Layout with sidebar */
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  padding: 12px 0;
  border-right: 1px solid var(--border);
}

.sidebar-backdrop {
  display: none;
}

.content-area {
  min-width: 0;
  padding: 20px 0;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.breadcrumb a {
  color: var(--muted);
  padding: 0;
  background: transparent;
}

.breadcrumb a:hover {
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
}

.sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin: 20px 0;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin: 6px 0;
}

.sidebar-list a {
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
}

.sidebar-list a:hover {
  background: var(--soft);
  color: var(--fg);
  text-decoration: none;
}

.sidebar-list a.is-active {
  background: var(--soft);
  color: var(--fg);
  font-weight: 600;
}

.sidebar-group {
  margin: 8px 0;
}

.sidebar-sublist {
  list-style: none;
  padding: 4px 0 6px 12px;
  margin: 0;
  border-left: 1px solid var(--border);
}

.sidebar-sublist.sidebar-root {
  margin-top: 6px;
}

.sidebar-sublist li {
  margin: 4px 0;
}

.sidebar-sublist a {
  font-size: 13px;
  color: var(--muted);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, .8);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--soft-2), var(--soft));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo svg {
  width: 16px;
  height: 16px;
}

.logo img {
  width: 16px;
  height: 16px;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--soft-2);
  color: var(--fg);
  box-shadow: var(--shadow);
  font-size: 18px;
}

.nav-toggle:hover {
  background: var(--soft);
}

nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--muted);
}

nav a:hover {
  background: var(--soft);
  color: var(--fg);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 42px 0 28px;
  text-align: center;
}

.kicker:first-of-type {
  margin-top: 0;
  font-size: 13px;
}

.kicker:first-of-type .dot {
  margin-top: 5px;
}

.kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--soft-2);
  border-radius: 20px;
  font-size: 16px;
  color: var(--muted);
  box-shadow: var(--shadow);
  margin-top: 30px;
  line-height: 1.4;
}

body.is-home .kicker {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0a0a0a;
  opacity: .9;
  margin-top: 7px;
  flex: 0 0 8px;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 20px 0;
}

.subhead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 60px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

body.is-home .cta-row {
  justify-content: center;
}

body.is-home #support-cta .section-title,
body.is-home #support-cta .section-subtitle,
body.is-home #support-cta .card,
body.is-home #support-cta .card p {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.btn:hover {
  background: var(--soft);
  text-decoration: none;
}

.btn.primary {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.btn.primary:hover {
  background: #111;
}

.btn .icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Layout blocks */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: left;
}

@media (max-width: 900px) {
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: none;
  border-color: #dcdcdc;
}

.grid-3 .card {
  grid-column: auto;
}

.card.soft {
  background: var(--soft-2);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-size: 1em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9em;
}

.card h3,
.card h3 a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Sections */
section,
.section {
  padding-top: 0;
}

body.is-home section,
body.is-home .section {
  padding-top: 80px;
}

body.is-home section:first-of-type {
  border-top: none;
}

.section-title {
  font-size: 1.5em;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

body.is-page .section-title {
  margin: 30px 0 20px;
}

.section-subtitle {
  margin-bottom: 2em;
  color: var(--muted);
}

.roadmap {
  position: relative;
}

.roadmap-listing .roadmap-item {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 50px;
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}

.roadmap-listing .roadmap-item:first-child {
  border-top: none;
  padding-top: 0 !important;
}

.roadmap-listing .roadmap-item:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}

.roadmap-left {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: start;
  padding-left: 0;
}


.roadmap-left h3 {
  margin: 0 0 8px;
  font-size: 1.05em;
}

.roadmap-left p {
  margin: 0;
  color: var(--muted);
}

.roadmap-right ul {
  margin: 0 0 12px;
}

.roadmap-list {
  list-style: none;
  padding: 0;
}

.roadmap-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  line-height: 2;
}

.roadmap-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fg);
  opacity: 0.9;
  flex: 0 0 auto;
}

.roadmap-list .dot.dot-outline {
  background: transparent;
  border: 1px solid var(--fg);
  opacity: 0.6;
}

.roadmap-right blockquote {
  margin: 12px 0 0;
}

.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 10px 0;
}

.publish-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 28px;
  align-items: stretch;
}

.publish-cards {
  display: grid;
  gap: 18px;
}

.publish-item {
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.publish-item h3 {
  margin: 0 0 8px;
}

.publish-item p {
  margin: 0;
  color: var(--muted);
}

.publish-video-card {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  display: flex;
  align-items: center;
}

.publish-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
  background: #000;
}

.how-emoji {
  font-size: 18px;
  line-height: 1;
  margin-top: 4px;
  flex: 0 0 auto;
}

.how-step {
  position: relative;
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .publish-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-listing .roadmap-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .roadmap-left {
    position: static;
  }
}

.lead {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 80ch;
}

.cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.col-7 {
  grid-column: span 7;
}

.col-5 {
  grid-column: span 5;
}

@media (max-width: 900px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .col-7,
  .col-5 {
    grid-column: span 12;
  }

  nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 88vw);
    padding: 20px 16px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 60;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 55;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: all;
  }
}

ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

li {
  margin: 8px 0;
}

strong {
  color: var(--fg);
}

/* Code-ish block */
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
  box-shadow: var(--shadow);
  color: #111;
  line-height: 1.5;
}

.code .muted {
  color: var(--muted-2);
}

.muted {
  color: var(--muted);
}

/* Content */
.content {
  max-width: 76ch;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  letter-spacing: -0.02em;
}

.content h2 {
  margin-top: 28px;
}

.content p {
  color: var(--fg);
}

.content a {
  color: #0b57d0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.content a:hover {
  color: #0845a6;
  text-decoration-thickness: 2px;
}

.content img {
  max-width: 100%;
  border-radius: 12px;
}

.content pre {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}

.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--border);
  background: var(--soft-2);
  color: var(--muted);
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--fg);
  background: var(--soft-2);
}

.page-hero {
  padding: 0;
}

.page-hero h1 {
  margin: 0 0 20px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.mode-pill.essay {
  background: #f6f1ff;
  border-color: #e7dbff;
  color: #4b2a83;
}

.card-meta {
  margin-bottom: 8px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Search */
.np-search {
  display: inline-flex;
  align-items: center;
}

.np-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--soft-2);
  color: var(--fg);
  box-shadow: var(--shadow);
}

.np-search-trigger:hover {
  background: var(--soft);
  text-decoration: none;
}

.np-search-dialog {
  width: min(720px, 92vw);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.np-search-dialog::backdrop {
  background: rgba(0, 0, 0, .35);
}

.np-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 40;
}

.np-search-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.np-search-form input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.np-search-form button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.np-search-form button:hover,
.np-search-form button:focus-visible {
  border-color: var(--border);
  background: var(--soft-2);
}

.np-search-close {
  background: var(--soft-2);
}

.np-search-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.np-search-results {
  margin-top: 8px;
}

.np-search-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.np-search-item:hover,
.np-search-item.is-selected {
  border-color: var(--border);
  background: var(--soft-2);
}

.np-search-item-title {
  font-weight: 600;
}

.np-search-item-snippet {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.np-search-all {
  display: inline-flex;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Search page */
.np-search-page-form {
  margin: 14px 0 10px;
}

.np-search-page-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
}

.search-page .np-search-status {
  margin: 4px 0 0;
}

.search-page .np-search-results {
  display: none;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}

.search-page .np-search-results.has-items {
  display: block;
}

.np-search-summary {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.np-search-page-results {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.np-search-page-results li {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.np-search-page-results li a {
  font-weight: 600;
}

.np-search-page-results li p {
  margin: 6px 0 0;
  color: var(--muted);
}

.np-search-empty {
  color: var(--muted);
}

.np-search-more {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--soft-2);
}

/* Footer */
footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--soft-2);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
}

.footer-copy {
  padding-bottom: 20px;
  margin: 0;
  text-align: center;
}

/* Personal-style header + mobile nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, .8);
  border-bottom: 1px solid var(--border);
  z-index: 1200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}

.home-button {
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: #fff;
}

.home-button:hover {
  text-decoration: none;
  background: var(--soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch a:hover {
  text-decoration: none;
  background: var(--soft);
  color: var(--fg);
}

.lang-switch a.is-active {
  background: var(--fg);
  color: #fff;
}

.mobile-lang-switch {
  align-self: flex-start;
  margin-bottom: 8px;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-nav a {
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
}

.home-nav a:hover {
  background: var(--soft);
  color: var(--fg);
  text-decoration: none;
}

.home-docs-link {
  font-size: 0.9rem;
  color: var(--fg);
}

.home-docs-link:hover {
  text-decoration: none;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social .footer-telegram,
.header-social .footer-github,
.header-social .footer-vcru {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
}

@media (max-width: 820px) {
  .header-social,
  .header-social.footer-links {
    display: none;
  }
  .site-header .header-actions > .footer-github {
    display: none;
  }
  .home-nav {
    display: none;
  }
}

.icon-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
}

.icon {
  font-size: 1rem;
}

.icon-button svg,
.icon-button span {
  display: block;
  line-height: 1;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-open {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

@media (min-width: 821px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  opacity: 0;
  transition: opacity 200ms ease;
}

.mobile-nav-inner {
  position: relative;
  height: 100%;
  background: #fff;
  padding: 14px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 2;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.mobile-nav.is-open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav.is-open .mobile-nav-inner {
  transform: translateX(0);
}

.mobile-nav-links {
  margin-bottom: 10px;
}

.mobile-nav-links,
.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.05rem;
}

.mobile-nav-links a.is-active {
  font-weight: 600;
}

.mobile-docs-nav {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  touch-action: pan-y;
  padding-right: 4px;
}

.mobile-docs-nav .sidebar-list a {
  display: inline-flex;
}

.mobile-docs-nav .sidebar-group {
  margin: 10px 0;
}

.mobile-nav-footer {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-telegram,
.footer-github,
.footer-vcru {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
}

html.nav-locked,
body.nav-locked {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 820px) {
  .mobile-nav-inner {
    align-items: center;
    text-align: center;
  }

  .mobile-nav-links,
  .mobile-nav-footer {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .mobile-nav-links a {
    justify-content: center;
  }

  .mobile-docs-nav .sidebar-list,
  .mobile-docs-nav .sidebar-group,
  .mobile-docs-nav .sidebar-sublist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-docs-nav {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .mobile-docs-nav .sidebar-list a {
    justify-content: flex-start;
    text-align: left;
  }

  .mobile-docs-nav .sidebar-sublist {
    border-left: 0;
    padding-left: 0;
  }
}
