/* Помощь: список инструкций по ролям и пошаговые страницы */

.help-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.help-list { list-style: none; padding: 0; margin: 0; }
.help-list li { border-bottom: 1px solid var(--line); }
.help-list a, .help-list b { display: block; padding: 12px 0; }
.help-list a { font-weight: 400; text-decoration: none; }
.help-list a:hover { text-decoration: underline; }
.help-contact { margin-top: 40px; max-width: 65ch; }
@media (max-width: 900px) { .help-sections { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Одна колонка: шаги читаются подряд, список соседних инструкций — под ними */
.help-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 760px; }
.help-guide { max-width: 720px; }
.help-guide .lead { font-size: 18px; margin: 0 0 8px; max-width: 65ch; }
.steps { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--line-strong); }
.steps > li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.steps h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 8px; }
.steps h2 span { color: var(--red); }
.steps p { margin: 0; max-width: 65ch; }
.steps p + p, .steps p + ul, .steps ul + p { margin-top: 10px; }
.steps ul { margin: 10px 0 0; padding-left: 20px; max-width: 65ch; }
.steps li li + li { margin-top: 6px; }
.help-note { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 65ch; }

.help-pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; }
.help-pager a { font-weight: 400; max-width: 46%; text-decoration: none; }
.help-pager a:hover { text-decoration: underline; }
.help-pager a span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.help-pager .next { text-align: right; margin-left: auto; }

.help-aside h2 { font-size: 20px; margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--line-strong); }
.help-aside .help-list { font-size: 15px; margin-bottom: 16px; }
.help-aside .help-list b { color: var(--red); }

@media (max-width: 900px) {
  .help-page { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 600px) {
  .help-pager { flex-direction: column; gap: 14px; }
  .help-pager a { max-width: none; }
  .help-pager .next { text-align: left; margin-left: 0; }
}

/* Печать и PDF-памятка: только шаги */
@media print {
  .topbar, .footer, .cookie-bar, .help-aside, .help-pager, .chevrons { display: none !important; }
  .page-head { background: none; color: var(--ink); }
  .page-head .container { padding: 0 0 8px; }
  .page-head p { display: none; }
  .container.section { padding: 0; }
  .steps > li { break-inside: avoid; }
}
