.cgr-section {
  --cgr-blue: #0b4b86;
  --cgr-text: #162033;
  --cgr-muted: #697384;
  --cgr-star: #fbbc04;
  margin: 42px 0 0;
  padding: 30px 0 0;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 74%);
  overflow: hidden;
}

.cgr-section * { box-sizing: border-box; }
.cgr-container { position: relative; }

.cgr-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 22px;
  padding: 0 8px;
  white-space: nowrap;
}

.cgr-heading-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cgr-heading h2 {
  margin: 0;
  color: #101d30;
  font-size: clamp(25px, 2.35vw, 38px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.7px;
}

.cgr-heading-trust {
  color: #5f6877;
  font-size: clamp(17px, 1.55vw, 27px);
  line-height: 1;
  font-weight: 500;
  flex: 0 0 auto;
}

.cgr-heading-line {
  display: block;
  height: 2px;
  min-width: 60px;
  max-width: 100px;
  flex: 1 1 100px;
  background: #738095;
  opacity: .8;
}

.cgr-google-logo { display: inline-grid; place-items: center; flex: 0 0 auto; }
.cgr-google-logo svg { display: block; width: 100%; height: 100%; }
.cgr-google-logo--heading { width: 42px; height: 42px; }
.cgr-google-logo--card { width: 36px; height: 36px; }
.cgr-google-logo--button { width: 25px; height: 25px; }

.cgr-slider-shell { position: relative; }

.cgr-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 12px) / 6);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 3px 26px;
  overscroll-behavior-inline: contain;
}
.cgr-slider::-webkit-scrollbar { display: none; }

.cgr-card {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 280px;
  padding: 18px 16px 20px;
  border: 1px solid rgba(16, 45, 80, .08);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(28, 50, 77, .10);
}

.cgr-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cgr-author-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cgr-text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.cgr-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 17px 0 12px;
}

.cgr-stars {
  display: flex;
  gap: 1px;
  margin: 0;
  font-size: 17px;
  line-height: 1;
}
.cgr-stars span { color: #d8dde5; }
.cgr-stars span.is-on { color: var(--cgr-star); }

.cgr-review-date {
  color: #737d8c;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.cgr-text {
  margin: 0;
  color: #202a39;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cgr-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--cgr-blue);
  box-shadow: 0 5px 16px rgba(24, 43, 70, .18);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  transition: transform .18s ease, opacity .18s ease;
}
.cgr-nav:hover { transform: scale(1.05); }
.cgr-nav:disabled { opacity: .22; cursor: default; }
.cgr-nav-prev { left: -17px; }
.cgr-nav-next { right: -17px; }

.cgr-summary {
  margin-top: 2px;
  padding: 28px 48px;
  min-height: 124px;
  background: linear-gradient(110deg, #eef8ff 0%, #f8fbff 52%, #eaf5ff 100%);
  border-top: 1px solid rgba(33, 92, 142, .04);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}

.cgr-summary-positive {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cgr-shield {
  width: 54px;
  height: 62px;
  color: var(--cgr-blue);
  flex: 0 0 auto;
}
.cgr-shield svg { display: block; width: 100%; height: 100%; }

.cgr-summary-positive strong {
  display: block;
  color: var(--cgr-blue);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.cgr-summary-positive span,
.cgr-summary-rating > span {
  display: block;
  margin-top: 5px;
  color: #343c49;
  font-size: 13px;
  line-height: 1.3;
}

.cgr-summary-rating {
  min-width: 270px;
  text-align: left;
}

.cgr-summary-scoreline {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cgr-summary-scoreline strong {
  color: var(--cgr-blue);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.cgr-summary-stars {
  font-size: 31px;
  gap: 2px;
}

.cgr-google-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 0 24px;
  border-radius: 12px;
  background: #fff;
  color: #0d67c2 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(33, 72, 112, .07);
  white-space: nowrap;
}
.cgr-google-button:hover { background: #fbfdff; }

@media (max-width: 1199px) {
  .cgr-slider { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
  .cgr-summary { padding: 26px 28px; gap: 24px; }
  .cgr-summary-rating { min-width: 240px; }
  .cgr-summary-scoreline { gap: 12px; }
  .cgr-summary-stars { font-size: 26px; }
  .cgr-google-button { padding: 0 18px; font-size: 13px; }
}

@media (max-width: 991px) {
  .cgr-heading { gap: 14px; }
  .cgr-heading-line { min-width: 35px; }
  .cgr-slider { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
  .cgr-summary { grid-template-columns: 1fr 1fr; }
  .cgr-google-button { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 767px) {
  .cgr-section { margin-top: 30px; padding-top: 25px; }
  .cgr-heading {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    margin-bottom: 18px;
    white-space: normal;
    text-align: center;
  }
  .cgr-heading-main { width: 100%; justify-content: center; }
  .cgr-heading h2 { font-size: 27px; }
  .cgr-google-logo--heading { width: 36px; height: 36px; }
  .cgr-heading-trust { font-size: 18px; }
  .cgr-heading-line { flex: 1 1 55px; max-width: 80px; min-width: 30px; }

  .cgr-slider {
    grid-auto-columns: min(82vw, 295px);
    gap: 12px;
    margin-right: -15px;
    padding-right: 15px;
  }
  .cgr-nav { display: none; }
  .cgr-card { min-height: 260px; border-radius: 16px; }

  .cgr-summary {
    margin-left: -15px;
    margin-right: -15px;
    padding: 26px 20px 30px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cgr-summary-positive { justify-content: center; text-align: left; }
  .cgr-summary-rating { min-width: 0; text-align: center; }
  .cgr-summary-scoreline { justify-content: center; flex-wrap: wrap; gap: 10px 14px; }
  .cgr-summary-scoreline strong { font-size: 34px; }
  .cgr-summary-stars { font-size: 27px; }
  .cgr-google-button {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 13px 18px;
  }
}
