/*!
 * MiningHelp — обычная страница (макет 14): текст на плашке, сайдбар «Документы»; 404 (макет 15).
 * .mh-doc__body — типографика текста из редактора, ею же оформлен текст страницы на «О компании» и «Контактах».
 */

.mh-doc { padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.mh-doc__title { max-width: 24ch; }
.mh-doc__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.mh-doc__sheet { flex: 999 1 620px; min-width: 0; padding: var(--mh-pad-card); border-radius: var(--mh-r-xl); background: var(--mh-surface); display: flex; flex-direction: column; gap: 16px; }
.mh-doc__date { font-size: var(--mh-fs-13); color: var(--mh-text-3); }

/* Текст из редактора */
.mh-doc__body { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; font-size: var(--mh-fs-16); line-height: 1.65; color: #2A2F34; overflow-wrap: break-word; }
.mh-doc__body > * { margin: 0; }
.mh-doc__body h2 { margin-top: 16px; font-size: var(--mh-h2); line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; color: var(--mh-ink); }
.mh-doc__body h3 { margin-top: 8px; font-size: var(--mh-fs-18); line-height: 1.2; font-weight: 500; color: var(--mh-ink); }
.mh-doc__body h4 { margin-top: 4px; font-size: var(--mh-fs-16); font-weight: 600; color: var(--mh-ink); }
.mh-doc__body h2:first-child, .mh-doc__body h3:first-child { margin-top: 0; }
.mh-doc__body a { color: var(--mh-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.mh-doc__body a:hover { color: var(--mh-ink); }
.mh-doc__body strong { font-weight: 600; color: var(--mh-ink); }
.mh-doc__body ul, .mh-doc__body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.mh-doc__body blockquote { margin: 8px 0; padding: 20px 24px; border-radius: var(--mh-r-md); background: #fff; line-height: 1.6; }
.mh-doc__body blockquote p { margin: 0; }
.mh-doc__body img { max-width: 100%; height: auto; border-radius: var(--mh-r-md); }
.mh-doc__body figure { max-width: 100%; }
.mh-doc__body figcaption { margin-top: 8px; font-size: var(--mh-fs-13); color: var(--mh-text-3); }
.mh-doc__body table { width: 100%; border-collapse: collapse; font-size: var(--mh-fs-15); background: #fff; border-radius: var(--mh-r-sm); overflow: hidden; }
.mh-doc__body th, .mh-doc__body td { padding: 10px 14px; border-top: 1px solid var(--mh-line); text-align: left; vertical-align: top; }
.mh-doc__body th { font-weight: 500; color: var(--mh-ink); }
.mh-doc__body hr { width: 100%; border: 0; border-top: 1px solid var(--mh-line); }
.mh-doc__body .wp-block-table { overflow-x: auto; }

/* Сайдбар «Документы» */
.mh-doc__nav { flex: 1 1 300px; position: sticky; top: 140px; padding: 10px; border-radius: var(--mh-r-lg); background: var(--mh-surface); display: flex; flex-direction: column; gap: 4px; }
.mh-doc__nav-cap { padding: 12px 14px 8px; font-size: var(--mh-fs-13); text-transform: uppercase; letter-spacing: .04em; color: var(--mh-text-3); }
.mh-doc__link { padding: 14px 16px; border-radius: var(--mh-r-md); background: #fff; color: var(--mh-ink); font-size: var(--mh-fs-15); transition: background .15s, color .15s; }
.mh-doc__link:hover, .mh-doc__link.is-current { background: var(--mh-ink); color: #fff; }
.mh-doc > .mh-comments { margin-top: 12px; }
@media (max-width: 960px) {
  .mh-doc__nav { position: static; }
}

/* 404 */
.mh-lost { padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mh-lost__hero { border-radius: var(--mh-r-xl); overflow: hidden; color: var(--mh-on-dark); background: var(--mh-hero-dark); padding: var(--mh-pad-card); display: flex; flex-direction: column; gap: 24px; }
.mh-lost__badge { align-self: flex-start; height: var(--mh-badge-h); padding: 0 10px; border-radius: var(--mh-r-pill); display: flex; align-items: center; background: var(--mh-accent); color: var(--mh-ink-900); font-size: var(--mh-fs-11); text-transform: uppercase; letter-spacing: .04em; }
.mh-lost__copy { display: flex; flex-direction: column; gap: 12px; }
.mh-lost__code { font-size: var(--mh-display); line-height: .85; font-weight: 500; letter-spacing: -0.04em; color: var(--mh-accent-soft); }
.mh-lost__title { margin: 0; font-size: var(--mh-h1); line-height: 1; font-weight: 400; letter-spacing: -0.01em; text-transform: uppercase; }
.mh-lost__text { margin: 0; max-width: 52ch; font-size: var(--mh-fs-14); line-height: 1.55; color: var(--mh-on-dark-2); }
.mh-lost__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-lost__cats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.mh-lost__cat { min-height: 84px; height: 100%; padding: 14px 16px; border-radius: var(--mh-r-md); background: var(--mh-surface); color: var(--mh-ink); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; transition: background .15s, color .15s; }
.mh-lost__cat:hover { background: var(--mh-ink); color: #fff; }
.mh-lost__num { font-size: var(--mh-fs-12); color: var(--mh-text-3); }
.mh-lost__name { font-size: var(--mh-fs-15); line-height: 1.3; }
