.rrgr {
  --rrgr-blue: #0e3f70;
  --rrgr-blue-dark: #092f55;
  --rrgr-ink: #1d2733;
  --rrgr-muted: #596675;
  --rrgr-muted-strong: #344454;
  --rrgr-border: #e2e7ec;
  --rrgr-surface: #ffffff;
  --rrgr-star: #f5b301;
  --rrgr-radius: 14px;
  width: 100%;
  color: var(--rrgr-ink);
  font-family: inherit;
}

.rrgr * { box-sizing: border-box; }

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

.rrgr__heading { max-width: 690px; }
.rrgr__title {
  margin: 0 0 8px;
  color: var(--rrgr-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.rrgr__subtitle {
  margin: 0;
  color: var(--rrgr-muted-strong);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.55;
}

.rrgr__score {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
}
.rrgr__score-number {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rrgr__count {
  grid-column: 1 / -1;
  color: var(--rrgr-muted-strong);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.rrgr-stars { position: relative; display: inline-block; line-height: 1; white-space: nowrap; vertical-align: middle; font-family: Arial, Helvetica, sans-serif; }
.rrgr-stars__base { color: #d7dce1; }
.rrgr-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--rrgr-star); white-space: nowrap; }
.rrgr-stars--large { font-size: 22px; letter-spacing: 1px; transform: translateY(1px); }

.rrgr__carousel { position: relative; }
.rrgr__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px;
}
.rrgr__viewport::-webkit-scrollbar { display: none; }
.rrgr__track { display: flex; gap: 18px; align-items: stretch; }

.rrgr-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  background: var(--rrgr-surface);
  border: 1px solid var(--rrgr-border);
  border-radius: var(--rrgr-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  box-shadow: 0 8px 24px rgba(18, 38, 58, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rrgr-card:hover { transform: translateY(-2px); border-color: #ccd6df; box-shadow: 0 12px 28px rgba(18,38,58,.08); }

.rrgr-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rrgr-card__author { display: flex; gap: 11px; align-items: center; min-width: 0; }
.rrgr-card__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rrgr-card__avatar--fallback { display: inline-flex; align-items: center; justify-content: center; background: #edf3f8; color: var(--rrgr-blue); font-weight: 700; }
.rrgr-card__name { display: block; color: var(--rrgr-ink); font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; }
a.rrgr-card__name:hover { color: var(--rrgr-blue); }
.rrgr-card__date { display: block; margin-top: 2px; color: var(--rrgr-muted); font-size: 12px; }
.rrgr-card__google { color: #4e5965; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rrgr-card__stars { margin: 18px 0 12px; color: var(--rrgr-star); font-size: 18px; line-height: 1; letter-spacing: 1.5px; font-family: Arial, Helvetica, sans-serif; }
.rrgr-card__text { margin: 0; color: #45515d; font-size: 14px; line-height: 1.7; }
.rrgr-card__footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 18px; }
.rrgr-card__footer a { color: var(--rrgr-blue); font-size: 12px; font-weight: 600; text-decoration: none; }
.rrgr-card__footer a:hover { text-decoration: underline; }
.rrgr-card__footer .rrgr-card__report { color: var(--rrgr-muted); font-weight: 400; }

.rrgr__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rrgr-border);
  background: #fff;
  color: var(--rrgr-blue);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18,38,58,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}
.rrgr__nav::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.rrgr__nav--prev::before { transform: rotate(-135deg) translate(-1px, -1px); }
.rrgr__nav--next::before { transform: rotate(45deg) translate(-1px, 1px); }
.rrgr__nav:hover { background: var(--rrgr-blue); color: #fff; border-color: var(--rrgr-blue); }
.rrgr__nav:disabled { opacity: .3; cursor: default; }
.rrgr__nav--prev { left: -18px; }
.rrgr__nav--next { right: -18px; }

.rrgr__bottom { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; margin-top: 28px; }
.rrgr__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 7px;
  background: var(--rrgr-blue);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.rrgr__button:hover { background: var(--rrgr-blue-dark); transform: translateY(-1px); }
.rrgr__attribution { color: var(--rrgr-muted-strong); font-size: 11px; font-weight: 500; }
.rrgr__empty { text-align: center; color: var(--rrgr-muted); }
.rrgr-admin-error { padding: 12px 14px; border: 1px solid #e5b7b7; background: #fff5f5; color: #9b1c1c; border-radius: 6px; }

@media (max-width: 1024px) {
  .rrgr-card { flex-basis: calc((100% - 18px) / 2); }
  .rrgr__header { align-items: flex-start; }
}

@media (max-width: 767px) {
  .rrgr__header { display: block; margin-bottom: 22px; }
  .rrgr__score { display: inline-grid; margin-top: 18px; }
  .rrgr__count { text-align: left; }
  .rrgr-card { flex-basis: 88%; min-height: 0; padding: 20px; }
  .rrgr__track { gap: 12px; }
  .rrgr__nav { display: none; }
  .rrgr__viewport { margin-right: -16px; padding-right: 16px; }
  .rrgr__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rrgr__viewport { scroll-behavior: auto; }
  .rrgr-card, .rrgr__button { transition: none; }
}
