@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/FiraXC-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/FiraXC-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/FiraXC-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/FiraXC-800-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/FiraXC-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/FiraXC-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/FiraSans-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/FiraSans-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/FiraSans-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/FiraSans-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/FiraSans-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/FiraSans-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/FiraSans-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/FiraSans-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/FiraSans-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/FiraMono-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/FiraMono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/FiraMono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/FiraMono-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/FiraMono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/FiraMono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --p-white: #ffffff;
  --p-concrete: #f2f2f0;
  --p-ink: #161616;
  --p-ink-2: #4a4a48;
  --p-grey: #6b6b68;
  --p-line: #e2e2df;
  --p-line-2: #c9c9c5;
  --p-orange: #ec6a1a;
  --p-orange-soft: #fdeadc;
  --p-orange-text: #a03f00;

  --c-bg: var(--p-white);
  --c-surface: var(--p-concrete);
  --c-ink: var(--p-ink);
  --c-ink-2: var(--p-ink-2);
  --c-muted: var(--p-grey);
  --c-line: var(--p-line);
  --c-line-2: var(--p-line-2);
  --c-accent: var(--p-orange);
  --c-on-accent: #161616;
  --c-accent-soft: var(--p-orange-soft);
  --c-accent-text: var(--p-orange-text);

  --f-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-body: "Fira Sans", system-ui, sans-serif;
  --f-mono: "Fira Mono", ui-monospace, monospace;
  --w-display: 800;
  --w-strong: 600;
  --t-display: uppercase;
  --ls-display: 0.005em;
  --lh-display: 0.98;
  --h1: clamp(2.6rem, 5vw, 4.4rem);
  --h2: clamp(2rem, 3.4vw, 3.1rem);

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-btn: 3px;
}

h3 { font-family: var(--f-body); text-transform: none; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; }
.kicker, .eyebrow { font-family: var(--f-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.kicker::before { border-radius: 0; width: 22px; height: 6px; background: var(--p-orange); }
.eb-n { background: var(--p-orange); border-color: var(--p-orange); color: var(--p-ink); border-radius: 2px; }
.brand-name { font-size: 1.5rem; }
.btn-solid:hover { background: #d95c0e; color: var(--p-ink); }
.mark { color: var(--p-ink); }
.step-n { color: var(--p-orange-text); }
.legend span.n { color: var(--p-ink); }

.dw .yard { fill: #fafaf8; stroke: var(--c-line-2); stroke-width: 1; stroke-dasharray: 4 4; }
.dw .bld { fill: #eeeeea; stroke: #8a8a85; stroke-width: 1.2; }
.dw .hl { stroke: #c9c9c3; stroke-width: 1; }
.dw .mark-l { stroke: #b9b9b3; stroke-width: 1.4; }
.dw .ct { fill: #5c6670; stroke: var(--dw-ink); stroke-width: 1.2; }
.dw .kpp { fill: var(--p-orange); }
.dw .corr { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.dw .gate { fill: none; stroke: var(--p-ink); stroke-width: 2.4; stroke-linecap: round; }
.dw .wire { fill: none; stroke: #9a2f12; stroke-width: 1.2; }
.dw .cam { fill: #fff; stroke: var(--p-ink); stroke-width: 2; }
.dw .road { fill: #dcdcd8; }
.dw .roadl { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 14 10; }
.dw .blk { fill: #b4b4ae; stroke: var(--dw-ink); stroke-width: 1; }
.dw .dimbg { fill: var(--c-card); }
.dw .ctel { fill: #5c6670; stroke: var(--dw-ink); stroke-width: 1.2; }
.dw .cast { fill: #2b3137; }
.dw .pad { fill: #d8d4c8; stroke: var(--dw-ink); stroke-width: 1; }
.dw .lock { fill: var(--p-orange); stroke: var(--dw-ink); stroke-width: 0.8; }
.dw .sandf { fill: #e3cf9c; stroke: #9c8752; stroke-width: 1; }
.dw .fbs { fill: #c8c8c3; stroke: var(--dw-ink); stroke-width: 1; }
.dw .call circle { fill: var(--p-orange); }
.dw .call text { fill: var(--p-ink); }
.dw .call .tip { fill: var(--p-ink); }

.calc { display: grid; gap: clamp(24px, 3vw, 40px); background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-in { display: grid; gap: 22px; align-content: start; }
.len-row { display: flex; align-items: center; gap: 10px; }
.len-row input { width: 140px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); font: 600 1.4rem var(--f-mono); }
.len-row input:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-focus) 25%, transparent); }
.len-row span { color: var(--c-muted); }
.len-label { display: block; font-size: 0.86rem; color: var(--c-muted); margin-bottom: 8px; }
.calc-out { background: var(--c-surface); border-radius: var(--r-md); padding: 22px 24px; display: grid; gap: 4px; align-content: start; }
.calc-out dl { margin: 0; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--c-line-2); }
.calc-out dl div:first-child { border-top: 0; }
.calc-out dt { color: var(--c-ink-2); }
.calc-out dd { margin: 0; font-family: var(--f-mono); font-weight: 500; text-align: right; }
.calc-out .total dd { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.calc-out .btn { margin-top: 14px; width: 100%; }
.calc-warn { margin: 6px 0 0; font-size: 0.88rem; color: var(--c-accent-text); }
.calc-fine { margin: 8px 0 0; font-size: 0.84rem; color: var(--c-muted); }

.cmp-3 .cmp-row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cmp-3 .cmp-row { grid-template-columns: 0.7fr 1fr 1fr 1fr; } }
