.slider-packets {
  display: flex;
  flex-direction: column;
  gap: 84px;

  isolation: isolate;
  position: relative;

  overflow: hidden;

  margin-block-start: var(--section-spacing-medium);

  @media (max-width: 989px) {
    gap: 30px;
  }

  & .slider-packets-header {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    @media (max-width: 989px) {
      flex-direction: column;
    }

    & .slider-packets-title {
      display: flex;
      flex-direction: column;
      gap: 10px;

      text-align: right;
      text-transform: uppercase;

      line-height: 0;

      padding-block: 0.1em;

      & > span {
        display: inline-block;

        font-weight: 700;

        line-height: normal;

        font-size: 130px;

        text-box-trim: trim-both;
        text-box-edge: cap alphabetic;

        @media (max-width: 989px) {
          font-size: 90px;
        }

        &:first-of-type {
          justify-self: self-end;

          font-family: Inter, sans-serif;
          font-size: 180px;
          font-weight: 900;
          line-height: 1;
          color: var(--Primary-Vibrant-pink);

          @media (max-width: 989px) {
            font-size: 124px;
            text-align: center;
          }
        }
      }
    }

    & .slider-packets-content {
      border-radius: 30px;

      background-color: var(--Others-Background-light);

      @media (min-width: 990px) {
        max-width: 500px;

        margin-left: -54px;

        padding: 36px 42px;
      }

      @media (max-width: 989px) {
        max-width: 326px;

        margin-top: -12px;

        padding: 24px;
      }

      & > * {
        @media (max-width: 989px) {
          text-align: center;
        }
      }
    }
  }

  & .slider-packets-mask {
    position: relative;

    width: 100%;
    height: 390px;

    @media (max-width: 989px) {
      height: 130px;
    }

    & .slider-packets-mask-wrapper {
      --gap: -38px;

      isolation: isolate;

      position: absolute;
      top: -38px;
      left: 50%;
      transform: translateX(-50%);

      width: calc(100% + 262px * 2);
      height: calc(100% + 38px + 100px);

      contain: layout style size;

      @media (max-width: 989px) {
        --gap: -4px;

        width: calc(100% + 142px * 2);
        height: calc(100% + 50px);

        top: 0;
      }

      & .slider-packets-mask-item {
        position: absolute;
        top: 0;
        left: 0;

        width: 300px;
        height: 370px;

        overflow: hidden;

        will-change: transform;

        @media (max-width: 989px) {
          width: 100px;
          height: 125px;
        }

        & > img {
          width: 100%;
          height: 100%;

          object-fit: contain;
        }
      }
    }

    & .circular-reference {
      z-index: -1;
      transform: translateY(calc(-168px + 90px / 2));

      background-color: var(--Others-Background-light);

      @media (max-width: 989px) {
        transform: translateY(calc(-54px + 25px / 2));
      }
    }
  }
}
