
/* V70 — единая кнопка «В начало» на всех страницах */

.mp-back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:4600;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  min-width:48px;
  height:48px;
  padding:0 15px;

  border:1px solid rgba(23,26,31,.14);
  border-radius:12px;
  background:rgba(23,26,31,.94);
  color:#fff;
  box-shadow:0 10px 30px rgba(23,26,31,.18);

  font:750 13px/1 Arial, sans-serif;
  letter-spacing:.01em;
  cursor:pointer;

  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  pointer-events:none;

  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease,
    background-color .18s ease,
    box-shadow .18s ease;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.mp-back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.mp-back-to-top:hover{
  background:#000;
  box-shadow:0 14px 34px rgba(23,26,31,.24);
}

.mp-back-to-top:focus-visible{
  outline:3px solid rgba(47,111,237,.32);
  outline-offset:3px;
}

.mp-back-to-top__icon{
  display:block;
  width:18px;
  height:18px;
  flex:0 0 18px;
}

.mp-back-to-top__label{
  white-space:nowrap;
}

/* Keep clear of safe areas and make the mobile control compact. */
@media(max-width:767px){
  .mp-back-to-top{
    right:max(14px, env(safe-area-inset-right));
    bottom:max(14px, env(safe-area-inset-bottom));
    width:46px;
    min-width:46px;
    height:46px;
    padding:0;
    border-radius:12px;
  }

  .mp-back-to-top__label{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .mp-back-to-top{
    transition:none;
  }
}
