/* Страница «Помощь». Токены и шрифты — из styles.css. */
.help-page { max-width: 1120px; padding-top: 34px; padding-bottom: 88px; }

.help-head { max-width: 72ch; margin-bottom: 32px; }
.help-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .012em;
  text-transform: uppercase;
}
.help-lead { margin: 10px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }

.help-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.help-toc {
  position: sticky;
  top: calc(var(--header-height, 68px) + 20px);
}
.help-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.help-toc a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--border-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.help-toc a:hover { color: var(--text); border-left-color: var(--border-strong); }

.help-layout > * { min-width: 0; }
.help-content { display: grid; gap: 14px; min-width: 0; }
.help-section {
  scroll-margin-top: calc(var(--header-height, 68px) + 16px);
  padding: 26px 28px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--panel);
}
.help-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
}
.help-section h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 650; }
.help-section p,
.help-section li { max-width: 72ch; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.help-section p { margin: 0 0 10px; }
.help-section p:last-child { margin-bottom: 0; }
.help-section b { color: var(--text); font-weight: 600; }
.help-section a:not(.help-button) {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.help-section code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}
.help-muted { color: var(--muted) !important; font-size: 14px !important; }

/* Numbered steps: real sequences only. */
.help-steps { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: step; }
.help-steps li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}
.help-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.help-steps:last-child { margin-bottom: 0; }

.help-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.help-list li::marker { color: var(--accent); }

.help-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgb(var(--accent-rgb) / .5);
  border-radius: 8px;
  background: rgb(var(--accent-rgb) / .1);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.help-button:hover { background: rgb(var(--accent-rgb) / .18); }

.help-table-wrap { margin: 14px 0 6px; overflow-x: auto; }
.help-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 15px; }
.help-table th, .help-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.help-table thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.help-table tbody th { color: var(--text); font-weight: 600; }
.help-table td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.help-table tbody tr:last-child > * { border-bottom: 0; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 18px; }
  .help-toc { position: static; }
  .help-toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .help-toc a {
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
  }
  .help-toc a:hover { border-color: var(--border-strong); }
}
@media (max-width: 560px) {
  .help-page { padding-top: 22px; }
  .help-title { font-size: 30px; }
  .help-section { padding: 20px 16px; }
}

/* FAQ: every answer is visible at once, so the page never changes height. */
.help-faq { display: grid; gap: 18px; margin: 0; }
.help-faq > div { padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.help-faq > div:last-child { padding-bottom: 0; border-bottom: 0; }
.help-faq dt { color: var(--text); font-size: 16.5px; font-weight: 650; line-height: 1.4; }
.help-faq dd { max-width: 72ch; margin: 6px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.help-faq a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
