.yandex-reviews-section {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.yandex-reviews-section__title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lw-color-text, #1a1a1a);
}

.yandex-reviews-section__lead {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.45;
  color: #444;
}

.yandex-reviews-widget {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: var(--yandex-reviews-height, 640px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--lw-radius-lg, 16px);
  border: 1px solid var(--lw-color-border, #e2e2e6);
  box-shadow: var(--lw-shadow-card, 0 4px 24px rgba(0, 0, 0, 0.06));
  background: #fff;
}

.yandex-reviews-widget__iframe {
  display: block;
  width: 100%;
  height: calc(100% - 28px);
  border: 0;
  box-sizing: border-box;
}

.yandex-reviews-widget__map-link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  padding: 8px 16px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  color: #b3b3b3;
  font-size: 10px;
  font-family: Arial, sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
}

.yandex-reviews-widget__map-link:hover {
  color: #0077ff;
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .yandex-reviews-widget {
    height: min(var(--yandex-reviews-height, 640px), 72vh);
    border-radius: 12px;
  }

  .yandex-reviews-section__lead {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 399.98px) {
  .yandex-reviews-widget {
    max-width: 100%;
  }
}
