/* Original Yandex reviews widget, framed by the existing visual system. */
#reviews .reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

#reviews .reviews-copy {
  min-width: 0;
}

#reviews .reviews-rating {
  position: relative;
  width: 240px;
  height: 80px;
  margin-bottom: 20px;
}

#reviews .reviews-rating iframe {
  display: block;
  width: 150px;
  height: 50px;
  border: 0;
  transform: scale(1.6);
  transform-origin: left top;
}

/* Match the badge's native SVG coordinates for the number and full fifth star. */
#reviews .reviews-rating__value {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 80px;
  font: 500 14px "YS Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: normal;
  pointer-events: none;
  user-select: none;
}

#reviews .reviews-rating.is-loaded .reviews-rating__value {
  display: block;
}

#reviews h2 {
  max-width: 12ch;
  text-wrap: balance;
}

#reviews .reviews-copy > p {
  max-width: 35ch;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

#reviews .reviews-link {
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  gap: 16px;
  line-height: 1.35;
}

#reviews .reviews-link svg {
  flex-shrink: 0;
}

#reviews .reviews-widget {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

#reviews .reviews-widget iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
}

/* Visual override requested by the site owner; the live Yandex data stays in the iframe.
   Match its fixed 20px inset, 35px heading row and 48px/56px rating. */
#reviews .reviews-widget__rating {
  display: none;
  position: absolute;
  top: 55px;
  left: 20px;
  width: 68px;
  height: 56px;
  background: #fff;
  color: #000;
  font: 400 48px/56px Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  pointer-events: none;
  user-select: none;
}

#reviews .reviews-widget.is-loaded .reviews-widget__rating {
  display: block;
}

/* Native 12px star drawn at the widget's 16px size and fixed fifth-star position. */
#reviews .reviews-widget__star {
  display: none;
  position: absolute;
  top: 63px;
  left: 171.203125px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  user-select: none;
}

#reviews .reviews-widget.is-loaded .reviews-widget__star {
  display: block;
}

@media (max-width: 800px) {
  #reviews .reviews-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  #reviews h2 {
    max-width: 17ch;
  }

  #reviews .reviews-copy > p {
    max-width: 45ch;
    margin: 18px 0 24px;
  }

  #reviews .reviews-widget iframe {
    height: 600px;
  }
}

@media (max-width: 480px) {
  #reviews .reviews-link {
    width: 100%;
    gap: 12px;
    padding-inline: 18px;
    font-size: 15px;
  }
}
