/* =========================================================================
   ARMET — Kreator wyceny (Wycena.html). Extends styles.css tokens.
   ========================================================================= */

.w-hero {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px);
}
.w-hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 12px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.w-hero .container { position: relative; }
.w-hero .kicker { color: var(--accent); }
.w-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.0; letter-spacing: -0.03em; margin-top: 18px; }
.w-hero p { color: rgba(255,255,255,.74); max-width: 600px; margin-top: 18px; font-size: clamp(1.02rem, 1.5vw, 1.22rem); }
.w-hero .trust { display: flex; gap: clamp(20px,3vw,40px); flex-wrap: wrap; margin-top: 32px; }
.w-hero .trust .ti { display: flex; gap: 12px; align-items: center; }
.w-hero .trust .ti svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.6; fill: none; flex: none; }
.w-hero .trust .ti span { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: rgba(255,255,255,.85); }

/* layout */
.w-wrap { padding-block: clamp(32px, 5vw, 72px); }
.w-grid { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 992px) { .w-grid { grid-template-columns: 380px 1fr; align-items: start; } }
@media (min-width: 1200px) { .w-grid { grid-template-columns: 420px 1fr; } }

/* ---------------- LEFT RAIL : live infographic ---------------- */
.w-rail { position: relative; }
@media (min-width: 992px) { .w-rail { position: sticky; top: calc(var(--header-h) + 24px); } }
.w-railcard {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 30px); overflow: hidden; position: relative;
  box-shadow: var(--shadow-card);
}
.w-railcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.w-railcard .rc-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.w-railcard .rc-head .lab { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.w-railcard .rc-head .typ { font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.55); }

/* parametric hall drawing */
.haldraw { position: relative; width: 100%; aspect-ratio: 4/3; }
.haldraw svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hd-wall { fill: color-mix(in srgb, var(--accent) 16%, #1f2019); stroke: var(--accent); stroke-width: 2; transition: all .45s var(--ease); }
.hd-roof { fill: var(--accent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; transition: all .45s var(--ease); }
.hd-side { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.25); stroke-width: 1.5; transition: all .45s var(--ease); }
.hd-roofside { fill: color-mix(in srgb, var(--accent) 55%, #000); stroke: var(--accent); stroke-width: 1.5; transition: all .45s var(--ease); }
.hd-door { fill: rgba(0,0,0,.35); stroke: rgba(255,255,255,.4); stroke-width: 1.5; transition: all .45s var(--ease); }
.hd-ground { stroke: rgba(255,255,255,.18); stroke-width: 2; }
.hd-dim { stroke: rgba(255,255,255,.5); stroke-width: 1.2; }
.hd-dim-cap { stroke: rgba(255,255,255,.5); stroke-width: 1.2; }
.hd-label { fill: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.hd-label.dim { fill: rgba(255,255,255,.8); font-weight: 400; }

/* live chips */
.rc-chips { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.rc-chip { background: #16170f; padding: 16px; }
.rc-chip .v { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.rc-chip .v .u { color: var(--accent); font-size: .9rem; margin-left: 3px; }
.rc-chip .k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 8px; }

.rc-steps { position: relative; margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.rc-stepline { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .9rem; color: rgba(255,255,255,.5); transition: color .3s; }
.rc-stepline .dot { width: 22px; height: 22px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; flex: none; font-family: var(--font-mono); font-size: .7rem; transition: all .3s; }
.rc-stepline.done { color: rgba(255,255,255,.9); }
.rc-stepline.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rc-stepline.current { color: #fff; }
.rc-stepline.current .dot { border-color: var(--accent); color: var(--accent); }
.rc-stepline.done .dot svg { width: 12px; height: 12px; stroke: var(--accent-ink); stroke-width: 3; }

/* ---------------- RIGHT : wizard ---------------- */
.w-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 44px); box-shadow: var(--shadow-card); min-height: 540px; display: flex; flex-direction: column; }

.w-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.w-bar { flex: 1; height: 6px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.w-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width .5s var(--ease); }
.w-count { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.w-count b { color: var(--ink); font-size: 1.05rem; }

.w-step { display: none; }
.w-step.active { display: block; }
@media (prefers-reduced-motion: no-preference) { .w-step.active { animation: wstep .4s var(--ease); } }
@keyframes wstep { from { transform: translateY(12px); } to { transform: none; } }

.w-eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); display: inline-flex; gap: 10px; align-items: center; }
.w-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.w-step h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-top: 14px; }
.w-step .w-sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.w-body { margin-top: 28px; }

/* option cards (icon picker) */
.w-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .w-cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 560px) { .w-cards.three { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .w-cards.three { grid-template-columns: repeat(3,1fr); } }
.w-card {
  position: relative; text-align: left; background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); padding: 20px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
  display: flex; flex-direction: column; gap: 10px; min-height: 132px;
}
.w-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--ink); }
.w-card .ic { width: 40px; height: 40px; stroke: var(--ink); stroke-width: 1.4; fill: none; transition: stroke .2s; }
.w-card .ct { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.w-card .cd { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.w-card .tick { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 100px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all .2s; }
.w-card .tick svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.w-card[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); box-shadow: 0 0 0 1px var(--accent); }
.w-card[aria-pressed="true"] .ic { stroke: var(--accent-deep); }
.w-card[aria-pressed="true"] .tick { background: var(--accent); border-color: var(--accent); }
.w-card[aria-pressed="true"] .tick svg { opacity: 1; transform: scale(1); stroke: var(--accent-ink); }

/* dimensions controls */
.w-dims { display: grid; gap: 22px; }
@media (min-width: 700px) { .w-dims { grid-template-columns: 1fr 1fr; } .w-dims .full { grid-column: 1 / -1; } }
.w-rangefield .rf-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.w-rangefield .rf-top label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.w-rangefield .rf-val { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--accent-deep); }
.w-rangefield .rf-val span { color: var(--muted); font-size: .8rem; font-weight: 400; }
.rf-num {
  width: 4ch; font: inherit; font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  color: var(--accent-deep); background: transparent; border: 0; border-bottom: 2px solid var(--line-strong);
  text-align: right; padding: 0 2px 2px; -moz-appearance: textfield;
}
.rf-num::-webkit-outer-spin-button, .rf-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rf-num:focus { outline: none; border-bottom-color: var(--accent); }
input[type="range"].w-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: var(--surface-2); outline: none; cursor: pointer;
}
input[type="range"].w-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 100px;
  background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .15s;
}
input[type="range"].w-range::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type="range"].w-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 100px; background: var(--accent); border: 4px solid var(--surface); }
.rf-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-top: 6px; }

/* segmented control */
.w-seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.w-seg button {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: var(--radius);
  padding: 12px 18px; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 10px; transition: all .2s; min-height: 48px;
}
.w-seg button .si { width: 24px; height: 18px; stroke: var(--ink-soft); stroke-width: 1.6; fill: none; }
.w-seg button:hover { border-color: var(--ink); }
.w-seg button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); box-shadow: 0 0 0 1px var(--accent); }
.w-seg button[aria-pressed="true"] .si { stroke: var(--accent-deep); }
.w-fieldlabel { font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: block; margin-bottom: 12px; }
.w-fieldlabel .opt { color: var(--muted); font-weight: 400; font-family: var(--font-body); font-size: .85rem; }

/* equipment checks */
.w-checks { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .w-checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .w-checks { grid-template-columns: 1fr 1fr 1fr; } }
.w-check {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all .2s; min-height: 64px;
}
.w-check:hover { border-color: var(--ink); }
.w-check .box { width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: all .2s; }
.w-check .box svg { width: 15px; height: 15px; stroke: var(--accent-ink); stroke-width: 3; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.w-check .ci { width: 26px; height: 26px; stroke: var(--ink-soft); stroke-width: 1.5; fill: none; flex: none; }
.w-check .cl { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.w-check[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.w-check[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.w-check[aria-pressed="true"] .box svg { opacity: 1; transform: scale(1); }
.w-check[aria-pressed="true"] .ci { stroke: var(--accent-deep); }

/* text inputs */
.w-fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .w-fields { grid-template-columns: 1fr 1fr; } .w-fields .full { grid-column: 1 / -1; } }
.w-field { display: flex; flex-direction: column; gap: 8px; }
.w-field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.w-field label .req { color: var(--accent-deep); }
.w-field input, .w-field textarea, .w-field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 13px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
.w-field textarea { min-height: 96px; resize: vertical; }
.w-field input:focus, .w-field textarea:focus, .w-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.w-field input.err, .w-field textarea.err { border-color: #d6452f; box-shadow: 0 0 0 3px rgba(214,69,47,.15); }
.w-field .hint { font-size: .8rem; color: var(--muted); }
.w-field .errmsg { font-size: .8rem; color: #d6452f; display: none; }
.w-field.invalid .errmsg { display: block; }
.w-mm { position: relative; }
.w-mm .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: .82rem; color: var(--muted); pointer-events: none; }

/* nav */
.w-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 32px; }
.w-back { background: transparent; border: 0; color: var(--muted); font-family: var(--font-display); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px; transition: color .2s; min-height: 48px; }
.w-back:hover { color: var(--ink); }
.w-back svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.w-back[disabled] { opacity: 0; pointer-events: none; }

/* summary */
.w-sumgrid { display: grid; gap: 12px; }
@media (min-width: 640px) { .w-sumgrid { grid-template-columns: 1fr 1fr; } }
.w-sumitem { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.w-sumitem .sk { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.w-sumitem .sv { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-align: right; }
.w-sumitem .sv.empty { color: var(--muted); font-weight: 400; font-family: var(--font-body); font-style: italic; }
.w-sumitem button.edit { background: none; border: 0; color: var(--accent-deep); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; cursor: pointer; text-transform: uppercase; }
.w-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: .9rem; color: var(--ink-soft); }
.w-consent input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin-top: 1px; }
.w-consent a { color: var(--accent-deep); text-decoration: underline; }

/* success */
.w-success { display: none; text-align: center; padding: clamp(30px,6vw,72px) 0; }
.w-success.show { display: block; animation: wstep .5s var(--ease) both; }
.w-success .seal { width: 96px; height: 96px; border-radius: 100px; background: color-mix(in srgb, var(--accent) 18%, #fff); display: grid; place-items: center; margin: 0 auto 24px; }
.w-success .seal svg { width: 44px; height: 44px; stroke: var(--accent-deep); stroke-width: 3; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.w-success h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); }
.w-success p { color: var(--muted); max-width: 50ch; margin: 14px auto 0; }
.w-success .sxa { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* mobile mini-summary toggle */
.w-railtoggle { display: none; }
@media (max-width: 991px) {
  .w-railtoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-lg); padding: 16px 20px; cursor: pointer; }
  .w-railtoggle .l { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .w-railtoggle .v { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
  .w-railtoggle svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; transition: transform .3s; }
  .w-rail.open .w-railtoggle svg { transform: rotate(180deg); }
  .w-railbody { display: none; margin-top: 14px; }
  .w-rail.open .w-railbody { display: block; }
}
@media (min-width: 992px) { .w-railtoggle { display: none; } .w-railbody { display: block !important; } }
