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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Плавные переходы для связей при наведении */
.link-hover {
  transition: all 0.3s ease;
}

.link-hover:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Подсветка связей */
.connection-line {
  transition: stroke-width 0.3s ease, opacity 0.3s ease;
}

.connection-line:hover {
  stroke-width: 3;
  opacity: 1;
}

/* FAQ: поворот стрелки при раскрытии */
.faq-open .faq-chevron {
  transform: rotate(180deg);
}

/* Валидация формы: подсветка ошибки */
.contact-input.contact-input-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}
