.hero-section {
  position: relative;
  overflow: hidden;
  background-color: rgb(var(--color-background));
}

.hero-section__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section__background img,
.hero-section__background svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, calc(var(--hero-overlay-opacity, 35) / 100));
}

.hero-section__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 40px;
  min-height: 520px;
  width: 100%;
  margin-inline: auto;
}

.hero-section__content {
  min-width: 0;
  max-width: 560px;
  color: rgb(var(--color-text));
}

.hero-section__heading {
  margin: 0 0 16px;
  color: inherit;
}

.hero-section__description {
  margin: 0 0 24px;
  color: inherit;
}

.hero-section__button {
  display: inline-flex;
}

.hero-section__image {
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  overflow: hidden;
}

.hero-banner--badge {
  position: absolute;
  bottom: 170px;
  z-index: 2;
  right: -8px;
}

.hero-banner--badge svg {
  max-width: 120px;
}

.hero-banner--badge-mobile {
  display: none;
  position: absolute;
  top: -32px;
  right: 12px;
  max-width: 99px !important;
  z-index: 3;
}

.hero-banner--badge-mobile svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-section__image > * {
  width: 100%;
  max-width: 520px;
}

.hero-section__image > img,
.hero-section__image > svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-section__image-placeholder {
  width: 100%;
  max-width: 520px;
  height: auto;
}

@media (max-width: 959px) {
  .hero-section__inner {
    grid-template-columns: 1fr;
    gap: 75px;
    min-height: unset;
  }

  .hero-section__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .hero-section__content .hero-section__heading {
    font-weight: 500;
  }

  .hero-section__description {
    display: none;
  }

  .hero-section__image > img,
  .hero-section__image > svg,
  .hero-section__image > .hero-section__image-placeholder {
    transform: translateX(-17%);
  }

  .hero-section__image > img {
    max-width: 390px;
  }

  .hero-section__image {
    justify-content: center;
    max-width: 390px;
    margin: 0 auto;
    overflow: visible;
  }

  .hero-banner--badge {
    display: none;
  }

  .hero-banner--badge-mobile {
    display: block;
  }
}
