.reviews2gis {
  background-color: var(--grey-bg);
}

.reviews2gis__title {
  margin-bottom: 3rem;
}

.reviews2gis-list {
  position: relative;
  overflow-x: hidden;
  margin: 1rem auto 0;
  padding: 5rem 2rem 6rem;
  max-width: calc(1300px + 4rem);
}

@media (max-width: 1024px) {
  .reviews2gis__title {
    margin-bottom: 7rem;
  }
  .reviews2gis-list {
    padding-bottom: 5rem;
  }
}

@media (max-width: 600px) {
  .reviews2gis-list {
    padding: 4rem 1rem;
  }
}

.reviews2gis-nav {
  position: absolute;
  right: 2.2rem;
  top: 5.5rem;
  display: flex;
  align-items: center;
}

.reviews2gis-nav__next {
  margin-left: 0.5rem;
}

.reviews2gis-nav__prev,
.reviews2gis-nav__next {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  color: var(--grey-col);
  background: var(--grey-bg);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  cursor: pointer;
}

.reviews2gis-nav__prev svg,
.reviews2gis-nav__next svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  object-fit: cover;
}

.reviews2gis-nav__prev:hover,
.reviews2gis-nav__next:hover {
  color: var(--light-col);
  background-color: #5449bc;
}

@media (max-width: 1024px) {
  .reviews2gis-nav {
    left: 50%;
    right: initial;
    top: 9rem;
    transform: translateX(-50%);
  }
}

.reviews2gis-more {
  padding-bottom: 2.5rem;
  display: flex;
  justify-content: center;
}

.reviews2gis-more__link {
  text-decoration: none;
}

.reviews2gis .reviewCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 300px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 18px;
  box-sizing: border-box;
}

.reviews2gis .reviewCard__userContainer {
  display: flex;
  gap: 12px;
}

.reviews2gis .reviewCard__avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.reviews2gis .reviewCard__defaultAvatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #fff;
  background: #d7d7d7;
}

.reviews2gis .reviewCard__titleContainer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews2gis .reviewCard__title {
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  margin: 0;
  color: #141414;
}

.reviews2gis .reviewCard__reviewNumber {
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #898989;
  margin: 0;
}

.reviews2gis .reviewCard__ratingContainer {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reviews2gis .reviewCard__ratingContainer,
.reviews2gis .reviewCard__userContainer {
  flex-shrink: 0;
}

.reviews2gis .reviews2gis-star {
  width: 14px;
  height: 13px;
  display: inline-block;
}

.reviews2gis .reviewCard__date {
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #898989;
  margin: 0;
}

.reviews2gis .reviewCard__reviewContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0; /* важно для корректного overflow */
}

.reviews2gis .reviewCard__review {
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  margin: 0;
  color: #141414;

  /* Обрезаем текст и добавляем троеточие, чтобы высота карточки была одинаковой */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.reviews2gis .reviewCard__readMore {
  align-self: flex-end;
  text-decoration: none;
  color: #5a5a5a;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  margin-top: auto;
}

.reviews2gis .reviewCard__readMore:hover {
  text-decoration: underline;
}

