/* OneMagic 2.4.0 Stable Core — canonical global header. No legacy header layers. */
html body header.omg-global-header,
html body header.omg-global-header *{box-sizing:border-box}

html body header.omg-global-header{
  position:sticky!important;
  top:0!important;
  z-index:2147483647!important;
  width:100%!important;
  height:78px!important;
  min-height:78px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid #e5ebf3!important;
  background:rgba(255,255,255,.98)!important;
  color:#071124!important;
  box-shadow:0 6px 20px rgba(15,35,66,.045)!important;
  backdrop-filter:saturate(150%) blur(12px)!important;
  -webkit-backdrop-filter:saturate(150%) blur(12px)!important;
  overflow:visible!important;
  isolation:isolate!important;
}
html body header.omg-global-header .omg-global-header__inner{
  position:relative!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-rows:78px!important;
  align-items:center!important;
  gap:clamp(22px,2.4vw,46px)!important;
  width:min(calc(100% - 48px),1360px)!important;
  height:78px!important;
  min-height:78px!important;
  margin:0 auto!important;
  padding:0!important;
  overflow:visible!important;
}
html body header.omg-global-header .omg-global-brand{
  display:inline-flex!important;
  align-items:center!important;
  gap:11px!important;
  min-width:146px!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  color:#071124!important;
  text-decoration:none!important;
  transform:none!important;
}
html body header.omg-global-header .omg-global-brand__mark{
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  flex:0 0 36px!important;
  margin:0!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,#4e72ff,#0aaad6)!important;
  color:#fff!important;
  font:800 18px/1 Inter,Arial,sans-serif!important;
  box-shadow:0 8px 18px rgba(18,102,255,.2)!important;
}
html body header.omg-global-header .omg-global-brand__copy{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
}
html body header.omg-global-header .omg-global-brand__copy strong{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#071124!important;
  font:900 20px/1 Inter,Arial,sans-serif!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
}
html body header.omg-global-header .omg-global-brand__copy small{display:none!important}

html body header.omg-global-header .omg-global-menu{
  position:static!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:clamp(16px,1.65vw,30px)!important;
  min-width:0!important;
  width:100%!important;
  height:78px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
  transform:none!important;
}
html body header.omg-global-header .omg-global-menu a{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:78px!important;
  height:78px!important;
  margin:0!important;
  padding:1px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#0f172a!important;
  box-shadow:none!important;
  font:850 13px/1.2 Inter,Arial,sans-serif!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  transform:none!important;
}
html body header.omg-global-header .omg-global-menu a:hover,
html body header.omg-global-header .omg-global-menu a.is-active{color:#1266ff!important}
html body header.omg-global-header .omg-global-menu a.is-active::after{
  content:""!important;
  position:absolute!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  height:3px!important;
  border-radius:999px 999px 0 0!important;
  background:#1266ff!important;
}
html body header.omg-global-header .omg-global-menu__telegram{display:none!important}

html body header.omg-global-header .omg-global-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  min-width:44px!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
}
html body header.omg-global-header .omg-global-search-open{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #dfe7f1!important;
  border-radius:13px!important;
  background:#f5f8fc!important;
  color:#0b1736!important;
  box-shadow:none!important;
  cursor:pointer!important;
  transform:none!important;
}
html body header.omg-global-header .omg-global-search-open:hover{background:#edf4ff!important;color:#1266ff!important;border-color:#cfe0ff!important}
html body header.omg-global-header .omg-global-search-open svg{width:19px!important;height:19px!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}
html body header.omg-global-header .omg-global-toggle{display:none!important}

/* Switch to the compact menu before long labels can collide. */
@media(max-width:1180px){
  html.omg-global-menu-open,
  body.omg-global-menu-open{overflow:hidden!important}
  html body header.omg-global-header{
    height:auto!important;
    min-height:0!important;
    padding:6px 0!important;
    border-bottom:0!important;
    background:#f4f7fb!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  html body header.omg-global-header .omg-global-header__inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:58px!important;
    grid-template-areas:"brand actions"!important;
    gap:10px!important;
    width:calc(100% - 20px)!important;
    height:58px!important;
    min-height:58px!important;
    margin:0 auto!important;
    padding:0 8px 0 12px!important;
    border:1px solid #dfe7f1!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 8px 24px rgba(15,35,66,.08)!important;
    overflow:visible!important;
  }
  html body header.omg-global-header .omg-global-brand{
    grid-area:brand!important;
    min-width:0!important;
    height:58px!important;
    gap:9px!important;
  }
  html body header.omg-global-header .omg-global-brand__mark{
    width:32px!important;height:32px!important;min-width:32px!important;flex-basis:32px!important;border-radius:10px!important;font-size:17px!important
  }
  html body header.omg-global-header .omg-global-brand__copy{height:32px!important}
  html body header.omg-global-header .omg-global-brand__copy strong{font-size:17px!important}
  html body header.omg-global-header .omg-global-actions{
    grid-area:actions!important;
    height:58px!important;
    gap:7px!important;
  }
  html body header.omg-global-header .omg-global-search-open{width:40px!important;height:40px!important;min-width:40px!important;border-radius:12px!important}
  html body header.omg-global-header .omg-global-toggle{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #e1e7ef!important;
    border-radius:12px!important;
    background:#f5f8fc!important;
    cursor:pointer!important;
  }
  html body header.omg-global-header .omg-global-toggle span{
    display:block!important;width:22px!important;height:2px!important;margin:0!important;border-radius:3px!important;background:#0b1736!important;transition:transform .18s ease,opacity .18s ease!important
  }
  html body header.omg-global-header.is-open .omg-global-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)!important}
  html body header.omg-global-header.is-open .omg-global-toggle span:nth-child(2){opacity:0!important}
  html body header.omg-global-header.is-open .omg-global-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)!important}
  html body header.omg-global-header .omg-global-menu{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    right:0!important;
    left:auto!important;
    z-index:2147483647!important;
    display:none!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    gap:4px!important;
    width:min(430px,100%)!important;
    height:auto!important;
    max-height:calc(100dvh - 84px)!important;
    margin:0!important;
    padding:10px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    border:1px solid #dfe7f1!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 22px 60px rgba(15,35,66,.25)!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
  }
  html body header.omg-global-header.is-open .omg-global-menu{display:grid!important;pointer-events:auto!important}
  html body header.omg-global-header:not(.is-open) .omg-global-menu{display:none!important;pointer-events:none!important}
  html body header.omg-global-header .omg-global-menu a{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-height:44px!important;
    height:auto!important;
    margin:0!important;
    padding:11px 12px!important;
    border:0!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#071124!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:850!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    box-shadow:none!important;
  }
  html body header.omg-global-header .omg-global-menu a::after{display:none!important;content:none!important}
  html body header.omg-global-header .omg-global-menu a:hover,
  html body header.omg-global-header .omg-global-menu a.is-active{background:#eef5ff!important;color:#1266ff!important}
}

@media(max-width:560px){
  html body header.omg-global-header .omg-global-menu{right:0!important;left:0!important;width:100%!important}
}
