:root {
  color-scheme: light;
  --ink: #1b2425;
  --muted: #767d79;
  --paper: #f4f1eb;
  --line: #dfded7;
  --accent: #ba8b5a;
  --accent-dark: #8f633d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; }
.site-shell { max-width: 1700px; margin: 0 auto; padding: 0 clamp(20px, 4.35vw, 76px); }

.site-header { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d9d7cf; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-mark { display: flex; width: 34px; height: 34px; gap: 3px; transform: skewY(-14deg); }
.brand-mark span { width: 9px; background: #1e2928; }
.brand-mark span:nth-child(2) { background: #7b5d41; }
.brand-mark span:nth-child(3) { background: #c5a276; }
.brand-word { font-size: 19px; font-weight: 800; letter-spacing: .055em; line-height: .86; }
.brand-word span { display: block; font-size: 8px; letter-spacing: .31em; font-weight: 700; margin-top: 5px; }
.header-center, .header-note { font-size: 10px; letter-spacing: .18em; font-weight: 700; color: #777c78; white-space: nowrap; }
.header-center { display: flex; align-items: center; gap: 16px; }
.header-divider { height: 18px; width: 1px; background: #c6c7c1; }
.header-note { display: flex; align-items: center; gap: 9px; }
.status-dot, .view-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a78965; box-shadow: 0 0 0 4px #a7896522; }

.intro { padding: clamp(36px, 4.5vw, 76px) 0 44px; max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .21em; }
.eyebrow-line { width: 29px; height: 1px; background: var(--accent-dark); }
h1, h2, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(48px, 5.15vw, 85px); line-height: .99; letter-spacing: -.045em; margin: 19px 0 19px; }
h1 em { font-weight: 400; color: #a2805d; }
.intro p { max-width: 600px; color: #747a77; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.7; margin-bottom: 0; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: clamp(28px, 3.2vw, 56px); align-items: start; }
.preview-column { min-width: 0; }
.preview-sticky { position: sticky; top: 18px; }
.preview-topline, .preview-bottomline { display: flex; align-items: center; justify-content: space-between; min-height: 43px; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.preview-topline { color: #7a817d; }
.preview-view { display: flex; align-items: center; gap: 10px; }
.view-dot { width: 6px; height: 6px; box-shadow: none; }
.scene { position: relative; height: clamp(530px, 47vw, 695px); overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 72% 48% at 50% 29%, #e5e0d8 0%, transparent 100%), linear-gradient(100deg, #d7d1c7 0%, #e9e4dc 48%, #d7d0c5 100%); border: 1px solid #d9d6d0; }
.scene::before { content: ""; position: absolute; inset: 0 0 14%; pointer-events: none; opacity: .28; background-image: repeating-linear-gradient(0deg, #fff4 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, #584e3e0a 0 1px, transparent 1px 5px); mix-blend-mode: multiply; }
.scene-wall-line { position: absolute; top: 0; bottom: 13%; width: 1px; background: #b5ada21f; box-shadow: 3px 0 10px #fff7; }
.scene-wall-line--left { left: 10%; }
.scene-wall-line--right { right: 10%; }
.scene-light { position: absolute; width: 46%; height: 100%; left: 0; top: 0; background: linear-gradient(105deg, #fff7, transparent 65%); transform: skewX(-9deg); }
.scene-floor { position: absolute; height: 13%; left: 0; right: 0; bottom: 0; background: linear-gradient(#a9a092, #c5baaa 10%, #bdb19f 65%, #a39482); border-top: 2px solid #988e7f; }
.scene-floor::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 88px, #83776833 89px 90px, transparent 91px 180px), linear-gradient(100deg, #fff4, transparent 50%, #4b3e2a1e); }
.door-shadow { position: absolute; width: 61%; height: 8%; border-radius: 50%; background: #40372f5e; filter: blur(22px); left: 50%; bottom: 4%; transform: translateX(-50%); }
.door-canvas { position: absolute; z-index: 2; height: min(99%, 690px); aspect-ratio: 640 / 1000; bottom: -4px; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .28s ease; }
.scene.is-ready .door-canvas { opacity: 1; }
.door-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; pointer-events: none; }
.door-canvas [data-layer="frame"] { z-index: 0; }
.door-canvas [data-layer="panel"] { z-index: 1; }
.door-canvas [data-layer="model"] { z-index: 2; }
.door-canvas [data-layer="decor"] { z-index: 3; }
.door-canvas [data-layer="glass"] { z-index: 4; }
.door-canvas [data-layer="inserts"] { z-index: 5; }
.door-canvas [data-layer="lock"] { z-index: 6; }
.door-canvas [data-layer="handle"] { z-index: 7; }
.door-canvas [data-layer="peephole"] { z-index: 8; }
.door-canvas [data-layer="number"] { z-index: 9; }
.scene-caption { z-index: 3; position: absolute; bottom: 27px; left: 27px; color: #4c5552; font-size: 9px; font-weight: 800; letter-spacing: .19em; display: flex; align-items: center; gap: 10px; }
.scene-caption-bar { height: 1px; width: 22px; background: #6f7874; }
.preview-bottomline { min-height: 64px; border-bottom: 1px solid var(--line); gap: 12px; }
.preview-product { font-size: 15px; letter-spacing: .11em; }
.preview-product strong { font-weight: 900; }
#preview-finish { flex: 1; color: #8b8d86; letter-spacing: .08em; font-size: 10px; text-align: right; }
.preview-zoom { font-size: 21px; color: var(--accent-dark); font-weight: 400; }

.config-column { min-width: 0; padding-top: 4px; }
.config-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.eyebrow--small { font-size: 9px; letter-spacing: .17em; }
.config-heading h2 { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(32px, 3vw, 44px); letter-spacing: -.025em; }
.config-count { flex: 0 0 auto; border: 1px solid #d4d4cc; padding: 10px 11px; font-size: 9px; letter-spacing: .12em; color: #737b76; font-weight: 800; }
.config-lead { color: #858a85; font-size: 13px; line-height: 1.6; margin: 11px 0 17px; max-width: 470px; }
.config-group { border-top: 1px solid #dcddd5; padding: 22px 0 24px; }
.group-title-row { display: flex; align-items: baseline; gap: 11px; margin-bottom: 14px; }
.group-index { color: var(--accent); font-family: Georgia, serif; font-size: 13px; }
.group-title { font-size: 15px; font-weight: 730; letter-spacing: -.01em; margin: 0; }
.group-selected { margin-left: auto; text-align: right; color: #8a8f89; font-size: 11px; line-height: 1.35; max-width: 40%; }
.variant-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.variant-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.variant-card { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; min-width: 0; min-height: 147px; padding: 6px 7px 8px; background: #fcfbf8; color: var(--ink); border: 1px solid #dfe0d9; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.variant-card:hover { border-color: #b79c7a; transform: translateY(-2px); }
.variant-card.is-selected { border-color: #96724d; box-shadow: inset 0 0 0 1px #96724d, 0 4px 15px #624d3220; }
.variant-card.is-selected::after { content: "✓"; position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 17px; height: 17px; background: #96724d; color: white; font-size: 10px; border-radius: 50%; }
.variant-thumb { position: relative; display: grid; place-items: center; width: 100%; height: 78px; margin-bottom: 8px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #eee9df, #d6d0c5); }
.variant-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #fff8, transparent 55%); }
.mini-door { width: 53px; height: 82px; position: relative; margin-top: 7px; }
.mini-door img { position: absolute; inset: 0; width: 100%; height: 100%; }
.variant-thumb--detail { background: linear-gradient(135deg, #b0a398, #dacfc1 40%, #b2a394); }
.detail-art { position: relative; display: block; width: 78px; height: 78px; overflow: hidden; }
.detail-art img { position: absolute; width: 260px; height: 406px; left: -136px; top: var(--focus-top); max-width: none; }
.variant-name { display: block; font-size: 11px; line-height: 1.18; font-weight: 720; min-height: 27px; }
.variant-price { display: block; margin-top: auto; padding-top: 4px; color: #98734e; font-size: 10px; font-weight: 780; white-space: nowrap; }
.variant-price--free { color: #929790; font-weight: 600; }
.variant-grid--three .variant-card { min-height: 143px; }

.quote-card { margin: 17px 0 70px; padding: clamp(20px, 3vw, 32px); background: #202c2b; color: #f5f1e9; }
.quote-head { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid #ffffff26; padding-bottom: 19px; }
.quote-kicker { color: #c9aa80; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.quote-head h2 { font-family: Georgia, serif; font-size: 29px; font-weight: 400; margin: 8px 0 0; }
.quote-icon { color: #c9aa80; font-size: 23px; }
.selection-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; padding: 20px 0; border-bottom: 1px solid #ffffff26; }
.summary-item { min-width: 0; }
.summary-item small { display: block; color: #a8b1ac; font-size: 10px; margin-bottom: 4px; }
.summary-item strong { display: block; font-size: 12px; font-weight: 640; line-height: 1.25; }
.price-breakdown { padding: 17px 0 13px; }
.price-row { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 11px; color: #c4cdca; font-size: 12px; }
.price-row strong { white-space: nowrap; color: #ebe9e0; font-weight: 650; }
.quote-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid #ffffff3e; padding: 20px 0 21px; }
.quote-total span { font-size: 15px; }
.quote-total strong { font-family: Georgia, serif; font-size: clamp(27px, 2.65vw, 37px); font-weight: 400; letter-spacing: -.04em; white-space: nowrap; }
.button { width: 100%; min-height: 53px; border: 0; padding: 0 18px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 760; transition: background .18s ease, color .18s ease; }
.button span { font-size: 20px; font-weight: 400; }
.button--primary { color: #1f2827; background: #c9a77a; }
.button--primary:hover { background: #dfbb87; }
.button--ghost { color: #e6e7df; background: transparent; border: 1px solid #ffffff38; margin-top: 9px; }
.button--ghost:hover { background: #ffffff17; }
.quote-disclaimer { margin: 15px 0 0; color: #99a6a0; font-size: 10px; line-height: 1.5; }

.site-footer { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #818681; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.site-footer a { color: var(--ink); text-decoration: none; }
.mobile-bar { display: none; }

.quote-dialog { width: min(480px, calc(100% - 30px)); max-height: min(90vh, 800px); padding: 35px; border: 0; color: var(--ink); background: #f8f5ef; box-shadow: 0 30px 90px #10181770; }
.quote-dialog::backdrop { background: #111a18a8; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 22px; top: 15px; border: 0; background: none; font-size: 30px; font-weight: 300; cursor: pointer; color: #6b746f; }
.quote-dialog h2 { font: 400 43px/1 Georgia, serif; margin: 14px 0 12px; letter-spacing: -.03em; }
.quote-dialog p { color: #747c77; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.dialog-list { display: grid; gap: 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.dialog-row { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.dialog-row span:first-child { color: #7e8680; }
.dialog-row strong { text-align: right; font-weight: 680; }
.dialog-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 23px 0; font-size: 12px; }
.dialog-total strong { font: 400 29px Georgia, serif; white-space: nowrap; }
.dialog-feedback { min-height: 17px; margin-top: 9px; color: #5a795d; font-size: 11px; }

@media (max-width: 1150px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) minmax(405px, 1fr); gap: 26px; }
  .variant-grid { gap: 6px; }
  .variant-card { padding-left: 5px; padding-right: 5px; }
  .header-center { display: none; }
}

@media (max-width: 900px) {
  .workspace-grid { display: block; }
  .preview-sticky { position: static; }
  .scene { height: min(67vw, 620px); min-height: 460px; }
  .config-column { padding-top: 45px; max-width: 780px; margin: 0 auto; }
  .variant-grid { gap: 9px; }
  .variant-card { padding: 7px; }
  .quote-card { margin-bottom: 55px; }
}

@media (max-width: 600px) {
  .site-shell { padding: 0 16px; }
  .site-header { height: 68px; }
  .brand-mark { width: 29px; height: 28px; }
  .brand-mark span { width: 7px; }
  .brand-word { font-size: 16px; }
  .header-note { font-size: 0; }
  .header-note .status-dot { width: 8px; height: 8px; }
  .intro { padding: 37px 0 27px; }
  .intro h1 { font-size: clamp(45px, 11vw, 66px); margin: 17px 0 16px; }
  .intro p { font-size: 13px; line-height: 1.55; }
  .preview-topline { min-height: 36px; font-size: 8px; }
  .scene { height: 490px; min-height: 0; }
  .scene-caption { bottom: 17px; left: 14px; font-size: 7px; }
  .door-canvas { height: 96%; }
  .preview-bottomline { min-height: 56px; }
  .preview-product { font-size: 13px; }
  #preview-finish { font-size: 9px; }
  .config-column { padding-top: 37px; }
  .config-heading h2 { font-size: 36px; }
  .config-count { font-size: 8px; padding: 8px; }
  .config-group { padding: 18px 0 20px; }
  .group-selected { font-size: 10px; }
  .variant-grid, .variant-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .variant-card, .variant-grid--three .variant-card { min-height: 120px; padding: 5px 8px 8px; }
  .variant-thumb { height: 69px; margin-bottom: 6px; }
  .mini-door { width: 47px; height: 73px; }
  .variant-name { font-size: 11px; min-height: 0; }
  .variant-price { padding-top: 3px; }
  .quote-card { margin: 16px 0 35px; }
  .site-footer { padding-bottom: 82px; font-size: 8px; }
  .site-footer span:nth-child(2) { display: none; }
  .mobile-bar { z-index: 20; position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #202c2b; color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px #1a252344; }
  .mobile-bar small { display: block; color: #a5b1ab; font-size: 8px; font-weight: 800; letter-spacing: .09em; white-space: nowrap; margin-bottom: 4px; }
  .mobile-bar strong { display: block; font: 400 23px Georgia, serif; white-space: nowrap; }
  .mobile-bar button { flex: 0 0 130px; display: flex; justify-content: space-between; align-items: center; min-height: 45px; border: 0; padding: 0 13px; background: #c9a77a; color: #1f2827; font-size: 12px; font-weight: 800; cursor: pointer; }
  .mobile-bar button span { font-size: 20px; font-weight: 400; }
  .quote-dialog { padding: 27px 20px 20px; }
  .quote-dialog h2 { font-size: 38px; }
}

@media (max-width: 380px) {
  .scene { height: 440px; }
  .group-title { font-size: 14px; }
  .group-selected { max-width: 36%; }
  .mobile-bar button { flex-basis: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
