@import url("https://fonts.googleapis.com/css2?family=Gilda+Display&family=Overpass:wght@400;500;600&display=swap");

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

.kv-reviews {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #a65d45;
  color: #f7efe5;
  isolation: isolate;
}

.kv-reviews__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      rgba(78, 43, 32, 0.12) 0%,
      rgba(78, 43, 32, 0) 38%
    ),
    radial-gradient(
      circle at 82% 15%,
      rgba(239, 194, 137, 0.16),
      rgba(239, 194, 137, 0) 30%
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(69, 78, 52, 0.20),
      rgba(69, 78, 52, 0) 34%
    );
}

.kv-reviews__texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
}

.kv-reviews__orb {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(244, 214, 172, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.kv-reviews__orb--one {
  width: 420px;
  height: 420px;
  right: -180px;
  top: -170px;
}

.kv-reviews__orb--two {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -100px;
}

.kv-reviews__inner {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 7vw));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(5rem, 7vw, 7rem) 0;
}

.kv-reviews__copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
}

.kv-reviews__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 1.4rem;
  color: #f4d6b0;
  font-family: "Overpass", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kv-reviews__eyebrow i {
  width: 74px;
  height: 1px;
  background: rgba(244, 214, 176, 0.62);
}

.kv-reviews__title {
  margin: 0;
  color: #fff6ec;
  font-family: "Gilda Display", "Times New Roman", serif;
  font-size: clamp(3rem, 4.55vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.kv-reviews__accent {
  max-width: 560px;
  margin: 1.5rem 0 0;
  color: #f2c990;
  font-family: "Gilda Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.55vw, 3.2rem);
  font-style: italic;
  line-height: 1.06;
}

.kv-reviews__lead {
  max-width: 560px;
  margin: 1.8rem 0 0;
  color: rgba(255, 246, 236, 0.82);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  line-height: 1.56;
}

.kv-reviews__gesture {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  color: rgba(255, 240, 220, 0.74);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kv-reviews__gesture iconify-icon {
  font-size: 30px;
  color: #f2c990;
}

.kv-reviews__active {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 239, 219, 0.20);
}

.kv-reviews__active-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 240, 220, 0.62);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kv-reviews__active strong {
  color: #fff6ec;
  font-family: "Gilda Display", "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.kv-reviews__deck {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.kv-reviews__stack-wrap {
  position: relative;
  width: min(100%, 560px);
}

.kv-reviews__stack {
  position: relative;
  height: 510px;
  margin-bottom: 78px;
  perspective: 1000px;
}

.kv-reviews__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2.2rem 2.25rem 2rem;
  border: 1px solid rgba(69, 74, 54, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 249, 240, 0.98),
      rgba(244, 231, 211, 0.98)
    );
  color: #2a3027;
  box-shadow:
    0 24px 70px rgba(72, 39, 29, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  transform-origin: 50% 92%;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.kv-reviews__card:nth-child(1) {
  z-index: 6;
}

.kv-reviews__card:nth-child(2) {
  z-index: 5;
  transform: translateY(18px) scale(0.945) rotate(-1.1deg);
}

.kv-reviews__card:nth-child(3) {
  z-index: 4;
  transform: translateY(36px) scale(0.89) rotate(1.4deg);
}

.kv-reviews__card:nth-child(4) {
  z-index: 3;
  transform: translateY(54px) scale(0.835) rotate(-1.7deg);
}

.kv-reviews__card:nth-child(n + 5) {
  z-index: 1;
  opacity: 0;
}

.kv-reviews__card.is-top {
  cursor: grab;
  touch-action: none;
}

.kv-reviews__card.is-top:active {
  cursor: grabbing;
}

.kv-reviews__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.kv-reviews__quote-mark {
  color: #9b533e;
  font-family: "Gilda Display", "Times New Roman", serif;
  font-size: 92px;
  line-height: 0.62;
}

.kv-reviews__card-index {
  color: rgba(45, 54, 43, 0.48);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.kv-reviews__card blockquote {
  margin: auto 0;
  padding: 0;
  border: 0;
  color: #30362d;
  font-family: "Gilda Display", "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.7vw, 1.85rem);
  font-style: italic;
  line-height: 1.24;
}

.kv-reviews__card-footer {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
}

.kv-reviews__card-line {
  width: 54px;
  height: 1px;
  flex: 0 0 54px;
  background: rgba(155, 83, 62, 0.46);
}

.kv-reviews__card-footer p {
  margin: 0;
}

.kv-reviews__card-footer strong,
.kv-reviews__card-footer span {
  display: block;
}

.kv-reviews__card-footer strong {
  color: #293127;
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kv-reviews__card-footer span {
  margin-top: 5px;
  color: rgba(41, 49, 39, 0.54);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.kv-reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.kv-reviews__button {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 239, 219, 0.42);
  border-radius: 50%;
  background: rgba(111, 55, 40, 0.16);
  color: #fff2df;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition:
    transform 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.kv-reviews__button:hover,
.kv-reviews__button:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 239, 219, 0.12);
  border-color: rgba(255, 239, 219, 0.70);
}

.kv-reviews__button:focus-visible {
  outline: 2px solid #fff2df;
  outline-offset: 4px;
}

.kv-reviews__button iconify-icon {
  font-size: 25px;
}

.kv-reviews__count {
  min-width: 76px;
  color: rgba(255, 244, 230, 0.78);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
}

.kv-reviews__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .kv-reviews__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 4.5rem;
  }

  .kv-reviews__copy {
    max-width: 800px;
  }

  .kv-reviews__lead {
    max-width: 720px;
  }

  .kv-reviews__active {
    display: none;
  }

  .kv-reviews__stack-wrap {
    width: min(100%, 620px);
  }
}

@media (max-width: 760px) {
  .kv-reviews__inner {
    width: calc(100% - 2rem);
    padding: 4.5rem 0 5rem;
    gap: 3.5rem;
  }

  .kv-reviews__gesture {
    margin-top: 1.4rem;
  }

  .kv-reviews__stack {
    height: 460px;
    margin-bottom: 72px;
  }

  .kv-reviews__card {
    padding: 1.8rem 1.5rem 1.6rem;
    border-radius: 22px;
  }

  .kv-reviews__quote-mark {
    font-size: 78px;
  }
}

@media (max-width: 620px) {
  .kv-reviews__eyebrow {
    font-size: 1rem;
  }

  .kv-reviews__title {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .kv-reviews__accent {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .kv-reviews__lead {
    font-size: 0.98rem;
  }

  .kv-reviews__stack {
    height: 420px;
    margin-bottom: 68px;
  }

  .kv-reviews__card blockquote {
    font-size: 1.45rem;
  }

  .kv-reviews__card-footer strong {
    font-size: 11px;
  }

  .kv-reviews__card-footer span {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .kv-reviews__stack {
    height: 440px;
  }

  .kv-reviews__card {
    padding: 1.6rem 1.25rem 1.4rem;
  }

  .kv-reviews__card blockquote {
    font-size: 1.35rem;
  }
}

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