/* Кастомные анимации */

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

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

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-count-up {
  animation: countUp 0.8s ease-out forwards;
}

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

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

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

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

/* Плавная прокрутка и запрет горизонтального скролла */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Стили для бургер-меню */
.burger-menu {
  transition: transform 0.3s ease;
}

.burger-line {
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Hover эффекты для карточек */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
}

/* Стили для статистики */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Активная ссылка в навигации */
.nav-link--active {
  position: relative;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #34d399;
}

/* Адаптивность: touch targets и переполнение */
@media (max-width: 1023px) {
  .burger-button {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
  }

  .mobile-menu a {
    display: block;
    min-height: 44px;
    padding: 12px 0;
    line-height: 1.4;
  }
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* FAQ аккордеон */
.faq-question {
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #34d399;
}

.faq-question::marker {
  display: none;
}

.faq-answer[hidden] {
  display: none;
}

.faq-item--open .faq-icon {
  transform: rotate(180deg);
}
