.rv-block {
  --rv-navy: var(--color--primary, #01182a);
  --rv-text: var(--color--text, #0d3453);
  --rv-yellow: var(--color--secondary, #ffb800);
  color: var(--rv-text);
}

.rv-aggregate {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 30px;
  color: var(--rv-navy);
  font-family: Raleway, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.rv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  scroll-margin-top: 120px;
}

.rv-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 0;
  border-bottom: 3px solid var(--rv-yellow);
  border-radius: 10px;
  background: #fffbf0;
  box-shadow: 0 2px 5px #0003;
}

.rv-card[hidden] { display: none; }

.rv-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rv-person { min-width: 0; display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 48px; height: 48px; flex: 0 0 48px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 5px #0003; }
.rv-avatar--fallback { display: grid; place-items: center; background: var(--rv-avatar); color: #fff; font-weight: 700; }
.rv-author { display: block; overflow-wrap: anywhere; color: var(--rv-navy); font-family: Raleway, sans-serif; font-size: 16px; line-height: 1.25; }
.rv-date { display: block; margin-top: 3px; color: #486284; font-size: 13px; line-height: 1.3; }

.rv-stars {
  position: relative;
  width: 5.7em;
  flex: 0 0 5.7em;
  display: inline-block;
  color: transparent;
  font-family: Arial, sans-serif;
  font-size: 17px;
  letter-spacing: .14em;
  line-height: 1;
  white-space: nowrap;
}

.rv-stars__base { color: #fff9eb; text-shadow: -1px -1px 0 #9e6700, 1px -1px 0 #9e6700, -1px 1px 0 #9e6700, 1px 1px 0 #9e6700; }
.rv-stars__fill { position: absolute; inset: 0 auto 0 0; width: var(--rv-star-fill); overflow: hidden; color: var(--rv-yellow); text-shadow: -1px -1px 0 #9e6700, 1px -1px 0 #9e6700, -1px 1px 0 #9e6700, 1px 1px 0 #9e6700; }
.rv-stars--large { font-size: 20px; }
.rv-verdict { flex: 0 0 auto; color: var(--rv-navy); font-family: Raleway, sans-serif; font-size: 14px; font-weight: 700; }

.rv-text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--rv-text);
  font-family: Varela Round, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.rv-block--teaser .rv-text { -webkit-line-clamp: 5; }
.rv-text.is-expanded { display: block; overflow: visible; -webkit-line-clamp: unset; }
.rv-more { align-self: flex-start; margin: 10px 0 0; padding: 0; border: 0; background: transparent; color: #765200; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-more:hover, .rv-more:focus-visible { color: var(--rv-navy); }

.rv-source { width: fit-content; display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 20px; color: var(--rv-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.rv-source:hover { color: #765200; text-decoration: underline; text-underline-offset: 3px; }
.rv-source__icon { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; }
.rv-source--google .rv-source__icon { background: #4285f4; }
.rv-source--facebook .rv-source__icon { background: #1877f2; }

.rv-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 30px 0 0; text-align: center; }
.rv-links a { color: var(--rv-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--rv-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rv-links a:hover { color: var(--rv-yellow); border-radius: 5px; background: var(--rv-navy); }

.rv-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.rv-page { min-width: 42px; min-height: 42px; padding: 8px 13px; border: 2px solid var(--rv-yellow); border-radius: 8px; background: var(--rv-yellow); color: #000; font: inherit; font-weight: 600; cursor: pointer; transition: all .5s; }
.rv-page:hover, .rv-page.is-current { background: var(--rv-navy); color: var(--rv-yellow); }
.rv-page-gap { padding: 0 3px; }
.rv-more:focus-visible, .rv-source:focus-visible, .rv-links a:focus-visible, .rv-page:focus-visible { outline: 3px solid #0d345380; outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.carousel-reviews__wrap > .button { display: block; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }

@media (max-width: 991px) {
  .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-block--teaser .rv-card:nth-child(n + 3) { display: none; }
}

@media (max-width: 640px) {
  .rv-grid { grid-template-columns: 1fr; gap: 16px; }
  .rv-card { padding: 21px; }
  .rv-card__top { align-items: center; }
  .rv-stars { font-size: 15px; }
  .rv-block--teaser .rv-card:nth-child(n + 2) { display: none; }
  .rv-links { flex-direction: column; align-items: center; }
  .rv-links > span { display: none; }
  .rv-page { min-width: 40px; padding-inline: 10px; }
}
