.hero {
  position: relative;
  min-height: 620px;
  height: min(840px, calc(100svh - 100px));
  overflow: hidden;
  touch-action: pan-y;
  color: white;
  background: var(--color-teal-950);
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.effectFADE {
  transform: scale(1.015);
}

.effectFADE.active {
  transform: scale(1);
}

.effectSLIDE {
  transform: translateX(4%);
}

.effectSLIDE.active {
  transform: translateX(0);
}

.effectZOOM {
  transform: scale(1.08);
}

.effectZOOM.active {
  transform: scale(1);
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
}

.edgeFade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 28, 0.32) 0%, rgba(4, 22, 28, 0.1) 37%, transparent 58%);
  pointer-events: none;
}

.contentWrap {
  position: relative;
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: 76px;
}

.content {
  width: min(820px, 65vw);
  transform: translateY(12px);
}

.content h1 {
  max-width: 820px;
  margin: 0;
  color: white;
  font-size: clamp(48px, 4.7vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.content p {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 400;
  line-height: 1.55;
}

.primaryAction {
  min-height: 54px;
  margin-top: 34px;
  padding: 0 22px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 9px;
  color: white;
  background: var(--color-primary-strong);
  box-shadow: 0 14px 30px rgba(13, 113, 123, 0.28);
  font-size: 15px;
  font-weight: 700;
  transition: background 180ms ease, gap 180ms ease, transform 180ms ease;
}

.primaryAction:hover,
.primaryAction:focus-visible {
  gap: 25px;
  background: #2b9ba4;
  transform: translateY(-2px);
}

.controls {
  position: absolute;
  bottom: 62px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
}

.arrows {
  position: absolute;
  top: 50%;
  right: 34px;
  left: 34px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.arrows button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(5, 25, 30, 0.08);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.arrows button:hover,
.arrows button:focus-visible {
  color: var(--color-teal-950);
  background: white;
  transform: translateY(-2px);
}

.indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}

.indicators button {
  position: relative;
  width: 86px;
  height: 18px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.indicators button::before,
.indicators button span {
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  content: "";
}

.indicators button::before {
  background: rgba(255, 255, 255, 0.64);
}

.indicators button span {
  width: 0;
  background: var(--color-primary);
}

.indicatorActive span {
  width: 100%;
  animation-name: progress;
  animation-timing-function: linear;
}

@keyframes progress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 980px) {
  .hero {
    min-height: 720px;
    height: 100svh;
  }

  .background {
    object-position: 62% center;
  }

  .edgeFade {
    background: linear-gradient(90deg, rgba(4, 22, 28, 0.56) 0%, rgba(4, 22, 28, 0.22) 58%, rgba(4, 22, 28, 0.08) 100%);
  }

  .contentWrap {
    align-items: flex-end;
    padding: 0 0 172px;
  }

  .content {
    width: min(650px, 78vw);
  }

  .content h1 {
    font-size: clamp(42px, 7vw, 64px);
  }
}

@media (max-width: 1540px) and (min-width: 681px) {
  .contentWrap {
    padding-right: 76px;
    padding-left: 76px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 690px;
  }

  .background {
    object-position: 66% center;
  }

  .edgeFade {
    background: linear-gradient(180deg, rgba(4, 22, 28, 0.05) 25%, rgba(4, 22, 28, 0.8) 75%, rgba(4, 22, 28, 0.94) 100%);
  }

  .contentWrap {
    align-items: flex-end;
    padding-right: 0;
    padding-bottom: 150px;
    padding-left: 0;
  }

  .content {
    width: 100%;
    transform: none;
  }

  .content h1 {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.03;
  }

  .content p {
    margin-top: 17px;
    font-size: 15.5px;
  }

  .primaryAction {
    min-height: 50px;
    margin-top: 24px;
  }

  .controls {
    bottom: 40px;
    left: auto;
    right: 18px;
    transform: none;
  }

  .arrows {
    top: auto;
    right: auto;
    bottom: 40px;
    left: 18px;
    gap: 8px;
    transform: none;
  }

  .arrows button {
    width: 44px;
    height: 44px;
  }

  .indicators { gap: 6px; }

  .indicators button {
    width: clamp(28px, 8vw, 48px);
  }

}
