
/* GOOGLE REVIEWS — REPRODUKTOLOG LVIV */

.rp-reviews {
  --rr-teal: #079c98;
  --rr-ink: #153349;
  --rr-muted: #718493;
  box-sizing: border-box;
  padding: 88px 28px 94px;
  background: #f8faf8;
  width: 100%;
  overflow: hidden;
}

.rp-reviews *,
.rp-reviews *::before,
.rp-reviews *::after {
  box-sizing: border-box;
}

.rp-reviews__container {
  max-width: 1440px;
  margin: 0 auto;
}

.rp-reviews__header {
  text-align: center;
  margin-bottom: 44px;
}

.rp-reviews__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--rr-teal);
  font: 700 12px/1.5 Arial, sans-serif;
  letter-spacing: 2.5px;
}

.rp-reviews__header h2 {
  margin: 0 0 18px;
  color: var(--rr-ink);
  font: 400 clamp(36px, 4vw, 56px)/1.15 Georgia, serif;
}

.rp-reviews__header h2 em {
  color: var(--rr-teal);
  font-style: normal;
}

.rp-reviews__header > p {
  max-width: 660px;
  margin: 0 auto 24px;
  color: var(--rr-muted);
  font-size: 16px;
  line-height: 1.7;
}

.rp-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-reviews__google {
  color: #4285f4;
  font-size: 19px;
  font-weight: 700;
}

.rp-reviews__rating strong {
  color: var(--rr-ink);
  font-size: 23px;
}

.rp-reviews__rating-stars,
.rp-reviews__stars {
  color: #e8aa2e;
  letter-spacing: 2px;
}

.rp-reviews__count {
  color: var(--rr-muted);
  font-size: 14px;
}

/* SLIDER */

.rp-reviews__slider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rp-reviews__viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 22px;
}

.rp-reviews__track {
  --rr-visible: 3;
  --rr-gap: 20px;

  display: flex;
  gap: var(--rr-gap);
  transition: transform .5s ease;
  will-change: transform;
}

/* EQUAL CARDS */

.rp-reviews__card {
  flex: 0 0 calc(
    (100% - (var(--rr-visible) - 1) * var(--rr-gap))
    / var(--rr-visible)
  );

  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 335px;
  padding: 29px 27px;
  background: #fff;
  border: 1px solid #e1ebe7;
  border-radius: 21px;
  box-shadow: 0 10px 30px rgba(25, 75, 68, .04);
}

.rp-reviews__stars {
  margin-bottom: 19px;
  font-size: 20px;
  white-space: nowrap;
}

.rp-reviews__quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
  margin: 0 0 12px;
  color: #40555e;
  font-size: 15px;
  line-height: 1.65;
}

.rp-reviews__original {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 17px;
  color: var(--rr-teal) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rp-reviews__author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding-top: 17px;
  border-top: 1px solid #e8eeeb;
}

.rp-reviews__avatar {
  flex: 0 0 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #e5f7f3;
  color: var(--rr-teal);
  font-size: 16px;
  font-weight: 700;
}

.rp-reviews__author > div {
  min-width: 0;
}

.rp-reviews__author strong,
.rp-reviews__author span:not(.rp-reviews__avatar) {
  display: block;
}

.rp-reviews__author strong {
  overflow: hidden;
  color: var(--rr-ink);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-reviews__author > div > span {
  color: var(--rr-muted);
  font-size: 12px;
}

/* ARROWS */

.rp-reviews__arrow {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d8e8e2;
  border-radius: 50%;
  background: #fff;
  color: var(--rr-teal);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.rp-reviews__arrow:hover {
  background: var(--rr-teal);
  color: #fff;
}

.rp-reviews__arrow:focus-visible,
.rp-reviews__dot:focus-visible,
.rp-reviews__all:focus-visible {
  outline: 3px solid #159e95;
  outline-offset: 3px;
}

/* DOTS */

.rp-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 25px;
}

.rp-reviews__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbded9;
  cursor: pointer;
}

.rp-reviews__dot.is-active {
  width: 25px;
  border-radius: 10px;
  background: var(--rr-teal);
}

/* CTA */

.rp-reviews__bottom {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.rp-reviews__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 32px;
  border-radius: 50px;
  background: #0aaea7;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: background .2s;
}

.rp-reviews__all:hover {
  background: #078e89;
}

/* TABLET */

@media (max-width: 1050px) {
  .rp-reviews__track {
    --rr-visible: 2;
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .rp-reviews {
    padding: 60px 16px 70px;
  }

  .rp-reviews__header {
    margin-bottom: 30px;
  }

  .rp-reviews__header h2 {
    font-size: 36px;
  }

  .rp-reviews__track {
    --rr-visible: 1;
    --rr-gap: 12px;
  }

  .rp-reviews__slider {
    position: relative;
    gap: 0;
    padding-bottom: 55px;
  }

  .rp-reviews__card {
    height: 325px;
    padding: 25px 23px;
  }

  .rp-reviews__arrow {
    position: absolute;
    bottom: 0;
    width: 42px;
    height: 42px;
  }

  .rp-reviews__arrow--prev {
    left: calc(50% - 53px);
  }

  .rp-reviews__arrow--next {
    right: calc(50% - 53px);
  }

  .rp-reviews__dots {
    margin-top: 12px;
  }

  .rp-reviews__all {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-reviews__track {
    transition: none;
  }
}
