/* ============================================================
   ЮМЕДИА · Мобильная навигация v3
   Visual update of v2 — overlays-only, no SPA screens.
   Видна только на mobile (max-width: 860px). Desktop игнорирует.
   ============================================================ */

@media (min-width: 861px) {
  .mnv { display: none !important; }
}

.mnv {
  --mnv-z-bot:    45;
  --mnv-z-scrim:  50;
  --mnv-z-over:   55;
  --mnv-z-search: 60;
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
  color: var(--ink, #0D0D0F);
}

.mnv *, .mnv *::before, .mnv *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── BOTTOM NAV — fixed bottom, всегда видна ───────────── */
.mnv-bot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--mnv-z-bot);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
          backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border, #E8E8EC);
  padding: 10px 8px calc(12px + env(safe-area-inset-bottom));
}
.mnv-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px 2px;
  color: var(--muted, #6B6B72); font-family: inherit;
  transition: transform 0.14s ease;
}
.mnv-btn svg { width: 25px; height: 25px; }
.mnv-btn span { font-size: 11px; font-weight: 700; letter-spacing: -0.01em; }
.mnv-btn.is-on { color: var(--brand, #E5106A); }
.mnv-btn:active { transform: scale(0.94); }

/* Приподнятая CTA «Связаться» — визитка нового дизайна */
.mnv-btn--cta { color: var(--brand, #E5106A); }
.mnv-btn--cta .mnv-cta-ic {
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--brand, #E5106A); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: -12px; margin-bottom: 1px;
  border: 3px solid #fff;
  box-shadow: 0 10px 22px -8px rgba(229,16,106,0.7);
}
.mnv-btn--cta .mnv-cta-ic svg { width: 23px; height: 23px; }
.mnv-btn--cta span { font-weight: 800; color: var(--brand, #E5106A); }

/* ── SCRIM (общий бэкдроп) ─────────────────────────────── */
.mnv-scrim {
  position: fixed; inset: 0; z-index: var(--mnv-z-scrim);
  background: rgba(14,14,18,0.45);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s ease;
}
.mnv-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ── CONTACT SHEET (bottom modal) ──────────────────────── */
.mnv-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--mnv-z-over);
  transform: translateY(100%);
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -16px 50px -16px rgba(14,14,18,0.4);
  max-height: 90vh; overflow-y: auto;
}
.mnv-sheet.is-open { transform: translateY(0); }
.mnv-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--border-strong, #D4D4D8); margin: 0 auto 14px; }
.mnv-sheet h3 { margin: 0 0 4px; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink, #0D0D0F); }
.mnv-lead { margin: 0 0 18px; font-size: 14px; color: var(--muted, #6B6B72); }

/* Big phone CTA (yellow, with shadow-bottom) */
.mnv-call-big {
  display: flex; align-items: center; gap: 14px;
  background: var(--cta, #FFE15D); color: var(--ink, #0D0D0F); text-decoration: none;
  border-radius: 16px; padding: 14px; margin-bottom: 14px;
  box-shadow: 0 2px 0 var(--cta-deep, #F5C518);
}
.mnv-call-big:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--cta-deep, #F5C518); }
.mnv-r {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand, #E5106A); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mnv-t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.mnv-t small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2, #2A2A2E); opacity: 0.6; }
.mnv-t b { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.mnv-go { margin-left: auto; opacity: 0.5; }

/* Channel tiles — TG / WA / MAX (новый дизайн) */
.mnv-chan-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mnv-chan {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 16px; text-decoration: none;
  border: 1px solid var(--border, #E8E8EC); background: var(--surface, #FAFAFB);
  color: var(--ink, #0D0D0F); font-size: 13px; font-weight: 700;
  transition: transform 0.14s ease, background 0.14s ease;
}
.mnv-chan:active { transform: scale(0.97); background: var(--surface-2, #F2F2F4); }
.mnv-ic {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.mnv-ic svg { width: 24px; height: 24px; }
.mnv-chan--tg  .mnv-ic { background: #2AABEE; }
.mnv-chan--wa  .mnv-ic { background: #25D366; }
.mnv-chan--max .mnv-ic { background: linear-gradient(135deg, #B43CFF, #2B7CFF); }

/* ── MENU DRAWER (right, full-height) ──────────────────── */
.mnv-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 84%; max-width: 360px; z-index: var(--mnv-z-over);
  background: #fff; transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: -16px 0 50px -16px rgba(14,14,18,0.4);
  display: flex; flex-direction: column;
}
.mnv-menu.is-open { transform: translateX(0); }
.mnv-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px; border-bottom: 1px solid var(--border, #E8E8EC);
}
.mnv-menu-top b { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink, #0D0D0F); }
.mnv-x {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface-2, #F2F2F4); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink, #0D0D0F);
}
.mnv-menu-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.mnv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px; text-decoration: none; color: var(--ink, #0D0D0F);
  font-size: 16px; font-weight: 600;
  transition: background 0.14s ease;
}
.mnv-row:active { background: var(--surface, #FAFAFB); }
.mnv-mi { width: 26px; color: var(--brand, #E5106A); display: flex; flex: 0 0 auto; }
.mnv-ch { margin-left: auto; color: var(--muted-2, #A1A1A7); flex: 0 0 auto; }

.mnv-menu-foot {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border, #E8E8EC);
}
.mnv-sched { font-size: 13px; color: var(--muted, #6B6B72); margin-bottom: 10px; }
.mnv-sched b { color: var(--ink, #0D0D0F); }

/* AI-эксперт — главный CTA в меню (новый дизайн) */
.mnv-menu-ai {
  display: flex; align-items: center; gap: 13px;
  text-decoration: none; color: #fff;
  background: var(--brand, #E5106A);
  border-radius: 18px; padding: 13px 15px;
  box-shadow: 0 2px 0 var(--brand-deep, #B40A53),
              0 14px 28px -12px rgba(229,16,106,0.6);
  transition: transform 0.14s ease;
}
.mnv-menu-ai:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--brand-deep, #B40A53),
              0 10px 22px -12px rgba(229,16,106,0.6);
}
.mnv-ai-ic {
  position: relative; width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.mnv-ai-ic svg { width: 24px; height: 24px; }
.mnv-ai-ic .mnv-dot {
  position: absolute; top: -3px; right: -3px; width: 13px; height: 13px;
  border-radius: 50%; background: #2EE36B; border: 2.5px solid var(--brand, #E5106A);
}
.mnv-ai-t { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.mnv-ai-t small {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.82); margin-bottom: 4px;
}
.mnv-ai-t b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.mnv-ai-go { margin-left: auto; color: rgba(255,255,255,0.75); flex: 0 0 auto; }

/* MAX messenger — secondary CTA в меню */
.mnv-menu-max {
  display: flex; align-items: center; gap: 13px;
  text-decoration: none; color: var(--ink, #0D0D0F);
  background: var(--surface, #FAFAFB); border: 1px solid var(--border, #E8E8EC);
  border-radius: 16px; padding: 11px 13px; margin-bottom: 11px;
}
.mnv-menu-max:active { background: var(--surface-2, #F2F2F4); }
.mnv-mx-ic {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(135deg, #B43CFF, #2B7CFF);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -5px rgba(91,60,255,0.6);
}
.mnv-mx-ic svg { width: 24px; height: 24px; }
.mnv-mx-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mnv-mx-t small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2, #A1A1A7); }
.mnv-mx-t b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.mnv-mx-go { margin-left: auto; color: var(--muted-2, #A1A1A7); flex: 0 0 auto; }

/* ── ADDRESSES PANEL (full-screen) ──────────────────────── */
.mnv-addr-panel {
  position: fixed; inset: 0; z-index: var(--mnv-z-over);
  background: #fff; transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mnv-addr-panel.is-open { transform: translateY(0); }
.mnv-addr-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px; border-bottom: 1px solid var(--border, #E8E8EC);
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.mnv-back {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border, #E8E8EC); border-radius: 12px;
  background: #fff; color: var(--ink, #0D0D0F); cursor: pointer;
}
.mnv-back:active { background: var(--surface, #FAFAFB); }
.mnv-back svg { width: 22px; height: 22px; }
.mnv-addr-top h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink, #0D0D0F); }
.mnv-addr-top h2 em { font-style: normal; color: var(--brand, #E5106A); }

.mnv-addr-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border, #E8E8EC); border-radius: 14px;
  padding: 13px 14px; margin: 16px 14px 6px;
  transition: border-color 0.14s ease;
}
.mnv-addr-search:focus-within { border-color: var(--ink, #0D0D0F); }
.mnv-addr-search svg { color: var(--muted-2, #A1A1A7); }
.mnv-addr-search input { border: none; outline: none; flex: 1; font: inherit; font-size: 15px; background: transparent; min-width: 0; color: var(--ink, #0D0D0F); }

.mnv-map-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 8px 14px 0; height: 52px; border-radius: 14px;
  background: var(--ink, #0D0D0F); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none;
}
.mnv-map-cta:active { transform: scale(0.98); }

.mnv-alist { padding: 12px 14px 30px; display: flex; flex-direction: column; gap: 10px; }
.mnv-acard {
  display: grid; grid-template-columns: 40px 1fr 40px; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--border, #E8E8EC); border-radius: 16px;
  padding: 14px; text-decoration: none; color: inherit;
  transition: background 0.14s ease;
}
.mnv-acard:active { background: var(--surface, #FAFAFB); }
.mnv-pin {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand, #E5106A);
  filter: drop-shadow(0 5px 12px rgba(229,16,106,0.5));
}
.mnv-pin svg { width: 30px; height: 38px; }
.mnv-pin b {
  position: absolute; top: 6px; left: 0; right: 0;
  color: #fff; font-weight: 900; font-size: 15px; text-align: center; line-height: 1;
}
.mnv-acard .mnv-m { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink, #0D0D0F); }
.mnv-acard .mnv-a { font-size: 13px; color: var(--muted, #6B6B72); margin-top: 2px; }
.mnv-nav-ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2, #F2F2F4); color: var(--brand, #E5106A);
  display: inline-flex; align-items: center; justify-content: center;
}
.mnv-nav-ic svg { width: 20px; height: 20px; }

/* ── SEARCH PANEL (full-screen) ─────────────────────────── */
.mnv-search-panel {
  position: fixed; inset: 0; z-index: var(--mnv-z-search);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateY(8px); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mnv-search-panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mnv-sp-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px; border-bottom: 1px solid var(--border, #E8E8EC);
}
.mnv-sp-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface, #FAFAFB); border: 1.5px solid transparent; border-radius: 13px;
  padding: 12px 14px;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.mnv-sp-field:focus-within { background: #fff; border-color: var(--ink, #0D0D0F); }
.mnv-sp-field svg { color: var(--muted-2, #A1A1A7); flex: 0 0 auto; }
.mnv-sp-field input { border: none; outline: none; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink, #0D0D0F); }
.mnv-sp-cancel {
  border: none; background: none; cursor: pointer; font: inherit;
  font-size: 15px; font-weight: 700; color: var(--brand, #E5106A);
  padding: 6px 4px; flex: 0 0 auto;
}
.mnv-sp-body { flex: 1; overflow-y: auto; padding: 18px 16px; }
.mnv-sp-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted-2, #A1A1A7); margin: 0 2px 12px;
}
.mnv-sp-quick { display: flex; flex-direction: column; }
.mnv-sp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px; text-decoration: none; color: var(--ink, #0D0D0F);
  font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--divider, #EFEFF2);
}
.mnv-sp-row:last-child { border-bottom: none; }
.mnv-sp-row .mnv-e { font-size: 22px; width: 26px; text-align: center; flex: 0 0 auto; }

/* ── body padding для bottom nav (чтобы контент не залезал) ── */
@media (max-width: 860px) {
  body { padding-bottom: 84px; }
}
