/* ---------- Configurator ---------- */
.studio { background: var(--marble); min-height: calc(100vh - 72px) }
.studio-top { background: var(--paper); border-bottom: 1px solid #e3e2de }
.studio-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px }
.studio-top h1 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: 0 }
.progress { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0 }
.progress button { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 0; background: none; border-radius: 999px; font: 500 .92rem var(--sans); color: var(--muted); cursor: pointer }
.progress button span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #c9c8c2; font-size: .82rem; font-variant-numeric: tabular-nums }
.progress button[aria-current=step] { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08) }
.progress button[aria-current=step] span { background: var(--basalt); color: var(--dore-light); border-color: var(--basalt) }
.progress button.done span { background: var(--dore); border-color: var(--dore); color: #16130e }
.progress button:hover { color: var(--ink) }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: clamp(20px, 3vw, 40px); padding-top: 28px; padding-bottom: 80px; align-items: start }

/* Stage */
.stage { position: sticky; top: 96px; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid #e0dfda; box-shadow: var(--shadow) }
.stage-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid #eceae6 }
.stage-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 6px; background: none; font: 500 .92rem var(--sans); color: var(--muted); cursor: pointer }
.stage-tabs button[aria-selected=true] { background: var(--basalt); color: var(--marble) }
.stage-tabs button:hover:not([aria-selected=true]) { background: #f3f2ef; color: var(--ink) }
.stage-canvas { position: relative; height: clamp(440px, 64vh, 680px); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, #fbfaf8, #e3e2dd 80%) }
.view { width: 100%; height: 100%; display: grid; place-items: center; padding: 32px }
.view[hidden] { display: none }
.pv-plaque { width: min(78%, 440px); transition: width .3s ease }
.pv-plaque.real { width: 50mm }
.view-grave { background: linear-gradient(180deg, #c9cfc9 0%, #b5bdb4 45%, #6f7a68 46%, #5c6857 100%) }
.view-grave .stone { width: min(70%, 380px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -30px 60px rgba(0, 0, 0, .35), 0 30px 40px -20px rgba(0, 0, 0, .7) }
.view-phone { background: linear-gradient(160deg, #2a2d30, #16181a) }
.view-phone .phone { height: 100%; width: auto; max-height: 620px }
.stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #eceae6; font-size: .86rem; color: var(--muted) }

/* Form */
.studio-form { background: #fff; border: 1px solid #e0dfda; border-radius: var(--r-lg); box-shadow: var(--shadow) }
.step-pane { border: 0; margin: 0; padding: 30px 30px 10px; min-width: 0 }
.step-pane legend { float: left; width: 100%; padding: 0; font: 600 1.9rem/1.1 var(--serif); margin-bottom: 8px }
.step-pane legend + * { clear: both }
.step-count { display: block; font: 500 .82rem var(--sans); color: var(--dore-deep); margin-bottom: 6px; letter-spacing: .02em }
.js .step-pane:not(.active) { display: none }
.label { margin-top: 20px }
.sub { font-size: 1.35rem; margin: 30px 0 14px; padding-top: 24px; border-top: 1px solid #eceae6 }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 22px }
.chip { border: 1px solid #dcdbd6; background: #fafaf8; border-radius: 999px; padding: 6px 12px; font: 400 .84rem var(--sans); cursor: pointer; color: var(--slate) }
.chip:hover { border-color: var(--dore); color: var(--ink) }

.tiles { display: grid; gap: 8px; margin-bottom: 8px }
.tiles-5 { grid-template-columns: repeat(5, 1fr) }
.tiles-4 { grid-template-columns: repeat(4, 1fr) }
.tiles-3 { grid-template-columns: repeat(3, 1fr) }
@media (max-width: 480px) { .tiles-5 { grid-template-columns: repeat(3, 1fr) } .tiles-4 { grid-template-columns: repeat(3, 1fr) } }
.tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid #dcdbd6; border-radius: 10px; cursor: pointer; text-align: center; font-size: .82rem; line-height: 1.25; color: var(--slate); background: #fff; transition: border-color .15s, box-shadow .15s, background .15s }
.tile input { position: absolute; opacity: 0; pointer-events: none }
.tile svg { width: 34px; height: 34px; color: var(--ink) }
.tile:hover { border-color: #b8b7b1 }
.tile:has(input:checked) { border-color: var(--basalt); box-shadow: 0 0 0 1px var(--basalt); background: #fafaf8; color: var(--ink) }
.tile:has(input:checked) svg { color: var(--dore-deep) }
.tile:has(input:focus-visible) { outline: 2px solid var(--dore); outline-offset: 2px }
.tile-font b { font-size: 1.9rem; font-weight: 500; line-height: 1.1; color: var(--ink) }
.theme-mini { display: grid; gap: 4px; width: 46px; height: 60px; padding: 8px 7px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .12) }
.theme-mini b { width: 14px; height: 18px; border-radius: 7px 7px 2px 2px; margin: 0 auto 2px; background: currentColor; opacity: .5 }
.theme-mini em { height: 3px; border-radius: 2px; background: currentColor; opacity: .7 }
.theme-mini em + em { width: 70%; margin: 0 auto; opacity: .4 }
.tm-night { background: #1a1c1e url(/images/marble-dark.webp) center/300px; color: #d6b98a }
.tm-garden { background: #f0efec url(/images/marble-light.webp) center/300px; color: #474b50 }
.tm-minimal { background: #fff; color: #1a1c1e }
.tm-minimal b { display: none }

.trim { margin-top: 14px; padding: 16px; border-radius: 10px; background: #f6f5f2 }
.trim-head { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 500; margin-bottom: 8px }
.trim input[type=range] { width: 100%; accent-color: var(--basalt) }
.trim p { margin: 6px 0 0 }

.pkg-options { display: grid; gap: 10px }
.pkg-option { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid #d9d8d3; border-radius: 10px; cursor: pointer }
.pkg-option:has(input:checked) { border-color: var(--basalt); box-shadow: 0 0 0 1px var(--basalt); background: #fafaf8 }
.pkg-option input { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #9fa09c; border-radius: 50% }
.pkg-option input:checked { border: 6px solid var(--basalt) }
.pkg-body strong { display: block; font-weight: 500 }
.pkg-body small { color: var(--muted); font-size: .84rem }
.pkg-price { font: 600 1.35rem var(--serif) }
.addon-list { display: grid; gap: 0; border: 1px solid #e3e2de; border-radius: 10px; padding: 4px 16px }
.addon { display: grid; grid-template-columns: 22px 1fr auto; margin: 0; padding: 12px 0; border-bottom: 1px solid #efeee9 }
.addon:last-child { border-bottom: 0 }
.addon b { font-weight: 500; font-size: .92rem }
.grid-zip { grid-template-columns: 9em 1fr }
@media (max-width: 560px) { .grid-zip { grid-template-columns: 1fr } }
.summary-box { margin: 10px 0 18px; padding: 18px 18px 12px; border-radius: 10px; background: #f6f5f2 }
.summary-box .summary div { border-color: #e6e5e0 }
.summary-box .vat { font-size: .8rem; color: var(--muted); margin: 8px 0 0 }

.studio-nav { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 16px 30px; border-top: 1px solid #eceae6; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-radius: 0 0 var(--r-lg) var(--r-lg) }
.studio-total { margin-left: auto; margin-right: 8px; text-align: right; line-height: 1.15 }
.studio-total small { display: block; font-size: .76rem; color: var(--muted) }
.studio-total strong { font: 600 1.45rem var(--serif) }
.studio-fine { padding: 0 30px 20px; margin: 0 }

@media (max-width: 1080px) {
  .studio-grid { grid-template-columns: 1fr; padding-top: 16px }
  .stage { position: relative; top: 0 }
  .stage-canvas { height: min(70vw, 420px); min-height: 260px }
  .view { padding: 18px }
  .stage-foot { font-size: .78rem; padding: 10px 14px }
  .stage-foot [data-realsize] { display: none }
  .progress button { padding: 6px; font-size: 0 }
  .progress button span { font-size: .82rem }
  .step-pane { padding: 24px 20px 6px }
  .studio-nav { padding: 12px 16px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .08) }
  .studio-grid { padding-bottom: 110px }
  .studio-nav .btn { padding: 0 16px }
}
@media (max-width: 420px) { .studio-total strong { font-size: 1.2rem } .studio-nav .btn-ghost { padding: 0 12px } }
