html {
  scroll-behavior: smooth;
}

.scroll-helper {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(34, 28, 31, 0.9);
  color: #fff;
  box-shadow: 0 14px 34px rgba(34, 28, 31, 0.24);
  cursor: pointer;
  font: 800 14px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.scroll-helper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-helper:hover,
.scroll-helper:focus-visible {
  background: #5e2840;
  outline: none;
}

@media (max-width: 640px) {
  .scroll-helper {
    right: 14px;
    bottom: 14px;
    min-width: 86px;
    min-height: 44px;
    padding: 11px 14px;
  }
}
