.process-container {
  max-width: 1230px;
  padding: 0 15px;
  margin: 0 auto;

  .boxed-title {
    margin-bottom: 32px;
  }

  .text {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;

    &.smaller {
      max-width: 450px;
    }
  }

  .images-wrapper {
    margin: 64px -80px 0;
    overflow-x: auto;

    @media (max-width: 1440px) {
      margin: 64px 0 0;
    }

    .image-items {
      display: flex;
      gap: 64px;
      justify-content: space-between;

      @media (max-width: 1024px) {
        gap: 16px;
      }

      figure {
        min-width: 150px;
        border-radius: 8px;
        overflow: hidden;

        @media (max-width: 1024px) {
          border-radius: 0;
        }

        img {
          width: 100%;
          vertical-align: top;
        }
      }
    }
  }
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 65px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  &.foursome {
    grid-template-columns: repeat(4, 1fr);
    gap: 4vw;
    margin: 0 4vw;

    @media (max-width: 1440px) {
      gap: 32px;
    }

    @media (max-width: 1366px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 1024px) {
      grid-template-columns: 1fr;
    }
  }

  .process-card {
    .process-card_top {
      svg {
        @media (max-width: 1024px) {
          width: 26px;
        }
      }

      strong {
        font-size: 18px;
        font-family: var(--ff-primary);
        text-transform: none;
        font-weight: 400;
        line-height: 140%;
        text-transform: uppercase;
        letter-spacing: -0.25px;
      }
    }
  }
}

.process-card {
  position: relative;
  @media (max-width: 1024px) {
    margin-left: 16px;
  }
  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--c-gray-25);
    border: 1px solid var(--c-gray-900);
    border-radius: 5px;
  }
  &:before {
    transform: translate(-8px, 8px);
    z-index: 2;
  }
  &:after {
    transform: translate(-16px, 16px);
    z-index: 1;
  }
  .process-card-inner {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    background-color: var(--c-gray-25);
    border: 1px solid var(--c-gray-900);
    border-radius: 5px;
    z-index: 3;
  }
}

.process-card_top {
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  img {
    width: 32px;
    height: 32px;
  }

  strong {
    font-family: var(--ff-fibbl);
    text-transform: uppercase;
    font-weight: 400;
    font-size: 24px;
    color: var(--c-black);
    line-height: 100%;
    white-space: nowrap;
  }

  &.dark {
    background-color: var(--c-gray-900);

    strong {
      color: var(--c-gray-25);
    }
  }
}

.process-card_middle {
  height: 185px;
  border-top: 1px solid #181818;
  border-bottom: 1px solid #181818;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  &.number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    font-weight: 700;
    font-family: var(--ff-secondary);
  }

  &.dark {
    color: var(--c-gray-25);
    background-color: var(--c-gray-900);
  }
}

.process-card_bottom {
  flex: 1;
  padding: 16px 26px;

  p {
    margin-bottom: 0;
    font-family: var(--ff-primary);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #000000;
  }

  &.dark {
    background-color: var(--c-gray-900);

    p {
      color: var(--c-gray-25);
    }
  }
}

.horizontal-slides {
  overflow-x: hidden;
  padding-bottom: 60px;

  .container {
    .horizontal_slides {
      display: block;
      padding-bottom: 0;
      overflow-x: hidden;
      width: 100vw;
      overflow: visible;

      @media (max-width: 1024px) {
        display: block;
      }

      .swiper-wrapper {
        .swiper-slide {
          height: auto;
          border: 1px solid #181818;
          width: 382px;
          border-radius: 34px;
          box-shadow: 0;
          transition:
            filter 0.3s ease,
            border 0.3s ease,
            box-shadow 0.3s ease;
          background: #fffaee;

          @media (max-width: 1024px) {
            min-height: 268px;
            width: 268px;
            border-radius: 26px;
          }

          .video_wrapper {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            overflow: hidden;
            border-top-left-radius: 32px;
            border-top-right-radius: 32px;
            overflow: hidden;

            @media (max-width: 1024px) {
              border-top-left-radius: 24px;
              border-top-right-radius: 24px;
            }

            iframe {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border: 0;
              filter: grayscale(100%);
              transition: filter 0.3s ease;
            }

            &::after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              background-color: #ffd672;
              opacity: 0.12;
              pointer-events: none;
              z-index: 2;
              border-top-left-radius: 32px;
              border-top-right-radius: 32px;
              transition: all 0.3s ease;
            }

            &.has-thumbnail {
              .video_thumbnail {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: black;

                img {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                  display: block;
                  transition: all 0.3s ease;
                  filter: grayscale(100%);
                }

                .custom_play_button {
                  position: absolute;
                  top: 50%;
                  left: 50%;
                  transform: translate(-50%, -50%);
                  border: none;
                  background: none;
                  cursor: pointer;
                  transition: transform 0.2s ease;

                  &:hover {
                    transform: translate(-50%, -50%) scale(1.05);
                  }
                }
              }
            }

            figure {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border: 0;
              filter: grayscale(100%);
              transition: filter 0.3s ease;

              a {
                display: block;
                width: 100%;
                height: 100%;

                img {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
                  display: block;
                  filter: grayscale(100%);
                }
              }
            }
          }

          &:hover,
          &.active {
            border: 1px solid transparent;
            box-shadow:
              52.6425px 64.8282px 33.1453px rgba(0, 0, 0, 0.01),
              29.7332px 36.5573px 28.271px rgba(0, 0, 0, 0.03),
              13.1606px 16.0852px 20.9595px rgba(0, 0, 0, 0.04),
              3.41201px 3.89944px 11.6983px rgba(0, 0, 0, 0.05);

            iframe {
              filter: grayscale(0%);
            }

            .video_wrapper {
              .video_thumbnail {
                img {
                  filter: grayscale(0%);
                }
              }

              &::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: #ffd672;
                opacity: 0;
                pointer-events: none;
                z-index: 2;
                border-top-left-radius: 32px;
                border-top-right-radius: 32px;
              }
            }

            figure {
              filter: grayscale(0%);

              a {
                display: block;
                width: 100%;
                height: 100%;

                img {
                  filter: grayscale(0%);
                }
              }
            }
          }

          .item_bottom {
            padding: 13px 20px 30px 20px;

            @media (max-width: 1024px) {
              padding: 0px 14px 18px 14px;
            }

            h5 {
              color: #4e463f;
              font-size: var(--fs-lg);
              margin-block: 0 10px;
              line-height: 1;

              @media (max-width: 1024px) {
                margin-block: 8px;
              }
            }

            .desc {
              color: #7c7064;
              font-size: 14px;
              font-family: 'Inter';
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
              overflow: hidden;
              text-overflow: ellipsis;

              @media (max-width: 768px) {
                font-size: 12px;
              }
            }
          }
        }
      }

      &.process {
        .swiper-wrapper {
          .swiper-slide {
            border: none;
            border-radius: 0;
            box-shadow: none;
          }
        }
      }
    }
  }

  &.squared {
    .container {
      .horizontal_slides {
        .swiper-wrapper {
          .swiper-slide {
            border-radius: 5px;

            .video_wrapper {
              border-radius: 5px;
            }
          }
        }
      }
    }
  }
}
