.main-section {
  position: relative;
  overflow: hidden;
  background-image: url("../images/main-bg.png");
  background-position: center top;
  background-size: auto 860px;
  background-attachment: fixed;
  background-repeat: no-repeat;

  &::before {
    --size: 1929px;
    --top: 318px;

    content: "";
    position: absolute;
    inset: calc(100% - var(--top)) 50% auto;
    translate: -50% 0;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    z-index: 0;
    background-color: var(--color-background);
    pointer-events: none;
  }

  &::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 172px;
    z-index: 4;
    background: linear-gradient(
      0deg,
      #0f0f10 0%,
      rgba(15, 15, 16, 0.86) 29.99%,
      rgba(15, 15, 16, 0) 100%
    );
    pointer-events: none;
  }

  .container {
    --page-width: 849px;
    display: grid;
    position: relative;
    text-align: center;
    padding-block: 46px 65px;
    gap: 24px;
  }

  .button-wrapper {
    display: grid;
    justify-content: center;
    gap: 18px;
  }

  .badge-container {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;

    .badge {
      display: flex;
      align-items: center;
      gap: 0 8px;
      padding: 7.5px 26px;
      flex-wrap: wrap-reverse;
      justify-content: center;
      background-color: var(--white-150);
      border-radius: 999px;

      dd {
        font-size: 24px;
        line-height: 1.3;
      }
    }
  }
}

[data-translate-anim] {
  display: inline-block;
  text-align: left;
}

.main-section__cards-wrapper {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 1218px;
  height: 286px;
}

card-holder {
  display: flex;
  flex-wrap: wrap;
}

card-holder .card-holder__card {
  max-width: 174px;
  flex-shrink: 0;
  opacity: 0;
  transform-origin: center center;
  box-shadow: 0px 5.22px 22.62px 0px #00000040;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  height: auto !important;
  padding: 8px 8px 16px;
  background-color: var(--dark-gray);
  border-radius: 18px;
  user-select: none;

  .slider-section__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  [data-title] {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
  }

  .slider-section__additional {
    display: flex;
    justify-content: space-between;

    > * {
      font-size: 14px;
      line-height: 1.3;
      color: var(--gray-text);
    }
  }
}

@media screen and (max-width: 768px) {
  .main-section {
    &::before {
      --size: 624px;
      --top: 363px;
    }

    .badge-container .badge {
      padding: 10px 10px;
      flex-direction: column-reverse;
      flex: 1 1 calc(50% - 7px);

      dd {
        font-size: 22px;
      }
    }
  }

  card-holder .card-holder__card {
    max-width: 127px;

    [data-title] {
      font-size: 11px;
    }
  }

  .main-section__cards-wrapper {
    height: 332px;
    --offset: 0;
    margin-inline: var(--offset);
    width: calc(100% var(--offset) * -2);
    justify-content: center;
  }
}

@media screen and (max-width: 387px) {
  .main-section__cards-wrapper {
    --offset: -60px;
  }
}
