/* Навигация EiDOC: сайдбар (развёрнутый/свёрнутый), переключатель пространств, «Создать», мобильная навигация.
   Цвета — токены --ui-sidebar-* из ui-mvp-tokens.css. */

/* ── Ширина: переменная оболочки, используется ui-shell.css ── */
@media (min-width: 1024px) {
  body.eidoc-public .eidoc-app-shell:has(.eidoc-nav) { --eidoc-sidebar-w: 15.5rem; }
  body.eidoc-public .eidoc-app-shell.eidoc-nav-collapsed:has(.eidoc-nav) { --eidoc-sidebar-w: 4.25rem; }
}

.eidoc-nav {
  --nav-text: var(--ui-sidebar-text, rgba(255,255,255,.82));
  --nav-muted: var(--ui-sidebar-muted, rgba(255,255,255,.44));
  --nav-hover: rgba(255,255,255,.06);
  --nav-active: var(--ui-sidebar-active-bg, #1d6ef5);
  --nav-border: var(--ui-sidebar-border, rgba(255,255,255,.06));
  display: flex; flex-direction: column; height: 100%; min-height: 0; width: 100%;
  background: var(--ui-sidebar-bg, #0b1f3a); color: var(--nav-text);
  font-size: .875rem;
}
@media (min-width: 1024px) { .eidoc-nav { height: 100dvh; } }

.eidoc-nav__top { flex: none; }
.eidoc-nav__brand-compact { display: none; }
.eidoc-nav__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: .5rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.eidoc-nav__bottom { flex: none; padding: .5rem .75rem .75rem; border-top: 1px solid var(--nav-border); display: flex; flex-direction: column; gap: .125rem; }

.eidoc-nav__section { margin-top: .875rem; }
.eidoc-nav__section:first-child { margin-top: .25rem; }
.eidoc-nav__heading { padding: 0 .625rem .375rem; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nav-muted); white-space: nowrap; }
.eidoc-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }

.eidoc-nav__item {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.375rem; padding: .5rem .625rem;
  border-radius: .625rem; color: var(--nav-text); text-decoration: none; font-weight: 500; line-height: 1.2;
  background: transparent; border: 0; cursor: pointer; text-align: left; transition: background-color .15s, color .15s;
}
.eidoc-nav__item:hover { background: var(--nav-hover); color: #fff; box-shadow: inset 3px 0 0 #1d6ef5; }
.eidoc-nav__item.is-active { background: var(--nav-active); color: #fff; box-shadow: 0 4px 14px -6px rgba(29,110,245,.7); }
.eidoc-nav__icon { width: 1.125rem; flex: none; text-align: center; font-size: .9375rem; opacity: .9; }
.eidoc-nav__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eidoc-nav :focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }

/* Пространство */
.eidoc-nav__section--workspace { margin-top: 1rem; padding-top: .875rem; border-top: 1px solid var(--nav-border); }
.eidoc-nav__switcher { position: relative; margin-bottom: .375rem; }
.eidoc-nav__ws-card {
  display: flex; align-items: center; gap: .625rem; width: 100%; padding: .5rem .625rem; border-radius: .75rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #fff; cursor: pointer; text-align: left;
}
.eidoc-nav__ws-card:hover, .eidoc-nav__switcher.is-open .eidoc-nav__ws-card { background: rgba(255,255,255,.09); }
.eidoc-nav__ws-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.eidoc-nav__ws-name { font-weight: 600; font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eidoc-nav__ws-type { font-size: .6875rem; color: var(--nav-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eidoc-nav__ws-caret { font-size: .625rem; color: var(--nav-muted); transition: transform .15s; }
.eidoc-nav__switcher.is-open .eidoc-nav__ws-caret { transform: rotate(180deg); }
.eidoc-nav__avatar {
  position: relative; flex: none; width: 2rem; height: 2rem; border-radius: 9999px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 700; color: #fff; background: #334155;
}
.eidoc-nav__avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.eidoc-nav__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eidoc-nav__avatar--company, .eidoc-nav__avatar--community { border-radius: .5rem; }
.eidoc-nav__avatar--expert { background: #1d4ed8; }
.eidoc-nav__avatar--company { background: #0f766e; }
.eidoc-nav__avatar--community { background: #7c3aed; }

/* Всплывающие меню (светлые, как в референсе) */
.eidoc-nav__popover {
  position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + .375rem); min-width: 15rem; max-height: min(70vh, 28rem); overflow-y: auto;
  padding: .375rem; border-radius: .875rem; background: #fff; color: #0f172a; box-shadow: 0 18px 40px -12px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.06);
}
.eidoc-nav__popover-title { padding: .5rem .625rem .375rem; font-size: .75rem; font-weight: 600; color: #64748b; }
.eidoc-nav__popover-group { padding: .5rem .625rem .25rem; font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.eidoc-nav__popover-search { width: calc(100% - .5rem); margin: 0 .25rem .25rem; padding: .375rem .625rem; border-radius: .5rem; border: 1px solid #e2e8f0; font-size: .8125rem; }
.eidoc-nav__popover-item {
  display: flex; align-items: center; gap: .625rem; width: 100%; padding: .5rem .625rem; border-radius: .625rem; border: 0; background: none;
  color: inherit; text-decoration: none; text-align: left; font-size: .8125rem; cursor: pointer;
}
.eidoc-nav__popover-item:hover, .eidoc-nav__popover-item:focus { background: #f1f5f9; outline: none; }
.eidoc-nav__popover-item.is-selected { background: #eff6ff; }
.eidoc-nav__popover-item .eidoc-nav__ws-name { color: #0f172a; }
.eidoc-nav__popover-item .eidoc-nav__ws-type { color: #64748b; }
.eidoc-nav__popover-item--add { color: #1d6ef5; font-weight: 500; }
.eidoc-nav__popover-icon { width: 1.25rem; text-align: center; color: #1d6ef5; }
.eidoc-nav__check { color: #1d6ef5; font-size: .75rem; }
.eidoc-nav__popover-sep { height: 1px; background: #e2e8f0; margin: .375rem .25rem; }

/* Создать */
.eidoc-create { position: relative; }
.eidoc-create--sidebar { margin-top: .625rem; }
.eidoc-create__btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 2.5rem; padding: .5rem .875rem;
  border-radius: .75rem; border: 0; background: var(--nav-active, #1d6ef5); color: #fff; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(29,110,245,.9);
}
.eidoc-create__btn:hover { filter: brightness(1.08); }
.eidoc-create--sidebar .eidoc-create__menu { top: auto; bottom: calc(100% + .375rem); }
.eidoc-create--header .eidoc-create__menu { left: 0; right: auto; min-width: 14rem; }
/* Плавное появление меню «Создать» в шапке: fade + сдвиг (как у уведомлений в топбаре).
   JS открывает меню снятием [hidden]; закрытие — мгновенное (скрытие). */
@keyframes eidoc-nav-popover-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .eidoc-create__menu:not([hidden]) {
    animation: eidoc-nav-popover-in .18s ease-out;
  }
}

/* Быстрые ссылки под «Создать»: один горизонтальный ряд иконок */
.eidoc-nav__quick { display: flex; align-items: stretch; gap: .375rem; margin-top: .5rem; }
.eidoc-nav__quick-link {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; height: 2.5rem;
  border-radius: .625rem; color: var(--nav-text); text-decoration: none; font-size: 1rem; transition: background-color .15s, color .15s;
}
/* Наведение и текущий раздел — как у остальных пунктов меню */
.eidoc-nav__quick-link:hover { background: var(--nav-hover); color: #fff; box-shadow: inset 3px 0 0 #1d6ef5; }
.eidoc-nav__quick-link.is-active { background: var(--nav-active); color: #fff; box-shadow: 0 4px 14px -6px rgba(29,110,245,.7); }

.eidoc-nav__guest { display: flex; flex-direction: column; gap: .375rem; padding-top: .875rem; border-top: 1px solid var(--nav-border); }
.eidoc-nav__guest-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem; border-radius: .625rem; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 500; }
.eidoc-nav__guest-btn--primary { background: var(--nav-active); border-color: transparent; }
.eidoc-nav__admin { color: #fbbf24; }
.eidoc-nav__collapse { color: var(--nav-muted); }
@media (max-width: 1023px) { .eidoc-nav__collapse { display: none; } }

/* ── Свёрнутый режим (только desktop) ── */
@media (min-width: 1024px) {
  .eidoc-nav-collapsed .eidoc-nav .eidoc-sidebar-brand { display: none !important; }
  .eidoc-nav-collapsed .eidoc-nav__brand-compact {
    display: flex; align-items: center; justify-content: center; height: 3.5rem; border-bottom: 1px solid var(--nav-border);
    color: #fff; font-weight: 800; font-size: 1.125rem; text-decoration: none;
  }
  .eidoc-nav-collapsed .eidoc-nav__scroll, .eidoc-nav-collapsed .eidoc-nav__bottom { padding-left: .625rem; padding-right: .625rem; overflow: visible; }
  .eidoc-nav-collapsed .eidoc-nav__scroll { overflow-y: auto; }
  .eidoc-nav-collapsed .eidoc-nav__heading { height: 0; padding: 0; overflow: hidden; }
  .eidoc-nav-collapsed .eidoc-nav__section { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--nav-border); }
  .eidoc-nav-collapsed .eidoc-nav__section:first-child { border-top: 0; }
  .eidoc-nav-collapsed .eidoc-nav__label, .eidoc-nav-collapsed .eidoc-nav__ws-text, .eidoc-nav-collapsed .eidoc-nav__ws-caret,
  .eidoc-nav-collapsed .eidoc-create--sidebar .eidoc-create__label { display: none; }
  .eidoc-nav-collapsed .eidoc-nav__item, .eidoc-nav-collapsed .eidoc-nav__ws-card, .eidoc-nav-collapsed .eidoc-nav__guest-btn { justify-content: center; padding-left: 0; padding-right: 0; }
  .eidoc-nav-collapsed .eidoc-nav__ws-card { background: none; border-color: transparent; }
  .eidoc-nav-collapsed .eidoc-create__btn { padding: 0; width: 2.5rem; margin: 0 auto; }
  .eidoc-nav-collapsed .eidoc-nav__popover { left: calc(100% + .75rem); right: auto; top: 0; bottom: auto; position: fixed; }
  .eidoc-nav-collapsed .eidoc-nav__collapse .eidoc-nav__icon { transform: rotate(180deg); }
  /* Подсказки для иконок */
  .eidoc-nav-collapsed .eidoc-nav [data-tip] { position: relative; }
  .eidoc-nav-collapsed .eidoc-nav [data-tip]:hover::after, .eidoc-nav-collapsed .eidoc-nav [data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; left: calc(100% + .75rem); top: 50%; transform: translateY(-50%); z-index: 90;
    padding: .3125rem .5rem; border-radius: .375rem; background: #0f172a; color: #fff; font-size: .75rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  }
}

/* ── Мобильная навигация ── */
.eidoc-mnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15,23,42,.08);
}
@media (min-width: 1024px) { .eidoc-mnav, .eidoc-sheet { display: none !important; } }
.eidoc-mnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1875rem; min-height: 3.25rem; border: 0; background: none;
  color: #64748b; font-size: .6875rem; font-weight: 500; text-decoration: none; cursor: pointer;
}
.eidoc-mnav__item i { font-size: 1.125rem; }
.eidoc-mnav__item.is-active { color: #1d6ef5; }
.eidoc-mnav__fab { width: 3rem; height: 3rem; margin-top: -1.25rem; border-radius: 9999px; background: #1d6ef5; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(29,110,245,.9); }
.eidoc-mnav__item--create { color: #1d6ef5; }

.eidoc-sheet { position: fixed; inset: 0; z-index: 70; }
.eidoc-sheet__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); opacity: 0; transition: opacity .2s; border: 0; width: 100%; }
.eidoc-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 85dvh; overflow-y: auto; padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border-radius: 1.25rem 1.25rem 0 0; background: #fff; color: #0f172a; transform: translateY(100%); transition: transform .22s ease-out;
}
.eidoc-sheet.is-open .eidoc-sheet__backdrop { opacity: 1; }
.eidoc-sheet.is-open .eidoc-sheet__panel { transform: none; }
.eidoc-sheet__grip { width: 2.5rem; height: .25rem; border-radius: 9999px; background: #cbd5e1; margin: .25rem auto .75rem; }
.eidoc-sheet__title { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.eidoc-sheet__heading { margin: 1rem 0 .375rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.eidoc-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.eidoc-sheet__tile { display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: .75rem .25rem; border-radius: .875rem; background: #f8fafc; color: #0f172a; text-decoration: none; font-size: .75rem; font-weight: 500; text-align: center; }
.eidoc-sheet__tile i { font-size: 1.125rem; color: #1d6ef5; }
.eidoc-sheet__tile.is-active { background: #eff6ff; color: #1d6ef5; }
.eidoc-sheet__list { list-style: none; margin: 0; padding: 0; }
.eidoc-sheet__link { display: flex; align-items: center; gap: .75rem; padding: .625rem .5rem; border-radius: .625rem; color: #0f172a; text-decoration: none; font-size: .9375rem; }
.eidoc-sheet__link i { width: 1.25rem; text-align: center; color: #64748b; }
.eidoc-sheet__link.is-active { background: #eff6ff; color: #1d6ef5; }
.eidoc-sheet .eidoc-nav__switcher { margin: .25rem 0 .5rem; }
.eidoc-sheet .eidoc-nav__ws-card { background: #f1f5f9; border-color: #e2e8f0; color: #0f172a; }
.eidoc-sheet .eidoc-nav__ws-type, .eidoc-sheet .eidoc-nav__ws-caret { color: #64748b; }
.eidoc-sheet .eidoc-nav__popover { position: static; box-shadow: none; border: 1px solid #e2e8f0; margin-top: .375rem; max-height: none; }
html.eidoc-sheet-open { overflow: hidden; }
@media (max-width: 1023px) { body.eidoc-public:has(.eidoc-mnav:not([hidden])) #page-component { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .eidoc-sheet__panel, .eidoc-sheet__backdrop, .eidoc-nav__item { transition: none; } }

/* На телефоне карандаш (дубль «Создать») в шапке не нужен. Бургер слева остаётся и открывает меню. */
@media (max-width: 1023px) {
  body.eidoc-public:has(.eidoc-mnav:not([hidden])) .eidoc-topbar-mobile-create { display: none !important; }
}

/* Мобильная боковая панель: блок «Главная» (Главная, Обзор) и кнопка «Создать» скрыты, на телефоне они есть в нижней панели. На desktop не меняется. */
@media (max-width: 1023px) {
  .eidoc-sidebar-aside .eidoc-nav__main { display: none; }
  .eidoc-sidebar-aside .eidoc-create { display: none; }
}

/* Статус подписки: бейдж справа в строке «Подписка» (зелёный — активна, жёлтый — пора продлить, синий — нет подписки) */
.eidoc-nav__badge-sub { margin-left: auto; flex: none; padding: .125rem .5rem; border-radius: 9999px; font-size: .6875rem; font-weight: 700; white-space: nowrap; color: #fff; }
.eidoc-nav__badge-sub--ok { background: #16a34a; }
.eidoc-nav__badge-sub--warn { background: #f59e0b; color: #1c1917; }
.eidoc-nav__badge-sub--new { background: var(--nav-active); }
.eidoc-nav-collapsed .eidoc-nav__badge-sub, .eidoc-nav-collapsed .eidoc-nav__amount { display: none; }

/* Баланс кошелька: крупно и белым, справа от названия — в телефонной и desktop-панели */
.eidoc-nav__amount { margin-left: auto; font-size: .9375rem; font-weight: 700; color: #fff; white-space: nowrap; }
/* На desktop сумма меньше, чем в телефонной панели */
@media (min-width: 1024px) { .eidoc-nav__amount { font-size: .8125rem; } }

/* Телефонная панель: плотнее отступы, пункты остаются по 44px. Список прокручивается, если не помещается (Chrome на iPhone, низкий вьюпорт) */
@media (max-width: 1023px) {
  .eidoc-sidebar-aside .eidoc-nav__scroll { padding: 0 .5rem .25rem; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .eidoc-sidebar-aside .eidoc-nav__section { margin-top: .375rem; }
  .eidoc-sidebar-aside .eidoc-nav__section:first-child { margin-top: 0; }
  .eidoc-sidebar-aside .eidoc-nav__section--workspace { margin-top: .25rem; padding-top: .25rem; }
  .eidoc-sidebar-aside .eidoc-nav__quick { margin-top: .25rem; }
  .eidoc-sidebar-aside .eidoc-nav__quick-link { height: 3rem; }
  .eidoc-sidebar-aside .eidoc-nav__profile { margin-bottom: .25rem; padding: .375rem .5rem; }
  .eidoc-nav__mhead { padding: 0 .25rem 0 .5rem; }
  .eidoc-nav__mhead-close { width: 2.25rem; height: 2.25rem; }
}

/* Подсказка «Листайте вниз»: видна на телефоне, пока ниже есть пункты (класс has-more-below ставит скрипт в nav/_sidebar.php) */
.eidoc-nav__more { display: none; }
@media (max-width: 1023px) {
  .eidoc-sidebar-aside .eidoc-nav__scroll.has-more-below .eidoc-nav__more {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .375rem;
    height: 2.5rem;
    margin: 0 -.5rem -.5rem;
    padding: 0 .75rem .25rem 0;
    background: linear-gradient(to right, transparent 30%, var(--ui-sidebar-bg, #0b1f3a) 70%);
    color: var(--nav-muted);
    font-size: .75rem;
    font-weight: 600;
    pointer-events: none;
  }
  .eidoc-sidebar-aside .eidoc-nav__scroll.has-more-below .eidoc-nav__more i {
    animation: eidoc-nav-more-bounce 1.4s ease-in-out infinite;
  }
}
@keyframes eidoc-nav-more-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .eidoc-nav__more i { animation: none; } }

/* Мобильная боковая панель: блок пространств (переключатель и заголовок) скрыт; на desktop не меняется. */
@media (max-width: 1023px) {
  .eidoc-sidebar-aside .eidoc-nav__switcher,
  .eidoc-sidebar-aside .eidoc-nav__section--workspace > .eidoc-nav__heading { display: none; }
  /* Ссылки пространств и хабов на телефоне есть в «Ещё»: в боковой панели их не дублируем */
  .eidoc-sidebar-aside .eidoc-nav__section--workspace > .eidoc-nav__list { display: none; }
  /* Блок «Платформа» на телефоне есть в «Ещё» */
  .eidoc-sidebar-aside .eidoc-nav__platform { display: none; }
}

/* Сообщения, уведомления и выход — только в телефонной панели */
@media (min-width: 1024px) { .eidoc-nav__mobile-only { display: none; } }

/* Телефонная панель: заголовок с крестиком, карточка профиля, подписи быстрых ссылок, касание от 44px, выход */
@media (max-width: 1023px) {
  .eidoc-nav__mhead { display: flex; align-items: center; justify-content: space-between; padding: 0 .25rem 0 .5rem; color: #fff; font-size: 1rem; font-weight: 700; }
  .eidoc-nav__mhead-close { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .625rem; color: var(--nav-text); cursor: pointer; }
  .eidoc-nav__mhead-close:hover { background: var(--nav-hover); color: #fff; }
  .eidoc-sidebar-aside .eidoc-nav__item { min-height: 2.75rem; }
  .eidoc-sidebar-aside .eidoc-nav__quick-link { height: 3.5rem; flex-direction: column; justify-content: center; gap: .25rem; }
  .eidoc-nav__quick-label { display: block; font-size: .6875rem; color: var(--nav-muted); }
  .eidoc-nav__profile { display: flex; align-items: center; gap: .75rem; padding: .625rem; margin-bottom: .5rem; border-radius: .75rem; background: rgba(255,255,255,.06); }
  .eidoc-nav__profile-avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 9999px; object-fit: cover; }
  .eidoc-nav__profile-text { display: flex; flex-direction: column; min-width: 0; }
  .eidoc-nav__profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; }
  .eidoc-nav__profile-link { font-size: .75rem; color: #8ab4ff; }
  .eidoc-nav__badge { margin-left: auto; min-width: 1.25rem; height: 1.25rem; padding: 0 .375rem; border-radius: 9999px; background: #ef4444; color: #fff; font-size: .6875rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
  .eidoc-nav__logout { margin-top: .25rem; padding-top: .5rem; border-top: 1px solid var(--nav-border); color: #f87171; }
  .eidoc-nav__logout .eidoc-nav__icon { color: #f87171; }
}
@media (min-width: 1024px) {
  .eidoc-nav__quick-label, .eidoc-nav__mhead { display: none; }
}

/* Телефон: щипок не масштабирует страницу (вместе с gesturestart в nav.js) */
@media (max-width: 1023px) {
  html { touch-action: pan-x pan-y; }
}
