.control-panel { min-width: 0; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.step-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.step-tab { position: relative; height: 62px; padding: 0; border: 0; border-right: 1px solid var(--line); background: transparent; color: #8a8c84; font-size: 0; cursor: pointer; }
.step-tab:last-child { border-right: 0; }
.step-tab span { font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.step-tab::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 3px; background: var(--lime); transition: right .25s; }
.step-tab.is-active { color: var(--ink); }
.step-tab.is-active::after, .step-tab.is-complete::after { right: 0; }
.step-tab.is-complete::after { background: rgba(168,202,0,.35); }
#configForm { flex: 1; display: flex; min-height: 0; flex-direction: column; }
.step-panel { display: none; flex: 1; padding: clamp(32px, 3vw, 55px); overflow-y: auto; }
.step-panel.is-active { display: block; animation: panelIn .35s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.step-panel h2 { margin-bottom: 34px; font-size: clamp(35px, 3vw, 51px); }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 13px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 8px; letter-spacing: 2.1px; font-weight: 900; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-card, .stack-option, .compact-option, .toggle-option, .swatch-option { position: relative; cursor: pointer; }
.option-card input, .stack-option input, .compact-option input, .toggle-option input, .swatch-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-card-body, .stack-option-body, .compact-option-body, .toggle-option-body, .swatch-option-body { border: 1px solid var(--line); background: white; transition: .2s ease; }
.option-card-body { min-height: 142px; padding: 18px; display: flex; flex-direction: column; }
.option-card-body b { font-size: 25px; letter-spacing: -.05em; }
.option-card-body small { margin-top: 3px; color: var(--muted); }
.option-card-body strong { margin-top: auto; font-size: 11px; }
.option-card-body em { position: absolute; right: 14px; top: 14px; width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%; }
input:checked + .option-card-body, input:checked + .stack-option-body, input:checked + .compact-option-body, input:checked + .swatch-option-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
input:checked + .option-card-body em::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--lime); }
.info-strip { margin-top: 18px; display: flex; gap: 14px; padding: 16px; background: #edf1d6; }
.info-strip > span { color: #748900; font-weight: 900; }
.info-strip p { margin: 0; color: #585d48; font-family: Georgia, serif; font-size: 13px; line-height: 1.45; }

.fixed-base-card { padding: 22px; border: 1px solid var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--ink); }
.fixed-base-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fixed-base-head span { font-size: 9px; letter-spacing: 2px; font-weight: 900; }
.fixed-base-head strong { font-size: 26px; letter-spacing: -.05em; }
.dimension-graphic { position: relative; margin: 29px 24px 38px 8px; padding: 12px 16px 28px 34px; }
.dimension-module { height: 112px; display: grid; place-items: center; background: linear-gradient(135deg, #323735, #1b1e1d); color: white; box-shadow: 13px 12px 0 #dfe2d8; transform: skewY(-2deg); }
.dimension-module span { font-size: 9px; letter-spacing: 2px; font-weight: 900; transform: skewY(2deg); }
.dimension-long { position: absolute; left: 34px; right: 16px; bottom: 3px; padding-top: 6px; border-top: 1px solid var(--ink); text-align: center; font-size: 9px; font-weight: 800; }
.dimension-short { position: absolute; left: -8px; top: 12px; bottom: 28px; padding-right: 7px; display: grid; place-items: center; border-right: 1px solid var(--ink); writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-weight: 800; }
.fixed-base-price { padding: 16px 0; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fixed-base-price > span { max-width: 90px; font-size: 8px; line-height: 1.4; letter-spacing: 1.3px; font-weight: 900; }
.fixed-base-price strong { font-size: 25px; letter-spacing: -.04em; }
.fixed-base-price small { font-size: 8px; color: var(--muted); letter-spacing: 0; }
.fixed-base-card ul { margin: 17px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fixed-base-card li { position: relative; padding-left: 17px; color: #666961; font-size: 10px; }
.fixed-base-card li::before { content: "✓"; position: absolute; left: 0; color: #789100; font-weight: 900; }

.stack-options { display: grid; gap: 10px; }
.stack-option-body { min-height: 82px; padding: 16px 18px; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; }
.option-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); font-size: 17px; }
.stack-option-body strong, .stack-option-body small { display: block; }
.stack-option-body strong { font-size: 14px; }
.stack-option-body small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.option-price { font-size: 10px; font-weight: 800; white-space: nowrap; }

.swatch-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch-option-body { padding: 8px; text-align: center; }
.swatch { display: block; height: 55px; margin-bottom: 8px; background: var(--swatch); }
.swatch.wood { background: repeating-linear-gradient(90deg, #9b6b3e 0 7px, #c18c57 8px 9px); }
.swatch.aluminium { background: linear-gradient(115deg, #bfc4c2, #717875 45%, #e6e8e5); }
.swatch.mineral { background: radial-gradient(circle, rgba(255,255,255,.2) 0 1px, transparent 2px), #ddd8cd; background-size: 5px 5px; }
.swatch-option-body small { font-size: 8px; font-weight: 800; }
.compact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.compact-option-body { min-height: 68px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.compact-option-body strong { font-size: 11px; }
.compact-option-body small { margin-top: 8px; color: var(--muted); font-size: 9px; }

.toggle-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.toggle-option { display: block; min-width: 0; height: 100%; }
.toggle-option-body { position: relative; display: block; width: 100%; height: 100%; min-height: 92px; padding: 15px 48px 15px 15px; box-sizing: border-box; }
.toggle-option-body strong, .toggle-option-body small { display: block; }
.toggle-option-body strong { padding-right: 4px; font-size: 13px; line-height: 1.25; }
.toggle-option-body small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.toggle-switch { position: absolute; right: 13px; top: 15px; width: 25px; height: 15px; border-radius: 10px; background: #d8d9d3; transition: .2s; }
.toggle-switch::after { content: ""; position: absolute; width: 11px; height: 11px; top: 2px; left: 2px; border-radius: 50%; background: white; transition: .2s; }
input:checked + .toggle-option-body { border-color: #91ad00; background: #f5f8e7; }
input:checked + .toggle-option-body .toggle-switch { background: var(--lime); }
input:checked + .toggle-option-body .toggle-switch::after { left: 12px; }

.panel-footer { min-height: 88px; padding: 12px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px 1fr 118px; gap: 10px; align-items: center; }
.back-button, .next-button, .primary-action { height: 48px; border: 0; font-size: 9px; letter-spacing: 1px; font-weight: 900; cursor: pointer; }
.back-button { background: transparent; text-align: left; }
.back-button:disabled { opacity: .3; }
.next-button, .primary-action { background: var(--ink); color: white; }
.next-button span, .primary-action span { color: var(--lime); margin-left: 7px; }
.live-price { text-align: right; padding-right: 8px; }
.live-price span, .live-price strong, .live-price small { display: block; }
.live-price span { font-size: 7px; letter-spacing: 1.2px; color: var(--muted); }
.live-price strong { margin: 2px 0; font-size: 18px; }
.live-price small { font-size: 8px; color: var(--muted); }

.result-card { margin-bottom: 22px; padding: 19px; background: var(--ink); color: white; }
.result-card-head { display: flex; justify-content: space-between; color: #b8bcb3; font-size: 7px; letter-spacing: 1.4px; }
.price-big { margin-top: 28px; display: flex; align-items: flex-end; gap: 9px; }
.price-big small { margin-bottom: 6px; color: var(--lime); font-family: Georgia, serif; font-style: italic; }
.price-big strong { font-size: clamp(36px, 3vw, 52px); letter-spacing: -.05em; }
.result-card p { margin: 13px 0 0; color: #b8bcb3; font-size: 10px; }
.result-list { margin-bottom: 18px; border-top: 1px solid var(--line); }
.result-row { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 10px; }
.result-row span:last-child { text-align: right; font-weight: 800; }
.primary-action { width: 100%; }
.copied-message { min-height: 18px; margin: 10px 0 0; color: #718800; font-size: 10px; text-align: center; }

.price-explanation { padding: 8vw 4.2vw; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.price-explanation h2 { font-size: clamp(40px, 4.5vw, 70px); }
.price-notes { align-self: end; max-width: 650px; }
.price-notes p { font-family: Georgia, serif; color: #5f625a; font-size: 19px; line-height: 1.55; }
.price-notes .fineprint { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-family: inherit; font-size: 10px; line-height: 1.6; }
footer { min-height: 90px; padding: 0 4.2vw; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: white; font-size: 8px; letter-spacing: 2px; }

@media (max-width: 1050px) {
  .intro { grid-template-columns: 1fr; }
  .configurator-shell { grid-template-columns: 1fr; }
  .visual-stage { grid-template-rows: 56px 520px 72px; }
  .scene-wrap { min-height: 520px; }
  .control-panel { border-left: 0; border-top: 1px solid var(--line); }
  .step-panel { min-height: 540px; }
}

@media (max-width: 640px) {
  .topbar { height: 66px; padding: 0 18px; }
  .prototype-pill { display: none; }
  .intro { padding: 58px 20px 42px; gap: 30px; }
  h1 { font-size: 46px; }
  .intro-copy { font-size: 18px; }
  .visual-stage { grid-template-rows: 54px 390px 69px; }
  .scene-wrap { min-height: 390px; }
  .office-cube { width: 300px; height: 140px; }
  .cube-front { transform: translateZ(62px); border-top-width: 9px; border-bottom-width: 12px; }
  .cube-side { width: 125px; height: 140px; border-top-width: 9px; border-bottom-width: 12px; transform: translateZ(62px) rotateY(90deg); }
  .cube-roof { width: 300px; height: 125px; transform: translateZ(62px) rotateX(90deg); }
  .facade-front.mode-standard i { left: 27px; top: 27px; width: 108px; height: 79px; border-width: 4px; }
  .facade-front.mode-additional { padding: 26px 28px 18px; gap: 18px; }
  .facade-front.mode-panorama { padding: 20px 20px 16px; gap: 6px; }
  .facade-front.mode-corner { padding: 20px 14px 16px 32px; gap: 6px; }
  .facade-grid i { border-width: 4px; }
  .facade-side i { left: 8px; top: 21px; width: 44px; height: 83px; }
  .door { right: 12px; bottom: 0; width: 54px; height: 112px; border-width: 4px; border-bottom: 0; }
  .office-sign { left: 16px; top: 5px; font-size: 9px; }
  .landscape, .person { transform: scale(.65); transform-origin: bottom; }
  .visual-footer { padding: 0 14px; }
  .visual-footer div:nth-child(4) { display: none; }
  .visual-footer { grid-template-columns: repeat(3, 1fr); }
  .visual-footer strong { font-size: 11px; }
  .step-panel { min-height: 560px; padding: 34px 20px; }
  .step-panel h2 { font-size: 38px; }
  .swatch-options { grid-template-columns: repeat(2, 1fr); }
  .toggle-options { grid-template-columns: 1fr; }
  .panel-footer { position: sticky; bottom: 0; z-index: 5; background: var(--panel); grid-template-columns: 72px 1fr 105px; }
  .price-explanation { padding: 70px 20px; grid-template-columns: 1fr; gap: 44px; }
  .price-notes p { font-size: 17px; }
  footer { padding: 0 20px; }
}

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