.advantages-of-system {
  display: flex;
  justify-content: center;
}

.advantages-of-system-wrapper {
  display: flex;
  justify-content: flex-start;
  position: relative;
  border-radius: 24px;
  background-color: #f5f5f5;
  height: 249px;
  padding: 24px;
  align-items: center;
  gap: 48px;
}

.advantages-of-system-wrapper__train-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 483px;
  height: 336px;
}

.slider {
  position: relative;
  width: 703px;
  height: 127px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  flex-direction: column;
}

.slide {
  min-width: 100%;
  height: 127px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.slide h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
}

.slide p {
  font-size: var(--default-font-size);
  line-height: 1.4;
  font-weight: 300;
}

.dots {
  display: flex;
  margin-top: 10px;
  flex-direction: column;
  gap: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #c4c4c4;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: var(--main-color);
}

@media (max-width: 1239px) {
  .advantages-of-system-wrapper {
    padding: 32px 16px;
    height: 311px;
    flex-direction: column;
    align-items: flex-start;
    gap: 90px;
  }

  .advantages-of-system-wrapper__train-image {
    width: 304px;
    height: 212px;
    bottom: auto;
    top: -52px;
  }

  .slider {
    width: 100%;
    height: 127px;
  }

  .slide {
    justify-content: flex-start;
  }

  .slide h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .slide p {
    font-size: 13px;
    line-height: 1.2;
  }
}
