/* ========== ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ========== ПЛАВАНИЕ ========== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.float { animation: float 6s ease-in-out infinite; }

/* ========== ПУЛЬСАЦИЯ ========== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,97,0.7); }
  50% { box-shadow: 0 0 0 18px rgba(201,169,97,0); }
}
.pulse { animation: pulse 2.5s infinite; }

/* ========== ГРАДИЕНТНЫЙ ТЕКСТ ========== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent), #e8c97a, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}

/* ========== ПЛАВАЮЩАЯ КНОПКА MAX ========== */
.max-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5b6ef5, #7c4dff);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(124,77,255,0.4);
  transition: var(--transition);
  /* МОБИЛЬНО: удобная зона нажатия */
  min-height: 52px;
}
.max-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(124,77,255,0.6);
}
.max-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* МОБИЛЬНО: на телефоне — только иконка, чтобы не закрывать контент */
@media (max-width: 600px) {
  .max-btn {
    bottom: 16px;
    right: 16px;
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .max-btn span,
  .max-btn .max-text {
    display: none;
  }
  .max-btn svg { width: 26px; height: 26px; }
}

/* ========== АНИМАЦИИ ПРИ HOVER ========== */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}