.doctor-reviews {
  padding-top: clamp(44px, 5vw, 88px);
  padding-bottom: clamp(52px, 6vw, 100px);
  scroll-margin-top: 130px;
}

.doctor-reviews__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.doctor-reviews__heading h2 {
  margin: 0;
  color: #191919;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1.12;
}

.doctor-reviews__all,
.doctor-reviews__source {
  color: #e7202e;
  font-weight: 700;
  text-decoration: none;
}

.doctor-reviews__all:hover,
.doctor-reviews__source:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.doctor-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  align-items: start;
  gap: 18px;
}

.doctor-review {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: clamp(24px, 2.3vw, 36px);
  border-radius: 30px;
  background: #f3f3f5;
  color: #232b39;
}

.doctor-review__author {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.5vw, 25px);
  font-weight: 700;
  line-height: 1.25;
}

.doctor-review__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #707783;
  font-size: 14px;
}

.doctor-review__stars {
  color: #f3b72f;
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1;
}

.doctor-review__summary,
.doctor-review__text {
  margin: 0 0 26px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.doctor-review__text {
  white-space: pre-line;
}

.doctor-review__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.doctor-review__photos a {
  display: block;
  width: clamp(88px, 8vw, 116px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #e4e4e7;
}

.doctor-review__photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.doctor-reviews__source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 15px;
}

.doctor-reviews__source::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: #e7202e;
  transform: rotate(-45deg);
}

.doctor-reviews__more {
  margin-top: 18px;
}

.doctor-reviews__more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: #e7202e;
  font-weight: 700;
  list-style: none;
}

.doctor-reviews__more summary::-webkit-details-marker {
  display: none;
}

.doctor-reviews__more summary::after {
  content: ' ↓';
  margin-left: 6px;
}

.doctor-reviews__more[open] summary::after {
  content: ' ↑';
}

.doctor-reviews__more .doctor-reviews__grid {
  margin-top: 16px;
}

.doctor-reviews__empty {
  max-width: 660px;
  min-height: 0;
}

.doctor-reviews__empty .doctor-review__summary {
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .doctor-reviews {
    scroll-margin-top: 180px;
  }

  .doctor-reviews__heading {
    align-items: start;
    flex-direction: column;
  }

  .doctor-reviews__grid {
    grid-template-columns: 1fr;
  }

  .doctor-review {
    min-height: 0;
    border-radius: 24px;
  }
}
