.sgc-hero,
.sgc-hero * {
  box-sizing: border-box;
}

.sgc-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  color: var(--sgc-white);
  background:
    radial-gradient(circle at 50% 30%, #173b73 0%, transparent 42%),
    var(--sgc-navy-950);
}

.sgc-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    opacity 900ms ease,
    visibility 900ms ease;
}

.sgc-hero__slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sgc-hero__media,
.sgc-hero__image,
.sgc-hero__video,
.sgc-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sgc-hero__media {
  overflow: hidden;
}

.sgc-hero__image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  transform: scale(1.015);

  transition: transform 7s ease;
}

.sgc-hero__slide.is-active .sgc-hero__image {
  transform: scale(1.075);
}

.sgc-hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgc-hero__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(3, 17, 42, 0.52) 0%,
      rgba(3, 17, 42, 0.5) 35%,
      rgba(3, 17, 42, 0.63) 68%,
      rgba(3, 17, 42, 0.86) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 30, 79, 0.34),
      rgba(5, 30, 79, 0.16),
      rgba(5, 30, 79, 0.34)
    );
}

.sgc-hero__content {
  position: relative;
  z-index: 3;

  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  width: min(calc(100% - 110px), 1280px);
  min-height: 100svh;

  padding: 145px 0 120px;
  margin:0 auto;

  text-align: center;
}

.sgc-hero__badge {
  display: inline-flex;
  align-items: center;

  min-height: 44px;

  padding: 0 22px;
  margin-bottom: 31px;

  color: var(--sgc-gold);

  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  background: rgba(4, 19, 47, 0.52);

  border: 1px solid rgba(208, 163, 74, 0.65);
  border-radius: 999px;

  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.16),
    inset 0 0 20px rgba(208, 163, 74, 0.04);

  opacity: 0;
  transform: translateY(18px);

  backdrop-filter: blur(12px);

  transition:
    opacity 700ms ease 120ms,
    transform 800ms var(--sgc-ease) 120ms;
}

.sgc-hero__badge svg {
  width: 17px;
  margin-right: 11px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sgc-hero__content h1,
.sgc-hero__content h2 {
  max-width: 1130px;
  margin:0;

  color: var(--sgc-white);

  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(48px, 5.15vw, 82px);
  font-weight: 700;
  line-height: 1.035;
  letter-spacing: -0.045em;

  text-wrap: balance;

  opacity: 0;
  transform: translateY(26px);

  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);

  transition:
    opacity 850ms ease 230ms,
    transform 950ms var(--sgc-ease) 230ms;
}

.sgc-hero__content h1 span,
.sgc-hero__content h2 span {
  display: block;
}

.sgc-hero__content p {
  max-width: 820px;

  margin: 27px auto 0;

  color: rgba(255, 255, 255, 0.82);

  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.7;

  text-wrap: balance;

  opacity: 0;
  transform: translateY(22px);

  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);

  transition:
    opacity 800ms ease 390ms,
    transform 900ms var(--sgc-ease) 390ms;
}

.sgc-hero__actions {
  display: flex;

  gap: 16px;

  margin-top: 37px;

  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 800ms ease 530ms,
    transform 900ms var(--sgc-ease) 530ms;
}

.sgc-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 190px;
  min-height: 58px;

  padding: 0 27px;

  color: var(--sgc-white);

  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.005em;

  text-decoration: none;

  border-radius: 3px;

  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    transform 300ms var(--sgc-ease),
    box-shadow 300ms ease;
}

.sgc-hero__button:hover {
  transform: translateY(-2px);
}

.sgc-hero__button--primary {
  color: var(--sgc-navy-950);

  background: var(--sgc-gold);

  border: 1px solid var(--sgc-gold);

  box-shadow:
    0 12px 35px rgba(186, 136, 46, 0.2);
}

.sgc-hero__button--primary:hover {
  color: var(--sgc-white);

  background: var(--sgc-navy-800);

  border-color: rgba(255, 255, 255, 0.25);

  box-shadow:
    0 14px 38px rgba(3, 17, 42, 0.35);
}

.sgc-hero__button--outline {
  color: var(--sgc-white);

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(8px);
}

.sgc-hero__button--outline:hover {
  color: var(--sgc-navy-950);

  background: var(--sgc-white);

  border-color: var(--sgc-white);
}

.sgc-hero__slide.is-active .sgc-hero__badge,
.sgc-hero__slide.is-active .sgc-hero__content h1,
.sgc-hero__slide.is-active .sgc-hero__content h2,
.sgc-hero__slide.is-active .sgc-hero__content p,
.sgc-hero__slide.is-active .sgc-hero__actions {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ARROWS
========================================================= */

.sgc-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 6;

  display: grid;

  width: 54px;
  height: 54px;

  padding:0;

  color: rgba(255, 255, 255, 0.86);

  background: rgba(3, 17, 42, 0.22);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;

  transform: translateY(-50%);

  cursor: pointer;

  place-items: center;

  backdrop-filter: blur(10px);

  transition:
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    transform 250ms ease;
}

.sgc-hero__arrow:hover {
  color: var(--sgc-navy-950);

  background: var(--sgc-gold);

  border-color: var(--sgc-gold);

  transform:
    translateY(-50%)
    scale(1.04);
}

.sgc-hero__arrow svg {
  width: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sgc-hero__arrow--previous {
  left: 30px;
}

.sgc-hero__arrow--next {
  right: 30px;
}

/* =========================================================
   PAGINATION
========================================================= */

.sgc-hero__pagination {
  position: absolute;

  bottom: 33px;
  left: 50%;
  z-index: 7;

  display: flex;

  gap: 9px;

  transform: translateX(-50%);
}

.sgc-hero__pagination button {
  position: relative;

  width: 48px;
  height: 16px;

  padding:0;

  overflow: hidden;

  background: transparent;

  border: 0;

  cursor: pointer;
}

.sgc-hero__pagination button::before {
  position: absolute;

  top: 7px;
  right: 0;
  left: 0;

  height: 1px;

  content: "";

  background:
    rgba(255, 255, 255, 0.32);
}

.sgc-hero__pagination button span {
  position: absolute;

  top: 7px;
  left: 0;

  width: 0%;
  height: 1px;

  background: var(--sgc-gold);
}

.sgc-hero__pagination button.is-active span {
  animation:
    sgcSlideProgress
    6.5s
    linear
    forwards;
}

@keyframes sgcSlideProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.sgc-hero__counter {
  position: absolute;

  right: 38px;
  bottom: 34px;
  z-index: 7;

  display: flex;
  align-items: center;

  gap: 10px;

  color:
    rgba(255, 255, 255, 0.72);

  font-family:
    "Manrope",
    Arial,
    sans-serif;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.sgc-hero__counter i {
  width: 25px;
  height: 1px;

  background:
    rgba(255, 255, 255, 0.34);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1080px) {
  .sgc-hero__content {
    width: calc(100% - 100px);
  }

  .sgc-hero__content h1,
  .sgc-hero__content h2 {
    font-size:
      clamp(46px, 7vw, 68px);
  }

  .sgc-hero__arrow--previous {
    left: 20px;
  }

  .sgc-hero__arrow--next {
    right: 20px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .sgc-hero {
    min-height: 790px;
  }

  .sgc-hero__content {
    width: calc(100% - 34px);

    min-height: 790px;

    padding: 120px 0 105px;
  }

  .sgc-hero__badge {
    min-height: 38px;

    padding: 0 15px;

    margin-bottom: 23px;

    font-size: 8px;

    letter-spacing: 0.11em;
  }

  .sgc-hero__badge svg {
    width: 14px;

    margin-right: 8px;
  }

  .sgc-hero__content h1,
  .sgc-hero__content h2 {
    font-size:
      clamp(36px, 10.4vw, 49px);

    line-height: 1.08;

    letter-spacing:
      -0.035em;
  }

  .sgc-hero__content p {
    margin-top: 22px;

    font-size: 13px;

    line-height: 1.65;
  }

  .sgc-hero__actions {
    width: 100%;

    gap: 10px;

    margin-top: 29px;

    flex-direction: column;
  }

  .sgc-hero__button {
    width: 100%;

    min-height: 53px;
  }

  .sgc-hero__arrow {
    display: none;
  }

  .sgc-hero__pagination {
    bottom: 24px;
  }

  .sgc-hero__pagination button {
    width: 35px;
  }

  .sgc-hero__counter {
    display: none;
  }

  .sgc-hero__video {
    display: none;
  }

  .sgc-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(3, 17, 42, 0.58) 0%,
        rgba(3, 17, 42, 0.57) 40%,
        rgba(3, 17, 42, 0.88) 100%
      );
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .sgc-hero__slide,
  .sgc-hero__image,
  .sgc-hero__badge,
  .sgc-hero__content h1,
  .sgc-hero__content h2,
  .sgc-hero__content p,
  .sgc-hero__actions {
    transition: none !important;
  }

  .sgc-hero__pagination button.is-active span {
    animation: none;
    width: 100%;
  }
}
