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

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

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

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

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

@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 reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes elegantFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleShine {
  0% {
    box-shadow: 0 0 0 rgba(184, 166, 66, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(184, 166, 66, 0.3);
  }
  100% {
    box-shadow: 0 0 0 rgba(184, 166, 66, 0);
  }
}

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

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

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.8s ease-out;
}

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

.animate-reveal {
  animation: reveal 1s ease-out;
}

.animate-elegant-fade {
  animation: elegantFade 1.2s ease-out;
}

.animate-subtle-shine {
  animation: subtleShine 3s ease-in-out infinite;
}

/* Плавные переходы для интерактивных элементов */
.transition-smooth {
  transition: all 0.3s ease-in-out;
}

/* Эффект при наведении для карточек */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

[data-tab-panel] {
  transition: opacity 0.3s ease-in-out;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 640px) {
  /* Улучшение отступов на мобильных */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Адаптивные размеры текста */
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Адаптивные кнопки табов */
  [data-tab-button] {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  /* Адаптивные панели табов */
  [data-tab-panel] {
    padding: 1rem;
  }
}
