.hero {
  --hero-gutter: 1.25rem;
  /* нейтральная заглушка под фоновое фото, заменится реальным снимком */
  --hero-photo: #57514b;

  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--hero-photo);
  color: var(--text-on-dark);
  overflow: hidden;
}

/* затемнение для читаемости текста поверх фото */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.29) 50%, rgba(0, 0, 0, 0.70) 100%);
  pointer-events: none;
}

.hero__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) var(--hero-gutter);
}

.hero__nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.hero__nav-link {
  font-size: var(--text-base);
  color: var(--text-on-dark);
  transition: color var(--dur-fast) var(--ease-out);
}
.hero__nav-link:hover { color: var(--accent); }

.hero__phone {
  display: none;
  font-size: var(--text-base);
  color: var(--text-on-dark);
  white-space: nowrap;
}

/* открытие меню по клику - этап функционала, здесь только кнопка */
.hero__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hero__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
}

.hero__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: 0 var(--hero-gutter) var(--hero-gutter);
}

.hero__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--text-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.hero__lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.hero__point {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-on-dark);
}
.hero__point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-circle);
  background: var(--accent);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.hero__cta-text {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  color: var(--text-on-dark);
}
.hero__cta .liora-btn { align-self: flex-start; }

/* фоновое фото секции - рендерится только если поле заполнено в ACF */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--media-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero::after {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.70) 50%, rgba(0, 0, 0, 0.80) 100%);
  }
  .hero__bottom {
    padding: 10px 20px 40px 20px;
  }
}

@media (min-width: 768px) {
  .hero {
    --hero-gutter: 2.5rem;
    min-height: 700px;
  }

  .hero__nav { display: flex; }
  .hero__phone { display: inline; }
  .hero__burger { display: none; }

  .hero__title-line { display: block; }
  /* вторая строка заголовка смещена вправо, как в макете */
  .hero__title-line--inset { text-indent: 30rem; }

  .hero__lead {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-7);
  }
  .hero__points { max-width: 240px; }
  .hero__cta { max-width: 360px; }
}
