/* NiceSlides.ru V250 — reliable fixed mobile site header */

/*
  V249 used position:sticky. footer-v217.css sets overflow-x:hidden on html+body
  in the mobile breakpoint; on mobile Chromium/WebView that can turn the root
  into the sticky scroll container and the header may scroll away. V250 uses a
  real fixed header and compensates its height in the document flow. V251 keeps
  that fix but restores a sane stacking order so dialogs always cover the header.
*/
@media (max-width:767px){
  html{
    scroll-padding-top:94px!important;
  }
  body{
    padding-top:94px!important;
  }
  .site-header.site-header-v202{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    margin:0!important;
    z-index:80!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    background:#fff!important;
    isolation:isolate!important;
  }
  .site-header.site-header-v202 .header-inner-v202{
    position:relative!important;
    z-index:81!important;
    transform:none!important;
  }
  .site-header.site-header-v202 .mobile-menu-v202,
  .site-header.site-header-v202 .mobile-menu-panel{
    z-index:110!important;
  }
}

@media (max-width:680px){
  html{scroll-padding-top:82px!important}
  body{padding-top:82px!important}
}

@media (max-width:460px){
  html{scroll-padding-top:72px!important}
  body{padding-top:72px!important}
}
