/* Client review: preserve the established layout and correct the marked details. */
:root { --client-olive: #20372c; }

body.reference-study .prototype-intro-image img {
  width: min(740px, 155%); max-width: none; left: -95px; bottom: -160px;
}
body.reference-study .prototype-intro-copy h2 {
  max-width: 600px; margin: 0 0 22px; font-size: clamp(32px, 3vw, 44px);
  line-height: 1.12; font-weight: 400; letter-spacing: -.035em;
}
body.reference-study .prototype-intro-copy p {
  max-width: 570px; margin: 0; color: #5a675e; font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5; font-weight: 400; text-wrap: pretty;
}

body.reference-study #values .benefits-stats { align-items: stretch; }
body.reference-study #values .benefit-item { height: 100%; }
body.reference-study #values .adv-explanation { margin-top: 28px !important; }
body.reference-study #values .benefits-geography {
  width: 100%; justify-content: center !important; align-items: center; text-align: center;
}
body.reference-study #values .benefit-region,
body.reference-study #values .benefit-region:not(:first-child) { justify-content: center; text-align: center; }

body.reference-study #catalog .catalog-card,
body.reference-study #catalog .catalog-card:nth-child(n) {
  border: 1px solid rgba(24, 40, 31, .65) !important;
  background: #fff !important; overflow: hidden !important;
}
body.reference-study #catalog .catalog-image-window {
  box-sizing: border-box; background: #fff !important;
  border-radius: 0 !important;
}
body.reference-study #catalog .catalog-photo { background: #fff; }
body.reference-study #catalog .catalog-meta { background: var(--client-olive) !important; }
body.reference-study #catalog .catalog-action { margin-inline: 12px !important; width: calc(100% - 24px) !important; }
body.reference-study #catalog .catalog-save { margin-inline: 12px !important; width: calc(100% - 24px) !important; margin-bottom: 12px !important; }

body.reference-study #cost .rs-cost-factors { width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; grid-template-columns: minmax(0, 1fr) !important; }
body.reference-study #cost .prototype-cost-row,
body.reference-study #cost .prototype-cost-row:nth-child(even) {
  width: 100% !important; max-width: none !important; margin-inline: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 64px;
}
body.reference-study #cost .prototype-cost-photo { width: 100%; max-width: none; object-position: center; }

body.reference-study #materials .stone-flip { border: 0 !important; border-radius: 16px !important; overflow: visible !important; }
body.reference-study #materials .stone-flip-inner,
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip-back,
body.reference-study #materials .stone-flip-front img { border-radius: 16px !important; }
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip-back { overflow: hidden; border: 0 !important; outline: 0; }

body.reference-study #works .v9-photo-group figure { width: clamp(300px, 25vw, 360px) !important; height: 300px !important; }
body.reference-study #works .v9-photo-group img { width: 100% !important; height: 300px !important; object-fit: cover; }
body.reference-study #decor.v9-decor { background: #fff !important; }
body.reference-study #contacts .rs-contact-image figcaption { display: none !important; }

body.reference-study footer.footer.footer-stone,
body.reference-study footer.footer .footer-stone-image { border-radius: 0 !important; }
body.reference-study .footer-glass { padding-bottom: 36px !important; }
body.reference-study .footer-extra {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start;
  margin: 28px 0; padding: 22px 0; border-top: 1px solid rgba(32,55,44,.22);
  border-bottom: 1px solid rgba(32,55,44,.22); color: #20372c;
}
body.reference-study .footer-extra-title { margin: 0; font-size: 22px; line-height: 1.3; }
body.reference-study .footer-extra-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; line-height: 1.5; }
body.reference-study .footer-extra nav { display: flex; flex-wrap: wrap; gap: 12px 24px; grid-column: 1 / -1; }
body.reference-study .footer-extra nav a { color: #20372c; font-size: 15px; text-underline-offset: 4px; }
body.reference-study .footer-extra nav a:hover,
body.reference-study .footer-extra nav a:focus-visible { text-decoration: underline; }

@media (max-width: 900px) {
  body.reference-study .prototype-intro-image img { width: 165%; left: -110px; bottom: -110px; }
  body.reference-study #cost .prototype-cost-row,
  body.reference-study #cost .prototype-cost-row:nth-child(even) { gap: 28px; }
  body.reference-study #works .v9-photo-group figure { width: 270px !important; height: 255px !important; }
  body.reference-study #works .v9-photo-group img { height: 255px !important; }
}
@media (max-width: 700px) {
  body.reference-study .prototype-intro-image img { position: static; width: min(120%, 480px); max-width: none; margin-left: -6%; }
  body.reference-study .prototype-intro-copy h2 { margin-bottom: 14px; font-size: 30px; }
  body.reference-study .prototype-intro-copy p { font-size: 17px; line-height: 1.5; }
  body.reference-study #values .adv-explanation { margin-top: 12px !important; }
  body.reference-study #values .benefits-geography { flex-wrap: wrap; gap: 16px 30px; }
  body.reference-study #cost .prototype-cost-row,
  body.reference-study #cost .prototype-cost-row:nth-child(even) { grid-template-columns: 1fr !important; gap: 0; }
  body.reference-study #works .v9-photo-group figure { width: 210px !important; height: 220px !important; }
  body.reference-study #works .v9-photo-group img { height: 220px !important; }
  body.reference-study .footer-extra { grid-template-columns: 1fr; gap: 16px; }
  body.reference-study .footer-extra-facts { display: grid; gap: 6px; }
  body.reference-study .footer-extra nav { gap: 10px 18px; }
}
