/* =========================================================
   Блок Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px 16px 0;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero__text {
  margin: 0 0 32px;
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.3;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* На мобильном картинка выходит за края экрана */
.hero__media {
  margin: 0 -16px;
}

.hero__media img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .hero { padding-inline: 40px; }
  .hero__media { margin-inline: -40px; }
  .hero__title { font-size: 2.75rem; }
  .hero__text { max-width: 44ch; font-size: 1.125rem; }
  .hero__actions { flex-direction: row; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    min-height: 724px;
    padding: 47px 0 47px 80px;
  }

  .hero__content { padding-right: 24px; }

  .hero__title {
    margin-bottom: 40px;
    font-size: clamp(2.75rem, 1.2rem + 3.6vw, 3.5rem);
    line-height: 1.05;
  }

  .hero__text {
    max-width: 31ch;
    margin-bottom: 40px;
    font-size: 1.25rem;
  }

  .hero__media {
    height: 583px;
    margin: 0;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
    background: #f1eff0;
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}
