﻿/* Кнопка — сверху по центру, обновлённый дизайн */
.buton {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  /* Размеры и текст */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 42px; /* больше padding */
  min-width: 260px; /* минимальная ширина для сбалансированного вида */
  
  /* Цвет и градиент — обновлён */
  background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); /* фиолетово-синий градиент */
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px; /* увеличен шрифт */
  letter-spacing: -0.3px;

  /* Форма и тени */
  border-radius: 50px; /* более мягкая, "каплевидная" форма */
  box-shadow:
    0 6px 20px rgba(74, 0, 224, 0.3),
    inset 0 -2px 0 rgba(255, 255, 255, 0.15); /* внутренняя подсветка снизу */

  /* Анимации */
  transition:
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s ease,
    opacity 0.8s ease;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards 0.6s;
}

.buton__icon {
  width: 36px;
  height: 36px;
  fill: currentColor;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Hover: плавное увеличение + подъём + усиление тени */
.buton:hover {
  transform: translateX(-50%) translateY(-6px) scale(1.04);
  box-shadow:
    0 12px 32px rgba(74, 0, 224, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 -2px 0 rgba(255, 255, 255, 0.2);
}

/* Active — при нажатии */
.buton:active {
  transform: translateX(-50%) translateY(2px) scale(0.98);
  box-shadow:
    0 4px 16px rgba(74, 0, 224, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Анимация появления — плавный въезд сверху */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}