:is(.cm-home-reviews, .cm-home-faq),
:is(.cm-home-reviews, .cm-home-faq) * {
  box-sizing: border-box;
}

:is(.cm-home-reviews, .cm-home-faq) :is(h2, h3, p, blockquote) {
  margin: 0;
}

:is(.cm-home-reviews, .cm-home-faq) img {
  display: block;
  max-width: 100%;
}

.cm-home-reviews,
.cm-home-faq {
  --cm-section-ink: #17171a;
  --cm-section-gold: #ffc320;
  width: 100%;
  min-width: 0;
  padding-inline: clamp(22px, 3.05vw, 64px);
  background: #fff;
  color: var(--cm-section-ink);
  font: 16px/1.32 var(--cm-paragraph-font);
  text-align: left;
  scroll-margin-top: 96px;
}

.cm-home-reviews {
  padding-block: clamp(72px, 8vw, 152px) 0;
}

.cm-home-reviews h2,
.cm-home-faq h2 {
  font-family: var(--cm-heading-font) !important;
  font-weight: 700 !important;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-transform: none !important;
}

.cm-home-reviews h2 {
  margin-bottom: clamp(24px, 3vw, 42px);
  font-size: clamp(19px, 4.7vw, 74px);
  text-align: center;
  white-space: nowrap;
}

.cm-review-stage {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: clamp(30px, 4.5vw, 58px);
  min-height: clamp(540px, 82svh, 880px);
  padding: 72px 96px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--cm-section-gold);
}

.cm-review-stack {
  display: grid;
  width: min(100%, 832px);
}

.cm-review-card {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid #e0b541;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px -24px #69480080;
  transition: transform .36s ease;
}

.cm-review-card[data-position="0"] { z-index: 3; }
.cm-review-card[data-position="1"] { z-index: 2; transform: rotate(6.8deg); }
.cm-review-card[data-position="2"] { z-index: 1; transform: rotate(-5.5deg); }
.cm-review-card[aria-hidden="true"] { pointer-events: none; }

.cm-review-card .cm-review-origin {
  color: #695625;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.cm-review-card h3 {
  color: #805800 !important;
  font-family: var(--cm-heading-font) !important;
  font-size: clamp(29px, 3.4vw, 54px);
  font-weight: 700 !important;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-transform: none !important;
}

.cm-review-content {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 64px);
}

.cm-review-person {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 10px;
  font-weight: 700;
}

.cm-review-photo {
  width: clamp(60px, 7vw, 120px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
}

.cm-review-photo--client { object-position: center 23%; }

.cm-review-card blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--cm-section-ink);
  font-size: clamp(16px, 1.55vw, 24px);
  line-height: 1.6;
}

.cm-review-controls {
  position: relative;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 5px;
  border: 1px solid #e9c56a;
  border-radius: 999px;
  background: #fff8e8;
  box-shadow: 0 6px 16px -8px #69480070;
  cursor: default;
}

.cm-review-stage.is-interactive { cursor: pointer; }
.cm-review-stage.is-interactive .cm-review-controls { display: flex; }

.cm-review-controls :is(.cm-review-prev, .cm-review-next) {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cm-section-ink);
  cursor: pointer;
  transition: background-color .2s ease;
}

.cm-review-controls :is(.cm-review-prev, .cm-review-next):hover {
  background: #414147;
}

.cm-review-controls button::before {
  content: "";
  width: 10px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

.cm-review-prev::before { transform: translateX(1px) rotate(135deg); }
.cm-review-next::before { transform: translateX(-1px) rotate(-45deg); }

.cm-review-ticks {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cm-review-ticks i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ad8c49;
  transition: width .3s, background-color .3s;
}

.cm-review-ticks .is-current { width: 18px; background: var(--cm-section-ink); }

.cm-review-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cm-home-faq {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(36px, 5vw, 96px);
  padding-block: clamp(84px, 10vw, 160px) clamp(60px, 8vw, 128px);
}

.cm-faq-intro {
  position: sticky;
  top: 108px;
  display: grid;
  gap: clamp(36px, 7vw, 130px);
}

.cm-home-faq h2 {
  font-size: clamp(38px, 5vw, 74px);
  white-space: nowrap;
}

.cm-faq-art {
  width: min(100%, 650px);
  height: auto;
}

.cm-faq-list {
  display: grid;
  gap: 16px;
  padding-top: clamp(16px, 4vw, 64px);
}

.cm-faq-item summary {
  display: block;
  width: 100%;
  padding: 18px clamp(20px, 2.6vw, 34px);
  border: 1px solid transparent;
  border-radius: 32px 32px 32px 0;
  background: #fff8e5;
  font: 700 clamp(18px, 1.35vw, 23px)/1.2 var(--cm-heading-font);
  letter-spacing: -.025em;
  list-style: none;
  cursor: pointer;
  transition: width .32s ease, border-color .24s ease;
}

.cm-faq-item summary::-webkit-details-marker { display: none; }
.cm-faq-item summary:hover,
.cm-faq-item[open] summary { border-color: #eadbb6; }
.cm-faq-item[open] summary { width: 55%; }

.cm-review-controls button:focus-visible,
.cm-faq-item summary:focus-visible {
  outline: 2px solid var(--cm-section-ink);
  outline-offset: 3px;
}

.cm-faq-answer-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  animation: cm-faq-answer-in .26s ease-out both;
}

.cm-faq-answer {
  width: 68%;
  padding: 22px clamp(20px, 3vw, 42px);
  border: 1px solid #dedee2;
  border-radius: 28px 28px 0 28px;
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
}

.cm-faq-mark {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cm-section-gold);
  object-fit: contain;
}

@keyframes cm-faq-answer-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .cm-review-stage {
    min-height: 0;
    padding: 54px 42px 32px;
  }
  .cm-faq-item[open] summary { width: 75%; }
  .cm-faq-answer { width: 80%; }
}

@media (max-width: 767px) {
  .cm-home-faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cm-faq-intro {
    position: static;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(4px, 3vw, 24px);
  }

  .cm-home-faq h2 { font-size: clamp(29px, 6.3vw, 44px); }
  .cm-faq-art { max-width: 300px; justify-self: end; }
  .cm-faq-list { padding-top: 0; }
}

@media (max-width: 540px) {
  .cm-review-stage { padding: 38px 20px 24px; border-radius: 16px; }
  .cm-review-card { gap: 15px; padding: 20px; border-radius: 14px; }
  .cm-review-card h3 { font-size: clamp(24px, 6vw, 30px); }
  .cm-review-content { flex-direction: column; gap: 14px; }
  .cm-review-person { display: flex; align-items: center; }
  .cm-review-card blockquote { font-size: 15px; }
  .cm-faq-list { gap: 12px; }
  .cm-faq-item summary { padding: 16px 18px; border-radius: 18px 18px 18px 0; }
  .cm-faq-answer {
    width: 88%;
    padding: 16px 18px;
    border-radius: 18px 18px 0 18px;
    font-size: 15px;
  }
  .cm-home-faq .cm-faq-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-review-card,
  .cm-review-controls button,
  .cm-review-ticks i,
  .cm-faq-item summary { transition: none; }
  .cm-faq-answer-row { animation: none; }
}
