/* MEGAMIST FINAL LIVE — responsive header stabilization */
@media (max-width:1120px){
  .header>.container.nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;column-gap:8px!important;width:100%!important;min-width:0!important;padding-inline:clamp(12px,3.2vw,22px)!important}
  .header .brand{grid-column:1!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .header .lang-selector{grid-column:2!important;margin:0!important;flex:none!important}
  .header .mobile-menu-toggle{grid-column:3!important;margin:0!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .header>.container.nav>.mm-rc8-site-search{display:none!important}
}
@media (max-width:640px){
  .topbar{display:none!important}
  .header,.header>.container.nav{min-height:68px!important;height:68px!important}
  .header>.container.nav{grid-template-columns:minmax(0,1fr) 44px 44px!important;column-gap:6px!important;padding-inline:12px!important}
  html body .header .brand img,html body .header.mm-sticky-scrolled .brand img,html body.mm-fixed-header-active .header .brand img{width:auto!important;height:auto!important;min-height:0!important;max-height:40px!important;max-width:clamp(142px,43vw,184px)!important;object-fit:contain!important;object-position:left center!important}
  [dir="rtl"] .header .brand img{object-position:right center!important}
  .header .lang-current{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;display:flex!important;justify-content:center!important;gap:2px!important}
  .header .lang-current .flag-img{width:20px!important;height:20px!important}
  .header .lang-current span{font-size:10px!important;line-height:1!important}
}
@media (max-width:359px){
  .header>.container.nav{padding-inline:8px!important;column-gap:4px!important}
  html body .header .brand img{max-width:138px!important;max-height:38px!important}
}
