.system-gallery {
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.system-gallery-wrapper {
  display: flex;
  justify-content: center;
  gap: 72px;
}

.b-carousel {
  width: 548px;
  height: 413px;
  overflow: hidden;
  position: relative;

  box-sizing: border-box;
  border-radius: 8px;
}

.b-carousel__next {
  left: auto;
  right: 20px;
}

.b-carousel__wrap {
  display: flex;
  transition: transform 0.5s;
  will-change: transform;
  position: relative;
  z-index: 1;
  height: 100%;
}

.b-carousel__item {
  flex: 0 0 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-carousel__img {
  width: 548px;
  height: 413px;
  object-fit: cover;
  display: block;
}

.system-gallery__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.system-gallery__info__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
}

.system-gallery__info__text {
  position: relative;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 36px;
}

.system-gallery__info__text::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  width: 40px;
  height: 4px;
  background-color: var(--main-color);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 100%;
  background-color: #ededed;
  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  transition: 0.3s linear;
}

.carousel-btn:hover {
  background-color: #e4e4e4;
}

.system-gallery__actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prev-next-btns {
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  user-select: none;
}

.actions__slide-dots {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.actions__slide-dots__dot {
  width: 12px;
  height: 4px;
  background-color: #c4c4c4;
  cursor: pointer;
}

.actions__slide-dots__dot.active-dot {
  width: 40px;
  background-color: var(--main-color);
}

.system-gallery__info__points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 300;
  margin-top: 10px;
}

.system-gallery__info__points__point {
  list-style: circle;
}

@media (max-width: 1239px) {
  .system-gallery {
    padding-bottom: 88px;
  }

  .system-gallery-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
  }

  .b-carousel {
    width: 358px;
    height: 198px;
  }

  .b-carousel__img {
    width: 358px;
    height: 198px;
  }

  .system-gallery__info {
    align-items: center;
  }

  .system-gallery__info__title {
    text-align: center;
  }

  .system-gallery__info__text {
    text-align: center;
  }

  .system-gallery__info__text::before {
    left: calc(50% - 20px);
  }

  .system-gallery__info__points {
    padding: 0 20px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
  }

  .prev-next-btns {
    display: none;
  }

  .actions__slide-dots {
    margin-top: 40px;
  }
}
