/* === ваш CSS (сохранила, чуть скорректировала) === */
/* переменные: если их нет, добавьте минимальный набор */
:root{
  --white:#fff;
  --border:#e6e6e6;
  --brand-blue-2:#59b9ff;
  --brand-red:#e74c3c;
  --muted-light:#9aa1a7;
}

/* Стили меню/мега-меню (взято ваше) */
.mega .submenu.mega-menu {
  position:absolute; left:0; top:100%; width:980px; max-width:calc(100vw - 40px);
  background: var(--white); border:1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding:18px; display:none; z-index:3000; box-sizing:border-box;
  opacity:0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease;
}
.mega:hover > .mega-menu, .mega:focus-within > .mega-menu, .mega.open > .mega-menu {
  display:block; opacity:1; transform: translateY(0);
}

.mega .mega-inner { display:grid; grid-template-columns: repeat(3,1fr) 220px; gap:18px; align-items:start; }
.mega-column { display:flex; flex-direction:column; gap:10px; }

.mega-cat { display:flex; align-items:center; gap:10px; text-decoration:none; }
.mega-cat img { width:48px; height:48px; object-fit:cover; border-radius:6px; }
.mega-title { font-weight:600; color:#222; }

.mega-list { margin-top:6px; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.mega-list a { color:#333; text-decoration:none; padding:6px 0; display:block; }
.mega-list a:hover { color: var(--brand-blue-2); }
.mega-promo img { width:100%; height:auto; border-radius:6px; display:block; }

/* Подменю (универсальные) */
.mheader-menu .submenu {
  position:absolute; top:100%; left:0; min-width:180px; background:var(--white); border:1px solid #ddd;
  box-shadow:0 4px 8px rgba(0,0,0,0.1); padding:8px 0; display:none; z-index:3000;
}
.mheader-menu .top-menu-wrapper > li:hover > .submenu,
.mheader-menu .top-menu-wrapper > li:focus-within > .submenu,
.mheader-menu li.open > .submenu { display:block; }
.mheader-menu .submenu > li { padding:6px 20px; }
.mheader-menu .submenu > li > a { color:#333; white-space:nowrap; font-weight:400; }
.mheader-menu .submenu > li:hover > a { color: var(--brand-blue-2); }

/* Arrow (FontAwesome) */
.mheader-menu .has-submenu > a::after {
  content:'\f0d7'; font-family: "Font Awesome 6 Free"; font-weight:900; margin-left:6px; font-size:0.7em;
}

/* top menu wrapper */
.mheader-menu ul.top-menu-wrapper { display:flex; gap:15px; align-items:center; margin:0; padding-left:0; overflow:visible; list-style:none; }
.mheader-menu ul.top-menu-wrapper > li { position:relative; white-space:nowrap; display:flex; align-items:center; }
.mheader-menu ul.top-menu-wrapper > li > a { color: #222; display:flex; align-items:center; padding:8px 6px; font-weight:500; text-decoration:none; }
.mheader-menu ul.top-menu-wrapper > li:hover > a, .mheader-menu ul.top-menu-wrapper > li.active > a { color: #59b9ff; }

/* first menu item highlight */
.mheader-menu ul.top-menu-wrapper > li:first-child {
  background-color: var(--brand-red); color:var(--white); display:flex; align-items:center; padding:0 12px; border-radius:2px;
}
.mheader-menu ul.top-menu-wrapper > li:first-child > a { color:var(--white); font-weight:600; text-decoration:none; }
.mheader-menu ul.top-menu-wrapper > li:first-child > i.fa-bars { margin-right:8px; font-size:18px; }

/* nested submenu direction */
.mheader-menu .submenu li { position:relative; }
.mheader-menu .submenu li > .submenu { top:0; left:100%; min-width:160px; }

/* top-menu-more */
.top-menu-more { position:relative; cursor:pointer; user-select:none; display:flex; align-items:center; }
.top-menu-more > a { display:flex; align-items:center; font-weight:500; color:#000; padding:8px 6px; text-decoration:none; }
.top-menu-more > a::after { content:'\2026'; font-weight:700; font-size:20px; margin-left:6px; color:#000; }
.top-menu-more:hover ul.submenu, .top-menu-more:focus-within ul.submenu { display:block; }

/* touch devices fix */
body.touch .mheader-menu .top-menu-wrapper > li:hover > .submenu { display:none !important; }

/* =========================
   FIXED HEADER
   ========================= */
.fixed-header{
  position: fixed; top:0; left:0; width:100%; background: var(--white); z-index:1000;
  box-shadow: 0 5px 10px rgba(0,0,0,0.08); transition: transform .18s ease, opacity .18s ease;
  transform: translateY(-100%); opacity: 0;
}
.fixed-header.fixed-header--show { transform: translateY(0); opacity: 1; }
.fixed-header .fheader-inner { display:flex; align-items:center; gap:18px; width:100%; padding:10px 16px; box-sizing:border-box; }
.fheader-logo { flex: 0 0 auto; }
.fheader-menu { flex: 1 1 auto; display:flex; justify-content:center; }
.fheader-menu .urrow { display:flex; gap:14px; align-items:center; margin:0; padding:0; }
.fheader-menu .urrow a { color:#222; padding:6px 8px; text-decoration:none; }
.fheader-search-toggle { cursor:pointer; color:#222; margin-left:8px; display:flex; align-items:center; }

/* search toggle mode */
.fixed-header.fixed-header__show-search .fheader-menu { display:none !important; }
.fixed-header.fixed-header__show-search .fheader-search { display:flex !important; }

/* contacts */
.fheader-contacts { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.fheader-email { display:inline-flex; align-items:center; gap:8px; font-weight:500; }
.fheader-phone { display:flex; flex-direction:column; gap:2px; align-items:flex-end; font-size:24px; font-weight:700; }

/* media for fixed header */
@media (max-width: 992px) {
  .fheader-menu { display:none; }
  .fixed-header.fixed-header__show-search .fheader-contacts { display:none; }
  .fheader-contacts { gap:8px; }
  .fixed-header .fheader-inner { padding:8px 12px; }
}

/* =========================
   SEARCH (mheader-search)
   ========================= */
.mheader-search { display:none; position:absolute; top:100%; left:0; width:100%; background:#F8F8F8; padding:10px 15px; box-sizing:border-box; z-index:20; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.mheader-search-wrapper { max-width:1390px; margin:0 auto; display:flex; gap:30px; align-items:center; justify-content:center; padding:5px 15px; }
.search-input input { height:38px; font-size:16px; }
.search-button button { height:38px; padding:6px 15px; font-size:16px; }
.search-button .fa-close { color: var(--muted-light); font-size:24px; cursor:pointer; user-select:none; line-height:1; margin-left:6px; }

/* adjust for small screens */
@media (max-width:768px){
  .mheader-bottom-wrapper { gap:8px; }
  .mheader-menu { overflow:auto; -webkit-overflow-scrolling:touch; }
}

