/* Layout: fletë vizatimi teknik. Rrjetë milimetrike, kuota, blloku i titullit në fund.
   Ngjyrat vijnë nga materialet e kantierit: beton, tullë, XPS rozë, bager i verdhë. */
:root {
  --bg: #E4E3DE;          /* beton i lëmuar */
  --bg-2: #D8D6CF;
  --surface: #F1F0EC;
  --ink: #17181A;
  --ink-2: #57595C;
  --line: rgba(23, 24, 26, .14);
  --line-2: rgba(23, 24, 26, .07);
  --brick: #BD4A25;       /* tullë */
  --brick-ink: #FFF6F0;
  --brick-2: #D9714A;
  --safety: #E3A417;      /* bager */
  --safety-d: #B98410;
  --steel: #3B4045;
  --concrete: #A8A7A1;
  --concrete-2: #8E8D87;
  --xps: #E792AE;
  --plaster: #F4F1EA;
  --soil: #6E5641;
  --soil-2: #4B3A2C;
  --glass: #33475A;
  --roof: #A93B2A;
  --ok: #2E7A4C;
  --bad: #B3261E;
  --bp: rgba(23, 24, 26, .045); /* rrjeta e fletës */
  --band: #1B1C1F;
  --band-ink: #ECEAE4;
  --band-ink-2: #A7A5A0;
  --band-line: rgba(236, 234, 228, .14);

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r: 6px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121315; --bg-2: #18191C; --surface: #1D1F22; --ink: #ECEAE4; --ink-2: #A5A39E;
    --line: rgba(236,234,228,.14); --line-2: rgba(236,234,228,.07);
    --brick: #DA6239; --brick-ink: #1A0C06; --brick-2: #EE8A61; --safety: #EDB22B; --safety-d: #C4901C;
    --steel: #8B939A; --concrete: #6F6E6A; --concrete-2: #5A5955; --xps: #C9708E; --plaster: #D9D5CB;
    --soil: #6A5340; --soil-2: #3E3025; --glass: #5D7A92; --roof: #C14C36; --ok: #5DBB83; --bad: #F2867E;
    --bp: rgba(236,234,228,.04); --band: #0B0C0D; --band-ink: #ECEAE4; --band-ink-2: #A5A39E; --band-line: rgba(236,234,228,.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121315; --bg-2: #18191C; --surface: #1D1F22; --ink: #ECEAE4; --ink-2: #A5A39E;
  --line: rgba(236,234,228,.14); --line-2: rgba(236,234,228,.07);
  --brick: #DA6239; --brick-ink: #1A0C06; --brick-2: #EE8A61; --safety: #EDB22B; --safety-d: #C4901C;
  --steel: #8B939A; --concrete: #6F6E6A; --concrete-2: #5A5955; --xps: #C9708E; --plaster: #D9D5CB;
  --soil: #6A5340; --soil-2: #3E3025; --glass: #5D7A92; --roof: #C14C36; --ok: #5DBB83; --bad: #F2867E;
  --bp: rgba(236,234,228,.04); --band: #0B0C0D; --band-ink: #ECEAE4; --band-ink-2: #A5A39E; --band-line: rgba(236,234,228,.12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.mono { font-family: var(--f-mono); }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .005em; line-height: .92; text-wrap: balance; margin: 0; }
.display { font-weight: 900; font-size: clamp(3.4rem, 9vw, 8.6rem); }
.display em { font-style: normal; color: var(--brick); }
.h2 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 4.2rem); }
.h3 { font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: .98; }
.eyebrow { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; display: inline-flex; gap: 8px; align-items: center; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--brick); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brick) 25%, transparent); }
.lead { font-size: 1.12rem; max-width: 34em; color: var(--ink-2); margin: 18px 0 0; }
.sec-lead { font-size: 1.06rem; color: var(--ink-2); max-width: 40em; margin: 16px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 .95rem/1 var(--f-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-brick { background: var(--brick); color: var(--brick-ink); }
.btn-brick:hover { background: var(--brick-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.tbtn { font: 500 .8rem/1 var(--f-mono); padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; letter-spacing: .02em; }
.tbtn:hover { border-color: var(--ink); }
.tbtn-inv { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.tbtn-inv:hover { border-color: var(--band-ink); }

/* ---------- nav ---------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, transform .4s; }
.nav-in { max-width: 1240px; margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding-left: var(--gut); padding-right: var(--gut-r); }
.nav.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 34px; height: 34px; }
.lm-roof { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.lm-b { fill: var(--brick); }
.logo-t { display: flex; flex-direction: column; line-height: .9; }
.logo-t b { font: 900 1.45rem/0.9 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.logo-t i { font: 500 .62rem/1.2 var(--f-mono); font-style: normal; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s; }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- BUILD (hero) ---------- */
.build { position: relative; height: 640vh; background:
  linear-gradient(var(--bp) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, var(--bp) 1px, transparent 1px) 0 0 / 40px 40px, var(--bg); }
.build-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#build-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.build-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.build-intro { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gut-r) clamp(28px, 6vh, 64px) var(--gut); max-width: 1240px; margin: 0 auto; pointer-events: none; will-change: opacity, transform; }
.build-intro > * { pointer-events: auto; }
.build-intro .display { text-shadow: 0 2px 30px color-mix(in srgb, var(--bg) 60%, transparent); }
.intro-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 500 .75rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.mouse { width: 20px; height: 30px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1 } 80% { transform: translateY(9px); opacity: 0 } 100% { opacity: 0 } }

.build-stages { position: absolute; left: var(--gut); top: calc(var(--nav-h) + 4vh); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s; }
.build.go .build-stages { opacity: 1; transform: none; }
.build-stages li { display: grid; grid-template-columns: 30px auto; column-gap: 8px; align-items: baseline; padding: 5px 12px 5px 0; color: var(--ink-2); opacity: .5; transition: opacity .35s, color .35s; }
.build-stages li::before { content: attr(data-n); font: 500 .72rem var(--f-mono); grid-row: span 2; }
.build-stages li b { font: 700 1.05rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.build-stages li span { font: .7rem var(--f-mono); grid-column: 2; max-height: 0; overflow: hidden; transition: max-height .35s; }
.build-stages li.done { opacity: .8; color: var(--ink); }
.build-stages li.now { opacity: 1; color: var(--ink); }
.build-stages li.now::before { color: var(--brick); }
.build-stages li.now b { font-size: 1.5rem; color: var(--ink); }
.build-stages li.now span { max-height: 20px; color: var(--brick); }

.build-sheet { position: absolute; right: var(--gut-r); top: calc(var(--nav-h) + 4vh); width: 270px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--f-mono); font-size: .76rem; opacity: 0; transform: translateX(12px); transition: opacity .5s, transform .5s; }
.build.go .build-sheet { opacity: 1; transform: none; }
.sheet-h { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.sheet-h span:last-child { color: var(--brick); }
.build-sheet dl { margin: 0; padding: 6px 14px; }
.build-sheet dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.build-sheet dl div:last-child { border-bottom: 0; }
.build-sheet dt { color: var(--ink-2); }
.build-sheet dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sheet-dims { padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.build-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line-2); }
.build-progress span { display: block; height: 100%; width: 0; background: var(--brick); }

/* ---------- bands ---------- */
.band-ink { background: var(--band); color: var(--band-ink); }
.band-ink .eyebrow, .band-ink .sec-lead { color: var(--band-ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 56px 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--band-line); padding-left: 18px; }
.stat b { font: 900 clamp(2.6rem, 5vw, 4.2rem)/0.9 var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--band-ink-2); font-size: .92rem; max-width: 18em; }
.marquee { overflow: hidden; border-top: 1px solid var(--band-line); padding-block: 16px; }
.marquee-t { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-t span { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; padding: 0 22px; white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.marquee-t span::after { content: ""; width: 10px; height: 10px; background: var(--brick); transform: rotate(45deg); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-alt { background: var(--bg-2); }
.sec-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 860px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* reveal: elementet janë të dukshme; animacioni vetëm i shton lëvizje */
/* vetëm lëvizje e lehtë, pa u zhdukur: asnjë element s'mbetet bosh gjatë scroll-it të shpejtë */
.rv { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.pre { transform: translateY(18px); }

/* ---------- services ---------- */
.svc-list { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); }
.svc { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-rev .svc-txt { order: 2; }
.svc-txt { min-width: 0; }
.svc-code { font: 500 .76rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brick); display: block; margin-bottom: 14px; }
.svc-txt p { color: var(--ink-2); margin: 16px 0 0; max-width: 36em; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 2px solid var(--brick); border-bottom: 2px solid var(--brick); transform: rotate(-45deg) translateY(-3px); }
.svc-fig { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); position: relative; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; transform-style: preserve-3d; }
.svc-fig::after { content: attr(data-tag); }
.svc-svg { display: block; width: 100%; height: auto; }

/* svg palette */
.svc-svg .bp { fill: var(--surface); }
.svc-svg text { font-family: var(--f-mono); }
.soil { fill: var(--soil); } .soil-c { fill: var(--soil-2); } .pit { fill: var(--soil-2); }
.ground-l { stroke: var(--ink); stroke-width: 2; }
.safety { fill: var(--safety); } .safety-d { fill: var(--safety-d); }
.steel { fill: var(--steel); } .steel-l { fill: var(--concrete-2); stroke: var(--steel); stroke-width: 1.5; }
.glass { fill: var(--glass); }
.track { fill: var(--steel); } .wheel { fill: var(--ink); stroke: var(--concrete); stroke-width: 4; } .wheel-s { fill: var(--concrete); }
.truck-bed { fill: var(--brick); } .truck-cab { fill: var(--brick-2); } .truck-chassis { fill: var(--steel); } .truck-load { fill: var(--soil); }
.lbl { font-size: 12px; fill: var(--ink-2); letter-spacing: .04em; }
.lbl.strong { fill: var(--ink); font-weight: 600; }
.lbl-inv { fill: #F1EADF; opacity: .85; }
.form { fill: none; stroke: var(--safety-d); stroke-width: 8; }
.xps { fill: var(--xps); }
.rebar { stroke: var(--steel); stroke-width: 2.4; stroke-linecap: round; }
.spacer { fill: var(--concrete-2); }
.concrete { fill: var(--concrete); }
.ripple { fill: none; stroke: var(--concrete-2); stroke-width: 1.5; }
.hose { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.hose-tip { fill: var(--steel); }
.dim line { stroke: var(--ink-2); stroke-width: 1; } .dim text { font-size: 11px; fill: var(--ink-2); }
.cable { stroke: var(--ink); stroke-width: 1.5; }
.roof { fill: var(--roof); }
.brick { fill: var(--brick); } .brick-2 { fill: var(--brick-2); }
.plaster { fill: var(--plaster); }
.handle { fill: var(--brick-2); stroke: var(--steel); stroke-width: 1; }
.warm { fill: color-mix(in srgb, var(--brick) 9%, transparent); }
.mesh { fill: var(--concrete); }
.eps { fill: #FBFBF8; stroke: var(--concrete); stroke-width: 1; }
.eps-dot { fill: var(--concrete); opacity: .5; }
.wool { fill: #D9B65A; stroke: #A4842F; stroke-width: 1; }
.wool-l { fill: none; stroke: #A4842F; stroke-width: 1.2; }
.heat { fill: none; stroke: var(--brick); stroke-width: 3; stroke-linecap: round; }
.heat-h { fill: var(--brick); }
.thermo { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; } .thermo-f, .thermo-b { fill: var(--brick); }
.block { fill: var(--concrete); stroke: var(--concrete-2); stroke-width: 1; }
.pillar { fill: var(--concrete-2); stroke: var(--steel); stroke-width: 1; }
.cap { fill: var(--steel); }
.gate-f { fill: none; stroke: var(--steel); stroke-width: 5; }
.gate-bars line { stroke: var(--steel); stroke-width: 3; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cstep { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0; padding: 18px 18px 20px; min-width: 0; transition: opacity .3s; }
.cstep.off { opacity: .45; }
.cstep.off * { pointer-events: none; }
.cstep legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 14px; font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.cstep legend + * { clear: both; }
.cstep .n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 .78rem var(--f-mono); flex: none; }
.chips-h { margin: 4px 0 8px; font: 500 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.chips + .chips-h { margin-top: 14px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips-sm { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-name="scope"] + .chips-h + .chips-4 .chip > span, .chips-h + .chips-4 .chip > span { align-items: flex-start; text-align: left; }
.chip { position: relative; cursor: pointer; min-width: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); transition: border-color .2s, background .2s, transform .2s; }
.chip:hover > span { border-color: var(--ink-2); }
.chip b { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.chip small { color: var(--ink-2); font-size: .8rem; line-height: 1.35; }
.chip input:checked + span { border-color: var(--brick); background: color-mix(in srgb, var(--brick) 9%, var(--bg)); }
.chip input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }
.chips-sm .chip > span { padding: 10px 8px; align-items: center; text-align: center; }
.chips-sm .chip b { font-size: .84rem; }
.chip-ill svg { width: 100%; height: 40px; margin-bottom: 4px; }
.chip-ill .rb line { stroke: var(--steel); stroke-width: 1.5; }
.chip-ill .blk rect { fill: var(--brick-2); }
.chip-ill .st { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chip-ill .rf { fill: var(--roof); }
.chips-4 .chip > span, .chips-3 .chip > span { align-items: center; text-align: center; }
.dims { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dims .field { flex: 1 1 140px; }
.field > span { font: 500 .74rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 12px; min-height: 46px; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field-inline input { width: 96px; }
.field-inline > span { text-transform: none; }

.draw { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.draw-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.draw-help { font-size: .82rem; color: var(--ink-2); flex: 1 1 220px; }
.draw-tools { display: flex; gap: 6px; }
#draw-canvas { display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; touch-action: none; cursor: crosshair; }
.draw-read { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); font: .82rem var(--f-mono); color: var(--ink-2); }
.draw-read b { color: var(--ink); font-variant-numeric: tabular-nums; }
.warn { color: var(--bad); }

.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--brick); }
.seg-sm span { padding: 7px 12px; font-size: .82rem; }
.seg-wide { display: flex; } .seg-wide label { flex: 1; text-align: center; }

.floors { display: grid; gap: 10px; margin-top: 14px; }
.floor { border: 1px dashed var(--line); border-radius: var(--r); padding: 12px; display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; background: var(--bg); }
.floor-n { font: 800 1.1rem/1 var(--f-display); text-transform: uppercase; }
.floor-n small { display: block; font: .7rem var(--f-mono); color: var(--ink-2); text-transform: none; margin-top: 4px; }
.stepper { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stepper > span { font: .68rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.stepper div { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; border-radius: 50%; flex: none; }
.stepper button:hover { background: var(--bg-2); }
.stepper output { flex: 1; text-align: center; font: 600 .95rem var(--f-mono); font-variant-numeric: tabular-nums; min-width: 0; }

.opts { display: grid; gap: 10px; }
.tog, .tog-row { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); cursor: pointer; flex-wrap: wrap; }
.tog-row { cursor: default; justify-content: space-between; }
.tog > span:last-child, .tog-row > span { display: flex; flex-direction: column; flex: 1 1 180px; }
.tog b, .tog-row b { font-weight: 600; font-size: .94rem; }
.tog small, .tog-row small { color: var(--ink-2); font-size: .8rem; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tog input:checked + .sw { background: var(--brick); }
.tog input:checked + .sw::after { transform: translateX(18px); }
.tog input:focus-visible + .sw { outline: 2px solid var(--brick); outline-offset: 2px; }

.calc-out { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.render { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background:
  linear-gradient(var(--bp) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--bp) 1px, transparent 1px) 0 0 / 24px 24px, var(--surface); }
#render-canvas { display: block; width: 100%; aspect-ratio: 16 / 11; max-width: 100%; cursor: grab; touch-action: pan-y; }
#render-canvas:active { cursor: grabbing; }
.render-tip, .render-tag { position: absolute; font: .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); pointer-events: none; }
.render-tip { left: 12px; bottom: 10px; }
.render-tag { right: 12px; top: 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; }
.price { background: var(--band); color: var(--band-ink); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.price-l { font: 500 .74rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--band-ink-2); }
.price-v { font: 900 clamp(2.8rem, 5vw, 3.8rem)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.price-r, .price-m2 { font: .82rem var(--f-mono); color: var(--band-ink-2); }
.bd { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.bd summary { padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.bd-scroll { overflow-x: auto; max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
.bd-t { width: 100%; border-collapse: collapse; font-size: .82rem; }
.bd-t th { text-align: left; font: 500 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 14px; position: sticky; top: 0; background: var(--surface); }
.bd-t td { padding: 7px 14px; border-top: 1px dashed var(--line); vertical-align: top; }
.bd-t td:nth-child(2) { font-family: var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.bd-t td:last-child, .bd-t th:last-child { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bd-t tr.grp td { font: 600 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brick); padding-top: 12px; }
.fine { font-size: .78rem; color: var(--ink-2); margin: 0; }

/* ---------- gallery ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font: 500 .82rem var(--f-mono); padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; grid-auto-flow: dense; }
.gi { position: relative; overflow: hidden; border-radius: var(--r); cursor: zoom-in; grid-column: span 4; grid-row: span 3; background: var(--bg-2); border: 0; padding: 0; text-align: left; }
.gi.w { grid-column: span 8; grid-row: span 4; }
.gi.t { grid-row: span 4; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .6s; }
.gi:hover img { transform: scale(1.06); }
.gi figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(10,10,10,.78)); color: #F4F2EC; display: flex; flex-direction: column; gap: 2px; }
.gi figcaption b { font: 800 1.3rem/1 var(--f-display); text-transform: uppercase; }
.gi figcaption span { font: .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.gi.hide { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,9,.94); display: flex; align-items: center; justify-content: center; padding: 60px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: #E8E6E0; font: .86rem var(--f-mono); text-align: center; }
.lb-x, .lb-nav { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); } .lb-next { right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tm:hover { transform: translateY(-6px); }
.tm-ph { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--bg); }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; }
.tm-ph svg { width: 100%; height: 100%; display: block; }
.tm-ph .ini { font: 900 64px var(--f-display); fill: var(--brick-ink); }
.tm-b { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tm-b b { font: 800 1.25rem/1 var(--f-display); text-transform: uppercase; }
.tm-b span { font-size: .86rem; color: var(--ink-2); }
.tm-b em { font: normal .72rem var(--f-mono); color: var(--brick); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

/* ---------- offer ---------- */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.offer-l { min-width: 0; }
.offer-calc { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--surface); }
.offer-calc pre { margin: 8px 0 0; white-space: pre-wrap; font: .8rem/1.55 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }
.offer-form { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.check { display: flex; gap: 10px; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brick); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--bad); }
.form-alt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }

/* ---------- contact ---------- */
.contacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ct { display: flex; flex-direction: column; gap: 22px; padding: 20px; border: 1px solid var(--band-line); border-radius: var(--r); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; min-width: 0; transition: border-color .3s, color .3s; }
.ct::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c, var(--brick)); transform: translateY(101%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ct:hover::before, .ct:focus-visible::before { transform: none; }
.ct:hover { border-color: transparent; color: #fff; }
.ct svg { width: 34px; height: 34px; fill: currentColor; }
.ct-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-t b { font: 800 1.5rem/1 var(--f-display); text-transform: uppercase; }
.ct-t small { font: .78rem var(--f-mono); opacity: .75; overflow-wrap: anywhere; }
.ct-go { position: absolute; right: 18px; top: 16px; font-size: 1.3rem; transition: transform .3s; }
.ct:hover .ct-go { transform: translateX(4px); }
.ct-wa { --c: #1F9D55; } .ct-vb { --c: #6F4BB3; } .ct-ms { --c: #2E6BE6; } .ct-em { --c: var(--brick); } .ct-ph { --c: #3B4045; }
.copy-row { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; font-size: .9rem; }
.copied { font: .8rem var(--f-mono); color: var(--band-ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--band); color: var(--band-ink); padding-block: 0 40px; }
.foot-in { display: flex; flex-direction: column; gap: 20px; }
.titleblock { display: grid; grid-template-columns: 1.2fr 2.4fr .6fr .6fr; border: 1px solid var(--band-line); }
.titleblock div { padding: 12px 14px; border-left: 1px solid var(--band-line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.titleblock div:first-child { border-left: 0; }
.titleblock span { font: .66rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--band-ink-2); }
.titleblock b { font: 700 1rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.foot-c { margin: 0; font: .78rem var(--f-mono); color: var(--band-ink-2); }

.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1F9D55; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s; }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab svg { width: 30px; height: 30px; fill: #fff; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1F9D55; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7 } 80%, 100% { transform: scale(1.6); opacity: 0 } }

.build-intro::before { content: ""; position: absolute; inset: -60px 0 0 0; z-index: -1; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 82%, transparent) 45%); pointer-events: none; }
.fab { transition: transform .3s, opacity .3s; }
.fab.away { opacity: 0; transform: scale(.6); pointer-events: none; }
.calc-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--band); color: var(--band-ink); box-shadow: 0 -8px 30px rgba(0,0,0,.18); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.calc-mini.on { transform: none; }
.cm-t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.cm-t small { font: 500 .66rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--band-ink-2); }
.cm-t b { font: 900 1.7rem/1 var(--f-display); font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-links { position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 8px var(--gut-r) 18px var(--gut); box-shadow: 0 12px 30px rgba(0,0,0,.12); transform: translateY(-120%); transition: transform .4s cubic-bezier(.2,.8,.2,1); z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 800 1.5rem var(--f-display); text-transform: uppercase; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .svc, .calc, .offer { grid-template-columns: minmax(0, 1fr); }
  .svc-rev .svc-txt { order: 0; }
  .calc-out { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .build-sheet { display: none; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div:nth-child(3) { border-left: 0; }
  .titleblock div:nth-child(n+3) { border-top: 1px solid var(--band-line); }
}
@media (max-width: 720px) {
  .chips, .chips-3 { grid-template-columns: minmax(0, 1fr); }
  .chips-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips-2 { grid-template-columns: minmax(0, 1fr); }
  .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor-n { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gi, .gi.t { grid-column: span 1; grid-row: span 2; }
  .gi.w { grid-column: span 2; grid-row: span 2; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .ct { flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
  .ct-go { position: static; margin-left: auto; }
  .build-stages { top: calc(var(--nav-h) + 10px); }
  .build-stages li:not(.now) { display: none; }
  .build-stages li.now b { font-size: 1.3rem; }
  .build-intro .display { font-size: clamp(2.9rem, 14vw, 4rem); }
  .lead { font-size: 1rem; }
  .stat b { font-size: 2.4rem; }
  .lb-nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .bd-t thead { display: none; }
  .bd-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 8px 14px; border-top: 1px dashed var(--line); }
  .bd-t td { padding: 0; border: 0; }
  .bd-t td:first-child { grid-column: 1 / -1; font-weight: 500; margin-bottom: 2px; }
  .bd-t tr.grp { border-top: 0; padding-top: 14px; }
  .bd-t tr.grp td { padding: 0; }
  .bd-scroll { max-height: 360px; }
  .fab { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.floor.floor-2 { grid-template-columns: 110px repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .floor.floor-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
