body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172026;
  background: #f7f8f6;
  line-height: 1.5;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 28px;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

a {
  color: #0b5cad;
}

a + a {
  margin-left: 12px;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid #d9dfd7;
  border-radius: 6px;
  background: #ffffff;
}

[id] {
  scroll-margin-top: 18px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #65727a;
  font-size: 14px;
}

.breadcrumbs a {
  color: #33424a;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #0b5cad;
  text-decoration: underline;
}

.topbar p {
  margin: 0;
  color: #33424a;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d9dfd7;
  border-radius: 6px;
  background: #ffffff;
}

.lang-switch a {
  border: 0;
  border-radius: 4px;
  padding: 6px 10px;
  background: transparent;
  color: #33424a;
  cursor: pointer;
  text-decoration: none;
}

[data-page-lang="ru"] .lang-switch [data-set-lang="ru"],
[data-page-lang="en"] .lang-switch [data-set-lang="en"] {
  background: #172026;
  color: #ffffff;
}

[data-page-lang="ru"] [data-lang="en"],
[data-page-lang="en"] [data-lang="ru"] {
  display: none;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 26px;
}

.summary p {
  margin: 0;
}

.fold {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #d9dfd7;
  border-radius: 6px;
  background: #ffffff;
}

.fold-content {
  margin-top: 8px;
}

.commands {
  display: grid;
  grid-template-columns: minmax(420px, 1.4fr) minmax(280px, 1fr);
  gap: 8px 22px;
}

.commands dt {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.commands dd {
  margin: 0;
  color: #33424a;
}

.release-grid,
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.install-grid,
.setup-grid {
  display: block;
}

.install-option + .install-option,
.setup-step + .setup-step {
  margin-top: 18px;
}

.setup-step {
  border: 1px solid #e3e7e1;
  border-radius: 6px;
  background: #ffffff;
}

.setup-step summary {
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  list-style-position: inside;
}

.setup-step[open] summary {
  border-bottom: 1px solid #e3e7e1;
}

.setup-step > p,
.setup-step > pre,
.setup-step > table {
  margin-left: 14px;
  margin-right: 14px;
}

.setup-step > p:first-of-type {
  margin-top: 14px;
}

.setup-step > p:last-child,
.setup-step > pre:last-child,
.setup-step > table:last-child {
  margin-bottom: 14px;
}

.release-grid ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.release-grid li + li {
  margin-top: 6px;
}

.field-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  table-layout: fixed;
}

.field-table th,
.field-table td {
  padding: 8px 0;
  border-top: 1px solid #e3e7e1;
  text-align: left;
  vertical-align: top;
}

.field-table th {
  width: 180px;
}

@media (max-width: 760px) {
  main {
    padding: 32px 16px;
  }

  .topbar,
  .release-grid,
  .install-grid {
    display: block;
  }

  .lang-switch {
    margin-top: 14px;
  }

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

  .commands dd {
    margin-bottom: 10px;
  }

  .field-table,
  .field-table tbody,
  .field-table tr,
  .field-table th,
  .field-table td {
    display: block;
    width: 100%;
  }

  .field-table td {
    padding-top: 2px;
  }
}
