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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.animate-shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(225, 29, 72, 0.1) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
}

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

.animate-grow {
  animation: grow 0.6s 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;
}

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

/* Плавные переходы для hover */
.transition-elegant {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на карточки */
.hover-lift:hover {
  transform: translateY(-8px);
  transition: transform 0.3s ease-out;
}

/* Стили для активного состояния табов */
[data-tab-button].active {
  color: #E11D48 !important;
  border-bottom-color: #E11D48 !important;
}

/* Уведомление об успешной отправке формы */
.form-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 40px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.form-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.form-notification-content {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}

.form-notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #10B981;
}

.form-notification-text {
  flex: 1;
  min-width: 0;
}

.form-notification-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.form-notification-message {
  font-size: 14px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}

.form-notification-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-notification-close:hover {
  color: #E11D48;
}

.form-notification-close svg {
  width: 20px;
  height: 20px;
}

.form-notification-success {
  border-left: 4px solid #10B981;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 640px) {
  .form-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  .form-notification-content {
    padding: 12px;
    gap: 10px;
  }

  .form-notification-title {
    font-size: 15px;
  }

  .form-notification-message {
    font-size: 13px;
  }
}
