/* Изолированные стили справки; общий интерфейс и рабочие карточки не меняются. */
.help-page { max-width: 1440px; margin: 0 auto; color: var(--text); overflow-wrap: anywhere; }
.help-page h1 { margin: 8px 0 12px; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.6px; }
.help-page h2 { margin: 0 0 18px; font-size: 19px; line-height: 1.4; }
.help-page h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.help-page p { line-height: 1.65; }
.help-page a { text-decoration: none; }
.help-page a:focus-visible, .help-page button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.help-page h1:focus, .help-article h2:focus { outline: none; }
.help-hero { padding: 30px 34px; background: linear-gradient(115deg, var(--primary-soft), var(--surface)); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 28px; }
.help-eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.help-hero > p { margin: 0 0 22px; max-width: 730px; color: #526079; }
.help-search { max-width: 860px; }
.help-search > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.help-search-row { display: flex; align-items: center; gap: 10px; }
.help-search-row > .icon { width: 23px; height: 23px; color: var(--primary); flex-shrink: 0; }
.help-search-row input { width: 100%; min-width: 0; padding: 14px; background: var(--surface); border: 1px solid #aebcd4; border-radius: 10px; font: inherit; }
.help-search-row input:focus { outline: 3px solid #26479625; border-color: var(--primary); }
.help-shortcuts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; font-size: 13px; }
.help-shortcuts a, .help-back { color: var(--primary); font-weight: 600; }
.help-shortcuts a:hover, .help-back:hover { text-decoration: underline; }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.help-categories { min-width: 0; }
.help-category-buttons { display: grid; gap: 6px; }
.help-category-buttons button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; background: transparent; color: #526079; font: inherit; font-size: 14px; text-align: left; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.help-category-buttons button > .icon { flex-shrink: 0; }
.help-category-buttons button > span { flex: 1; }
.help-category-buttons small { font-size: 12px; font-variant-numeric: tabular-nums; }
.help-category-buttons button:hover { background: var(--surface); }
.help-category-buttons button.selected { color: var(--primary); background: var(--primary-soft); border-color: #cdd9ee; font-weight: 600; }
.help-aside-note { font-size: 13px; color: #606d83; margin: 18px 0 0; }
.help-results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.help-results-head h2 { margin: 0; flex: 1; }
.help-results-head span { font-size: 12px; color: #606d83; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.help-card:hover { border-color: #92a9d2; box-shadow: 0 5px 16px #233f7410; }
.help-card-category { display: inline-flex; align-items: center; gap: 7px; color: #526789; font-size: 12px; font-weight: 600; line-height: 1.5; margin-bottom: 13px; }
.help-card-category .icon { width: 16px; height: 16px; }
.help-card p { margin: 10px 0 20px; color: #59667d; font-size: 14px; }
.help-read { color: var(--primary); font-weight: 600; font-size: 13px; margin-top: auto; }
.help-read > span { margin-left: 8px; }
.help-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); }
.help-back { display: inline-block; margin-bottom: 22px; font-size: 14px; }
.help-article-header { padding: 28px 30px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 24px; }
.help-summary { max-width: 850px; font-size: 17px; margin: 0 0 20px; color: #526079; }
.help-location { margin: 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.help-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
.help-article { min-width: 0; padding: 28px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.help-article section + section { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.help-article h2 { scroll-margin-top: 24px; }
.help-article ul, .help-article ol { margin: 0; padding-left: 24px; line-height: 1.8; }
.help-article li { padding-left: 6px; margin: 0 0 12px; }
.help-article li:last-child { margin-bottom: 0; }
.help-article ol li::marker { color: var(--primary); font-weight: 700; }
.help-aside-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 18px; }
.help-aside-box h2 { font-size: 16px; margin-bottom: 12px; }
.help-aside-box p { font-size: 13px; color: #606d83; }
.help-aside-box nav { display: grid; gap: 8px; }
.help-aside-box nav button { text-align: left; background: transparent; border: 0; padding: 6px 0; color: var(--primary); font: inherit; font-size: 14px; cursor: pointer; }
.help-module-links { display: grid; gap: 10px; }
.help-module-links a { white-space: normal; text-align: left; justify-content: space-between; }
.help-related { margin: 28px 0; }
.help-related .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1150px) {
  .help-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 20px; }
  .help-article-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
  .help-card { padding: 18px; }
  .help-related .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .help-layout, .help-article-layout { grid-template-columns: minmax(0, 1fr); }
  .help-category-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-categories > .help-aside-note { display: none; }
  .help-article-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .help-hero, .help-article-header, .help-article { padding: 22px 18px; }
  .help-search-row { flex-wrap: wrap; }
  .help-search-row > .icon { display: none; }
  .help-search-row input { flex-basis: 100%; font-size: 16px; }
  .help-category-buttons { gap: 4px; }
  .help-category-buttons button { padding: 10px 8px; font-size: 12px; gap: 6px; }
  .help-category-buttons button > .icon { display: none; }
  .help-grid, .help-related .help-grid, .help-article-aside { grid-template-columns: minmax(0, 1fr); }
  .help-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .help-card { transition: none; } }
