/* Текстовые отзывы категорий услуг. */
.bm-client-reviews {
  padding-top: var(--bm-space-7);
}
.bm-client-reviews__header {
  margin-bottom: 28px;
}
.bm-client-reviews__header h2 {
  margin: 0;
}
.bm-client-review__star-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.bm-client-reviews__desktop {
  display: block;
}
.bm-client-reviews__tablet,
.bm-client-reviews__mobile {
  display: none;
}
.bm-client-reviews__masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.bm-client-reviews__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.bm-client-reviews__cell {
  min-width: 0;
}
.bm-client-review {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 26px;
  border: 1px solid #e6e4df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(35,35,35,.052);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.bm-client-review:hover {
  border-color: #e5dfca;
  box-shadow: 0 12px 28px rgba(35,35,35,.085);
}
.bm-client-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 12px;
  margin-bottom: 20px;
}
.bm-client-review__name {
  display: block;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-weight: 500;
  color: #232323;
  line-height: 1.35;
}
.bm-client-review__rating {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  white-space: nowrap;
  line-height: 1;
}
.bm-client-review__star {
  display: block;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  overflow: visible;
  filter: drop-shadow(0 1px .6px rgba(116, 73, 0, .40));
}
.bm-client-review__star-face {
  stroke: #b77e08;
  stroke-width: .72;
  stroke-linejoin: round;
}
.bm-client-review__star-shine {
  fill: none;
  stroke: rgba(255,255,241,.86);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bm-client-review__star.is-empty {
  filter: none;
}
.bm-client-review__star.is-empty .bm-client-review__star-face {
  fill: #e4e3df;
  stroke: #cbc9c2;
}
.bm-client-review__text {
  margin: 0;
  color: #292929;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.bm-client-reviews__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.bm-client-reviews__all-link {
  min-width: 210px;
  padding-inline: 26px;
}

.bm-client-reviews__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 3px 1px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.bm-client-reviews__track::-webkit-scrollbar { display: none; }
.bm-client-reviews__item {
  flex: 0 0 min(80vw, 400px);
  width: min(80vw, 400px);
  max-width: 80vw;
  scroll-snap-align: start;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .bm-client-reviews__desktop { display: none; }
  .bm-client-reviews__tablet { display: block; }
  .bm-client-reviews__masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .bm-client-review {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .bm-client-reviews__desktop,
  .bm-client-reviews__tablet {
    display: none;
  }
  .bm-client-reviews__mobile {
    display: block;
  }
  /* Мобильные карточки разной высоты всегда начинаются по одной верхней линии. */
  .bm-client-reviews__mobile .bm-client-reviews__track {
    align-items: flex-start;
  }
  .bm-client-reviews__mobile .bm-client-reviews__item {
    align-self: flex-start;
  }
  .bm-client-reviews__mobile .bm-client-review {
    height: auto;
  }
  .bm-client-reviews__header {
    margin-bottom: 20px;
  }
  .bm-client-review {
    padding: 22px;
    border-radius: 16px;
  }
  .bm-client-review__head {
    gap: 8px;
    margin-bottom: 17px;
  }
  .bm-client-review__rating {
    gap: 2px;
  }
  .bm-client-reviews__footer {
    margin-top: 22px;
  }
  .bm-client-reviews__all-link {
    width: 100%;
    max-width: 390px;
  }
}

@media (max-width: 500px) {
  .bm-client-review {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-client-review {
    transition: none;
  }
}
