.custom-slider-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.custom-slide {
  flex: 0 0 auto;
  width: 356px;
  margin: 0 10px;
  transition: transform 0.3s ease;
  user-select: none;
  padding: 38px 0 0 0;
}

.custom-slide.center {
  width: 432px;
  padding: 0;
}

.custom-arrows {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: absolute;
  z-index: 111;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 0 18px;
}

.slider-prev,
.slider-next {
  cursor: pointer;
  border: none;
  background: transparent;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-info {
  display: flex;
  flex-direction: column;
  gap: 48px;
  border: 1px solid #bebebe;
  border-radius: 16px;
  padding: 32px 49px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.reviews-info p:first-child {
  font-family: var(--lato);
  color: var(--black);
  font-weight: 400;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: 0%;
  text-align: center;
}

.reviews-info p:last-child {
  font-family: var(--playfair);
  font-weight: 400;
  font-size: 20px;
  line-height: 88%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--black);
}

.custom-slide.center .reviews-info {
  opacity: 1;
}

.custom-slider-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.pagination-bullet {
  width: 51px;
  height: 4px;
  background-color: #bebebe4d;
  border-radius: 100зч;
  transition: background-color 0.3s ease;
}

.pagination-bullet.active {
  background-color: var(--black);
}

.custom-slider-track {
  transition: transform 0.5s ease;
}

.text-bal p {
  text-wrap-style: balance;
  width: 600px;
  justify-self: center;
}

.hide-block-text {
  position: absolute;
  bottom: 0;
  left: 0;
}

.hide-mob {
  display: none;
}

@media (max-width: 1000px) {
  .embla__slide.is-central {
    flex: 0 0 432px;
  }
}

@media (max-width: 768px) {
  .hide-desk {
    display: none;
  }

  .hide-mob {
    display: flex;
    overflow: hidden;
  }

  .embla {
    overflow: hidden;
    width: 100%;
  }

  .embla__viewport {
    overflow: hidden;
    width: 100%;
  }

  .embla__container {
    display: flex;
  }

  .embla__slide {
    position: relative;
    flex: 0 0 280px;
    margin: 0 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 40px;
    line-height: 387px;
    transition: flex 0.2s ease, height 0.2s ease, background 0.2s ease;
    height: fit-content;
  }

  .elementor .embla__slide img {
    height: 387px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin: 38px 0 0 0;
  }

  .embla__slide.is-central {
    flex: 0 0 280px;
    height: fit-content;
    line-height: 464px;
  }

  .embla__slide.embla__slide.is-central img {
    height: 464px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin: 0;
  }

  .embla__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    display: none;
    visibility: hidden;
  }

  .embla__button {
    background: transperent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
  }

  .embla__button:disabled {
    background: #999;
    cursor: not-allowed;
  }

  .embla__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .embla__dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }

  .embla__slide.is-central .reviews-info {
    opacity: 1;
  }

  .embla__dot {
    width: 51px;
    height: 4px;
    background-color: #bebebe4d;
    border-radius: 100px;
    transition: background-color 0.3s ease;
    border: 1px solid #bebebe4d;
  }

  button.embla__dot.is-selected {
    background-color: var(--black);
  }

  .reviews-info {
    padding: 16px 34px;
    gap: 24px;
  }
}
