/* Анимации для проекта */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes grow {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes aurora {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 255, 127, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.8);
  }
}

/* Утилиты для применения анимаций */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-out {
  animation: fadeOut 0.4s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-grow {
  animation: grow 0.5s ease-out;
}

.animate-pulse-custom {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Задержки для последовательных анимаций */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Стили для табов */
[data-tab-button].active {
  background-color: #C41E3A;
  color: white;
  border-bottom: 3px solid #C41E3A;
}

[data-tab-button]:not(.active) {
  background-color: transparent;
  border-bottom: 3px solid transparent;
}

[data-tab-button]:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Адаптивность для табов */
@media (max-width: 640px) {
  [data-tab-button] {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* Стили для FAQ */
[data-faq-item].faq-open [data-faq-question] svg {
  transform: rotate(180deg);
}

[data-faq-item].faq-closed [data-faq-question] svg {
  transform: rotate(0deg);
}

[data-faq-question] {
  transition: background-color 0.2s ease;
}

/* Стили для валидации формы */
.field-container {
  position: relative;
}

.error-message {
  animation: fadeIn 0.3s ease-out;
}
