/* components/hero/hero.css */

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  
  /* Анимация появления фона - УСКОРЕНО */
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  
  /* Эффект zoom-out при загрузке - УСКОРЕНО */
  animation: zoomOut 1s ease-out;
}

@keyframes zoomOut {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.hero:hover .hero__bg-image {
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.7) 100%);
  transition: background 0.5s ease;
  
  /* Анимация появления overlay - УСКОРЕНО */
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero:hover .hero__overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.83) 50%, rgba(0, 0, 0, 0.68) 100%);
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero__content {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  
  /* Анимация появления label - УСКОРЕНО */
  animation: fadeInRight 0.5s ease-out 0.4s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__label:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.hero__title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  letter-spacing: -1.5px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  
  /* Анимация появления заголовка - УСКОРЕНО */
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content:hover .hero__title {
  transform: translateX(4px);
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero__description {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-300);
  margin: 0;
  max-width: 550px;
  transition: color 0.3s ease, transform 0.3s ease;
  
  /* Анимация появления описания - УСКОРЕНО */
  animation: fadeInUp 0.6s ease-out 0.65s both;
}

.hero__content:hover .hero__description {
  color: var(--gray-200);
  transform: translateX(4px);
}

.hero__features {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  
  /* Анимация появления features - УСКОРЕНО */
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

.hero__feature {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero__feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.hero__feature:hover::before {
  left: 100%;
}

.hero__feature:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  
  /* Анимация появления кнопок - УСКОРЕНО */
  animation: fadeInUp 0.6s ease-out 0.95s both;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Анимация появления scroll indicator - УСКОРЕНО */
  animation: fadeInUp 0.6s ease-out 1.1s both;
}

.hero__scroll:hover {
  transform: translateX(-50%) translateY(-4px);
}

.hero__scroll-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.hero__scroll:hover .hero__scroll-text {
  color: var(--gray-300);
}

.hero__scroll-icon {
  width: 24px;
  height: 36px;
  border: 2px solid var(--gray-400);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.hero__scroll:hover .hero__scroll-icon {
  border-color: var(--gray-300);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.hero__scroll-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 2px;
  animation: scroll-down 2s infinite;
  transition: background 0.3s ease;
}

.hero__scroll:hover .hero__scroll-icon::before {
  background: var(--gray-300);
}

@keyframes scroll-down {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 70vh;
    padding: 120px 0 50px;
  }

  .hero__title {
    font-size: 52px;
    letter-spacing: -1.2px;
  }
  
  .hero__description {
    font-size: 18px;
  }

  .hero__content {
    max-width: 650px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 65vh;
    padding: 110px 0 50px;
  }
  
  .hero__container {
    padding: 0 20px;
  }
  
  .hero__content {
    gap: 22px;
    max-width: 100%;
  }
  
  .hero__title {
    font-size: 38px;
    letter-spacing: -1px;
  }
  
  .hero__description {
    font-size: 16px;
    max-width: 100%;
  }

  .hero__features {
    gap: 12px;
  }

  .hero__feature {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 6px;
  }
  
  .btn {
    width: 100%;
  }

  .hero__scroll {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 60vh;
    padding: 100px 0 40px;
  }

  .hero__title {
    font-size: 32px;
  }
  
  .hero__description {
    font-size: 15px;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero__feature {
    width: 100%;
    text-align: center;
  }

  .hero__content {
    gap: 20px;
  }
}