.page-hero {
  position: relative;
  min-height: clamp(560px, 50.1563vw, 963px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-top) + var(--header-h) + clamp(24px, 3vw, 60px));
  padding-bottom: clamp(40px, 5vw, 100px);
  overflow: hidden;
  background-color: var(--color-bg);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(19, 24, 28, 0.92) 0%,
    rgba(19, 24, 28, 0.55) 42%,
    rgba(19, 24, 28, 0.15) 100%
  );
}

.page-hero__ellipse {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(19, 24, 28, 0.9) 0%,
    rgba(19, 24, 28, 0.4) 40%,
    rgba(19, 24, 28, 0) 72%
  );
  z-index: 1;
}

.page-hero__ellipse--1 {
  left: -260px;
  top: -260px;
  width: clamp(480px, 61.0938vw, 1173px);
  height: clamp(480px, 61.0938vw, 1173px);
}

.page-hero__ellipse--2 {
  left: -450px;
  top: 120px;
  width: clamp(420px, 62.2396vw, 1195px);
  height: clamp(420px, 62.2396vw, 1195px);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: clamp(320px, 35vw, 670px);
  /* .container даёт margin-inline: auto — при узком max-width блок уезжает в центр */
  margin-inline: 0;
  align-self: flex-start;
}

.page-hero__title {
  margin: 0;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-white);
}

.page-hero__title--compact {
  font-size: clamp(48px, 5.5vw, 110px);
  line-height: 1;
}

.page-hero__nowrap {
  white-space: nowrap;
}

.page-hero--sneg .page-hero__content {
  max-width: clamp(320px, 42vw, 800px);
}

.page-hero__subtitle {
  margin: clamp(16px, 1.8vw, 34px) 0 0;
  max-width: 632px;
  font-size: clamp(16px, 1.3021vw, 25px);
  line-height: 1.35;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-white);
}

.page-hero__cta {
  margin-top: clamp(24px, 2.5vw, 48px);
}

/* —— Аренда: layout по Figma —— */
.page-hero--arenda {
  justify-content: flex-start;
  min-height: clamp(560px, 50.1563vw, 963px);
  height: clamp(560px, 50.1563vw, 963px);
  padding-top: clamp(140px, 13.4375vw, 258px);
  padding-bottom: clamp(32px, 4vw, 80px);
}

.page-hero--arenda .page-hero__bg {
  inset: unset;
  top: clamp(80px, 8.125vw, 156px);
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

.page-hero--arenda .page-hero__bg img {
  position: absolute;
  top: 0.74%;
  left: -40.16%;
  width: 170.17%;
  height: 101.22%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page-hero--arenda .page-hero__bg::after {
  background: linear-gradient(
    180deg,
    #13181c 1.921%,
    rgba(19, 24, 28, 0) 11.71%
  );
}

.page-hero--arenda .page-hero__ellipse--2 {
  left: clamp(40px, 6.25vw, 120px);
  top: clamp(-120px, -10.8854vw, -209px);
  width: clamp(420px, 52.1354vw, 1001px);
  height: clamp(420px, 52.1354vw, 1001px);
}

.page-hero--arenda .page-hero__ellipse--3 {
  left: clamp(-280px, -25.8333vw, -496px);
  top: clamp(-200px, -18.0729vw, -347px);
  width: clamp(400px, 51.3542vw, 986px);
  height: clamp(400px, 51.3542vw, 986px);
}

.page-hero--arenda .page-hero__ellipse--4 {
  left: clamp(-240px, -23.4375vw, -450px);
  top: clamp(60px, 6.25vw, 120px);
  width: clamp(420px, 62.2396vw, 1195px);
  height: clamp(420px, 62.1875vw, 1194px);
}

.page-hero--arenda .page-hero__title {
  font-weight: 600;
}

.page-hero--arenda .page-hero__subtitle {
  margin-top: clamp(16px, 1.25vw, 24px);
  font-size: var(--fs-hero-sub);
  line-height: var(--lh-hero-sub);
  font-weight: 600;
}

.page-hero--arenda .page-hero__cta {
  margin-top: clamp(48px, 4.6875vw, 90px);
}

/* —— Услуги: layout по Figma —— */
.page-hero--uslugi {
  justify-content: flex-start;
  min-height: clamp(560px, 50.1563vw, 963px);
  height: clamp(560px, 50.1563vw, 963px);
  padding-top: clamp(140px, 13.4375vw, 258px);
  padding-bottom: clamp(32px, 4vw, 80px);
}

.page-hero--uslugi .page-hero__bg {
  overflow: hidden;
}

.page-hero--uslugi .page-hero__bg img {
  position: absolute;
  top: 0;
  left: -11.83%;
  width: 111.73%;
  height: 125.37%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page-hero--uslugi .page-hero__bg::after {
  background: linear-gradient(
    90deg,
    rgba(19, 24, 28, 0.85) 0%,
    rgba(19, 24, 28, 0.45) 40%,
    rgba(19, 24, 28, 0.1) 100%
  );
}

.page-hero--uslugi .page-hero__ellipse--3 {
  left: clamp(-400px, -40vw, -768px);
  top: clamp(-220px, -21.1979vw, -407px);
  width: clamp(560px, 85.9896vw, 1651px);
  height: clamp(560px, 85.9896vw, 1651px);
}

.page-hero--uslugi .page-hero__content {
  max-width: clamp(280px, 29vw, 555px);
}

.page-hero--uslugi .page-hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  font-weight: 600;
}

.page-hero--uslugi .page-hero__subtitle {
  margin-top: clamp(16px, 1.25vw, 24px);
  max-width: 555px;
  font-size: var(--fs-hero-sub);
  line-height: var(--lh-hero-sub);
  font-weight: 600;
}

.page-hero--uslugi .page-hero__cta {
  margin-top: clamp(48px, 4.6875vw, 90px);
}

@media (max-width: 767px) {
  .page-hero {
    justify-content: center;
    min-height: 70vh;
  }

  .page-hero__content {
    max-width: 100%;
  }

  .page-hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(19, 24, 28, 0.55) 0%,
      rgba(19, 24, 28, 0.85) 60%,
      rgba(19, 24, 28, 0.95) 100%
    );
  }

  .page-hero--arenda {
    justify-content: flex-end;
    height: auto;
    min-height: 70vh;
    padding-top: calc(var(--header-top) + var(--header-h) + 24px);
  }

  .page-hero--arenda .page-hero__bg {
    inset: 0;
    top: 0;
    overflow: hidden;
  }

  .page-hero--arenda .page-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: 70% center;
  }

  .page-hero--arenda .page-hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(19, 24, 28, 0.45) 0%,
      rgba(19, 24, 28, 0.8) 55%,
      rgba(19, 24, 28, 0.95) 100%
    );
  }

  .page-hero--arenda .page-hero__cta {
    margin-top: 32px;
  }

  .page-hero--uslugi {
    justify-content: flex-end;
    height: auto;
    min-height: 70vh;
    padding-top: calc(var(--header-top) + var(--header-h) + 24px);
  }

  .page-hero--uslugi .page-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: 70% center;
  }

  .page-hero--uslugi .page-hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(19, 24, 28, 0.45) 0%,
      rgba(19, 24, 28, 0.8) 55%,
      rgba(19, 24, 28, 0.95) 100%
    );
  }

  .page-hero--uslugi .page-hero__content {
    max-width: 100%;
  }

  .page-hero--uslugi .page-hero__cta {
    margin-top: 32px;
  }
}
