.info-cards-2-container {
  display: block;
  background-color: var(--bg-color);
  position: relative;
  --border-height: 20px;

  &::before,
  &::after {
    content: none;
    position: absolute;
    left: 0;
    right: 0;
    height: var(--border-height);
    background-image: var(--border-img);
    background-repeat: repeat-x;
    background-size: auto var(--border-height);
    background-position: center;
    pointer-events: none;
    z-index: 1;
  }

  &::before {
    top: 0;
    transform: translateY(-100%);
  }

  &::after {
    bottom: 0;
    transform: translateY(100%) rotate(180deg);
    transform-origin: center;
  }

  @media screen and (width >=768px) {
    &.border-t-dsk::before {
      content: '';
    }

    &.border-b-dsk::after {
      content: '';
    }
  }

  @media screen and (width < 768px) {
    &.border-t-mob::before {
      content: '';
    }

    &.border-b-mob::after {
      content: '';
    }
  }
}

.info-cards-2 {
  margin-inline: auto;
  position: relative;
  padding-top: var(--pt-mob);
  padding-bottom: var(--pb-mob);
  max-width: 1440px;

  @media screen and (min-width: 768px) {
    padding-top: var(--pt-dsk);
    padding-bottom: var(--pb-dsk);
  }

  .swiper {
    padding-inline: 16px;

    @media screen and (min-width: 768px) {
      padding-inline: 40px;
    }

    @media screen and (min-width: 1280px) {
      padding-inline: 80px;
    }

    .swiper-slide {
      height: auto;
    }

    .swiper-navigation {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 28px;
      margin-top: 48px;

      .swiper-button-prev,
      .swiper-button-next {
        position: static;
        display: block;
        margin: 0;
        width: auto;
        height: auto;
        --swiper-navigation-color: var(--color);

        &.swiper-button-disabled {
          opacity: 1;
        }

        svg {
          width: 64px;
          height: auto;
        }

        &::after {
          content: none;
          display: none;
        }
      }

      @media screen and (width >=768px) {
        display: flex;
      }
    }

    .swiper-pagination {
      position: static;
      line-height: 1;
      margin-top: 32px;
      --swiper-pagination-bullet-inactive-opacity: 0.2;
      --swiper-pagination-color: var(--color);

      @media screen and (min-width: 768px) {
        display: none;
      }
    }
  }
}

.info-cards-2__title {
  padding-inline: 16px;
  margin-bottom: 40px;
  color: var(--color);
  font-weight: 900;
  font-size: 54px;
  line-height: 0.8;
  font-family: 'Avenir Next', sans-serif;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;

  @media screen and (min-width: 768px) {
    font-size: 64px;
    padding-inline: 40px;
  }

  @media screen and (min-width: 1280px) {
    font-size: 80px;
    padding-inline: 80px;
  }
}

.info-cards-2__title em {
  font-style: normal;
  font-size: 72px;

  @media screen and (min-width: 390px) {
    font-size: 88px;
  }

  @media screen and (min-width: 630px) {
    font-size: inherit;
  }
}

.info-cards-2__card {
  height: 428px;
  border-radius: 3px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  background-color: var(--color);

  @media screen and (min-width: 768px) {
    height: 512px;
  }
}

.info-cards-2__card__bg-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.info-cards-2__card__text-container {
  position: relative;
  max-width: var(--c-content-max-w);
}

.info-cards-2__card__title {
  font-family: 'Baton Turbo', sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-color);
  margin-bottom: 10px;

  &:last-child {
    margin-bottom: 0;
  }
}

.info-cards-2__card__text {
  text-wrap: balance;

  * {
    font-family: 'Baton Turbo', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--c-color);

    &:last-child {
      margin-bottom: 0;
    }
  }

  margin-bottom: 0;
}