/* Страница «Справка» (help.html, собирается tools/build_help.py). Основа — about.css. */
.help-main { background: #fffdf9; padding-bottom: 72px; }
.help { color: #241b16; }
.help-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help-head { max-width: 860px; padding: 8px 0 28px; }
.help-head h1 { margin: 6px 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
.help-intro { margin: 0 0 22px; max-width: 680px; color: #4f4740; font-size: 18px; line-height: 1.55; }
.help-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: #f1ebe0; }
.help-tabs a { display: inline-block; padding: 11px 24px; border-radius: 999px; background: none; color: #241b16; font-size: 16px; font-weight: 700; text-decoration: none; }
.help-tabs a[aria-selected="true"] { background: #241b16; color: #fff; }
.help-tabs a:focus-visible, .help-tools button:focus-visible, .help-q summary:focus-visible, .help-share button:focus-visible, .help-search input:focus-visible { outline: 3px solid #d6a66c; outline-offset: 2px; }
.help-sub { margin: 16px 0 0; color: #625e58; font-size: 15px; }
.help-sub a { color: #7a4f12; text-underline-offset: 3px; }
.help-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.help-search { flex: 1 1 320px; max-width: 520px; }
.help-search input { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1px solid #d9cfbf; border-radius: 12px; background: #fff; color: #241b16; font: inherit; font-size: 16px; }
.help-tools button { padding: 12px 16px; border: 1px solid #d9cfbf; border-radius: 12px; background: #fff; color: #241b16; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.help-tools button:hover { border-color: #b89b7d; }

.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; align-items: start; }
.help-toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding-right: 8px; }
.help-toc-title { margin: 0 0 10px; color: #71685e; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.help-toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.help-toc-list li { counter-increment: toc; }
.help-toc-list a { display: block; padding: 8px 10px; border-radius: 8px; color: #241b16; font-size: 15px; line-height: 1.3; text-decoration: none; }
.help-toc-list a::before { content: counter(toc) ". "; color: #a47e42; font-weight: 700; }
.help-toc-list a:hover { background: #f1ebe0; }
.help-toc-list li[hidden] { display: none; }

.help-sec { margin: 0 0 56px; scroll-margin-top: 20px; }
.help-sec[hidden] { display: none; }
.help-sec > h2 { margin: 0 0 10px; font-size: clamp(25px, 3.4vw, 34px); line-height: 1.15; }
.help-lead { margin: 0 0 18px; color: #4f4740; font-size: 17px; line-height: 1.55; }
.help-sec > h3 { margin: 30px 0 4px; color: #71685e; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.help-q { margin: 10px 0; border: 1px solid #e5ded2; border-radius: 14px; background: #fff; scroll-margin-top: 20px; }
.help-q[hidden] { display: none; }
.help-q[open] { border-color: #cdbba0; box-shadow: 0 10px 28px rgba(32, 25, 20, .06); }
.help-q summary { position: relative; padding: 16px 52px 16px 18px; font-size: 17px; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::marker { content: ''; }
.help-q summary::after { content: '+'; position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: #a47e42; font-size: 24px; font-weight: 400; line-height: 1; }
.help-q[open] summary::after { content: '−'; }
.help-a { padding: 0 18px 18px; font-size: 16px; line-height: 1.65; }
.help-a > :first-child { margin-top: 0; }
.help-a p { margin: 0 0 12px; }
.help-a h4 { margin: 20px 0 6px; font-size: 16px; }
.help-a ul, .help-a ol { margin: 0 0 12px; padding-left: 22px; }
.help-a li { margin: 4px 0; }
.help-steps { list-style: none; padding-left: 0; counter-reset: step; }
.help-steps > li { position: relative; margin: 8px 0; padding-left: 38px; 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-radius: 50%; background: #241b16; color: #fff; font-size: 13px; font-weight: 700; }
.help-tip, .help-note { margin: 14px 0; padding: 12px 16px; border-left: 4px solid #d6a66c; border-radius: 0 10px 10px 0; background: #fbf6ec; }
.help-note { border-left-color: #5b8db8; background: #eef3f8; }
.help-a a { color: #7a4f12; text-underline-offset: 3px; }
.ui { display: inline-block; padding: 0 7px; border-radius: 6px; background: #f1ebe0; font-weight: 650; white-space: nowrap; }
code { padding: 1px 6px; border-radius: 5px; background: #f1ebe0; font: 600 .92em ui-monospace, Menlo, monospace; }
kbd { padding: 1px 6px; border: 1px solid #cfc4b2; border-radius: 5px; background: #fff; font: 600 .9em system-ui, sans-serif; }
.help-table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 15px; }
.help-table th, .help-table td { padding: 9px 12px; border: 1px solid #e5ded2; text-align: left; vertical-align: top; }
.help-table th { background: #f6f2e9; }
.help-share { margin: 16px 0 0; }
.help-share button { padding: 6px 12px; border: 1px solid #d9cfbf; border-radius: 8px; background: none; color: #625e58; font: inherit; font-size: 13px; cursor: pointer; }
.help-share button:hover { border-color: #b89b7d; color: #241b16; }
.help-empty { padding: 28px; border: 1px dashed #d9cfbf; border-radius: 14px; color: #625e58; text-align: center; }
.help-foot { margin-top: 24px; padding: 26px 28px; border-radius: 16px; background: #f6f2e9; }
.help-foot h2 { margin: 0 0 8px; font-size: 22px; }
.help-foot p { margin: 0; line-height: 1.6; }
.help-foot a { color: #7a4f12; }
mark.help-hit { background: #f4dca8; color: inherit; border-radius: 3px; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help-toc { position: static; max-height: none; overflow: visible; padding: 0; }
  .help-toc-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .help-toc-list li { flex: none; }
  .help-toc-list a { padding: 9px 14px; border: 1px solid #e5ded2; border-radius: 999px; background: #fff; white-space: nowrap; }
  .help-toc-title { display: none; }
}
@media (max-width: 560px) {
  .help-head h1 { font-size: 30px; }
  .help-intro { font-size: 16px; }
  .help-tabs { display: flex; }
  .help-tabs a { flex: 1; padding: 11px 12px; text-align: center; }
  .help-q summary { padding: 15px 46px 15px 14px; font-size: 16px; }
  .help-a { padding: 0 14px 16px; }
  .help-table { display: block; overflow-x: auto; }
}
@media print {
  .help-tabs, .help-tools, .help-toc, .help-share, .help-foot { display: none; }
  .help-layout { display: block; }
  .help-q { break-inside: avoid; box-shadow: none; }
}
