/* ============================================================================
   НЬЮ-ССТ — верхнее меню «TOP-MENU-VISUAL» (W3R RELAUNCH), НЕОНОВАЯ ВЕРСИЯ
   Файл: header-neon.css · версия ?v=mn1 · дата: 2026-09-19
   ----------------------------------------------------------------------------
   Идентичность: PROD new-sst.ru (тёмная неоновая палитра). Токены сверены с
   живым прод-файлом assets/css/base.css?v=conv2 (:root, копия ssh в
   live-truth/assets/css/base.css) — имена И СОЧЕТАНИЯ сохранены 1:1:

     --bg-0:#08090D  --bg-1:#0B0D14  --bg-2:#10131D  --bg-3:#151827
     --cyan:#00E5FF  --cyan-soft:rgba(0,229,255,.12)
     --violet:#8B5CFF  --magenta:#C724FF
     --grad-accent: linear-gradient(120deg, #00E5FF, #4D7CFF 45%, #8B5CFF)
     --grad-cta:    linear-gradient(120deg, #00C6FF, #6D5CFF 55%, #A855F7)
     --text:#E8EBF4  --text-dim:#9AA3B8  --text-faint:#7B859C
     --glass:rgba(21,24,39,.62)  --glass-strong:rgba(16,19,29,.86)
     --border:rgba(255,255,255,.08)  --border-strong:rgba(255,255,255,.14)
     --glow-cyan:0 0 40px rgba(0,229,255,.18)  --nav-h:68px (прод-шапка .v-nav)

   Автономный файл: префикс `mn-` (menu neon). Не конфликтует:
     — с продом (классы .v-nav, .v-*, .mp-*)
     — с CRO-слоем W4 (классы .cro-*, проверено: cro.css не содержит mn-/nm-)
     — с локальным rebuild-кандидатом (.site-header).
   !important — только в «крайних» блоках: prefers-reduced-motion и print.
   Подключение (патч patch_menu.py делает это автоматически):
     <link rel="stylesheet" href="/assets/css/header-neon.css?v=mn1">
   Деплой-пакет: wave_vis/menu/final/ (SMOKE.md — проверки после деплоя).
   ========================================================================== */

.mn-header {
  /* ---- токены прода (base.css :root), скоуп — только шапка ---- */
  --bg-0: #08090D;
  --bg-1: #0B0D14;
  --bg-2: #10131D;
  --bg-3: #151827;
  --cyan: #00E5FF;
  --cyan-soft: rgba(0, 229, 255, 0.12);
  --violet: #8B5CFF;
  --violet-soft: rgba(139, 92, 255, 0.14);
  --magenta: #C724FF;
  --grad-accent: linear-gradient(120deg, #00E5FF 0%, #4D7CFF 45%, #8B5CFF 100%);
  --grad-cta: linear-gradient(120deg, #00C6FF 0%, #6D5CFF 55%, #A855F7 100%);
  --text: #E8EBF4;
  --text-dim: #9AA3B8;
  --text-faint: #7B859C;
  --glass: rgba(21, 24, 39, 0.62);
  --glass-strong: rgba(16, 19, 29, 0.86);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.18);
  --glow-violet: 0 0 40px rgba(139, 92, 255, 0.2);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* ---- локальные переменные меню ---- */
  --mn-bar-h: 76px;
  --mn-strip-h: 38px;
  --mn-ease: cubic-bezier(.33, 1, .68, 1);

  position: sticky;
  z-index: 90; /* как у прод-шапки .v-nav */
  top: 0;
  font-family: var(--font);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

.mn-container {
  width: min(calc(100% - 40px), 1180px); /* = прод --container */
  margin-inline: auto;
}

.mn-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- фокус для доступности: неоновая рамка -------------------------------- */
.mn-header :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.mn-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(139, 92, 255, 0.4);
}

/* ============================================================================
   1. Верхняя строка (strip): ротация слоганов с неоновым подчёркиванием
   ========================================================================== */
.mn-strip {
  min-height: var(--mn-strip-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgb(11 13 20 / 94%), rgb(21 24 39 / 88%));
  font-size: 13px;
  color: var(--text-dim);
}
.mn-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--mn-strip-h);
}

.mn-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-weight: 550;
  letter-spacing: .002em;
}
.mn-tagline-dot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}
/* Неоновое подчёркивание слогана: циан → фиолет */
.mn-tagline-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
  padding-bottom: 3px;
  background:
    linear-gradient(90deg, var(--cyan), #4D7CFF 50%, var(--violet)) no-repeat 0 100%;
  background-size: 100% 2px;
  transition: opacity .45s var(--mn-ease), transform .45s var(--mn-ease);
}
.mn-tagline-text.mn-is-out {
  opacity: 0;
  transform: translateY(5px);
}
.mn-strip-contacts {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.mn-strip-link {
  color: var(--text-dim);
  font-weight: 600;
  text-decoration: none;
  transition: color .18s var(--mn-ease), text-shadow .18s var(--mn-ease);
}
.mn-strip-link:hover {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}
.mn-strip-link-mail { color: var(--violet); }
.mn-strip-link-mail:hover {
  color: #a58aff;
  text-shadow: 0 0 14px rgba(139, 92, 255, 0.5);
}

/* ============================================================================
   2. Основная панель (bar): тёмный glassmorphism
   ========================================================================== */
.mn-bar {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 13, 0.72);            /* = прод .v-nav */
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background .25s var(--mn-ease), box-shadow .25s var(--mn-ease),
    border-color .25s var(--mn-ease),
    -webkit-backdrop-filter .25s var(--mn-ease), backdrop-filter .25s var(--mn-ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mn-bar { background: rgb(8 9 13 / 97%); }
  .mn-header.mn-scrolled .mn-bar { background: #08090D; }
}

/* Состояние после скролла: плотнее стекло, глубже blur, тень */
.mn-header.mn-scrolled .mn-bar {
  background: rgba(8, 9, 13, 0.9);
  border-bottom-color: var(--border-strong);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}
.mn-header.mn-scrolled { --mn-bar-h: 66px; }

.mn-bar-inner {
  position: relative; /* опора для центрированной мега-панели */
  min-height: var(--mn-bar-h);
  display: flex;
  align-items: center;
  gap: 26px;
  transition: min-height .25s var(--mn-ease);
}

/* --- логотип: знак «N» на градиенте, как на проде (.v-logo__mark) --------- */
.mn-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.mn-brand-mark {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-accent);
  color: #04121a;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--glow-cyan);
  transition: box-shadow .3s var(--mn-ease), filter .3s var(--mn-ease),
    transform .25s var(--mn-ease);
}
.mn-brand-text { display: block; line-height: 1.2; }
.mn-brand-text small {
  display: block;
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.25;
}
.mn-brand:hover .mn-brand-mark {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ============================================================================
   3. Навигация (desktop) + пункты
   ========================================================================== */
.mn-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.mn-nav-item { position: relative; }

.mn-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color .2s var(--mn-ease), background .2s var(--mn-ease),
    box-shadow .3s var(--mn-ease);
}

/* Неоновое подчёркивание, «выезжающее» слева направо */
.mn-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--mn-ease);
}
.mn-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.mn-link:hover::after,
.mn-link[aria-expanded="true"]::after,
.mn-link[aria-current="page"]::after { transform: scaleX(1); }
/* Активный пункт — циан (по требованию: неон для активных) */
.mn-link[aria-current="page"] { color: var(--cyan); }

.mn-chevron {
  width: 10px; height: 7px;
  color: var(--text-faint);
  transition: transform .22s var(--mn-ease), color .2s var(--mn-ease);
}
.mn-link:hover .mn-chevron { color: var(--cyan); }
.mn-link[aria-expanded="true"] .mn-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

/* ============================================================================
   4. Мега-выпадающее меню «Услуги» (тёмное стекло)
   ========================================================================== */
@media (min-width: 1021px) {
  .mn-nav-item--mega { position: static; }
}

.mn-mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(980px, 100%);
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;               /* = прод --radius-lg */
  background: rgba(13, 16, 26, 0.94);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow: var(--shadow-card), var(--glow-violet);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--mn-ease), transform .2s var(--mn-ease),
    visibility 0s linear .2s;
}
/* «Мостик» против провала ховера в зазор между кнопкой и панелью */
.mn-nav-item--mega::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
.mn-mega[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s var(--mn-ease), transform .2s var(--mn-ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mn-mega { background: #10131D; }
}

.mn-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mn-seg {
  padding: 14px 14px 12px;
  border: 1px solid transparent;
  border-radius: 16px;               /* = прод --radius-md */
  transition: background .2s var(--mn-ease), transform .2s var(--mn-ease),
    box-shadow .3s var(--mn-ease), border-color .2s var(--mn-ease);
}
.mn-seg-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: color .18s var(--mn-ease);
}
.mn-seg-title:hover { color: var(--cyan); }
.mn-seg-ico {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan);
  transition: background .25s var(--mn-ease), color .25s var(--mn-ease),
    box-shadow .25s var(--mn-ease);
}
.mn-seg--violet .mn-seg-ico {
  background: var(--violet-soft);
  color: #a58aff;
}
.mn-seg svg { width: 17px; height: 17px; }
.mn-seg-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 42px;
  list-style: none;
}
.mn-seg-list a {
  display: inline-block;
  padding: 3px 0;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s var(--mn-ease), padding-left .16s var(--mn-ease);
}
.mn-seg-list a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.mn-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}
.mn-mega-footer p { margin: 0; color: var(--text-faint); font-size: 13.5px; }
.mn-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s var(--mn-ease), gap .18s var(--mn-ease),
    text-shadow .18s var(--mn-ease);
}
.mn-mega-cta:hover {
  color: #a58aff;
  gap: 10px;
  text-shadow: 0 0 16px rgba(139, 92, 255, 0.5);
}

/* ============================================================================
   5. CTA «Бесплатный разбор ТЗ» — градиент циан → фиолет (= прод --grad-cta)
   ========================================================================== */
.mn-cta {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--grad-cta);
  background-size: 150% 150%;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(109, 92, 255, 0.35);
  transition: background-position .35s var(--mn-ease), box-shadow .3s var(--mn-ease),
    transform .2s var(--mn-ease), filter .2s var(--mn-ease);
}
.mn-cta:hover {
  background-position: 90% 50%;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(0, 198, 255, 0.4);
}
.mn-cta:active { transform: translateY(0); }

/* CTA внутри мобильной панели */
.mn-cta--panel {
  display: none;
  width: 100%;
  margin-top: 12px;
}

/* ============================================================================
   6. Бургер
   ========================================================================== */
.mn-burger {
  display: none;
  flex: 0 0 auto;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background .2s var(--mn-ease), border-color .2s var(--mn-ease),
    box-shadow .3s var(--mn-ease);
}
.mn-burger:hover {
  border-color: rgba(0, 229, 255, 0.45);
  background: var(--cyan-soft);
}
.mn-burger-box {
  position: relative;
  width: 22px; height: 16px;
}
.mn-burger-line {
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s var(--mn-ease), opacity .2s var(--mn-ease),
    background .2s var(--mn-ease), top .28s var(--mn-ease);
}
.mn-burger-line:nth-child(1) { top: 0; }
.mn-burger-line:nth-child(2) { top: 7px; }
.mn-burger-line:nth-child(3) { top: 14px; }
.mn-burger[aria-expanded="true"] {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}
.mn-burger[aria-expanded="true"] .mn-burger-line { background: var(--cyan); }
.mn-burger[aria-expanded="true"] .mn-burger-line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.mn-burger[aria-expanded="true"] .mn-burger-line:nth-child(2) { opacity: 0; }
.mn-burger[aria-expanded="true"] .mn-burger-line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ============================================================================
   7. ПУЛЬСАЦИЯ на hover — неоновое свечение (glow-pulse), 0.5s, мягко
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes mn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0%); }
    50%      { box-shadow: 0 0 0 5px rgba(0, 229, 255, 0.10), 0 0 16px rgba(0, 229, 255, 0.22); }
  }
  @keyframes mn-pulse-cta {
    0%, 100% { box-shadow: 0 8px 28px rgba(109, 92, 255, 0.35); }
    50%      { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.16), 0 12px 36px rgba(0, 198, 255, 0.45); }
  }
  @keyframes mn-pulse-mark {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.18); }
    50%      { box-shadow: 0 0 40px rgba(0, 229, 255, 0.38), 0 0 18px rgba(0, 229, 255, 0.45); }
  }
  @keyframes mn-dot-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.8); }
    50%      { box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 0 5px rgba(0, 229, 255, 0%); }
  }
  @keyframes mn-flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }

  .mn-link:hover  { animation: mn-pulse .5s ease-in-out infinite; }
  .mn-cta:hover   { animation: mn-pulse-cta .5s ease-in-out infinite; }
  .mn-brand:hover .mn-brand-mark { animation: mn-pulse-mark .5s ease-in-out infinite; }
  .mn-tagline-dot { animation: mn-dot-pulse 2.6s ease-in-out infinite; }

  @media (hover: hover) and (pointer: fine) {
    .mn-seg:hover {
      background: var(--bg-3);
      border-color: rgba(0, 229, 255, 0.22);
      transform: translateY(-2px);
      box-shadow: 0 10px 26px rgba(0, 229, 255, 0.08);
    }
    .mn-seg--violet:hover { border-color: rgba(139, 92, 255, 0.3); }
    .mn-seg:hover .mn-seg-ico {
      box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
    }
    .mn-seg--violet:hover .mn-seg-ico {
      box-shadow: 0 0 16px rgba(139, 92, 255, 0.3);
    }
  }
}

/* ============================================================================
   8. Градиентная неоновая акцент-линия внизу шапки (циан → синий → фиолет)
   ========================================================================== */
.mn-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(0, 229, 255, 0) 0%, #00E5FF 18%, #4D7CFF 50%, #8B5CFF 82%,
    rgba(139, 92, 255, 0) 100%);
  background-size: 200% 100%;
  opacity: .85;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mn-header::after { animation: mn-flow 9s linear infinite; }
}

/* ============================================================================
   9. Мобильная версия (<= 1020px)
   ========================================================================== */
@media (max-width: 1020px) {
  .mn-header { --mn-bar-h: 64px; --mn-strip-h: 34px; }

  .mn-strip-contacts { display: none; }
  .mn-tagline-text { font-size: 12.5px; }

  .mn-bar-inner { gap: 14px; position: static; } /* панель якорится к .mn-bar */
  .mn-brand { font-size: 17.5px; }
  .mn-brand-mark { width: 30px; height: 30px; font-size: 13.5px; }

  .mn-cta--desktop { display: none; }
  .mn-cta--panel { display: inline-flex; }
  .mn-burger { display: inline-flex; margin-left: 0; }

  /* Панель меню: тёмная стеклянная шторка, прикреплённая к нижнему краю
     плашки шапки (absolute — предсказуемо при backdrop-filter, который
     создаёт containing block для fixed-потомков). Шапка sticky, поэтому
     панель всегда «ездит» вместе с ней. */
  .mn-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 116px);
    max-height: calc(100dvh - 116px);
    margin-left: 0;
    padding: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: rgba(11, 13, 20, 0.96);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    box-shadow: var(--shadow-card);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.3) transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.985);
    transition: opacity .22s var(--mn-ease), transform .22s var(--mn-ease),
      visibility 0s linear .22s;
  }
  .mn-nav.mn-is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity .22s var(--mn-ease), transform .22s var(--mn-ease);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mn-nav { background: #0B0D14; }
  }

  .mn-link {
    min-height: 50px;
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 13px;
    font-size: 16.5px;
  }
  .mn-link::after { display: none; }
  .mn-link[aria-current="page"] {
    background: var(--cyan-soft);
    color: var(--cyan);
  }
  .mn-chevron { width: 12px; height: 8px; }

  /* Мега превращается в аккордеон внутри панели */
  .mn-nav-item--mega { position: static; }
  .mn-nav-item--mega::after { display: none; }
  .mn-mega {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: hidden;
    transition: max-height .3s var(--mn-ease), padding .3s var(--mn-ease);
  }
  .mn-mega[data-open="true"] {
    max-height: 1200px;
    padding: 6px 6px 10px;
    margin-bottom: 6px;
  }
  .mn-mega-grid { grid-template-columns: 1fr; gap: 4px; }
  .mn-seg {
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--bg-2);
  }
  .mn-seg-list { padding-left: 42px; }
  .mn-mega-footer {
    margin-top: 10px;
    padding: 12px 4px 2px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .mn-container { width: calc(100% - 24px); }
  .mn-cta--panel { font-size: 14.5px; }
}

/* ============================================================================
   10. prefers-reduced-motion: отключаем всё декоративное движение
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mn-header *,
  .mn-header *::before,
  .mn-header *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================================
   11. Печать: шапку скрываем
   ========================================================================== */
@media print {
  .mn-header { display: none !important; }
}
