.reviews {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 50px;
  position: relative;
  overflow: hidden;
}

.reviews__gallery {
  padding: 0 10px;
  background: white;
  display: flex;
  align-items: center;
  gap: 50px;
  transition: transform 0.3s ease-in-out;
  justify-content: center;
}

.reviews__wrap {
  margin: 0 50px;
  overflow: hidden;
}

.reviews__title {
  font-size: 32px;
  font-weight: 500;

  color: #1760a4;
}

.reviews__card {
  display: grid;
  grid-template-columns: 1fr 9fr;
  padding: 30px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  width: 500px;
  gap: 20px;
  height: 200px;
  flex-shrink: 0;
}

.reviews__card__img img {
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  border-radius: 100%;
  object-fit: cover;
}

.reviews__card__content__name {
  font-size: 20px;
  margin-bottom: 7px;
}
.reviews__card__content__type{
  margin-bottom: 7px;   
}

.reviews__card__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  a{
    color: #333;
  }
}

.reviews__card__content__text {
  font-family: Inter;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* ← количество строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews__gallery__btns {
  display: flex;
  max-width: 1100px;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.reviews__gallery__btn__left {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.reviews__gallery__btn__left img {
  width: 37px;
  height: 37px;
}

.reviews__gallery__btn__right {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.reviews__gallery__btn__right img {
  width: 37px;
  height: 37px;
}

.reviews__gallery__btn__left:hover,
.reviews__gallery__btn__right:hover {
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .reviews__title {
    font-size: 32px !important;
    padding: 0 !important;
    width: 100vw;
    display: flex;
    justify-content: center;
  }
  .reviews__gallery__btns {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .reviews {
    display: grid;
    height: 52vh;
  }

  .reviews__gallery {
    gap: 10px;
    width: 100%;
    background: white !important;
    padding: 0 20px;
  }

  .reviews__card {
    width: 300px;
    height: 400px;
    display: block;
  }

  .reviews__card__content__text {
    display: --webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 10;
    line-clamp: 10;
  }
  .reviews__gallery__btns {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .reviews__title {
    width: 100vw;
    padding: 10px;
    font-size: 36px;
    font-weight: 500;
    text-align: center;
  }

  .reviews__gallery__btn__left {
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .reviews__gallery__btn__right {
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .reviews__gallery__btns {
    width: 20%;
    bottom: 20px;
  }
}
