.hero {
  min-height: min(840px, max(680px, calc(100svh - 76px)));
  max-height: none;
}

.hero-media {
  object-position: 68% center;
  filter: saturate(.94) brightness(.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.hero-media.is-active {
  opacity: 1;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(10, 22, 38, .48) 0%, rgba(10, 22, 38, .34) 42%, rgba(10, 22, 38, .08) 76%, rgba(10, 22, 38, .02));
}

.hero-content {
  max-width: 940px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(50px, 5.2vw, 82px);
  line-height: 1.16;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .22);
  text-wrap: balance;
}

.hero-copy {
  max-width: 590px;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .2);
}

.hero-actions .primary-btn,
.hero-actions .ghost-btn {
  min-height: 54px;
  padding-inline: 24px;
}

.trust-row {
  width: fit-content;
  gap: 24px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.hero-carousel-control,
.hero-carousel-indicators button {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 3px;
  background: rgba(10, 22, 38, .24);
  color: #fff;
  cursor: pointer;
}

.hero-carousel-control:hover,
.hero-carousel-indicators button:hover,
.hero-carousel-indicators button[aria-current="true"] {
  background: rgba(255, 255, 255, .2);
}

.hero-carousel-control svg {
  width: 17px;
  height: 17px;
}

.hero-carousel-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-carousel-indicators button {
  width: 30px;
  border-color: transparent;
  background: transparent;
}

.hero-carousel-indicators button span {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  transition: width .2s ease, background-color .2s ease;
}

.hero-carousel-indicators button[aria-current="true"] span {
  width: 18px;
  background: #fff;
}

.hero-carousel-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .hero {
    min-height: 680px;
    min-height: clamp(560px, calc(100vh - 150px), 720px);
    min-height: clamp(560px, calc(100svh - 150px), 720px);
    align-items: flex-end;
    padding-top: 210px;
  }

  .hero-media {
    object-position: 72% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 22, 38, .04) 0%, rgba(10, 22, 38, .14) 28%, rgba(10, 22, 38, .84) 56%, rgba(10, 22, 38, .96) 100%);
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 30px 22px 38px;
  }

  .hero h1 {
    max-width: 600px;
    font-size: 42px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-carousel-controls {
    margin-top: 18px;
  }

  .trust-row {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-carousel-indicators button span {
    transition: none;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 680px;
    min-height: clamp(560px, calc(100vh - 150px), 720px);
    min-height: clamp(560px, calc(100svh - 150px), 720px);
  }

  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 720px) and (max-height: 740px) {
  .hero {
    min-height: 520px;
    min-height: clamp(480px, calc(100vh - 130px), 590px);
    min-height: clamp(480px, calc(100svh - 130px), 590px);
    padding-top: 110px;
  }

  .site-page .hero-content {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .site-page .hero h1 {
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .site-page .hero-copy {
    font-size: 14px;
    line-height: 1.6;
  }

  .site-page .hero-actions {
    margin-top: 16px;
  }

  .site-page .hero-actions > * {
    min-height: 44px;
  }

  .site-page .trust-row {
    display: none;
  }
}
