.ingredients-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: '';
    }
  }
}

.ingredients {
  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);
  }
}

.ingredients__title {
  font-family: 'Avenir Next', sans-serif;
  font-size: 54px;
  line-height: 0.8;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--color);
  padding-inline: 16px;
  text-wrap: balance;
  max-width: 480px;
  margin-inline: auto;

  em {
    font-size: 154px;
    font-style: normal;
  }

  @media screen and (min-width: 768px) {
    margin-bottom: 32px;
    max-width: none;
    padding-inline: 40px;
    font-size: 80px;

    em {
      font-size: 80px;
    }
  }

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

.ingredients__items-scroll-container {
  overflow: hidden;

  @media screen and (min-width: 768px) {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }

    &.is-dragging {
      cursor: grabbing;
      user-select: none;
    }

    &:not(.is-dragging) {
      cursor: grab;
    }
  }
}

.ingredients__items-container {
  position: relative;
  padding-inline: 16px;
  margin-inline: auto;
  max-width: 375px;

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

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

.ingredients__items-curve {
  position: absolute;
  width: 100%;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ingredients__items-curve--mob {
  max-width: 250px;

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

.ingredients__items-curve--dsk {
  width: 75%;
  display: none;

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

.ingredients__items-curve-mob {
  position: absolute;
  display: block;

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

.ingredients__items {
  position: relative;
  display: flex;
  flex-direction: column;

  @media screen and (min-width: 768px) {
    flex-direction: row;
    gap: 20px;
  }
}

.ingredients__item {
  flex: 1 1 0%;
}

.ingredients__item__ingredient {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ingredients__item__ingredient__img {
  width: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  height: 200px;
  transform: scale(var(--img-scale));

  @media screen and (width >=768px) {
    height: 120px;
  }

  @media screen and (width >=1380px) {
    height: 200px;
  }
}

.ingredients__item__ingredient--1 {

  .ingredients__item__ingredient__img {
    margin-left: -64px;

    @media screen and (width >=768px) {
      margin-left: 0;
    }
  }
}

.ingredients__item__ingredient--2 {
  .ingredients__item__ingredient__img {
    margin-right: -64px;

    @media screen and (width >=768px) {
      margin-right: 0;
    }
  }
}

.ingredients__item__ingredient__text-container {
  flex: 1 1 0%;
}

.ingredients__item__ingredient__title {
  font-family: 'Avenir Next', sans-serif;
  text-transform: uppercase;
  color: var(--color);
  font-size: 26px;
  line-height: 0.9;
  margin-bottom: 8px;
  text-wrap: pretty;

  @media screen and (width >=768px) {
    font-size: 20px;
  }

  @media screen and (width >=1380px) {
    font-size: 26px;
  }
}

.ingredients__item__ingredient__description {
  font-family: 'Baton Turbo', sans-serif;
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 0;
  color: var(--color);

  @media screen and (width >=768px) {
    font-size: 14px;
  }

  @media screen and (width >=1380px) {
    font-size: 16px;
  }
}