/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0096ff 0%, #00c3ff 100%);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 150, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

/* Состояние видимости */
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Эффект при наведении */
.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 150, 255, 0.5);
}

/* Эффект при нажатии */
.scroll-to-top:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 150, 255, 0.3);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}
