.back-to-top {
  position: fixed;
  right: clamp(18px, 2.6vw, 34px);
  bottom: clamp(20px, 3vw, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px 0 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 24%, rgba(159, 224, 184, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(8, 27, 20, 0.94), rgba(12, 54, 38, 0.96));
  border: 1px solid rgba(159, 224, 184, 0.2);
  border-radius: 999px;
  box-shadow:
    0 22px 44px rgba(6, 18, 14, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

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

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(159, 224, 184, 0.34);
  box-shadow:
    0 28px 54px rgba(6, 18, 14, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-to-top:focus-visible {
  outline: none;
}

.back-to-top span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #061512;
  background: linear-gradient(135deg, #eadb9a, #c9a24a);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(201, 162, 74, 0.22);
}

.back-to-top b {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .back-to-top {
    right: 14px;
    bottom: 16px;
    min-height: 46px;
    padding: 0 15px 0 12px;
  }

  .back-to-top b {
    display: none;
  }
}
