.g-hero__wrap {
  --g-hero-frame-radius: 38px;
  --g-hero-border-width: 64px;
  position: relative;
  background: var(--g-bg);
  overflow: hidden;
  box-shadow: var(--g-shadow-hero);
  isolation: isolate;
}

.g-hero__wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 5;
  width: auto;
  height: auto;
  border: 1px solid transparent;
  border-image-source: url('../images/buttons/banner-border.webp');
  border-image-slice: 128;
  border-image-width: var(--g-hero-border-width);
  border-image-repeat: stretch;
  pointer-events: none;
}

.g-hero__wrap::after {
  content: none;
}

.g-hero--full .g-hero__wrap {
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
  width: 100%;
}

.g-hero--full .swiper {
  width: 100%;
}

.g-hero--full .swiper-slide {
  width: 100vw;
}

.g-has-app-sidebar .g-hero--full {
  width: 100%;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  position: relative;
}

.g-has-app-sidebar .g-hero--full .swiper-slide {
  width: 100%;
}

.g-hero .swiper {
  position: relative;
  z-index: auto;
  aspect-ratio: 1920 / 720;
  min-height: 360px;
  max-height: 560px;
  clip-path: inset(0 round var(--g-hero-frame-radius));
  overflow: hidden;
}

.g-hero .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: var(--g-bg);
}

.g-hero .swiper-slide.has-bg {
  background-image: var(--g-hero-bg, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.g-hero__lcp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  opacity: 0; /* The CSS background paints the visible layer; the IMG is for browser LCP discovery. */
}

.g-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.g-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

.g-hero__slide--video {
  background-color: #11343f;
}

.g-hero__inner {
  position: relative;
  padding: 64px 56px;
  max-width: 660px;
  text-align: center;
  z-index: 6;
}

/* In full-width mode, anchor content to the left edge of the viewport. */
.g-hero--full .g-hero__inner {
  margin-left: 0;
  margin-right: auto;
  padding-left: clamp(24px, 8vw, 96px);
}

@media (max-width: 1000px) {
  .g-hero--full .g-hero__inner {
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(24px, 5vw, 48px);
    padding-right: clamp(24px, 5vw, 48px);
  }

  .g-hero__inner .actions,
  .g-hero__inner .promo-action {
    display: flex;
    justify-content: center;
  }
}

.g-hero__eyebrow {
  display: inline-flex;
  margin: 0 0 6px;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  background: rgb(41 25 21);
  color: #f79b33;
  text-shadow: 1px 1px 0 rgb(0 0 0 / 0.4);
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.2;
}

.g-hero__title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgb(54 36 31 / 0.7), 0 0 5px rgb(54 36 31 / 0.65);
  filter: drop-shadow(0 3px 0 rgb(54 36 31 / 1));
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #0d0807;
  paint-order: stroke;
}

.g-hero__title em {
  font-style: italic;
  color: #fff;
}

.g-hero__sub {
  color: #fff;
  opacity: 0.92;
  margin: 0 0 24px;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
}

.g-hero__inner .action-button {
  --g-hero-cta-cap: clamp(38px, 5vw, 60px);
  min-width: clamp(150px, 19vw, 240px);
  min-height: clamp(48px, 6vw, 88px);
  padding: clamp(7px, 1vw, 10px) clamp(34px, 5.5vw, 88px);
  background-size: var(--g-hero-cta-cap) 100%, var(--g-hero-cta-cap) 100%,
    calc(100% - (var(--g-hero-cta-cap) * 2) + 2px) 100%;
  font-size: clamp(15px, 2vw, 28px);
  -webkit-text-stroke-width: clamp(1px, 0.16vw, 2px);
}

.g-hero__inner .action-button__inner {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}

/* Slider arrows: image-button skin. */
.g-hero .swiper-button-prev,
.g-hero .swiper-button-next {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url('../images/buttons/slider-arrow-click.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  color: transparent;
  margin-top: -22px;
  transition: filter 0.15s var(--g-ease), transform 0.12s var(--g-ease);
}

.g-hero .swiper-button-prev {
  left: 20px;
}

.g-hero .swiper-button-next {
  right: 20px;
  scale: -1 1;
}

.g-hero .swiper-button-prev:hover,
.g-hero .swiper-button-next:hover {
  background-image: url('../images/buttons/slider-arrow-hover.webp');
}

.g-hero .swiper-button-prev:active,
.g-hero .swiper-button-next:active {
  transform: translateY(1px);
}

.g-hero .swiper-button-prev:active {
  transform: translateY(1px);
}

.g-hero .swiper-button-prev::after,
.g-hero .swiper-button-next::after {
  content: none;
}

.g-hero .swiper-button-disabled {
  background-image: url('../images/buttons/slider-arrow-disable.webp');
  opacity: 1;
  pointer-events: none;
}

/* Pagination: round dots, accent active. */
.g-hero .swiper-pagination {
  bottom: 20px;
}

.g-hero .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  border-radius: 50%;
  margin: 0 5px !important;
  transition: background 0.15s var(--g-ease), transform 0.15s var(--g-ease);
}

.g-hero .swiper-pagination-bullet-active {
  background: var(--g-accent);
  transform: scale(1.15);
}

@media (max-width: 780px) {
  .g-hero__inner {
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-bottom: 24px;
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }

  .g-hero--full .g-hero__inner {
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }

  .g-hero__title {
    -webkit-text-stroke-width: 1.25px;
  }

  .g-hero__inner .action-button {
    --g-hero-cta-cap: 36px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 34px;
    font-size: clamp(14px, 3.8vw, 17px);
  }
}

@media (max-width: 700px) {
  .g-hero .swiper-button-prev,
  .g-hero .swiper-button-next {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g-hero__video {
    display: none;
  }
}
