/* ===== меню «E» (24.10): белое, по центру, тихое — как у fashion-брендов =====
   Разметку строит mscene.js (класс m-nav--e), здесь перекрываем старый бархат. */
@media (max-width: 1099px) {
  .m-nav.m-nav--e { background: #FFF !important; color: #111 !important; align-items: center; text-align: center;
    padding: calc(14px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom)) !important;
    opacity: 0; transform: none; transition: opacity .35s ease !important; }
  .m-nav.m-nav--e.is-open { opacity: 1; }
  html.m-nav-on .m-burger { opacity: 0 !important; pointer-events: none !important; }
  .m-nav--e .m-nav__head { position: relative; width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; flex: none; }
  .m-nav--e .m-nav__x { position: absolute; left: -10px; top: 0; width: 48px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; }
  .m-nav--e .m-nav__x:focus { outline: none; }
  .m-nav--e .m-nav__x i { position: absolute; left: 14px; top: 23px; width: 20px; height: 2px; background: #A51C1F; transition: transform .45s cubic-bezier(.22,1,.36,1) .1s; }
  .m-nav--e .m-nav__x i:first-child { transform: rotate(45deg); } .m-nav--e .m-nav__x i:last-child { transform: rotate(-45deg); }
  .m-nav--e:not(.is-open) .m-nav__x i { transform: rotate(0); }
  .m-nav--e .m-nav__logo { display: block; min-height: 0; color: #111 !important; font: 400 22px/1 Druzhok, "Cormorant Garamond", serif !important; letter-spacing: .04em; text-transform: none; text-decoration: none; }
  .m-nav--e .m-nav__fly { position: absolute; right: -2px; top: 12px; width: 24px; height: 24px; color: #A51C1F; transform-origin: 50% 30%; }
  .m-nav--e.is-open .m-nav__fly { animation: m-fly 1.1s cubic-bezier(.3,.7,.3,1) .15s both; }
  @keyframes m-fly { 0% { transform: scale(.4, .4) translateY(6px); opacity: 0; } 35% { transform: scale(1.15, .7); opacity: 1; } 55% { transform: scale(.85, 1.1); } 75% { transform: scale(1.05, .95); } 100% { transform: none; } }

  .m-nav--e .m-nav__links { display: flex; flex-direction: column; align-items: center; margin: min(9vh, 64px) 0 0 !important; gap: 0; }
  .m-nav--e .m-nav__links a { display: block; padding: min(1.6vh, 12px) 12px !important; color: #111 !important; text-decoration: none;
    font: 500 13px/1.2 "IBM Plex Mono", monospace !important; letter-spacing: .26em; text-transform: uppercase; font-style: normal !important; }
  .m-nav--e .m-nav__links a[aria-current] { color: #A51C1F !important; }
  .m-nav--e .m-nav__links a:active { color: #A51C1F !important; }
  .m-nav--e.is-open .m-nav__links a { animation: m-e-in .6s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.08s + var(--i) * .045s) !important; }
  @keyframes m-e-in { from { opacity: 0; transform: translateY(8px); letter-spacing: .5em; } to { opacity: 1; transform: none; letter-spacing: .26em; } }

  .m-nav--e .m-nav__pages { display: flex; flex-direction: column; gap: 6px; margin-top: min(6vh, 44px); }
  .m-nav--e .m-nav__pages a { color: #111; text-decoration: none; font: italic 400 18px/1.3 "Cormorant Garamond", serif; }
  .m-nav--e .m-nav__soc { display: flex; gap: 12px; justify-content: center; margin: min(4vh, 28px) 0 0; font: 400 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
  .m-nav--e .m-nav__soc a { color: #111; text-decoration: none; }
  .m-nav--e .m-nav__soc span { color: #999; }
  .m-nav--e .m-nav__soc .m-nav__soclbl { color: #777; }
  .m-nav--e .m-nav__book { display: block; min-height: 0; width: min(230px, 64vw); margin: min(4vh, 30px) auto 0 !important; padding: 15px 0 !important; background: none !important; border: 1.5px solid #A51C1F;
    color: #A51C1F !important; text-decoration: none; font: 500 11px/1 "IBM Plex Mono", monospace !important; letter-spacing: .2em; text-transform: uppercase; transition: background .2s, color .2s; }
  .m-nav--e .m-nav__book:active { background: #A51C1F !important; color: #FFF !important; }
  .m-nav--e .m-nav__addr { margin: 14px 0 0 !important; color: #777 !important; font: 400 10px/1.5 "IBM Plex Mono", monospace !important; letter-spacing: .06em; text-transform: uppercase; }
  .m-nav--e .m-nav__addr a { color: inherit; text-decoration: none; }
  .m-nav--e.is-open .m-nav__pages, .m-nav--e.is-open .m-nav__soc, .m-nav--e.is-open .m-nav__book, .m-nav--e.is-open .m-nav__addr { animation: m-e-fade .6s ease .5s both; }
  @keyframes m-e-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 1099px) and (prefers-reduced-motion: reduce) {
  .m-nav--e *, .m-nav--e { animation: none !important; transition: none !important; }
}

