/* Google Reviews widget — без зависимостей. Шрифт наследуется от сайта. */
.grw {
  --grw-card: #f8f8f8;
  --grw-text: #111;
  --grw-muted: #858585;
  --grw-blue: #006dff;
  --grw-star: #fcbf02;
  --grw-radius: 8px;
  --grw-gap: 20px;
  --grw-cols: 4;
  container-type: inline-size;
  color: var(--grw-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.grw *, .grw *::before, .grw *::after { box-sizing: border-box; }
.grw a { color: inherit; text-decoration: none; }

.grw-title {
  margin: 0 0 34px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* ---------- шапка ---------- */
.grw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 24px 24px 25px;
  margin-bottom: var(--grw-gap);
  background: var(--grw-card);
  border-radius: var(--grw-radius);
}
.grw-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.grw-header-title .grw-g { width: 21px; height: 21px; }
.grw-header-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 15px;
}
.grw-header-rating .grw-stars svg { width: 22px; height: 22px; }
.grw-btn {
  display: inline-block;
  padding: 9px 21px;
  border-radius: 999px;
  background: var(--grw-blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: filter .15s;
}
.grw-btn:hover { filter: brightness(1.1); }

/* ---------- сетка ---------- */
.grw-grid {
  display: grid;
  grid-template-columns: repeat(var(--grw-cols), minmax(0, 1fr));
  gap: var(--grw-gap);
}
@container (max-width: 1099px) { .grw-grid { --grw-cols: 3; } }
@container (max-width: 819px)  { .grw-grid { --grw-cols: 2; } }
@container (max-width: 539px)  {
  .grw-grid { --grw-cols: 1; }
  .grw-header { flex-direction: column; align-items: flex-start; }
}

/* ---------- карточка ---------- */
.grw-card {
  padding: 24px 25px 26px;
  background: var(--grw-card);
  border-radius: var(--grw-radius);
  animation: grw-in .35s ease both;
}
@keyframes grw-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .grw-card { animation: none; } }

.grw-author { display: flex; align-items: center; gap: 12px; }
.grw-avatar { position: relative; flex: 0 0 40px; width: 40px; height: 40px; }
.grw-avatar img, .grw-avatar .grw-letter {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; display: block;
}
.grw-letter {
  display: flex !important; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; line-height: 1;
}
.grw-avatar .grw-g-badge {
  position: absolute; right: -6px; bottom: -5px;
  width: 21px; height: 21px; padding: 2px;
  background: #fff; border-radius: 50%;
}
.grw-avatar .grw-g-badge svg { width: 100%; height: 100%; display: block; }
.grw-meta { min-width: 0; }
.grw-name {
  display: flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 700; line-height: 1.3;
}
.grw-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grw-name a:hover { text-decoration: underline; }
.grw-verified { flex: 0 0 15px; width: 15px; height: 15px; }
.grw-date { margin-top: 2px; font-size: 12px; color: var(--grw-muted); line-height: 1.3; }

.grw-stars { display: inline-flex; gap: 0; line-height: 0; }
.grw-stars svg { width: 19px; height: 19px; }
.grw-card .grw-stars { margin: 16px 0 6px; }

.grw-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 23px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.grw-text.grw-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grw-more {
  display: inline-block;
  padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer;
  color: var(--grw-blue);
  font: inherit; font-size: 15.5px; line-height: 23px;
}
.grw-more:hover { text-decoration: underline; }
.grw-more[hidden] { display: none; }

/* ---------- «Load More» ---------- */
.grw-footer { text-align: center; margin-top: 20px; }
.grw-load {
  min-width: 163px;
  padding: 9px 30px;
  border: 0; border-radius: 4px;
  background: var(--grw-card);
  color: var(--grw-text);
  font: inherit; font-size: 13px; font-weight: 700; line-height: 15px;
  cursor: pointer;
  transition: background .15s;
}
.grw-load:hover { background: #eee; }
.grw-load[hidden] { display: none; }

.grw-error { padding: 16px; color: var(--grw-muted); font-size: 14px; }
