.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 34px;
  padding: 30px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
  background:
    linear-gradient(115deg, rgba(78, 140, 255, 0.07), transparent 52%),
    var(--hb-surface);
}

.help-hero > div {
  max-width: 700px;
}

.help-hero h1 {
  margin-bottom: 11px;
}

.help-hero p {
  margin: 0 0 20px;
  color: var(--hb-text-soft);
}

.help-jump {
  display: grid;
  gap: 0;
  padding: 9px 17px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: rgba(7, 16, 26, 0.7);
}

.help-jump strong,
.help-jump a {
  display: block;
  padding: 9px 0;
}

.help-jump strong {
  color: var(--hb-text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-jump a {
  border-top: 1px solid var(--hb-line);
  color: var(--hb-text-soft);
  font-size: 12px;
  text-decoration: none;
}

.help-jump a::after {
  content: "↓";
  float: right;
  color: var(--hb-text-muted);
}

.help-jump a:hover {
  color: var(--hb-cyan);
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  overflow: hidden;
  background: var(--hb-surface);
}

.explain-card {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--hb-line);
  border-bottom: 1px solid var(--hb-line);
}

.explain-card:nth-child(3n) {
  border-right: 0;
}

.explain-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.explain-card__index {
  color: var(--hb-cyan);
  font-family: var(--hb-mono);
  font-size: 10px;
}

.explain-card h3 {
  margin: 16px 0 7px;
  font-size: 15px;
}

.explain-card p,
.scheme-grid p,
.check-steps p,
.endpoint-group__head p,
.auth-note p,
.help-contact p {
  margin: 0;
  color: var(--hb-text-soft);
  font-size: 12px;
}

code,
pre {
  font-family: var(--hb-mono);
}

:not(pre) > code {
  padding: 1px 4px;
  border: 1px solid rgba(52, 81, 109, 0.55);
  border-radius: 4px;
  color: #c9eaf5;
  background: #081521;
  font-size: 0.9em;
}

.scheme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.scheme-grid article {
  padding: 19px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface-soft);
}

.scheme-grid h3 {
  margin: 13px 0 7px;
  font-size: 14px;
}

.check-steps {
  counter-reset: help-check-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-steps li {
  counter-increment: help-check-step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
}

.check-steps__number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--hb-line-strong);
  border-radius: 8px;
  color: var(--hb-cyan);
  background: var(--hb-surface-soft);
  font-family: var(--hb-mono);
  font-size: 11px;
}

.check-steps__number::before {
  content: counter(help-check-step);
}

.check-steps strong {
  display: block;
  margin: 1px 0 6px;
  font-size: 13px;
}

.troubleshooting-actions {
  margin-top: 14px;
}

.api-section {
  min-width: 0;
  scroll-margin-top: 90px;
}

.api-section .endpoint-group,
.api-section .endpoint-group > div,
.api-section .table-wrap {
  min-width: 0;
}

.api-section .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.api-heading {
  align-items: center;
}

.api-base {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 10px;
  min-width: 310px;
  padding: 11px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface-soft);
}

.api-base > span {
  grid-column: 1 / -1;
  color: var(--hb-text-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.api-base code {
  min-width: 0;
  color: var(--hb-text-soft);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.api-base .copy-btn {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 10px;
}

.api-params {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  overflow: hidden;
  background: var(--hb-surface-soft);
}

.api-params div {
  padding: 13px;
  border-right: 1px solid var(--hb-line);
}

.api-params div:last-child {
  border-right: 0;
}

.api-params code,
.api-params span {
  display: block;
}

.api-params code {
  margin-bottom: 4px;
  color: var(--hb-cyan);
  font-size: 11px;
}

.api-params span {
  color: var(--hb-text-muted);
  font-size: 10px;
}

.endpoint-group {
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
}

.endpoint-group__head {
  margin-bottom: 13px;
}

.endpoint-group__head h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.endpoint-table {
  min-width: 700px;
  font-size: 11px;
}

.endpoint-table th:first-child,
.endpoint-table td:first-child {
  width: 76px;
}

.endpoint-table th:nth-child(2),
.endpoint-table td:nth-child(2) {
  width: 260px;
}

.endpoint-table td:last-child {
  color: var(--hb-text-soft);
}

.endpoint-table code {
  color: #c8eafa;
  font-size: 11px;
}

.method {
  display: inline-block;
  min-width: 40px;
  padding: 3px 5px;
  border: 1px solid rgba(69, 201, 242, 0.3);
  border-radius: 5px;
  color: #a9eafb;
  background: rgba(69, 201, 242, 0.07);
  font-family: var(--hb-mono);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.method--post {
  border-color: rgba(241, 188, 98, 0.32);
  color: #f6d59c;
  background: rgba(241, 188, 98, 0.07);
}

.method--auth {
  border-color: rgba(126, 164, 255, 0.34);
  color: #b8cbff;
  background: rgba(78, 140, 255, 0.08);
}

.endpoint-group--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.endpoint-group--split .endpoint-table {
  min-width: 580px;
}

.auth-note {
  align-self: start;
  padding: 19px;
  border: 1px solid var(--hb-line-strong);
  border-radius: var(--hb-radius);
  background: var(--hb-surface-soft);
}

.auth-note h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.auth-note p + p {
  margin-top: 10px;
}

.action-paths {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.action-paths li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.action-paths code {
  min-width: 0;
  color: var(--hb-text-soft);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.auth-note .button-row {
  margin-top: 15px;
}

.code-examples {
  display: grid;
  gap: 10px;
}

.code-examples article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
}

.code-examples article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hb-line);
}

.code-examples article > div strong {
  font-size: 11px;
}

.code-examples .copy-btn {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 10px;
}

.code-examples pre {
  max-width: 100%;
  margin: 0;
  padding: 15px;
  overflow-x: auto;
  color: #c5eafa;
  background: #081521;
  font-size: 11px;
  white-space: pre;
}

.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--hb-line-strong);
  border-radius: var(--hb-radius);
  background: linear-gradient(100deg, rgba(69, 201, 242, 0.055), transparent 60%), var(--hb-surface);
}

.help-contact h2 {
  margin: 0 0 7px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.help-contact > div:first-child {
  max-width: 720px;
}

@media (max-width: 920px) {
  .help-hero,
  .endpoint-group--split {
    grid-template-columns: 1fr;
  }

  .help-jump {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .help-jump strong {
    grid-column: 1 / -1;
  }

  .help-jump a {
    padding-right: 12px;
    border-right: 1px solid var(--hb-line);
  }

  .help-jump a:last-child {
    border-right: 0;
  }

  .help-jump a::after {
    display: none;
  }

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

  .explain-card:nth-child(3n) {
    border-right: 1px solid var(--hb-line);
  }

  .explain-card:nth-child(2n) {
    border-right: 0;
  }

  .explain-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--hb-line);
  }

  .explain-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .scheme-grid,
  .check-steps {
    grid-template-columns: 1fr;
  }

  .api-heading,
  .help-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-base {
    width: 100%;
    min-width: 0;
  }

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

  .api-params div:nth-child(2) {
    border-right: 0;
  }

  .api-params div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hb-line);
  }
}

@media (max-width: 520px) {
  .help-hero {
    padding: 22px;
  }

  .help-jump,
  .explain-grid {
    grid-template-columns: 1fr;
  }

  .help-jump a {
    border-right: 0;
  }

  .explain-card,
  .explain-card:nth-child(2n),
  .explain-card:nth-child(3n),
  .explain-card:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--hb-line);
  }

  .explain-card:last-child {
    border-bottom: 0;
  }

  .endpoint-group {
    padding: 15px;
  }

  .api-params {
    grid-template-columns: 1fr;
  }

  .api-params div,
  .api-params div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--hb-line);
  }

  .api-params div:last-child {
    border-bottom: 0;
  }
}

@media (forced-colors: active) {
  .check-steps__number {
    border-color: CanvasText;
    color: CanvasText;
    background: Canvas;
  }
}
