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

.reviews {
  font-family: 'Tenor Sans', sans-serif;
}

.reviews .container {
  max-width: 1400px;
  margin: 0 auto;
}

.reviews__title {
  text-align: center;
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.reviews-swiper {
  position: relative;
  --reviews-swiper-padding-bottom: 50px;
  padding: 0 50px var(--reviews-swiper-padding-bottom);
  --reviews-gutter: 70px;
  --reviews-arrow-size: 52px;
  --reviews-arrow-offset: var(--desktop-offset, 0px);
  --reviews-card-height: 420px;
}

.reviews-swiper__container {
  overflow: hidden;
}

.review-card {
  background: transparent;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  border-left: none;
  border-right: none;
  padding: 15px;
  height: 420px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-height 0.3s ease, box-shadow 0.3s ease;
}

.review-card.review-card--expanded {
  height: auto;
  max-height: 1000px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.review-card__quote {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
}

.review-card__author {
  font-size: 18px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.review-card__date {
  font-size: 13px;
  opacity: 0.75;
  color: #893b22;
}

.review-card__text {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 8px;
  overflow: hidden;
}

.review-card p {
  line-height: 1.5;
  font-size: 16px;
  padding: 0px;
  margin: 0;
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 14em;
  transition: max-height 0.3s ease;
}

.review-card--expanded .review-card__text p {
  -webkit-line-clamp: unset;
  max-height: 1000px;
  overflow: visible;
}

.review-card__more {
  border: none;
  background: transparent;
  color: #893b22;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-top: 8px;
  text-decoration: underline;
  text-align: left;
  font-family: inherit;
  align-self: flex-start;
}

.review-card__more:hover {
  text-decoration: none;
}

.review-card__more:focus-visible,
.reviews-swiper__prev:focus-visible,
.reviews-swiper__next:focus-visible {
  outline: 2px solid #893b22;
  outline-offset: 2px;
}

.review-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  margin-top: auto;
}

.review-card__divider {
  height: 1px;
  margin-top: 8px;
  flex-shrink: 0;
}

.review-card__divider::before {
  content: "";
  display: block;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
}

.review-card__service {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.review-card__stars {
  font-size: 18px;
  white-space: nowrap;
  color: #893b22;
}

.reviews-swiper__prev,
.reviews-swiper__next {
  width: 52px;
  height: 52px;
  position: absolute;
  top: calc(var(--reviews-card-height, 0px) / 2);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #000;
}

.reviews-swiper__prev::after,
.reviews-swiper__next::after {
  font-family: swiper-icons;
  font-size: 35px;
  font-weight: bold;
}

.reviews-swiper__prev::after {
  content: 'prev';
}

.reviews-swiper__next::after {
  content: 'next';
}

.reviews-swiper__prev:hover,
.reviews-swiper__next:hover {
  color: #555;
}

.reviews-swiper__prev {
  left: calc(-5px - var(--reviews-arrow-offset));
}

.reviews-swiper__next {
  right: calc(-5px - var(--reviews-arrow-offset));
}

.reviews-swiper__pagination {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  text-align: center;
}

.reviews-swiper__pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #000;
  opacity: 0.25;
  border-radius: 50%;
  margin: 0 3px;
}

.reviews-swiper__pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 1024px) {
  .reviews-swiper {
    padding-left: 55px;
    padding-right: 55px;
  }

  .reviews__title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .review-card {
    padding: 3px;
  }

  .reviews-swiper {
    padding-left: 15px;
    padding-right: 15px;
    --reviews-arrow-offset: var(--mobile-offset, 0px);
  }

  .reviews__title {
    font-size: 15px;
  }

  .reviews-swiper__prev,
  .reviews-swiper__next {
    width: 22px;
    height: 22px;
  }

  .reviews-swiper__prev::after,
  .reviews-swiper__next::after {
    font-size: 22px;
  }
}
