/* Раздел «Инструкции» (/help/). Основа — /styles.css лендинга. */
.wrap.narrow { max-width: 760px; }
.help-page main { min-height: 60vh; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: #c3cbd8; overflow-wrap: anywhere; }

/* список статей */
.help-hero { padding: clamp(28px, 6vw, 64px) 0 8px; }
.help-hero h1, .article h1 { text-align: left; margin: 16px 0 0; font-size: clamp(30px, 6vw, 46px); line-height: 1.12; overflow-wrap: break-word; hyphens: auto; }
.help-hero .lead, .article .lead { color: var(--muted); font-size: clamp(16.5px, 2.2vw, 19px); margin-top: 14px; }
.search { display: block; margin-top: 24px; }
.search input { width: 100%; min-height: 52px; padding: 12px 18px 12px 46px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--card) url("/help/img/search.svg") no-repeat 16px 50% / 20px; border: 1px solid var(--line); outline: none; -webkit-appearance: none; appearance: none; }
.search input:focus { border-color: rgba(196, 241, 53, .5); box-shadow: 0 0 0 3px rgba(196, 241, 53, .15); }
.help-index { padding-bottom: clamp(48px, 7vw, 80px); }
.h-group { padding: 30px 0 0; }
.h-group h2 { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin: 0 0 12px; }
.h-list { display: grid; gap: 10px; }
.h-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.h-card:hover { background: var(--card-hover); border-color: rgba(196, 241, 53, .3); }
.h-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(196, 241, 53, .1); border: 1px solid rgba(196, 241, 53, .22); }
.h-txt { min-width: 0; }
.h-txt b { display: block; font-size: 16.5px; line-height: 1.35; }
.h-txt span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
.h-empty { margin-top: 28px; color: var(--muted); }
.h-empty a, .prose a, .note a, .related .all a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(196, 241, 53, .4); text-underline-offset: 3px; }
.h-empty a:hover, .prose a:hover, .note a:hover { text-decoration-color: var(--lime); }

/* статья */
.article { padding: clamp(24px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.article .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.prose { margin-top: 26px; font-size: 17px; line-height: 1.7; color: #d7ddd2; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.25; color: var(--text); margin-top: 40px; scroll-margin-top: 80px; }
.prose h3 { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.3; color: var(--text); margin-top: 30px; scroll-margin-top: 80px; }
.prose strong { color: var(--text); }
.prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow-wrap: anywhere; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose ul li::marker { color: var(--lime); }
.steps-list { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps-list > li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 80px; }
.steps-list > li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--grad); color: var(--on-lime); }
.steps-list > li > p { margin: 0; }
.steps-list > li > .shots { margin-top: 14px; }
.steps-list > li:target { border-color: rgba(196, 241, 53, .5); }

.shots { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.shots figure { flex: 1 1 200px; max-width: 280px; margin: 0; }
.shots.one figure { max-width: 300px; }
.shots img { width: 100%; height: auto; border-radius: 20px; }
.shots img[src$="-wide.svg"] { border-radius: 12px; }
.shots.one figure:has(img[src$="-wide.svg"]) { max-width: 100%; }
.shots figcaption { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

.note { padding: 16px 18px; border-radius: 16px; background: rgba(196, 241, 53, .06); border: 1px solid rgba(196, 241, 53, .22); font-size: 16px; }
.note p { margin: 0; }
.note.trouble { margin-top: 32px; background: var(--card); border-color: var(--line); }

.cta-box { margin-top: 40px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; text-align: center;
  background: radial-gradient(90% 120% at 50% 0%, rgba(196, 241, 53, .16), transparent 60%), var(--bg-2); border: 1px solid var(--line); }
.cta-box h2 { font-size: clamp(22px, 3.6vw, 28px); margin: 0; }
.cta-box p { color: var(--muted); margin: 10px auto 22px; max-width: 460px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.related { padding: 40px 0 0; }
.related h2 { font-size: clamp(20px, 3vw, 24px); margin: 0 0 14px; }
.related .all { margin-top: 16px; font-size: 15.5px; }

.footer .copy { margin-top: 10px; }
.footer .copy a:hover { color: var(--text); }

@media (max-width: 560px) {
  .cta-row .btn { width: 100%; }
  .prose { font-size: 16.5px; }
  .steps-list > li { padding: 14px 14px 14px 54px; }
  .steps-list > li::before { left: 12px; top: 13px; width: 30px; height: 30px; font-size: 15px; }
  .h-card { padding: 14px; gap: 12px; }
  .shots figure { flex-basis: 140px; }
}
