/* Блок «Отзывы клиентов». Все селекторы с префиксом .reviews- / .reviews__ */

.reviews {
  --reviews-star: #ffb800;
  --reviews-star-deep: #ffa900;
  --reviews-star-empty: #e2e5ec;
  --reviews-card: 252px;
  margin-top: 70px;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink, #171717);
}

.reviews__title {
  font-family: Geologica, Arial, sans-serif;
  font-weight: 600;
  font-size: 29px;
  line-height: 1.25;
  margin: 0;
}

.reviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.reviews__summary-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.reviews__rating {
  font-family: Geologica, Arial, sans-serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.reviews__based {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(51, 51, 51, 0.6);
}

/* Звёзды */
.reviews__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 0;
}
.reviews__star {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  font-size: 16px;
}
.reviews__star svg {
  display: block;
  width: 1em;
  height: 1em;
}
.reviews__star-bg { fill: var(--reviews-star-empty); }
.reviews__star-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.reviews__star-fill svg { fill: var(--reviews-star); }
.reviews__stars--lg { gap: 5px; }
.reviews__stars--lg .reviews__star { font-size: 36px; }

/* Плашки площадок */
.reviews__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.reviews__platform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 148px;
  padding: 12px 16px;
  border: 1px solid var(--line, #e6e8ee);
  border-radius: 12px;
  background: var(--white, #fff);
}
.reviews__platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-family: Geologica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.reviews__platform-icon--2gis { background: #19aa1e; }
.reviews__platform-icon--google { background: #4285f4; }
.reviews__platform-body { text-align: right; margin-left: auto; }
.reviews__platform-score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}
.reviews__platform-score .reviews__star { font-size: 13px; }
.reviews__platform-count {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(51, 51, 51, 0.55);
}

/* Карусель */
.reviews__carousel {
  margin: 26px calc(-1 * var(--edge, 20px)) 0 0;
  padding-right: var(--edge, 20px);
}
.reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reviews__track.is-dragging .reviews__card { pointer-events: none; }

.reviews__loading {
  margin: 0;
  padding: 24px 0;
  font-size: 15px;
  color: rgba(51, 51, 51, 0.6);
}

.reviews__card {
  flex: 0 0 var(--reviews-card);
  width: var(--reviews-card);
  min-height: 268px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border-radius: 12px;
  background: var(--muted, #f7f8fa);
}
.reviews__card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.reviews__card-head > div { min-width: 0; }
.reviews__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e6e8ee;
}
.reviews__avatar--letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Geologica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  user-select: none;
}
.reviews__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 2px 0 0;
  overflow-wrap: break-word;
}
.reviews__card-stars { margin-top: 8px; }
.reviews__card-stars .reviews__star { font-size: 14px; }

.reviews__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(51, 51, 51, 0.55);
  text-decoration: none;
}
.reviews__date span { text-decoration: underline; text-decoration-color: rgba(51, 51, 51, 0.3); }
.reviews__date:hover span { color: var(--blue, #2855a3); text-decoration-color: currentColor; }
.reviews__date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.reviews__text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(51, 51, 51, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviews__card.is-open .reviews__text {
  display: block;
  overflow: visible;
}
.reviews__more {
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: rgba(51, 51, 51, 0.55);
}
.reviews__more:hover { color: var(--blue, #2855a3); }
.reviews__more[hidden] { display: none; }

/* Подвал блока: индикатор прокрутки и кнопка */
.reviews__foot {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
}
.reviews__scrollbar {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  border-radius: 3px;
  background: var(--line, #e6e8ee);
  overflow: hidden;
}
.reviews__scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 25%;
  border-radius: 3px;
  background: var(--reviews-star-deep);
  transition: transform 0.12s linear;
}
.reviews__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 42px;
  padding: 0 26px;
  border: 1px solid var(--line, #e6e8ee);
  border-radius: 41px;
  background: var(--white, #fff);
  color: var(--ink, #171717);
  font-family: Geologica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.reviews__cta:hover { border-color: var(--blue, #2855a3); color: var(--blue, #2855a3); }

@media (max-width: 1100px) {
  .reviews { --reviews-card: 236px; }
  .reviews__rating { font-size: 36px; }
  .reviews__stars--lg .reviews__star { font-size: 30px; }
  .reviews__platform { min-width: 136px; padding: 10px 14px; }
}

@media (max-width: 760px) {
  .reviews { --reviews-card: min(78vw, 280px); margin-top: 48px; }
  .reviews__title { font-size: 24px; }
  .reviews__head {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 18px;
  }
  .reviews__rating { font-size: 34px; }
  .reviews__stars--lg .reviews__star { font-size: 26px; }
  .reviews__platforms { gap: 8px; }
  .reviews__platform { flex: 1 1 140px; min-width: 0; }
  .reviews__carousel { margin-top: 20px; }
  .reviews__card { padding: 16px; }
  .reviews__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .reviews__cta { width: 100%; }
}
