.reviews-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 0 42px;
  overflow: hidden;
  background: var(--green);
}

.reviews-section .section-title {
  width: min(100%, 792px);
  min-height: 188px;
  margin: 0 auto;
  padding: 42px 24px 30px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  color: transparent;
  font-size: clamp(58px, 9vw, 92px);
  line-height: 1;
  text-align: center;
}

.reviews-section .section-title span {
  color: transparent;
  background: linear-gradient(135deg, #9d7222, #e7bf68 45%, #8a641e);
  background-clip: text;
  -webkit-background-clip: text;
}

.reviews {
  width: 100%;
  padding: 28px 0 0;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 389px;
  gap: 14px;
  padding: 0 max(24px, calc((100vw - 792px) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(24px, calc((100vw - 792px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  padding: 25px 25px 22px;
  overflow: hidden;
  border: 1px solid rgba(214, 174, 88, .85);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0, rgba(225, 190, 112, .2), transparent 34%),
    #fbfaf6;
  box-shadow: 0 16px 36px rgba(3, 31, 25, .18);
  color: var(--green);
  scroll-snap-align: start;
}

.review-card::before {
  position: absolute;
  z-index: 0;
  top: 82px;
  right: 16px;
  color: rgba(184, 137, 43, .12);
  content: '“';
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 148px;
  line-height: .62;
  pointer-events: none;
}

.review-card > * {
  position: relative;
  z-index: 1;
}

.review-card__topline {
  display: flex;
  min-height: 34px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(151, 113, 45, .32);
  color: #8d6a29;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.review-card__text {
  display: -webkit-box;
  margin: 24px 0 18px;
  overflow: hidden;
  color: #193c34;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-style: normal;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #667d75;
  font-size: 12px;
  line-height: 1.35;
}

.review-card__footer button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #b98b34;
  border-radius: 5px;
  background: transparent;
  color: #173d34;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.review-card__footer button:hover {
  border-color: #c49334;
  background: linear-gradient(115deg, #e2b750 0%, #ffe5a1 52%, #d6a63e 100%);
  color: #102f28;
  box-shadow: 0 8px 18px rgba(102, 70, 11, .18);
  transform: translateY(-1px);
}

.review-card__footer button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.review-card__footer button:focus-visible {
  outline: 2px solid #b88428;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fbfaf6;
}

.reviews-track:focus,
.reviews-track:focus-visible {
  outline: none;
  box-shadow: none;
}

.reviews-dots {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 12px auto 0;
}

.reviews-dots button {
  position: relative;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reviews-dots button::after {
  position: absolute;
  top: 14px;
  left: 6px;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(225, 193, 122, .35);
  content: '';
  transition: width .2s ease, left .2s ease, background-color .2s ease;
}

.reviews-dots button.is-active::after {
  left: 3px;
  width: 22px;
  background: #dfbd72;
}

.reviews-privacy-note {
  max-width: 720px;
  margin: 5px auto 0;
  padding: 0 24px;
  color: rgba(250, 247, 238, .78);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.review-dialog {
  width: min(calc(100% - 28px), 680px);
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid #d2aa55;
  border-radius: 22px;
  background: #fbfaf6;
  color: #173d34;
  outline: none;
  box-shadow: 0 28px 80px rgba(0, 20, 16, .42);
}

.review-dialog:focus,
.review-dialog:focus-visible {
  outline: none !important;
  outline-offset: 0;
  -webkit-focus-ring-color: transparent;
}

.review-dialog::backdrop {
  background: rgba(4, 30, 24, .76);
  backdrop-filter: blur(4px);
}

.review-dialog__panel {
  position: relative;
  max-height: min(86vh, 760px);
  padding: 42px 36px 32px;
  overflow-y: auto;
}

.review-dialog__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.review-dialog__close:hover {
  outline: none;
  background: linear-gradient(135deg, #e2b750 0%, #ffe5a1 52%, #d6a63e 100%);
  box-shadow: 0 7px 16px rgba(102, 70, 11, .2);
  transform: translateY(-1px);
}

.review-dialog__close:focus-visible {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.review-dialog__close:focus:not(:focus-visible):not(:hover) {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.review-dialog__close:active {
  box-shadow: 0 3px 8px rgba(102, 70, 11, .16);
  transform: translateY(0) scale(.96);
}

.review-dialog__close svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
  color: #173d34;
  pointer-events: none;
  transition: transform .22s ease;
}

.review-dialog__close:hover svg {
  transform: rotate(90deg) scale(1.06);
}

.review-dialog__close:focus-visible svg {
  color: #b88428;
  transform: scale(1.06);
}

.review-dialog__panel:focus,
.review-dialog__panel:focus-visible {
  outline: none;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent;
}

.review-dialog__eyebrow {
  margin: 0 52px 8px 0;
  color: #98712b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.review-dialog h2 {
  margin: 0 52px 24px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 400;
  line-height: 1.02;
}

.review-dialog__text {
  margin: 0;
  color: #193c34;
  font-size: 18px;
  line-height: 1.62;
  white-space: pre-line;
}

.review-dialog__note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 113, 45, .32);
  color: #667d75;
  font-size: 13px;
  line-height: 1.5;
}

body.has-review-dialog { overflow: hidden; }

@media (max-width: 560px) {
  .reviews-section { padding-bottom: 34px; }
  .reviews-section .section-title {
    min-height: 109px;
    padding: 26px 14px 19px;
    border-radius: 0;
    font-size: 48px;
  }
  .reviews { padding-top: 18px; }
  .reviews-track {
    grid-auto-columns: calc(100vw - 28px);
    gap: 8px;
    padding-inline: 14px;
    scroll-padding-inline: 14px;
  }
  .review-card {
    min-height: 420px;
    padding: 22px 20px 20px;
    border-radius: 15px;
  }
  .review-card__text {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.48;
    -webkit-line-clamp: 10;
  }
  .review-card__footer { align-items: flex-end; }
  .review-card__footer span { max-width: 88px; }
  .reviews-privacy-note { padding-inline: 20px; font-size: 12px; }
  .review-dialog__panel { padding: 66px 22px 26px; }
  .review-dialog__close { top: 14px; right: 14px; }
  .review-dialog__text { font-size: 17px; line-height: 1.58; }
}

@media (prefers-reduced-motion: reduce) {
  .review-card__footer button,
  .reviews-dots button::after { transition: none; }
}
