:root {
  --hero-min-height: 100dvh;
  --hero-margin-top: 0px;
  --hero-overlay: linear-gradient(90deg, rgba(5, 14, 37, 0.78) 0%, rgba(5, 14, 37, 0.48) 38%, rgba(5, 14, 37, 0.16) 70%, rgba(5, 14, 37, 0.36) 100%);
  --hero-content-width: min(40vw, 620px);
  --hero-title-size: 64px;
  --hero-text-size: 18px;
  --hero-btn-font: 12px;
}

.hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-min-height);
  height: var(--hero-min-height);
  margin-top: var(--hero-margin-top);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #071331;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
  pointer-events: none;
}

.hero-track {
  display: flex;
  width: var(--hero-track-width, 100%);
  min-height: var(--hero-min-height);
  height: 100%;
  transition: transform 1.2s ease-in-out;
}

.hero-slide {
  position: relative;
  flex: 1 0 100%;
  min-height: var(--hero-min-height);
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: var(--hero-min-height);
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.45s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.hero-slide img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 5;
  width: var(--hero-content-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: #fff;
  transform: translate(-50%, calc(-50% + 20px));
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.animate {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: var(--hero-title-size);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--hero-text-size);
  line-height: 1.4;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px !important;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--hero-btn-font);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-btn-primary {
  background: #fff;
  color: #0d1736;
}

.hero-btn-primary:hover {
  background: transparent;
  color: #fff;
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: transparent;
  opacity: 0.75;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-dots .dot.active {
  background: #fff;
  opacity: 1;
}

.hero-single::after {
  background: none;
}

.hero-single .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

@media (max-width: 1023px) {
  :root {
    --hero-min-height: 760px;
    --hero-title-size: clamp(2.6rem, 7vw, 3.8rem);
    --hero-text-size: 20px;
    --hero-btn-font: 14px;
  }

  .hero {
    height: var(--hero-min-height);
  }
}

@media (max-width: 767px) {
  :root {
    --hero-min-height: 78svh;
    --hero-content-width: calc(100% - 32px);
    --hero-title-size: clamp(2.15rem, 10vw, 3.15rem);
    --hero-text-size: 0.96rem;
    --hero-btn-font: 0.8rem;
  }

  .hero::after,
  .hero-single .hero-slide::after {
    background: linear-gradient(180deg, rgba(5, 14, 37, 0.42) 0%, rgba(5, 14, 37, 0.5) 24%, rgba(5, 14, 37, 0.82) 100%);
  }

  .hero-content {
    gap: 0.85rem;
  }

  .hero-title {
    width: 100%;
  }

  .hero-text {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: min(100%, 260px);
  }

  .hero-dots {
    bottom: 18px;
  }
}
