.back-to-top {
  position: fixed;
  z-index: 40;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(6, 24, 50, 0.24);
  border-radius: 2px;
  background: rgba(252, 249, 248, 0.96);
  color: #102a4c;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

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

.back-to-top:hover {
  border-color: #061832;
  background: #061832;
  color: #fff;
}

.back-to-top:focus-visible {
  outline: 2px solid #102a4c;
  outline-offset: 4px;
}

.back-to-top-icon {
  display: block;
  font: 400 26px/1 Arial, sans-serif;
  transform: translateY(1px);
}

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

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