/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url('../img/hero-doctor.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #2b2b2b;
}

/* Градієнтний оверлей: затемнює ЛИШЕ ліву третину, щоб справа було чітко видно фото */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(232, 226, 217, 0.98) 0%, 
    rgba(232, 226, 217, 0.85) 35%, 
    rgba(232, 226, 217, 0) 65%
  );
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Використовуємо Flexbox для керування порядком блоків */
.hero__content {
  max-width: 480px;
  text-align: center;
  margin-left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif, sans-serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #2b2b2b;
  order: 1;
}

.hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #4a4a4a;
  margin-bottom: 28px;
  order: 2;
}

/* На ДЕСКТОПІ: Спочатку кнопка, потім іконки */
.hero__buttons {
  order: 3;
  margin-bottom: 32px;
  width: 100%;
}

.hero__features {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #333333;
}

.feature-item svg {
  stroke: #2b2b2b;
}

/* Округлі темні кнопки */
.btn--primary-dark {
  display: inline-block;
  background-color: #2b2b2b;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--primary-dark:hover {
  background-color: #444444;
  transform: translateY(-2px);
}

/* Перемикання текстів кнопки */
.mobile-text {
  display: none !important;
}

.desktop-text {
  display: inline !important;
}

/* --- МОБІЛЬНА ВЕРСІЯ --- */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 60px);
    background-position: 65% center;
    align-items: flex-end;
    padding-bottom: 40px;
  }

  .hero__overlay {
    background: linear-gradient(
      to top, 
      rgba(20, 18, 16, 0.9) 0%, 
      rgba(20, 18, 16, 0.4) 50%, 
      rgba(0, 0, 0, 0) 100%
    );
  }

  .hero__content {
    max-width: 100%;
    margin-left: 0;
  }

  .hero__title {
    font-size: 2rem;
    color: #ffffff;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 24px;
  }

  /* На МОБІЛЬНОМУ: Кнопка лишається над іконками */
  .hero__buttons {
    order: 3;
    margin-bottom: 24px;
  }

  .btn--primary-dark {
    width: 100%;
    max-width: 300px;
    padding: 16px 20px;
  }

  .hero__features {
    order: 4;
    gap: 24px;
  }

  .feature-item {
    color: #ffffff;
  }

  .feature-item svg {
    stroke: #ffffff;
  }

  .mobile-text {
    display: inline !important;
  }

  .desktop-text {
    display: none !important;
  }
}