.hero {
  padding: 60px 0;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 40px;
}

.hero-info {
  flex: 1;
  position: relative;
  top: -100px;         
  margin-right: -60px;
  z-index: 2;        
  max-width: 50%;
}

.hero-info h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  white-space: normal;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;  
  margin-top: 16px;
}

.hero-info .btn {
  margin-bottom: 0; 
}

.hero-phone {
  font-size: 18px;
  color: #333;
  margin: 0;
  font-weight: 400;      
}

.hero-phone strong {
  font-weight: 700;  
}

.hero-img {
  flex: 1;
  text-align: right;
  z-index: 1;
  position: relative;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

/* планшеты */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 24px;
  }
  .hero-info {
    max-width: 60%;
    top: -10px;
    margin-right: -30px;
  }
  .hero-info h1 {
    font-size: 28px;
  }
}

/* мобилки */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .hero-info {
    max-width: 100%;
    top: 0;
    margin-right: 0;
  }

  .hero-info h1 {
    font-size: 24px;
  }

  .hero-info h1 br {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    gap: 8px;
  }

  .hero-img {
    text-align: center;
  }

  .hero-img img {
    max-width: 80%;
  }
}


/* ---------------- HERO ANIMATION ---------------- */

/* стартовое состояние — невидимо, смещено */
.hero-info, 
.hero-img img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* картинка немного увеличена — даёт эффект плавного "въезда" */
.hero-img img {
  transform: translateY(20px) scale(1.03);
}

/* когда страница загружена — плавный показ */
.hero.loaded .hero-info {
  opacity: 1;
  transform: translateY(0);
}

/* задержка появления картинки — красиво */
.hero.loaded .hero-img img {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.2s;
}

/* задержка появления кнопки */
.hero.loaded .hero-cta {
  opacity: 0;
  transform: translateY(10px);
  animation: heroCtaFade 1s ease forwards;
  animation-delay: 0.6s;
}

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