/* Client's second reference pass. The v9 builder stays outside this layer. */
:root {
  --prototype-olive: #20372c;
  --prototype-olive-deep: #20372c;
  --prototype-ink: #20372c;
  --prototype-soft: #f2f3ed;
  --prototype-line: #e2e7df;
}
body.reference-study { background: #fff; color: var(--prototype-ink); }
body.reference-study main > section:not(#constructor) .section-heading h2,
body.reference-study #cost .rs-cost-lead h2 { font-family: Inter,Arial,sans-serif; font-weight: 400 !important; letter-spacing: -.035em !important; }
body.reference-study main > section:not(#constructor) :is(p,a,button,span) { font-family: Inter,Arial,sans-serif; }
body.reference-study main > section:not(#constructor) .button,
body.reference-study main > section:not(#constructor) .catalog-action { background: var(--prototype-olive) !important; color: #fff !important; }

/* The dark stone sits directly on the white field, with no separate frame. */
.prototype-intro-inner { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(30px,5vw,80px); min-height: 410px; }
.prototype-intro-image { height: 390px; }
.prototype-intro-image img { width: min(660px,120%); max-width: none; height: auto; inset: auto auto -34px -90px; filter: none; }
.prototype-intro-copy .prototype-eyebrow { color: #647268; }

/* Three equal facts, without separator strokes. */
body.reference-study #values .benefits-geography { border: 0 !important; margin-top: 12px; }
body.reference-study #values .benefits-stats { gap: 20px; }
body.reference-study #values .adv-caption { font-size: 20px !important; }
body.reference-study #values .adv-explanation { color: #dce6dd; font-size: 15px !important; }

/* Catalog: photo, title, primary action and a quiet collection action. */
body.reference-study #catalog .catalog-card,
body.reference-study #catalog .catalog-card:nth-child(n) { display: flex; flex-direction: column; padding: 12px 12px 16px !important; border: 0 !important; border-radius: 4px !important; background: #f6f7f3; }
body.reference-study #catalog .catalog-image-window { height: 300px; background: #fff !important; border-radius: 2px !important; overflow: hidden; }
body.reference-study #catalog .catalog-meta { flex: 1; display: block; margin: 18px 10px 16px !important; }
body.reference-study #catalog .catalog-meta h3 { font-size: 22px !important; }
body.reference-study #catalog .catalog-price { margin-top: 8px; color: #58685d !important; font-size: 15px !important; }
body.reference-study #catalog .catalog-price { display: none !important; }
body.reference-study #catalog .catalog-action,
body.reference-study #catalog .catalog-save { position: static !important; display: flex !important; align-items: center; justify-content: center; width: calc(100% - 20px) !important; min-height: 48px !important; margin: 0 10px !important; padding: 10px 14px !important; border: 0 !important; border-radius: 999px !important; font-size: 15px !important; line-height: 1.25 !important; box-shadow: none !important; transform: none !important; }
body.reference-study #catalog .catalog-save { margin-top: 8px !important; background: #e6eae3 !important; color: var(--prototype-ink) !important; }
body.reference-study #catalog .catalog-save[aria-pressed="true"] { background: #d3dfd4 !important; }

/* Cost: each free stock photograph has its own explanation and action. */
body.reference-study #cost.rs-cost { background: var(--prototype-olive) !important; }
body.reference-study #cost .rs-cost-factors details,
body.reference-study #cost .rs-cost-factors details:last-child { border: 0 !important; }
body.reference-study #cost .prototype-cost-row { gap: 46px; }
body.reference-study #cost .prototype-cost-photo { height: 320px; object-fit: cover; border-radius: 2px; }
body.reference-study #cost .rs-cost-factors summary { padding-bottom: 14px !important; }
body.reference-study #cost .prototype-cost-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 24px; padding: 9px 22px; border: 1px solid #f4f6f1; border-radius: 999px; color: #fff; font-size: 15px; text-decoration: none; transition: background .2s ease,color .2s ease; }
body.reference-study #cost .prototype-cost-cta:hover,
body.reference-study #cost .prototype-cost-cta:focus-visible { background: #fff; color: var(--prototype-ink); }

/* Process: photographs carry their number and copy. Flex growth moves peers. */
body.reference-study #process.timeline-process { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 72px max(40px,calc((100vw - 1240px)/2)) !important; background: var(--prototype-olive) !important; color: #fff !important; }
body.reference-study #process .section-heading { margin-bottom: 28px !important; }
body.reference-study #process .section-heading h2 { color: #fff !important; }
body.reference-study #process .timeline-list { display: flex !important; gap: 12px; }
body.reference-study #process .timeline-step,
body.reference-study #process .timeline-step.is-active { flex: 1 1 0; min-width: 0; transition: flex-grow .5s cubic-bezier(.22,1,.36,1); }
body.reference-study #process .timeline-card,
body.reference-study #process .timeline-step.is-active .timeline-card,
body.reference-study #process .timeline-step:nth-child(n) .timeline-card { position: relative !important; width: 100% !important; height: 300px !important; min-height: 0; padding: 0 !important; border: 0 !important; border-radius: 3px !important; overflow: hidden !important; background: #2d3a32; cursor: pointer; }
body.reference-study #process .timeline-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,rgba(8,19,13,.22),transparent 35%,rgba(8,19,13,.88)); pointer-events: none; }
body.reference-study #process .timeline-card img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .55s cubic-bezier(.22,1,.36,1); }
body.reference-study #process .prototype-process-number { position: absolute; z-index: 2; top: 14px; left: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.95); border-radius: 50%; background: rgba(10,29,18,.15); color: #fff; font-size: 19px; font-weight: 400; }
body.reference-study #process .timeline-copy,
body.reference-study #process .timeline-step.is-active .timeline-copy { position: absolute !important; inset: auto 12px 16px !important; z-index: 2; display: flex !important; width: auto !important; padding: 0 !important; gap: 7px; color: #fff !important; }
body.reference-study #process .timeline-copy strong,
body.reference-study #process .timeline-copy > span { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
body.reference-study #process .timeline-copy strong { font-size: 17px !important; }
body.reference-study #process .timeline-copy > span { font-size: 13px !important; line-height: 1.35; }
@media (hover: hover) and (min-width: 901px) {
  body.reference-study #process .timeline-step:hover,
  body.reference-study #process .timeline-step:focus-within { flex-grow: 1.8; }
  body.reference-study #process .timeline-step:hover .timeline-card img,
  body.reference-study #process .timeline-step:focus-within .timeline-card img { transform: scale(1.045); }
}

/* Restore the genuine reversible stone face; keep its text readable. */
body.reference-study #materials .stone-flip-inner { transform-style: preserve-3d !important; transition: transform .56s cubic-bezier(.2,.7,.25,1) !important; }
body.reference-study #materials .reference-stone.is-flipped .stone-flip-inner { transform: rotateY(180deg) !important; }
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip-back { opacity: 1 !important; visibility: visible !important; backface-visibility: hidden !important; -webkit-backface-visibility: hidden !important; transition: none !important; }
body.reference-study #materials .stone-flip-front { transform: rotateY(0) !important; }
body.reference-study #materials .stone-flip-back { transform: rotateY(180deg) !important; background: var(--prototype-olive) !important; }
body.reference-study #materials .stone-flip-back p { color: #fff !important; font-size: 16px !important; line-height: 1.4 !important; text-align: center !important; }
body.reference-study #materials .reference-stone-info { display: flex !important; flex-direction: column; aspect-ratio: auto; padding: 0 !important; border: 0 !important; background: transparent !important; }
body.reference-study #materials .prototype-info-frame { display: block; width: 100%; aspect-ratio: 1; padding: 18px; border: 1px solid #cdd7cc; border-radius: 4px; background: #e2e9dd; }
body.reference-study #materials .prototype-info-frame h3 { margin: 0 !important; max-width: 13ch; color: var(--prototype-ink) !important; font-size: clamp(20px,2vw,28px) !important; line-height: 1.12 !important; font-weight: 400 !important; text-align: left !important; }
body.reference-study #materials .reference-stone-info p { margin-top: 8px !important; padding: 0 !important; color: #58685d !important; font-size: 14px !important; line-height: 1.35 !important; text-align: left !important; }

@media (max-width: 900px) {
  body.reference-study #process.timeline-process { padding: 56px 24px !important; }
  body.reference-study #process .timeline-list { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.reference-study #process .timeline-card,
  body.reference-study #process .timeline-step.is-active .timeline-card,
  body.reference-study #process .timeline-step:nth-child(n) .timeline-card { height: 280px !important; }
}
@media (max-width: 700px) {
  .prototype-intro-inner { min-height: 0; }
  .prototype-intro-image { height: 225px; }
  .prototype-intro-image img { width: 380px; max-width: 115%; inset: auto auto -28px -20px; }
  body.reference-study #catalog .catalog-image-window { height: 255px; }
  body.reference-study #catalog .catalog-card,
  body.reference-study #catalog .catalog-card:nth-child(n) { padding: 10px 10px 16px !important; }
  body.reference-study #cost .prototype-cost-row { gap: 0; }
  body.reference-study #cost .prototype-cost-photo { height: 225px; }
  body.reference-study #process.timeline-process { padding: 52px 20px !important; }
  body.reference-study #process .timeline-list { grid-template-columns: 1fr; gap: 14px; }
  body.reference-study #process .timeline-card,
  body.reference-study #process .timeline-step.is-active .timeline-card,
  body.reference-study #process .timeline-step:nth-child(n) .timeline-card { height: 260px !important; }
  body.reference-study #materials .prototype-info-frame { padding: 14px; }
  body.reference-study #materials .prototype-info-frame h3 { font-size: clamp(18px,5vw,22px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.reference-study #process .timeline-step,
  body.reference-study #process .timeline-card img,
  body.reference-study #materials .stone-flip-inner { transition: none !important; }
}

/* Final reference alignment. Keep the existing content and constructor intact. */
body.reference-study .prototype-intro-inner { min-height: 0; }
body.reference-study .prototype-intro-image { align-self: center; height: auto; overflow: visible; }
body.reference-study .prototype-intro-image img { position: static; display: block; width: 100%; max-width: 100%; height: auto; filter: none; }
body.reference-study #catalog .catalog-card,
body.reference-study #catalog .catalog-card:nth-child(n) { border-radius: 24px !important; }
body.reference-study #catalog .catalog-image-window { border-radius: 16px !important; }
body.reference-study #process .timeline-card,
body.reference-study #process .timeline-step.is-active .timeline-card,
body.reference-study #process .timeline-step:nth-child(n) .timeline-card { border-radius: 24px !important; }
@media (min-width: 901px) {
  body.reference-study #process .timeline-copy,
  body.reference-study #process .timeline-step.is-active .timeline-copy { right: auto !important; width: clamp(120px, 12.5vw, 185px) !important; }
}
body.reference-study #materials .stone-flip-inner,
body.reference-study #materials .reference-stone.is-flipped .stone-flip-inner { transform: none !important; }
body.reference-study #materials .stone-flip-front { transition: opacity .32s ease, transform .42s cubic-bezier(.22,1,.36,1) !important; }
body.reference-study #materials .stone-flip:is(:hover,:focus-visible,[aria-pressed="true"]) .stone-flip-front,
body.reference-study #materials .reference-stone.is-flipped .stone-flip-front { opacity: 0 !important; visibility: visible !important; transform: scaleX(.92) !important; }
body.reference-study #materials .stone-flip-inner { isolation: isolate; }
body.reference-study #materials .stone-flip-front,
body.reference-study #materials .stone-flip-back { -webkit-backface-visibility: hidden !important; backface-visibility: hidden !important; }
body.reference-study #materials .stone-flip-back { isolation: isolate; background: #20372c !important; transform: scaleX(.92) !important; opacity: 0 !important; transition: opacity .32s ease, transform .42s cubic-bezier(.22,1,.36,1) !important; }
body.reference-study #materials .stone-flip:is(:hover,:focus-visible,[aria-pressed="true"]) .stone-flip-back,
body.reference-study #materials .reference-stone.is-flipped .stone-flip-back { transform: scaleX(1) !important; opacity: 1 !important; }
body.reference-study #materials .prototype-info-frame { border-radius: 16px; }
body.reference-study #custom.v9-custom { background: #fff !important; border-radius: 32px !important; }
body.reference-study #contacts.contact-section { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 48px max(40px, calc((100vw - 1240px)/2)) !important; border-radius: 0 !important; background: #20372c !important; }
body.reference-study #decor .v9-decor-installation.is-diagram { aspect-ratio: 1000 / 700; }
body.reference-study #decor .is-diagram > img { left: 25%; top: 9%; width: 50%; height: 81%; object-fit: cover; border-radius: 24px; }
body.reference-study #decor .is-diagram .v9-installation-label { width: 25%; padding: 16px; grid-template-columns: 72px minmax(0,1fr); gap: 14px; border-radius: 24px; }
body.reference-study #decor .is-diagram .v9-installation-label > img { width: 72px; height: 82px; border-radius: 12px; }
body.reference-study #decor .is-diagram .v9-installation-label h3 { font-size: 18px; }
body.reference-study #decor .is-diagram .v9-installation-label p { font-size: 13px; }
body.reference-study footer.footer.footer-stone { min-height: clamp(620px, 66vw, 850px); background: #fff !important; }
body.reference-study .footer-stone-image { z-index: 0; left: 50%; bottom: -270px; width: min(90vw, 950px); max-width: none; max-height: none; height: auto; object-fit: contain; }
body.reference-study .footer-glass { z-index: 1; border-radius: 24px !important; background: rgba(248,250,247,.84) !important; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.reference-study .footer-glass { -webkit-backdrop-filter: blur(18px) saturate(115%) !important; backdrop-filter: blur(18px) saturate(115%) !important; }
}
body.reference-study main > section#process.timeline-process.container { width: 100% !important; max-width: none !important; margin-inline: 0 !important; padding: 72px max(40px, calc((100vw - 1240px)/2)) !important; }
body.reference-study .footer-stone-image { bottom: -85px; width: min(70vw, 540px); }
@media (max-width: 900px) {
  body.reference-study #decor .v9-decor-installation.is-diagram { aspect-ratio: 1000 / 780; }
  body.reference-study #decor .is-diagram .v9-installation-label { width: 27%; padding: 10px; grid-template-columns: 52px minmax(0,1fr); gap: 8px; }
  body.reference-study #decor .is-diagram .v9-installation-label > img { width: 52px; height: 65px; }
  body.reference-study #decor .is-diagram .v9-installation-label h3 { font-size: 15px; }
  body.reference-study #decor .is-diagram .v9-installation-label p { font-size: 12px; }
}
@media (max-width: 700px) {
  body.reference-study main > section#process.timeline-process.container { padding: 52px 20px !important; }
  body.reference-study .prototype-intro-image { width: 100%; height: auto; }
  body.reference-study .prototype-intro-image img { width: min(100%, 460px); margin-inline: auto; }
  body.reference-study #contacts.contact-section { padding: 20px !important; }
  body.reference-study #decor .v9-decor-installation.is-diagram { display: flex; flex-direction: column; gap: 12px; aspect-ratio: auto; }
  body.reference-study #decor .is-diagram > img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 12px; object-fit: cover; }
  body.reference-study #decor .is-diagram .v9-installation-label,
  body.reference-study #decor .is-diagram .v9-installation-label:is(.cross,.vase,.relief,.sculpture,.flowerbed) { position: relative; width: 100%; padding: 12px; grid-template-columns: 54px minmax(0,1fr); border-radius: 16px; }
  body.reference-study #decor .is-diagram .v9-installation-label::before { content: ''; position: absolute; left: 20px; top: -10px; width: 1px; height: 10px; background: #829287; }
  body.reference-study #decor .is-diagram .v9-installation-label > img { width: 54px; height: 65px; }
  body.reference-study #decor .is-diagram .v9-installation-label h3 { font-size: 14px; }
  body.reference-study #decor .is-diagram .v9-installation-label p { font-size: 12px; }
  body.reference-study footer.footer.footer-stone { min-height: 600px; }
  body.reference-study .footer-stone-image { bottom: -35px; width: min(82vw, 330px); }
  body.reference-study .footer-glass { border-radius: 18px !important; }
}
