/* CHE — scroll-aware header · Release Candidate #126.
   Behavioral reference: Peaceful World global header (24px down / 12px up).
   Generated CHE EN/RU only. Legacy hero, CHE source CSS and other routes stay locked. */
#che-page.che-canonical.che-scroll-header-ready{
  --che-scroll-header-height:76px;
}
#che-page.che-canonical.che-scroll-header-ready .che-hero-shell{
  /* The original 76px topline is moved to a fixed, persistent wrapper.
     Replacing its flex height with padding preserves the approved first fold. */
  padding-top:var(--che-scroll-header-height);
}
#che-page.che-canonical .che-scroll-header{
  position:fixed;
  inset:0 0 auto 0;
  width:100%;
  min-height:var(--che-scroll-header-height);
  z-index:940;
  background:rgba(5,7,8,.08);
  -webkit-backdrop-filter:blur(0px);
  backdrop-filter:blur(0px);
  transform:translate3d(0,0,0);
  transition:transform 220ms cubic-bezier(.2,.72,.3,1),
             background-color 190ms ease,box-shadow 190ms ease,
             backdrop-filter 190ms ease;
}
#che-page.che-canonical .che-scroll-header.is-scrolled{
  background:rgba(7,11,13,.95);
  -webkit-backdrop-filter:blur(17px);
  backdrop-filter:blur(17px);
  box-shadow:0 10px 25px rgba(0,0,0,.26),
             inset 0 -1px rgba(222,233,232,.10);
}
#che-page.che-canonical .che-scroll-header.is-scroll-hidden{
  transform:translate3d(0,-110%,0);
  pointer-events:none;
}
#che-page.che-canonical .che-scroll-header>.che-shell{
  display:block;
  min-height:var(--che-scroll-header-height);
}
#che-page.che-canonical .che-scroll-header .che-topline{
  min-height:var(--che-scroll-header-height);
  border-bottom:1px solid var(--che-line-soft);
}
#che-page.che-canonical .che-scroll-header .che-topline .che-nav a:focus-visible,
#che-page.che-canonical .che-scroll-header .che-topline .che-brand:focus-visible,
#che-page.che-canonical .che-scroll-header .che-topline .che-top-cta:focus-visible{
  outline:2px solid #f2f5f1;
  outline-offset:4px;
}
#che-page.che-canonical.che-scroll-header-ready .che-skip-link:focus{
  position:fixed;
  z-index:1100;
}
@media(max-width:640px){
  #che-page.che-canonical.che-scroll-header-ready{
    --che-scroll-header-height:64px;
  }
}
@media(prefers-reduced-motion:reduce){
  #che-page.che-canonical .che-scroll-header{
    transition:none!important;
  }
  #che-page.che-canonical .che-scroll-header.is-scroll-hidden{
    transform:none;
    pointer-events:auto;
  }
}
@supports selector(html:has(#che-page.che-scroll-header-ready)){
  html:has(#che-page.che-scroll-header-ready){
    scroll-padding-top:calc(16px + 76px);
  }
  @media(max-width:640px){
    html:has(#che-page.che-scroll-header-ready){
      scroll-padding-top:calc(16px + 64px);
    }
  }
}
