/*!
 * MiningHelp — окна: меню каталога и мобильное меню (тёмная панель слева), модалка «Заказать звонок».
 */

/* ---------------------------------------------------------------- Панель слева */
.mh-drawer { position: fixed; inset: 0; z-index: 50; display: flex; padding: 12px; }
.mh-drawer__backdrop, .mh-modal__backdrop { position: absolute; inset: 0; background: var(--mh-backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mh-drawer__panel { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; padding: 10px; border-radius: var(--mh-r-lg); background: var(--mh-ink); border: 1px solid var(--mh-line-dark); color: var(--mh-on-dark); }
.mh-drawer__head, .mh-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 16px; }
.mh-drawer__title, .mh-modal__title { font-size: var(--mh-h2); font-weight: 500; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em; }
.mh-drawer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mh-drawer__item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--mh-r-sm); background: var(--mh-dark-2); font-size: var(--mh-fs-15); color: var(--mh-on-dark); }
.mh-drawer__item:hover, .mh-drawer__item.is-current { background: var(--mh-dark-3); color: #fff; }
.mh-drawer__num { width: 24px; flex: none; font-size: var(--mh-fs-13); color: var(--mh-on-dark-3); }
.mh-drawer__name { flex: 1; }
.mh-drawer__foot { margin-top: auto; padding: 20px 8px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mh-drawer__meta { font-size: var(--mh-fs-13); color: var(--mh-on-dark-3); }
a.mh-drawer__meta:hover { color: #fff; }
.mh-call--drawer .mh-call__phone { font-size: var(--mh-fs-20); }
.mh-call--drawer .mh-call__order { margin-top: 4px; font-size: var(--mh-fs-13); }

@keyframes mh-panel-in { from { transform: translateX(-24px); opacity: 0; } }
@keyframes mh-fade-in { from { opacity: 0; } }
@keyframes mh-pop-in { from { transform: translateY(12px); opacity: 0; } }
.mh-drawer:not([hidden]) .mh-drawer__panel { animation: mh-panel-in .2s ease-out; }
.mh-drawer:not([hidden]) .mh-drawer__backdrop, .mh-modal:not([hidden]) .mh-modal__backdrop { animation: mh-fade-in .2s ease-out; }
.mh-modal:not([hidden]) .mh-modal__panel { animation: mh-pop-in .2s ease-out; }

/* ---------------------------------------------------------------- Модалка */
.mh-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 12px; }
.mh-modal__panel { position: relative; width: min(480px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: 10px 10px 22px; border-radius: var(--mh-r-lg); background: var(--mh-ink); border: 1px solid var(--mh-line-dark); color: var(--mh-on-dark); }
.mh-modal__form, .mh-modal__done { padding: 0 12px; display: flex; flex-direction: column; gap: 18px; }
.mh-modal__lead { font-size: var(--mh-fs-14); color: var(--mh-on-dark-2); }
.mh-modal__fields { display: flex; flex-direction: column; gap: 8px; }
.mh-modal__submit { align-self: flex-start; }
.mh-modal__done { align-items: flex-start; padding-top: 12px; }
.mh-modal__done:focus { outline: none; }
.mh-modal__done-ico { width: var(--mh-icon-tile); height: var(--mh-icon-tile); border-radius: 50%; background: var(--mh-accent); color: var(--mh-ink-900); display: flex; align-items: center; justify-content: center; }
.mh-modal__done-text { font-size: var(--mh-fs-20); line-height: 1.25; }

/* Поля на тёмной панели */
.mh-input--dark { background: var(--mh-dark-2); color: var(--mh-on-dark); }
.mh-input--dark::placeholder { color: var(--mh-on-dark-3); }
.mh-modal .mh-field-error { color: var(--mh-on-dark); }
.mh-modal .mh-field-error::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--mh-error); vertical-align: middle; }
.mh-consent--dark { color: var(--mh-on-dark-2); }
.mh-consent--dark .mh-consent__box { background: transparent; border-color: rgba(255,255,255,.3); }
.mh-consent--dark a:hover { color: #fff; }
.mh-modal .mh-form-alert { padding: 12px 16px; border-radius: var(--mh-r-sm); background: rgba(198,40,40,.18); border: 1px solid var(--mh-error); color: var(--mh-on-dark); font-size: var(--mh-fs-13); line-height: 1.45; }
