/* Стиль для кнопки "Наверх" */
.insane-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a8a30, #0fcc45);
  border: 2px solid #f9b208;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 15px rgba(15, 204, 69, 0.7),
    0 0 30px rgba(10, 138, 48, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  transform: scale(1);
  transition: all 0.3s ease;
  animation: insane-pulse 2s infinite;
  text-decoration: none;
}

.insane-top-btn:hover {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 
    0 0 25px rgba(15, 204, 69, 0.9),
    0 0 45px rgba(10, 138, 48, 0.7),
    0 0 60px rgba(249, 178, 8, 0.5),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, #0fcc45, #0a8a30);
  animation: insane-hover 0.5s infinite alternate;
}

.insane-top-btn::before {
  content: "▲";
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Анимации */
@keyframes insane-pulse {
  0% {
    box-shadow: 
      0 0 15px rgba(15, 204, 69, 0.7),
      0 0 30px rgba(10, 138, 48, 0.5),
      inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(15, 204, 69, 0.8),
      0 0 40px rgba(10, 138, 48, 0.6),
      0 0 10px rgba(249, 178, 8, 0.4),
      inset 0 0 15px rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 
      0 0 15px rgba(15, 204, 69, 0.7),
      0 0 30px rgba(10, 138, 48, 0.5),
      inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
}

@keyframes insane-hover {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(20deg);
  }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .insane-top-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}