.custom-reviews .custom-reviews__layout--normal-width {
  max-width: 920px;
}

.custom-reviews__wrapper--center {
  text-align: center;
}

.custom-reviews__wrapper--left {
  text-align: left;
}

.custom-reviews__wrapper--right {
  text-align: right;
}

.custom-reviews__blocks > * {
  margin-top: 0;
  margin-bottom: 0;
}

.custom-reviews__blocks > * + * {
  margin-top: 30px;
}

.custom-reviews .custom-reviews__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.custom-reviews .custom-reviews__buttons > * {
  padding: 15px 5px;
  width: 100%;
  max-width: 255px;
  margin-bottom: 20px;
}

@media screen and (max-width: 959px) {
  .custom-reviews .custom-reviews__layout--normal-width {
    max-width: 100%;
  }

  .custom-reviews__blocks > * + * {
    margin-top: 20px;
  }
}

.custom-reviews__heading {
  font-size: 42px;
  font-style: italic;
  letter-spacing: 0px;
}

.custom-reviews__text p {
  text-align: justify;
}

/* ---------- Two-column layout when slider is present ---------- */

.custom-reviews--has-slider {
  padding-top: 0;
  padding-bottom: 0;
}

.custom-reviews--has-slider .custom-reviews__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.custom-reviews--has-slider .custom-reviews__content {
  max-width: 100%;
  text-align: left;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.custom-reviews--has-slider .custom-reviews__blocks > * + * {
  margin-top: 0;
}

.custom-reviews--has-slider .section__subtitle {
  display: inline-block;
  margin: 0;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--color-light-text));
  text-align: left;
}

.custom-reviews--has-slider .custom-reviews__heading {
  margin: 0;
  font-family: var(--title-font);
  font-weight: var(--title-font-weight);
  font-size: clamp(32px, 4vw, 52px);
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 700px;
}

.custom-reviews--has-slider .custom-reviews__text {
  margin: 0;
  max-width: 640px;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(var(--color-scheme-1-text), 0.78);
}

.custom-reviews--has-slider .custom-reviews__text p {
  text-align: left;
  margin: 0;
}

.custom-reviews--has-slider .custom-reviews__text p + p {
  margin-top: 12px;
}

.custom-reviews--has-slider .custom-reviews__buttons {
  margin-top: 12px;
  gap: 10px;
}

.custom-reviews--has-slider .custom-reviews__buttons > * {
  width: auto;
  max-width: none;
  margin-bottom: 0;
  padding: calc(var(--btn-border-thickness) + 9px) calc(var(--btn-border-thickness) + 18px);
}

.custom-reviews--has-slider .custom-reviews__wrapper--center .section__subtitle,
.custom-reviews--has-slider .custom-reviews__wrapper--center .custom-reviews__heading,
.custom-reviews--has-slider .custom-reviews__wrapper--center .custom-reviews__text,
.custom-reviews--has-slider .custom-reviews__wrapper--center .custom-reviews__text p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.custom-reviews--has-slider .custom-reviews__wrapper--right .section__subtitle,
.custom-reviews--has-slider .custom-reviews__wrapper--right .custom-reviews__heading,
.custom-reviews--has-slider .custom-reviews__wrapper--right .custom-reviews__text,
.custom-reviews--has-slider .custom-reviews__wrapper--right .custom-reviews__text p {
  text-align: right;
  margin-left: auto;
}

.custom-reviews--has-slider .custom-reviews__wrapper--center {
  text-align: center;
}

.custom-reviews--has-slider .custom-reviews__wrapper--right {
  text-align: right;
}

.custom-reviews--has-slider .custom-reviews__buttons {
  justify-content: flex-start;
}

.custom-reviews--has-slider .custom-reviews__wrapper--center .custom-reviews__buttons {
  justify-content: center;
}

.custom-reviews--has-slider .custom-reviews__wrapper--right .custom-reviews__buttons {
  justify-content: flex-end;
}

/* ---------- Slider ---------- */

.custom-reviews__visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background-color: rgb(var(--color-scheme-1-bg));
  border: 1px solid rgba(var(--color-text), 0.12);
  --custom-reviews-slide-opacity: 0.6;
}

.custom-reviews__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.custom-reviews__slide {
  position: relative;
  overflow: hidden;
  background-color: rgb(var(--color-scheme-1-bg));
}

.custom-reviews__slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: var(--custom-reviews-slide-opacity, 0.6);
  transform: scale(1);
  transition: transform 1400ms ease-out;
  will-change: transform;
}

.custom-reviews__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  z-index: 2;
}

@keyframes custom-reviews-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.custom-reviews__slide.swiper-slide-active .custom-reviews__slide-image {
  animation: custom-reviews-ken-burns 5200ms ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .custom-reviews__slide.swiper-slide-active .custom-reviews__slide-image {
    animation: none;
  }
}

.custom-reviews__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.custom-reviews__nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.custom-reviews__nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.custom-reviews__nav::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid #FFFFFF;
  border-right: 2px solid #FFFFFF;
  display: block;
}

.custom-reviews__nav--prev {
  left: 16px;
}

.custom-reviews__nav--prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.custom-reviews__nav--next {
  right: 16px;
}

.custom-reviews__nav--next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

.custom-reviews__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.custom-reviews__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  margin: 0 !important;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.custom-reviews__pagination .swiper-pagination-bullet-active {
  background: #FFFFFF;
  transform: scale(1.15);
}

/* ---------- Per-slide review overlay (centered testimonial) ---------- */

.custom-reviews__slide-reviews {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 64px;
  pointer-events: none;
}

.custom-reviews__review {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  max-width: min(640px, 92%);
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.custom-reviews__review.is-active {
  display: flex;
}

.custom-reviews__review-stars {
  --rating: 5;
  display: inline-flex;
  gap: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-shadow: none;
}

.custom-reviews__review-star {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.35);
}

.custom-reviews__review-star::after {
  content: "★";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;
  color: rgb(var(--color-light-text));
  width: 0;
}

.custom-reviews__review-star:nth-child(1)::after { width: max(0%, min(calc(var(--rating) * 100%), 100%)); }
.custom-reviews__review-star:nth-child(2)::after { width: max(0%, min(calc((var(--rating) - 1) * 100%), 100%)); }
.custom-reviews__review-star:nth-child(3)::after { width: max(0%, min(calc((var(--rating) - 2) * 100%), 100%)); }
.custom-reviews__review-star:nth-child(4)::after { width: max(0%, min(calc((var(--rating) - 3) * 100%), 100%)); }
.custom-reviews__review-star:nth-child(5)::after { width: max(0%, min(calc((var(--rating) - 4) * 100%), 100%)); }

.custom-reviews__review-quote {
  margin: 0;
  font-family: var(--title-font);
  font-weight: var(--title-font-weight);
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.custom-reviews__review-quote::before {
  content: "\201C";
  margin-right: 0.05em;
}

.custom-reviews__review-quote::after {
  content: "\201D";
  margin-left: 0.05em;
}

.custom-reviews__review-name {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.custom-reviews__review-name::before {
  content: "— ";
}

.custom-reviews__slide:has(.custom-reviews__review.is-active)::after {
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.35) 100%);
}

@media screen and (max-width: 959px) {
  .custom-reviews--has-slider .custom-reviews__layout {
    grid-template-columns: 1fr;
  }

  .custom-reviews--has-slider .custom-reviews__content {
    padding: 28px 24px;
    text-align: center;
  }

  .custom-reviews--has-slider .custom-reviews__buttons {
    justify-content: center;
  }

  .custom-reviews__visual {
    min-height: 360px;
  }

  .custom-reviews__nav {
    width: 36px;
    height: 36px;
  }

  .custom-reviews__slide-reviews {
    padding: 32px 20px 56px;
  }

  .custom-reviews__review {
    gap: 16px;
  }

  .custom-reviews__review-stars {
    font-size: 18px;
    gap: 3px;
  }

  .custom-reviews__review-quote {
    font-size: 19px;
    line-height: 1.35;
  }

  .custom-reviews__review-name {
    font-size: 11px;
    letter-spacing: 0.2em;
  }
}
