/* Klever v58 — one native page-up button for desktop and mobile.
   Desktop: the lower-right zone is reserved for the Replain messenger bubble,
   so the page-up control is placed directly above it and remains clickable.
   Bitrix modal windows are above it by their own z-index. */
html body #KleverGoTop,
html body .klever-go-top:not(#Go_Top) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body #Go_Top.go_top.klever-page-up-single {
  position: fixed !important;
  right: 28px !important;
  /* Replain occupies the lower-right corner (about 64 px high).
     108 px leaves a visible gap and prevents either control covering the other. */
  bottom: 108px !important;
  z-index: 2000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 50% !important;
  background: rgba(44, 43, 41, .94) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.28) !important;
  color: #fff !important;
  line-height: 1 !important;
  font-size: 26px !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

html body #Go_Top.go_top.klever-page-up-single .fa {
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  line-height: 1 !important;
}

html body #Go_Top.go_top.klever-page-up-single.klever-page-up-single--visible {
  display: flex !important;
}

html body #Go_Top.go_top.klever-page-up-single:hover,
html body #Go_Top.go_top.klever-page-up-single:focus {
  background: #bb8500 !important;
  color: #fff !important;
  outline: none !important;
}

@media (max-width: 767.98px) {
  html body #Go_Top.go_top.klever-page-up-single {
    right: 14px !important;
    /* The same Replain clearance, plus iPhone safe-area padding. */
    bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }
}
