.review-card {
  background: #f4f4f4;
  border-radius: 16px;
  padding: 16px;
}

.review-card__header {
  font-weight: 300;
  font-size: 14px;
  line-height: 24px;
  color: #929292;
}

.review-card__header > span {
  display: block;
  font-weight: 300;
  font-size: 13px;
  line-height: 19px;
  color: #bfbfbf;
}

.review-card__text {
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: #000;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 9; /* Ограничение в 9 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(24px * 9); /* Резервное ограничение высоты */
}

@media (width >= 768px) {
  height: calc(24px * 9); /* Резервное ограничение высоты */
}

.review-card__imgbox img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 234 / 156;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 16px;
}

.review-card__footer {
  margin-top: 8px;
}

.review-card__button {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  color: #fd4e85;
  border-radius: 16px;
  background: #ffe6ee;
  transition: 0.3s ease;
}

.review-card__button:hover {
  color: #fff;
  background: #fd4e85;
}

.review-slider {
  width: calc(100% - 80px);
  margin-inline: auto;
}
.review-slider .owl-nav div {background: transparent !important;font-size: 0 !important}
.review-slider .owl-nav div.owl-prev {left: -40px}
.review-slider .owl-nav div.owl-next {right: -40px}
.review-slider .owl-nav div:before,
.review-slider .owl-nav div:after {position: absolute;top: 0;left: 0;display: block;width: 100%;height: 100%;background: url(../img/new_imgs/arrows.png) 0 0 no-repeat;content: '';-webkit-transition: all .35s ease;-moz-transition: all .35s ease;-ms-transition: all .35s ease;-o-transition: all .35s ease;transition: all .35s ease}
.review-slider .owl-nav div:before {visibility: hidden;opacity: 0}
.review-slider .owl-nav div:after {visibility: visible;opacity: 1}
.review-slider .owl-nav div:hover:before {visibility: visible;opacity: 1}
.review-slider .owl-nav div:hover:after {visibility: hidden;opacity: 0}
.review-slider .owl-nav div.owl-prev:before {background-position: -2px -45px}
.review-slider .owl-nav div.owl-prev:after {background-position: -2px -1px}
.review-slider .owl-nav div.owl-next:before {background-position: -46px -45px}
.review-slider .owl-nav div.owl-next:after {background-position: -46px -1px}

.mfp-content:has(.review-modal) {
  background: none;
  max-width: 1090px;
}

.review-modal {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  position: relative;
  color: #000;
}

.review-modal__header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.review-modal__title {
  font-weight: 300;
  font-size: 14px;
  line-height: 24px;
  color: #929292;
}

.review-modal__title > span {
  display: block;
  font-weight: 300;
  font-size: 13px;
  line-height: 19px;
  color: #bfbfbf;
}

.review-modal__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.review-modal__content {
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
}

.review-modal__image img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

@media (width < 768px) {
  .review-modal__main { display: block; }
  .review-modal__image { display: none; }
}

.good-place-block {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (width >= 768px) {
  .good-place-block {
    flex-direction: row;
    gap: 14px;
    justify-content: center;
  }
}

.good-place {
  padding: 12px 16px;
  border-radius: 16px;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  text-decoration: none !important;
}
.good-place__main {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: 'icon t1' 'icon t2';
  gap: 0 12px;
  align-items: center;
}
.good-place__icon {
  grid-area: icon;
}
.good-place__text1 {
  grid-area: t1;
  font-weight: 300;
  font-size: 16px;
  line-height: 100%;
  color: #000;
  transition: all .3s ease;
}
.good-place__text2 {
  grid-area: t2;
  font-weight: 300;
  font-size: 13px;
  line-height: 100%;
  color: #929292;
}
.good-place:hover .good-place__text1 {
  color: #FD4E85;
}
@media (width >= 768px) {
  .good-place { padding: 16px; }
}

.ya-reviews {
  padding: 12px 16px;
  border-radius: 16px;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
}
.ya-reviews__main {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: 'icon t1' 'icon t2';
  gap: 0 12px;
  align-items: center;
}
.ya-reviews__count {
  grid-area: icon;
  font-weight: 500;
  font-size: 40px;
  line-height: 100%;
  color: #929292;
}
.ya-reviews__stars {
  grid-area: t1;
}
.ya-reviews__text {
  grid-area: t2;
  font-weight: 300;
  font-size: 13px;
  line-height: 100%;
  color: #929292;
}
@media (width >= 768px) {
  .ya-reviews { padding: 16px; }
}

.ya-reviews-more {
  padding: 12px 16px;
  border-radius: 16px;
  background: #e4f2ff;
  /*display: flex;*/
  /*gap: 8px;*/
  /*align-items: center;*/
  color: #198cff;
  text-decoration: none;
  /*justify-content: center;*/
  transition: 0.3s ease;
}
.ya-reviews-more:hover {
  background: #198cff;
  color: #fff;
}
@media (width < 768px) {
  .ya-reviews-more { text-align: center; }
  .ya-reviews-more br { display: none; }
}
@media (width >= 768px) {
  .ya-reviews-more { padding: 16px; }
}

.good-place-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 300;
  line-height: 100%;
  color: #fff;
  transition: all .3s ease;
  text-decoration: none;
}
.good-place-top:hover {
  color: #0faade;
  text-decoration: none;
}
@media (width < 768px) {
  .good-place-top { display: none; }
}


.mfp-content:has(.good-place-modal) {
  background: none;
  max-width: 400px;
}
.good-place-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: #000;
}
.good-place-modal__icon {
  display: inline-block;
  max-width: 100%;
}
.good-place-modal__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin-top: 16px;
}
.good-place-modal__text {
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  margin-top: 16px;
}
.good-place-modal__closer {
  position: absolute;
  right: 16px;
  top: 16px;
}
