:root {
  --navy: #071827;
  --navy-soft: #102436;
  --gold: #c99b42;
  --gold-light: #e3b657;
  --paper: #f5f2eb;
  --white: #fffdf8;
  --ink: #0e1726;
  --muted: #66717b;
  --line: rgba(14, 23, 38, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 8%, rgba(201, 155, 66, 0.08), transparent 24rem),
    var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
label { -webkit-tap-highlight-color: transparent; }

.config-header {
  width: min(1480px, calc(100% - 64px));
  height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 155, 66, 0.42);
}

.config-brand { width: 250px; display: block; }
.config-brand img { width: 100%; display: block; }

.config-return {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.35s ease;
}

.config-return span { color: var(--gold); font-size: 19px; }
.config-return:hover { color: var(--gold); }

.config-main {
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(60px, 7vw, 104px) 0 80px;
}

.config-intro { max-width: 920px; margin-bottom: 58px; }

.config-kicker,
.summary-label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 18px;
  color: #a87825;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.config-kicker span,
.summary-label span { width: 40px; height: 1px; background: var(--gold); }

.config-intro h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(52px, 5.5vw, 84px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.config-intro h1 em { color: var(--gold); font-style: normal; }

.config-lead {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.configurator {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 23, 38, 0.11);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 34px 90px rgba(7, 24, 39, 0.08);
}

.config-progress {
  position: relative;
  height: 108px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 clamp(30px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.progress-line {
  position: absolute;
  right: calc(12.5% + clamp(30px, 5vw, 80px) * 0.75);
  bottom: 25px;
  left: calc(12.5% + clamp(30px, 5vw, 80px) * 0.75);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.progress-line i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--gold);
  transition: width 0.7s var(--ease);
}

.progress-step {
  position: relative;
  z-index: 1;
  padding: 0 8px 24px;
  border: 0;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: color 0.4s ease;
}

.progress-step::after {
  content: "";
  position: absolute;
  bottom: 19px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, 50%);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.progress-step b { display: block; margin-bottom: 3px; font-family: "Newsreader", Georgia, serif; font-size: 23px; font-weight: 400; }
.progress-step span { font-size: 9px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.progress-step.is-active { color: #fff; }
.progress-step.is-active b { color: var(--gold-light); }
.progress-step.is-active::after { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 155, 66, 0.18); transform: translate(-50%, 50%) scale(1.28); }
.progress-step.is-complete { color: rgba(255, 255, 255, 0.72); }
.progress-step.is-complete::after { background: var(--gold); }

.config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; min-height: 680px; }
.config-form { min-width: 0; padding: clamp(38px, 5vw, 72px); }
.config-panels { min-height: 500px; }
.config-panel { margin: 0; padding: 0; border: 0; animation: panelIn 0.68s var(--ease) both; }
.config-panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateX(36px); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.config-panel legend {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(38px, 3.4vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.config-panel legend small {
  display: block;
  margin-bottom: 15px;
  color: var(--gold);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.panel-copy { margin: 16px 0 32px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.choice-card {
  position: relative;
  min-height: 202px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.45s ease;
}

.choice-card:hover { transform: translateY(-4px); border-color: rgba(201, 155, 66, 0.62); }
.choice-card.is-selected { border-color: var(--gold); background: #fff; box-shadow: inset 0 -3px 0 var(--gold), 0 14px 32px rgba(7, 24, 39, 0.07); }
.choice-card input,
.color-choice input,
.control-choice input,
.box-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { margin: auto 0 8px; font-family: "Newsreader", Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.05; }
.choice-card > small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.choice-mark { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: rgba(14,23,38,.06); font-size: 10px; }
.choice-card.is-selected .choice-mark { color: var(--navy); background: var(--gold); }

.product-icon { position: relative; width: 54px; height: 58px; display: block; color: var(--gold); border: 1px solid currentColor; }
.product-icon::before,
.product-icon::after,
.product-icon span::before,
.product-icon span::after { content: ""; position: absolute; background: currentColor; }
.icon-shutter::before { inset: 8px 6px auto; height: 1px; box-shadow: 0 7px, 0 14px, 0 21px, 0 28px; }
.icon-shutter::after { left: -4px; right: -4px; bottom: -5px; height: 1px; }
.icon-gate::before { inset: 8px 7px; border: 1px solid currentColor; background: transparent; }
.icon-gate::after { left: 8px; right: 8px; top: 23px; height: 1px; box-shadow: 0 9px; }
.icon-blinds::before { left: 7px; right: 7px; top: 9px; height: 2px; box-shadow: 0 8px, 0 16px, 0 24px, 0 32px; }
.icon-blinds::after { top: 5px; bottom: 5px; left: 12px; width: 1px; box-shadow: 28px 0; }
.icon-screen::before { inset: 6px; border: 1px dashed currentColor; background: transparent; }
.icon-screen::after { width: 1px; height: 52px; left: 26px; top: 2px; transform: rotate(45deg); opacity: .7; }

.box-type { margin-top: 30px; padding-top: 27px; border-top: 1px solid var(--line); transition: opacity .4s ease, transform .5s var(--ease); }
.box-type[hidden] { display: none; }
.box-type-heading { margin-bottom: 14px; display: flex; align-items: baseline; gap: 14px; }
.box-type-heading span { font-family: "Newsreader", Georgia, serif; font-size: 23px; }
.box-type-heading small { color: var(--muted); font-size: 9px; }
.box-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.box-choice { position: relative; min-height: 104px; padding: 15px 42px 15px 15px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .35s ease, transform .45s var(--ease); }
.box-choice:hover { transform: translateY(-3px); border-color: rgba(201,155,66,.7); }
.box-choice.is-selected { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.box-choice > span { display: flex; flex-direction: column; gap: 4px; }
.box-choice strong { font-family: "Newsreader", Georgia, serif; font-size: 19px; font-weight: 500; }
.box-choice small { color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.box-choice > b { position: absolute; top: 13px; right: 13px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: rgba(14,23,38,.06); font-size: 9px; }
.box-choice.is-selected > b { color: var(--navy); background: var(--gold); }
.box-diagram { position: relative; width: 70px; height: 70px; display: block; border: 1px solid rgba(14,23,38,.18); background: linear-gradient(135deg,#f5f2eb,#fff); }
.box-diagram::before { content:""; position:absolute; left:14px; right:14px; bottom:9px; height:43px; border:1px solid var(--navy); background:repeating-linear-gradient(0deg, transparent 0 5px, rgba(7,24,39,.2) 5px 6px); }
.box-diagram::after { content:""; position:absolute; left:10px; right:10px; top:8px; height:12px; border:1px solid var(--gold); background:#efe4cf; }
.box-hidden::after { top:3px; height:8px; opacity:.45; }
.box-hidden span::before { content:""; position:absolute; top:0; left:5px; right:5px; height:13px; background:#f5f2eb; border-bottom:1px dashed rgba(14,23,38,.3); z-index:1; }

.dimensions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.number-field { display: block; }
.number-field > span { margin-bottom: 9px; display: block; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.number-field > div { height: 78px; display: flex; align-items: center; border: 1px solid var(--line); background: #fff; transition: border-color .35s ease, box-shadow .35s ease; }
.number-field > div:focus-within { border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.number-field input { min-width: 0; width: 100%; height: 100%; padding: 0 22px; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: "Newsreader", Georgia, serif; font-size: 30px; }
.number-field b { padding-right: 20px; color: var(--muted); font-size: 10px; font-weight: 500; }
.number-field > small { margin-top: 8px; display: block; color: #8b9399; font-size: 8px; }
.dimension-note { margin-top: 32px; padding: 17px 20px; display: flex; align-items: center; gap: 13px; border-left: 2px solid var(--gold); background: rgba(201,155,66,.08); }
.dimension-note span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: #a87825; font-family: Georgia,serif; font-size: 12px; }
.dimension-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.color-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.color-choice { position: relative; min-height: 176px; padding: 14px; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: transform .45s var(--ease), border-color .35s ease; }
.color-choice:hover { transform: translateY(-4px); }
.color-choice.is-selected { border-color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.color-choice i { height: 94px; margin-bottom: 14px; display: block; border: 1px solid rgba(14,23,38,.12); background: var(--swatch); }
.color-choice .wood-swatch { background: linear-gradient(110deg,#8d5b2b,#c38b47 25%,#78502e 50%,#b67d3c 74%,#6e4625); }
.color-choice strong { font-family: "Newsreader",Georgia,serif; font-size: 17px; font-weight: 500; }
.color-choice small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.control-list { display: grid; gap: 8px; }
.control-choice { position: relative; min-height: 76px; padding: 13px 52px 13px 15px; display: grid; grid-template-columns: 36px 1fr auto; gap: 13px; align-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .35s ease, transform .45s var(--ease), box-shadow .35s ease; }
.control-choice:hover { transform: translateX(4px); }
.control-choice.is-selected { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.control-number { color: var(--gold); font-family: "Newsreader",Georgia,serif; font-size: 22px; }
.control-choice > span:nth-child(3) { display: flex; flex-direction: column; gap: 3px; }
.control-choice strong { font-family: "Newsreader",Georgia,serif; font-size: 18px; font-weight: 500; }
.control-choice small { color: var(--muted); font-size: 8px; }
.control-choice > b { color: #a87825; font-size: 9px; font-weight: 600; }
.control-choice > i { position: absolute; right: 17px; width: 22px; height: 22px; display: grid; place-items:center; border-radius:50%; color:transparent; background:rgba(14,23,38,.06); font-size:9px; font-style:normal; }
.control-choice.is-selected > i { color:var(--navy); background:var(--gold); }
.mounting-option { margin-top: 15px; min-height: 76px; padding: 14px 17px; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items:center; border: 1px solid rgba(201,155,66,.5); background:rgba(201,155,66,.07); cursor:pointer; }
.mounting-option input { position:absolute; opacity:0; }
.mounting-option > span { position:relative; width:38px; height:22px; border-radius:20px; background:rgba(14,23,38,.18); transition:background .3s ease; }
.mounting-option > span::after { content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .35s var(--ease); }
.mounting-option input:checked + span { background:var(--gold); }
.mounting-option input:checked + span::after { transform:translateX(16px); }
.mounting-option p { margin:0; display:flex; flex-direction:column; gap:3px; }
.mounting-option strong { font-family:"Newsreader",Georgia,serif; font-size:17px; font-weight:500; }
.mounting-option small { color:var(--muted); font-size:8px; }
.mounting-option > b { color:#a87825; font-size:10px; }

.config-actions { margin-top: 36px; padding-top: 25px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.config-actions button { height: 54px; padding: 0 26px; border: 1px solid var(--line); cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .05em; transition: transform .4s var(--ease), color .3s ease, background .3s ease, border-color .3s ease; }
.config-actions button:hover { transform: translateY(-2px); }
.config-back { color: var(--ink); background: transparent; }
.config-back:disabled { opacity: .3; cursor: default; transform: none; }
.config-next { min-width: 148px; color: var(--navy); border-color: var(--gold) !important; background: var(--gold); }
.config-next:hover { color:#fff; background:var(--navy); border-color:var(--navy)!important; }

.config-summary { position:relative; padding: 51px 35px; color:#fff; background:var(--navy); }
.config-summary::before { content:""; position:absolute; top:0; left:0; width:1px; height:100%; background:linear-gradient(var(--gold),rgba(201,155,66,.05)); }
.summary-label { color:var(--gold-light); }
.config-summary h2 { margin: 28px 0 38px; color:#fff; font-family:"Newsreader",Georgia,serif; font-size:35px; font-weight:400; line-height:.96; letter-spacing:-.03em; }
.config-summary dl { margin:0; }
.config-summary dl > div { min-height:47px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid rgba(255,255,255,.1); }
.config-summary dt { color:rgba(255,255,255,.48); font-size:8px; letter-spacing:.08em; text-transform:uppercase; }
.config-summary dd { margin:0; color:rgba(255,255,255,.9); font-size:9px; font-weight:600; text-align:right; }
.summary-price { margin-top:40px; padding-top:25px; border-top:1px solid rgba(201,155,66,.65); }
.summary-price > span { color:rgba(255,255,255,.56); font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.summary-price strong { min-height:61px; margin:9px 0 8px; display:block; color:var(--gold-light); font-family:"Newsreader",Georgia,serif; font-size:49px; font-weight:400; line-height:1; white-space:nowrap; transition:opacity .3s ease, transform .4s var(--ease); }
.summary-price strong.is-changing { opacity:.25; transform:translateY(7px); }
.summary-price small { display:block; color:rgba(255,255,255,.46); font-size:8px; line-height:1.55; }
.summary-trust { position:absolute; right:35px; bottom:42px; left:35px; padding-top:22px; display:flex; align-items:center; gap:11px; border-top:1px solid rgba(255,255,255,.1); }
.summary-trust i { width:27px; height:27px; display:grid; place-items:center; border:1px solid var(--gold); border-radius:50%; color:var(--gold); font-size:10px; font-style:normal; }
.summary-trust p { margin:0; color:rgba(255,255,255,.8); font-size:9px; line-height:1.4; }
.summary-trust span { color:rgba(255,255,255,.42); }

.config-footer {
  width:min(1480px,calc(100% - 64px));
  margin:0 auto;
  padding:30px 0 45px;
  display:flex;
  justify-content:space-between;
  gap:40px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:8px;
  line-height:1.6;
}
.config-footer p { margin:0; }
.config-footer p:last-child { max-width:620px; text-align:right; }

@media (max-width: 1120px) {
  .config-layout { grid-template-columns: 1fr 310px; }
  .config-form { padding: 48px 38px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .choice-card { min-height:170px; }
  .color-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .config-header,
  .config-main,
  .config-footer { width: min(100% - 32px, 680px); }
  .config-header { height:82px; }
  .config-brand { width:190px; }
  .config-return { font-size:0; }
  .config-return span { font-size:22px; }
  .config-main { padding:55px 0 60px; }
  .config-intro { margin-bottom:38px; }
  .config-intro h1 { font-size:clamp(46px,12vw,66px); }
  .config-lead { font-size:12px; }
  .config-progress { height:86px; padding:0 12px; }
  .progress-step { padding:0 2px 22px; }
  .progress-step b { font-size:20px; }
  .progress-step span { font-size:7px; }
  .progress-line { left:13%; right:13%; bottom:21px; }
  .progress-step::after { bottom:15px; }
  .config-layout { display:block; }
  .config-form { padding:38px 22px 28px; }
  .config-panels { min-height:auto; }
  .config-panel legend { font-size:39px; }
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .choice-card { min-height:168px; padding:18px 14px; }
  .choice-card strong { font-size:18px; }
  .product-icon { transform:scale(.84); transform-origin:left top; }
  .box-type-grid { grid-template-columns:1fr; }
  .dimensions-grid { grid-template-columns:1fr; }
  .color-grid { grid-template-columns:repeat(2,1fr); }
  .control-choice { grid-template-columns:30px 1fr; }
  .control-choice > b { display:none; }
  .mounting-option { grid-template-columns:40px 1fr; }
  .mounting-option > b { display:none; }
  .config-summary { min-height:530px; padding:42px 26px 130px; }
  .summary-trust { right:26px; left:26px; }
  .config-footer { flex-direction:column; gap:12px; }
  .config-footer p:last-child { text-align:left; }
}

@media (max-width: 460px) {
  .config-intro h1 { font-size:43px; }
  .product-grid { grid-template-columns:1fr; }
  .choice-card { min-height:150px; }
  .box-choice { grid-template-columns:58px 1fr; }
  .box-diagram { width:58px; height:58px; }
  .color-grid { grid-template-columns:1fr 1fr; }
  .color-choice { min-height:145px; }
  .color-choice i { height:70px; }
}

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