.reviews {
  padding: 80px 0 50px;
  background: linear-gradient(180deg, #A1D2FF 0%, #E3F1FF 100%);
  overflow-x: hidden;
}

.reviews-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  margin: 0 auto 40px;
  max-width: 1200px;
}

.reviews__title {
  font-weight: 700;
  font-size: 48px;
}

.reviews-arrow {
  display: none;
}

.reviews__carousel_wrapper {
  width: 100%;
  margin-bottom: 35px;
}

.reviews__carousel {
  display: flex;
  overflow-x: auto;
  gap: 40px;
  padding: 25px 0px;
  justify-content: center;
  /* -ms-overflow-style: none; */
  scrollbar-width: none;
}

.reviews__carousel::-webkit-scrollbar {
  display: none;
}

.reviews__item {
  cursor: pointer;
  border-radius: 20px;
  width: 400px;
  min-width: 400px;
  height: 220px;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
  padding: 20px;
}

.reviews__item:hover {
  box-shadow: 0 0 20px 0 rgba(85, 155, 237, 0.7);
  transform: translateY(-5px);
}

.reviews__name {
  font-weight: 600;
  font-size: 20px;
  color: #353535;
  margin-bottom: 15px;
}

.review__meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.review__author {
  font-weight: 400;
  font-size: 14px;
  color: #5b5b5b;
}

.review__rating {
  display: flex;
  gap: 5px;
}

.review__star {
  width: 16px;
  height: 16px;
  background: url("../img/star.svg") no-repeat center center;
  background-size: contain;
}

.review__star_none {
  background: url("../img/star_none.svg") no-repeat center center;
  background-size: contain;
}

.review__text {
  font-weight: 400;
  font-size: 14px;
  color: #5b5b5b;
  -webkit-line-clamp: 6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review__text_modal {
  font-weight: 400;
  font-size: 14px;
  color: #5b5b5b;
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review__item_modal {
  height: min-content;
  min-height: 200px;
  position: relative;
  cursor: default;
}

.review__item_modal:hover {
  box-shadow: none;
  transform: none;
}

#review__video_modal .modal__wrapper {
  margin-top: 100px;
}

.video__modal_wrapper {
  max-height: 550px;
  border-radius: 20px;
  width: 500px;
  min-width: 500px;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.video__modal_wrapper h3 {
  width: 100%;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
}

.review__video {
  max-height: 500px;
  overflow: hidden;
  width: auto;
  border-radius: 15px;
}

.modal__wrapper {
  position: relative;
}

.modal__close {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 11;
}

.review__video_wrapper {
  max-width: 1200px;
  margin: auto;
  position: relative;
  padding: 0 60px;
}

.review__video_title {
  font-weight: 600;
  font-size: 30px;
  margin-bottom: 100px;
}

.review__video_button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 18px 24px;
  margin: 0 0 0 auto;
  background: #559BED;
  border-radius: 40px;

  color: #fff;
  font-weight: 600;
  font-size: 20px;
}

.review__video_button:hover {
  background: #3576C2;
}

.review__video_arrow {
  position: absolute;
  bottom: 0;
  right: 320px;
}

.review__video_icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  background: #FFFFFF33;
  border: 1px solid #FFFFFF33;
  backdrop-filter: blur(27.2px);
  border-radius: 50%;
  margin-bottom: -2px;
}

.review__video_icon img {
  width: 11px;
  height: 13px;
}

@media screen and (max-width: 750px) {
  .reviews {
    padding: 60px 0 20px;
  }

  .reviews-title-container {
    margin: 0 16px 15px;
    padding: 0;
  }

  .reviews__title {
    font-size: 28px;
  }

  .reviews-arrow {
    display: block;
  }

  .reviews__carousel_wrapper {
    padding: 25px 0;
    margin-bottom: 10px;
  }

  .reviews__carousel {
    overflow-x: auto;
    scroll-snap-type: x;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: unset;
    gap: 0;
  }

  .reviews__carousel::-webkit-scrollbar {
    display: none;
  }

  .reviews__item_wrapper {
    scroll-snap-align: start;
    padding-left: 16px;
  }

  .reviews__item_wrapper:last-child {
    padding-right: 16px;
  }

  .reviews__item {
    min-width: 60%;
    max-height: 200px;
    width: 350px;
  }

  .reviews__item:hover {
    box-shadow: none;
    transform: none;
  }

  .review__author {
    font-size: 12px;
  }

  .reviews__name {
    font-size: 16px;
  }

  .review__text {
    font-size: 12px;
  }

  /* Скрываем дополнительные поля */
  .hidden-fields {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
  }

  /* Стили кнопки */
  .additional-questions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
  }

  .arrow-icon {
    width: 12px;
    height: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
  }

  .hidden-fields.show {
    display: block;
    opacity: 1;
    max-height: 500px;
  }

  .arrow-icon.rotate {
    transform: rotate(180deg);
  }

  .review__video_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
  }

  .review__video_title {
    font-size: 16px;
    margin: 0;
    text-align: center;
  }

  .review__video_button {
    margin: 0;
    font-size: 16px;
  }

  .review__video_icon {
    width: 28px;
    height: 28px;
    padding-left: 10px;
  }

  .review__video_icon img {
    width: 9px;
    height: 11px;
  }

  .review__video_arrow {
    display: none;
  }

  #review__video_modal .modal__wrapper {
    margin-top: 50px;
  }

  .video__modal_wrapper {
    max-height: 600px;
    width: 370px;
    min-width: 370px;
  }
}
