@keyframes fade-up { from {opacity:0; transform:translateY(10px)} to {opacity:1; transform:translateY(0)} }
@keyframes shine { from {transform:translateX(-150%)} to {transform:translateX(150%)} }

@keyframes fade-in { from {opacity:0; transform: translateY(6px)} to {opacity:1; transform:none} }
#apply form { animation: fade-in .4s ease both }

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
  
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}


.hero-container {
  position: relative;
  overflow: hidden;
}

.hero-image {
  opacity: 0;
  transform: scale(1.1);
  animation: heroImageAnimation 1.5s forwards 0.5s;
}

@keyframes heroImageAnimation {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTitleAnimation 1.2s forwards 1s;
}

@keyframes heroTitleAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: heroSubtitleAnimation 1.2s forwards 1.3s;
}

@keyframes heroSubtitleAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-button {
  opacity: 0;
  transform: translateY(20px);
  animation: heroButtonAnimation 1s forwards 1.6s;
}

@keyframes heroButtonAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-feature {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFeatureAnimation 0.8s forwards;
}

@keyframes heroFeatureAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes magneticSlide {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(-5deg);
  }
  60% {
    transform: translateX(10px) rotate(1deg);
  }
  80% {
    transform: translateX(-5px) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

.magnetic-card {
  animation: magneticSlide 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Анимация градиентного фона */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(270deg, var(--brand-600), var(--brand-500), var(--brand-400));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

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

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes textReveal {
  from {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.text-reveal {
  animation: textReveal 1.5s ease forwards;
}

.typing-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-bubble-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.chat-bubble {
  transition: all 0.4s ease;
}

.final.animate-expand {
  animation: expandIn 0.4s ease;
}

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

.voice-bar {
  width: 3px;
  height: 10px;
  background: white;
  margin: 0 2px;
  border-radius: 2px;
  display: inline-block;
  animation: wave 1s infinite ease-in-out;
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.5); }
}
