/* Карточки отзывов на основных страницах городов. */
#reviews.city-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin: 24px 0 0;
}
#reviews.city-reviews > .col-md-6 {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}
#reviews .city_review_card {
  border: 1px solid #e4e8e2;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #263126;
  box-shadow: 0 3px 12px rgba(35, 52, 29, .04);
}
#reviews .city_review_header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 0;
}
#reviews .city_review_avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef4e9;
  color: #39712a;
  font-size: 18px;
  font-weight: 600;
}
#reviews .city_review_author {
  flex: 1;
  min-width: 0;
}
#reviews .city_review_author h3 {
  margin: 0 0 3px;
  color: #263126;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: break-word;
}
#reviews .city_review_author time {
  color: #788171;
  font-size: 12px;
}
#reviews .city_review_score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #626d5d;
  background: #edf0e9;
  line-height: 1.2;
}
#reviews .city_review_score strong {
  font-size: 20px;
  font-weight: 600;
}
#reviews .city_review_score small {
  font-size: 11px;
}
#reviews .city_review_score_good {
  color: #39712a;
  background: #eaf3e4;
}
#reviews .city_review_score_low {
  color: #a24d3f;
  background: #fbefec;
}
#reviews .city_review_text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#reviews .city_review_body {
  min-width: 0;
  min-height: 0;
  padding: 16px 20px;
}
#reviews .city_review_card.city_review_ready {
  display: grid;
  grid-template-rows: 80px minmax(0, 1fr) 90px;
  height: 340px;
}
#reviews .city_review_ready .city_review_author h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#reviews .city_review_ready .city_review_text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  max-height: 6.8em;
  overflow: hidden;
}
#reviews .city_review_ready .city_review_footer a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 3em;
  overflow: hidden;
}
#reviews .city_review_toggle {
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #39712a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}
#reviews .city_review_toggle[hidden] {
  display: none;
}
#reviews .city_review_toggle::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: '';
}
#reviews .city_review_toggle[aria-expanded="true"]::after {
  transform: rotate(225deg);
  margin-bottom: 0;
}
#reviews .city_review_toggle:hover {
  color: #263126;
}
#reviews .city_review_toggle:focus-visible {
  outline: 2px solid #6b974d;
  outline-offset: 3px;
}
#reviews .city_review_card.city_review_expanded {
  grid-template-rows: 80px auto 90px;
  height: auto;
  min-height: 340px;
}
#reviews .city_review_expanded .city_review_text {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
}
#reviews .city_review_footer {
  padding: 12px 20px 14px;
  border-top: 1px solid #edf0eb;
  background: #fafbf8;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#reviews .city_review_footer > span {
  display: block;
  margin-bottom: 3px;
  color: #788171;
}
#reviews .city_review_footer a {
  color: #39712a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#reviews .city_review_footer a:hover {
  color: #263126;
}
@media (max-width: 767px) {
  #reviews.city-reviews {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  #reviews .city_review_header {
    gap: 10px;
    padding: 15px 15px 0;
  }
  #reviews .city_review_avatar {
    flex-basis: 36px;
    height: 36px;
    font-size: 16px;
  }
  #reviews .city_review_score {
    min-width: 55px;
    padding: 7px 8px;
  }
  #reviews .city_review_body {
    padding: 14px 15px 16px;
  }
  #reviews .city_review_text {
    font-size: 13px;
  }
  #reviews .city_review_footer {
    padding: 11px 15px 13px;
  }
}
