/* Zamer · цвета продукта и оформление результата (чертёж + расчёт + замер). */
:root {
  --brand: #0b6e99; --brand-2: #0d84b8; --brand-ink: #07506f; --brand-soft: #e6f2f8; --brand-line: #cbe2ee;
  --accent: #ffc93c; --accent-soft: #fff6d8; --accent-ink: #6b4f00;
}
.zm { display: flex; flex-direction: column; gap: 14px; }
.zm-head { display: flex; flex-direction: column; gap: 8px; }
.zm-no { font-size: 13px; color: var(--muted); font-weight: 500; }
.zm-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 31px; }
.zm-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 14px; font-weight: 600; border: 1px solid var(--brand-line); }
.zm-chip.nw { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.zm-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* лист чертежа */
.zm-sheet { border: 1px solid var(--brand-line); border-radius: 14px; padding: 10px 12px 8px; }
.zm-sheet-h { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); }
.zm-sheet-h span:last-child { color: var(--muted); }
.zm-svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.zm-svg text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.zm-wall { fill: none; stroke: #25302c; stroke-width: 7; stroke-linecap: square; }
.zm-thin { fill: none; stroke: #25302c; stroke-width: 1.6; }
.zm-glass { fill: none; stroke: #4da3d4; stroke-width: 5; }
.zm-rail { fill: none; stroke: #25302c; stroke-width: 1.4; stroke-dasharray: 3 3; }
.zm-furn rect, .zm-furn circle { fill: #edf1ef; stroke: #c4cdc8; stroke-width: 1.2; }
.zm-unit { fill: #fff; stroke: var(--brand); stroke-width: 2.4; }
.zm-unit-l { stroke: var(--brand); stroke-width: 1.4; opacity: .5; }
.zm-fan { fill: none; stroke: var(--brand); stroke-width: 1.6; }
.zm-route { fill: none; stroke: var(--brand); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.zm-route.x { stroke: #f2ad00; }
.zm-lbl { font-size: 11.5px; font-weight: 600; fill: #25302c; paint-order: stroke; stroke: #fbfdfe; stroke-width: 4px; stroke-linejoin: round; }
.zm-lbl.b { fill: var(--brand-ink); }
.zm-mut { fill: #7a8681; font-weight: 500; }
.zm-red { fill: var(--bad); }
.zm-room { font-size: 12.5px; font-weight: 700; fill: #9aa5a0; letter-spacing: .06em; text-transform: uppercase; }
.zm-pill { fill: var(--accent); }
.zm-pill-t { font-size: 12px; font-weight: 800; fill: #4d3800; }
.zm-tb rect { fill: #fff; stroke: #25302c; stroke-width: 1; }
.zm-tb text { font-size: 10.5px; font-weight: 650; fill: #25302c; }
.zm-tb text.m { font-weight: 500; fill: #7a8681; }
.zm-frame { fill: #fff; stroke: #25302c; stroke-width: 5; }
.zm-glassf { fill: #e1f0f8; }
.zm-open { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: 6 4; }
.zm-sill { fill: #edf1ef; stroke: #25302c; stroke-width: 1.4; }
.zm-dim { fill: none; stroke: #6b7772; stroke-width: 1.2; }
.zm-dim-t { font-size: 13px; font-weight: 700; fill: #25302c; }
.zm-times { font-size: 46px; font-weight: 800; fill: var(--brand); letter-spacing: -.02em; }
.zm-fence { fill: none; stroke: #8a9590; stroke-width: 2; stroke-dasharray: 8 5; }
.zm-house { fill: #edf1ef; stroke: #25302c; stroke-width: 3; }
.zm-cone { fill: color-mix(in srgb, var(--brand) 15%, transparent); stroke: color-mix(in srgb, var(--brand) 45%, transparent); stroke-width: 1.2; }
.zm-cam circle { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.zm-cam text { font-size: 10px; font-weight: 800; fill: #fff; }
.zm-cable { fill: none; stroke: var(--brand); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .65; }
.zm-rec { fill: #25302c; }
.zm-beds path { fill: none; stroke: #8cc084; stroke-width: 4; stroke-linecap: round; }
.zm-park rect { fill: #f1f3f2; stroke: #c4cdc8; }
.zm-park path { fill: none; stroke: #c4cdc8; stroke-width: 1.4; }

/* расчёт и замер */
.zm-calc { display: flex; flex-direction: column; gap: 7px; }
.zm-calc-h { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 2px 2px 3px; }
.zm-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 12px; border-radius: 10px; background: var(--page);
  font-size: 14.5px; line-height: 1.35; }
.zm-line b { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.zm-line.x { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.zm-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 3px; padding: 10px 2px 0; border-top: 2px solid var(--ink); }
.zm-total > span { font-weight: 650; font-size: 15.5px; }
.zm-sum { font-size: 34px; letter-spacing: -.025em; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.zm-sum i { font-style: normal; }
.zm-slots { margin-top: 8px; padding: 11px 12px 12px; border: 1px dashed var(--brand-line); border-radius: 12px; background: #fff; }
.zm-slots-h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.zm-slot-row { display: flex; gap: 8px; }
.zm-slot { position: relative; flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; }
.zm-slot b { font-weight: 600; color: var(--ink-2); }
.zm-slot .tm { font-weight: 750; font-size: 17px; font-variant-numeric: tabular-nums; }
.zm-sel { position: absolute; inset: -2px; border-radius: 11px; border: 2.5px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.zm-stamp { align-self: flex-end; margin: 10px 14px 2px 0; --rot: -6deg; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 18px;
  border: 3px solid #15803d; border-radius: 10px; color: #15803d; background: rgba(255, 255, 255, .9); text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(21, 128, 61, .22); }
.zm-stamp b { font-size: 16px; letter-spacing: .07em; font-weight: 850; }
.zm-stamp span { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; }

/* карточка расчёта в переписке */
.zm-cc { min-width: 230px; }
.zm-cc-h { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zm-cc-sum { font-size: 25px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; margin: 3px 0 2px; }
.zm-cc-s { font-size: 13px; color: var(--ink-2); }

@container (max-width: 700px) {
  .zm-body { grid-template-columns: minmax(0, 1fr); }
  .zm-sum { font-size: 28px; }
  .zm-stamp { align-self: center; margin-right: 0; }
}
