.oa-hero,
.oa-hero * {
  box-sizing: border-box;
}

.oa-hero {
  --oa-hero-orange: #ff7010;
  --oa-hero-ink: #112035;
  position: relative;
  isolation: isolate;
  width: 100%;

  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #8faebe;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.oa-hero__gallery,
.oa-hero__slide,
.oa-hero__overlay {
  position: absolute;
  inset: 0;
}

.oa-hero__gallery {
  z-index: 0;
}

.oa-hero__slide {
  display: block;
  overflow: hidden;
  background-color: #8faebe;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}

/* Сверхмаленькое WebP — немедленный размытый фон до загрузки оригинала. */
.oa-hero__slide::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -18px;
  background-image: var(--oa-hero-preview);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(14px);
  transform: scale(1.035);
  pointer-events: none;
}

.oa-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.oa-hero__slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 52%;
  border: 0;
  border-radius: 0;
}

/* Без JavaScript обычная фотография остаётся видимой. */
.oa-hero--enhanced .oa-hero__slide img {
  opacity: 0;
  transition: opacity .85s ease;
}

.oa-hero--enhanced .oa-hero__slide.is-loaded img {
  opacity: 1;
}

.oa-hero__overlay {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 21, 32, .56), rgba(9, 21, 32, .27) 64%, rgba(9, 21, 32, .18)),
    linear-gradient(0deg, rgba(9, 21, 32, .35), transparent 40%);
}

.oa-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 72px 24px 92px;
  text-align: center;
}

.oa-hero__eyebrow {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.oa-hero .oa-hero__title {
  max-width: 1000px;
  margin: 0 0 34px;
  padding: 0;
  color: #fff;
  font-size: clamp(32px, 3.15vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .18);
}

.oa-hero__title span {
  display: block;
  color: #ff8a2d;
}

.oa-hero .oa-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 14px 28px;
  border: 1px solid var(--oa-hero-orange);
  border-radius: 9px;
  background: var(--oa-hero-orange);
  box-shadow: 0 8px 22px rgba(23, 16, 11, .17);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.oa-hero .oa-hero__button:hover {
  border-color: #e96300;
  background: #e96300;
  color: #fff;
}

.oa-hero__button-arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
  transition: transform .2s ease;
}

.oa-hero__button-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}

.oa-hero__button-arrow::after {
  content: '';
  position: absolute;
  top: calc(50% - 3px);
  right: 1px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.oa-hero .oa-hero__button:hover .oa-hero__button-arrow {
  transform: translateX(3px);
}

.oa-hero__pagination {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateX(-50%);
}

.oa-hero .oa-hero__dot {
  display: block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  cursor: pointer;
  appearance: none;
  transition: width .25s ease, background .25s ease;
}

.oa-hero .oa-hero__dot.is-active {
  width: 32px;
  background: #fff;
}

.oa-hero .oa-hero__dot:hover {
  background: #fff;
}

.oa-hero .oa-hero__button:focus-visible,
.oa-hero .oa-hero__dot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}


@media (min-width: 768px) and (max-width: 1199px) {
  .oa-hero {
    height: 620px;
    min-height: 0;
  }

  .oa-hero .oa-hero__title {
    max-width: 790px;
    font-size: clamp(36px, 5vw, 55px);
  }
}



@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
  .oa-hero {
    height: 540px;
  }
}

@media (max-width: 1199px) and (max-height: 500px) and (orientation: landscape) {
  .oa-hero {
    height: 380px;
    min-height: 380px;
  }
}

@media (max-width: 767px) {
  .oa-hero {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
  }

  .oa-hero__slide img {
    object-position: center center;
  }

  .oa-hero__overlay {
    background: linear-gradient(
      0deg,
      rgba(7, 20, 32, .68) 0%,
      rgba(7, 20, 32, .36) 58%,
      rgba(7, 20, 32, .12) 100%
    );
  }

  .oa-hero__content {
    padding: 48px 20px 80px;
  }

  .oa-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: .085em;
  }

  .oa-hero .oa-hero__title {
    max-width: 520px;
    margin-bottom: 25px;
    font-size: clamp(30px, 8vw, 43px);
    line-height: 1.15;
  }

  .oa-hero .oa-hero__button {
    min-height: 52px;
    padding: 13px 21px;
    font-size: 13px;
  }

  .oa-hero__pagination {
    bottom: 26px;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .oa-hero {
    height: 380px;
    min-height: 380px;
  }

  .oa-hero__content {
    padding: 30px 20px 58px;
  }

  .oa-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .oa-hero .oa-hero__title {
    max-width: 610px;
    margin-bottom: 16px;
    font-size: clamp(26px, 4.7vw, 34px);
  }

  .oa-hero .oa-hero__button {
    min-height: 44px;
    padding: 9px 18px;
    font-size: 12px;
  }

  .oa-hero__pagination {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oa-hero__slide,
  .oa-hero--enhanced .oa-hero__slide img,
  .oa-hero .oa-hero__button,
  .oa-hero__button-arrow,
  .oa-hero .oa-hero__dot {
    transition: none;
  }
}
