:root {
  --background: #0b1f31;
  --header: #062033;
  --panel: #102b42;
  --panel-soft: #0d263b;
  --text: #e9f4fb;
  --muted: #a6bccb;
  --line: #24485f;
  --line-strong: #3d6f8d;
  --link: #4db7e8;
  --cyan: #22c7ef;
  --blue: #0962a8;
  --white: #ffffff;
  --terminal: #02080d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
  text-decoration-thickness: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-height: 58px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand img,
.index-logo,
.hero-logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-controls {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-end;
  font-size: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.lang-switch select {
  height: 34px;
  padding: 4px 8px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
}

.nav a,
.page-index a {
  color: var(--text);
  text-decoration: none;
}

.nav a {
  display: block;
  padding: 19px 12px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-radius: 0;
}

.nav a:hover,
.nav a[aria-current] {
  background: #0e314c;
  border-color: var(--line);
  color: var(--white);
}

.page-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 880px);
  gap: 26px;
  width: min(1220px, calc(100% - 48px));
  margin: 28px auto;
}

.page-index,
.content-panel {
  box-shadow: none;
}

.page-index {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 0;
}

.index-logo {
  width: 72px;
  height: 72px;
  margin: 0 0 16px;
  border: 1px solid #7195aa;
}

.index-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.page-index a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.page-index a[aria-current] {
  color: var(--link);
  font-weight: 700;
}

.content-panel {
  min-height: 590px;
  padding: clamp(26px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
}

.status {
  display: grid;
  gap: 6px;
  max-width: 520px;
  color: var(--muted);
}

.content {
  opacity: 0;
}

.content:focus {
  outline: none;
}

.content.is-ready {
  opacity: 1;
  transition: opacity 120ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 30px;
  align-items: center;
}

.hero-logo {
  width: 170px;
  height: 170px;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.lead {
  color: var(--muted);
  font-size: 20px;
}

h1,
h2,
h3,
p,
ul,
dl {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  margin: 30px 0 12px;
  font-size: 20px;
}

p {
  max-width: 700px;
  margin-bottom: 18px;
}

ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

li {
  margin: 7px 0;
}

.statement {
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.small,
.note {
  color: var(--muted);
  font-size: 15px;
}

.note {
  padding: 15px 17px;
  background: #0b2235;
  border-left: 3px solid var(--cyan);
  border-radius: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 6px;
}

.plain-table {
  display: grid;
  margin: 28px 0 8px;
  border: 1px solid var(--line);
}

.plain-table div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
}

.plain-table div:last-child {
  border-bottom: 0;
}

.plain-table strong {
  color: var(--white);
}

.plain-table span {
  color: var(--muted);
}

.card {
  min-height: 132px;
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 0;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.card-link:hover {
  border-color: var(--line-strong);
}

.download-grid {
  display: grid;
  gap: 16px;
  margin: 30px 0 24px;
}

.download-card {
  padding: 20px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 0;
}

.download-card h3 {
  margin-top: 0;
}

.download-card p {
  color: var(--muted);
  font-size: 15px;
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 36px;
}

.doc-tabs a {
  padding: 7px 10px;
  color: var(--text);
  background: #0b2235;
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.doc-tabs a:hover {
  border-color: var(--line-strong);
}

.doc-section {
  position: relative;
  margin: 0 0 34px;
  padding: 24px;
  background: #0b2235;
  border: 1px solid var(--line);
  border-radius: 0;
}

.doc-section h3 {
  margin-top: 0;
}

.doc-section h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.section-label span {
  display: inline-block;
  min-width: 34px;
  padding: 2px 6px;
  color: var(--text);
  background: #17415d;
  border: 1px solid var(--line-strong);
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-align: center;
}

.split,
.command-list {
  display: grid;
  gap: 14px;
}

.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

pre {
  overflow-x: auto;
  margin: 14px 0 22px;
  padding: 16px;
  background: var(--terminal);
  color: #eaf9ff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
}

code {
  font-family: "Courier New", monospace;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-bottom: 28px;
}

.info-list div {
  padding: 14px;
  background: #0b2235;
  border: 1px solid var(--line);
  border-radius: 0;
}

dt {
  color: var(--muted);
  font-size: 14px;
}

dd {
  margin: 0;
  font-family: "Courier New", monospace;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a + a {
  margin-left: 12px;
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav {
    justify-content: flex-start;
  }

  .header-controls {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .page-shell {
    display: block;
    width: min(100% - 32px, 760px);
    margin: 22px auto;
  }

  .page-index {
    position: static;
    margin-bottom: 18px;
  }

  .content-panel {
    min-height: 440px;
    padding: 28px 22px;
    border-radius: 0;
  }

  .hero,
  .cards,
  .split,
  .plain-table div,
  .info-list {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .site-footer {
    width: min(100% - 32px, 760px);
  }
}
