/* Kvadrat · цвета продукта и оформление результата (схема района, карточки квартир, платёж, показ). */
:root {
  --brand: #1f5fa6; --brand-2: #2a6cb5; --brand-ink: #174a82; --brand-soft: #ebf2fa; --brand-line: #c8daef;
  --accent: #f07167; --accent-soft: #fdeceb; --accent-ink: #a3362d;
}
.kv { display: flex; flex-direction: column; gap: 12px; }
.kv-head { display: flex; flex-direction: column; gap: 7px; }
.kv-no { font-size: 13px; color: var(--muted); font-weight: 500; }
.kv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 31px; }
.kv-chips-l { font-size: 13.5px; color: var(--muted); margin-right: 2px; }
.kv-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 14px; font-weight: 600; border: 1px solid var(--brand-line); white-space: nowrap; }
.kv-chip.c2 { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.kv-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.kv-n { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; font-style: normal; line-height: 1; flex: none; }

/* схема района */
.kv-map { position: relative; border: 1px solid var(--brand-line); border-radius: 14px; padding: 9px 10px 10px; background: #fbfcfd; }
.kv-map-h, .kv-side-h, .kv-blk-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.kv-map-h span:first-child, .kv-side-h span:first-child { color: var(--brand-ink); }
.kv-map-h .kv-found { color: var(--accent-ink); }
.kv-msvg { display: block; width: 100%; height: auto; margin-top: 7px; border-radius: 9px; }
.kv-msvg text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.kv-mbg { fill: #eef2f6; }
.kv-msvg.zag .kv-mbg { fill: #eef3e9; }
.kv-qb > * { fill: #e1e7ed; }
.kv-bld > * { fill: #cbd4de; }
.kv-bld.z > * { fill: #b5c9e2; }
.kv-bld.c > * { fill: #c6d5e8; }
.kv-bld.v > * { fill: #c2cbd5; }
.kv-park { fill: #d8ebd0; }
.kv-trees circle { fill: #bddbaf; }
.kv-trees.f circle { fill: #b3d4a2; }
.kv-track { fill: #e2efdb; stroke: #c0d9b3; stroke-width: 1.5; }
.kv-water { fill: none; stroke: #cde2f4; stroke-width: 30; }
.kv-lake { fill: #cde2f4; }
.kv-forest { fill: #d3e7c9; }
.kv-city { fill: #e2e7ec; }
.kv-cityb > * { fill: #cfd6de; }
.kv-rail { fill: none; stroke: #98a4b0; stroke-width: 4; }
.kv-rail.t { stroke: #fff; stroke-width: 1.8; stroke-dasharray: 7 7; }
.kv-sq { fill: #d8ebd0; stroke: #fff; stroke-width: 6; }
.kv-gas { fill: none; stroke: #dca600; stroke-width: 1.7; stroke-dasharray: 5 3; }
.kv-sc, .kv-sf { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kv-sc { stroke: #d2dae3; }
.kv-sf { stroke: #fff; }
.kv-sc.M { stroke-width: 14; } .kv-sf.M { stroke-width: 11; }
.kv-sc.m { stroke-width: 9; } .kv-sf.m { stroke-width: 6.5; }
.kv-sc.l { stroke-width: 6; } .kv-sf.l { stroke-width: 4; }
.kv-sc.hw { stroke: #ebb57c; stroke-width: 14; } .kv-sf.hw { stroke: #fff3e2; stroke-width: 10; }
.kv-ml { font-size: 11px; font-style: italic; fill: #7d8a98; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.kv-ml.b { font-style: normal; font-weight: 650; fill: #687685; }
.kv-ml.z { font-style: normal; font-weight: 700; font-size: 11.5px; fill: #3f6390; stroke: #e1e7ed; }
.kv-ml.g { fill: #5c8c4f; stroke: #d8ebd0; }
.kv-ml.w { fill: #4b84bb; stroke: #cde2f4; }
.kv-ml.v { font-style: normal; font-weight: 650; font-size: 11.5px; fill: #55626f; }
.kv-ml.gs { font-style: normal; font-weight: 700; fill: #b58500; }
.kv-dot { fill: #a9b5c2; stroke: #fff; stroke-width: 1.6; }
.kv-dim { fill: rgba(250, 251, 252, .42); }
.kv-zone.w-h { transform: scale(.08); transition: transform 1.15s cubic-bezier(.2, .75, .25, 1), opacity .35s; }
.kv-zone.w-h.in { transform: none; }
.kv-zf { fill: color-mix(in srgb, var(--brand) 13%, transparent); }
.kv-zs { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 8 5; }
.kv-zl rect { fill: var(--brand); }
.kv-zl text { fill: #fff; font-size: 12.5px; font-weight: 750; }
.kv-poi.w-h.pop { transform: scale(.4); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.kv-poi.w-h.in { transform: none; }
.kv-poi-c { fill: var(--brand-ink); stroke: #fff; stroke-width: 2.5; }
.kv-poi-g path, .kv-poi-g circle { fill: #fff; }
.kv-poi-g .s { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; }
.kv-poi-t { font-size: 12.5px; font-weight: 750; fill: var(--brand-ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.kv-pin.w-h { transform: translateY(-14px) scale(.3); transition: transform .5s cubic-bezier(.3, 1.45, .5, 1), opacity .25s; }
.kv-pin.w-h.in { transform: none; }
.kv-pin path { fill: var(--brand); stroke: #fff; stroke-width: 1.6; }
.kv-pin circle { fill: #fff; }
.kv-pin.top path { fill: var(--accent); }
.kv-pin text { fill: #fff; font-size: 12px; font-weight: 800; }
.kv-shd { fill: rgba(17, 30, 45, .22); }
.kv-tag rect { fill: #fff; stroke: var(--accent); stroke-width: 1.4; }
.kv-tag text { font-size: 12px; font-weight: 750; fill: var(--accent-ink); }
.kv-tag.on rect { fill: var(--accent); }
.kv-tag.on text { fill: #fff; }
.kv-ring { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: var(--accent); stroke-width: 2.4; }
.kv-pick.w-h:not(.kv-tag) { transform: scale(.4); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.kv-pick.w-h.in { transform: none; }
.kv-rt { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1 6; stroke-linecap: round; stroke-linejoin: round; }
.kv-stamp { position: absolute; --rot: -7deg; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 14px;
  border: 3px solid #15803d; border-radius: 10px; color: #15803d; background: rgba(255, 255, 255, .93); text-transform: uppercase; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(21, 128, 61, .22), 0 8px 20px -10px rgba(21, 128, 61, .55); }
.kv-stamp.br { right: 14px; bottom: 16px; }
.kv-stamp.tl { left: 18px; top: 40px; }
.kv-stamp.tr { right: 14px; top: 40px; }
.kv-stamp.bl { left: 18px; bottom: 16px; }
.kv-stamp b { font-size: 15px; letter-spacing: .07em; font-weight: 850; white-space: nowrap; }
.kv-stamp span { font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }

/* планировки */
.kv-plan { position: relative; border-radius: 9px; background: #fbfcfd; border: 1px solid var(--line-2); overflow: hidden; }
.kv-plan > .kv-n { position: absolute; top: 5px; left: 5px; box-shadow: 0 0 0 2px #fff; }
.kv-plan > .kv-fc { position: absolute; right: 5px; bottom: 5px; box-shadow: 0 0 0 1.5px #fff; }
.kv-psvg { display: block; width: 100%; height: auto; }
.kv-pr { fill: #fff; }
.kv-pr.w { fill: #e6eff9; }
.kv-pr.l { fill: #edf0f3; }
.kv-pr.c { fill: #f6f7f9; }
.kv-pw { fill: none; stroke: #273444; stroke-width: 4; stroke-linecap: square; }
.kv-pi { fill: none; stroke: #273444; stroke-width: 2.2; stroke-linecap: square; }
.kv-pth { fill: none; stroke: #273444; stroke-width: 1.3; }
.kv-win { fill: #fff; stroke: #273444; stroke-width: .9; }
.kv-glass { fill: none; stroke: #6aa5dc; stroke-width: 1.6; }
.kv-door { fill: none; stroke: #95a2af; stroke-width: 1; }
.kv-furn > * { fill: #eff3f6; stroke: #a5b0bc; stroke-width: .9; }
.kv-furn > .ln { fill: none; }
.out .kv-pw { stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.out .kv-pi { stroke-width: 1.1; }
.out .kv-pth { stroke: #7d8a96; stroke-width: 1.3; stroke-dasharray: 5 3; }
.kv-pw.br { stroke: var(--brand); stroke-width: 2.8; }
.kv-lawn { fill: #e5f0dc; }
.kv-road { fill: #e1e5ea; }
.kv-drive { fill: #e8ebef; }
.kv-deck { fill: #f1e3cd; stroke: #cdab82; stroke-width: .8; }
.kv-deckl { fill: none; stroke: #cdab82; stroke-width: .7; }
.kv-hsf { fill: #fff; }
.kv-car { fill: #c6d0db; stroke: #9eabb8; stroke-width: .8; }
.kv-tree > * { fill: #b6d6a5; stroke: #98c286; stroke-width: .8; }
.kv-gasl { fill: none; stroke: #dca600; stroke-width: 1.5; stroke-dasharray: 4 2.5; }
.kv-plotf { fill: color-mix(in srgb, var(--brand) 12%, #fff); }
.kv-nb { fill: #d4dbe2; }
.kv-wire { fill: none; stroke: #56636f; stroke-width: .8; }
.kv-pole { fill: #fff; stroke: #56636f; stroke-width: 1; }
.kv-pole.on { fill: var(--brand); stroke: var(--brand); }
.kv-walk { fill: #eaedf0; }
.kv-flow { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kv-ghost { fill: none; stroke: var(--brand); stroke-width: 1.1; stroke-dasharray: 3 2.5; }

/* карточки квартир */
.kv-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.kv-side-h { padding: 1px 2px 0; }
.kv-flats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.kv-flat { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px 6px 9px; min-width: 0; }
.kv-fi { padding: 7px 4px 0; min-width: 0; }
.kv-fi b { display: block; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-fi small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-price { display: block; margin-top: 3px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv-fc { font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.kv-sel { position: absolute; inset: -2px; border-radius: 13px; border: 2.5px solid var(--accent); pointer-events: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* расчёт: платёж, маршрут показов, сравнение */
.kv-blk { border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px 10px; background: #fff; }
.kv-blk-h { margin-bottom: 7px; }
.kv-blk-h span:first-child { color: var(--ink-2); }
.kv-pays { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.kv-pt { border-radius: 10px; padding: 7px 10px 9px; background: var(--page); min-width: 0; }
.kv-pt.good { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.kv-pt small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-pt b { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv-pt.good b { color: var(--brand); }
.kv-bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); margin-top: 5px; overflow: hidden; }
.kv-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); transform-origin: left; transition: transform .9s var(--ease) .1s; }
.kv-pt.mkt .kv-bar i { background: #a1aebc; }
.kv-pt.w-h .kv-bar i { transform: scaleX(0); }
.kv-pt.w-h.in .kv-bar i { transform: none; }
.kv-blk-f { margin-top: 7px; font-size: 13px; color: var(--muted); }
.kv-stop { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; background: var(--brand-soft); }
.kv-stop > b { font-size: 19px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.kv-stop em { display: block; font-style: normal; font-weight: 650; font-size: 14.5px; }
.kv-stop small { display: block; font-size: 13px; color: var(--muted); }
.kv-stop .kv-n { margin-left: auto; }
.kv-hop { font-size: 13px; color: var(--accent-ink); padding: 5px 0 5px 16px; border-left: 2px dotted var(--accent); margin: 2px 0 2px 32px; }
.kv-cr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 2px;
  border-top: 1px solid var(--line-2); font-size: 14px; }
.kv-cr > span { color: var(--ink-2); }
.kv-cr > b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-cr > b.ok { color: var(--good-ink); }
.kv-cr > b.bad { color: var(--bad-ink); }
.kv-cr > b.ok::before { content: "✓ "; }
.kv-cr > b.bad::before { content: "✕ "; }
.kv-cr.kv-ch { border-top: 0; padding: 0 2px 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kv-cr.kv-ch > span { color: var(--ink-2); }

/* карточки в переписке */
.kv-cc { min-width: 250px; }
.kv-cc-h { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kv-cc-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 7px; }
.kv-cc-pl { position: relative; display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.kv-cc-pl .kv-n { position: absolute; top: 4px; left: 4px; width: 17px; height: 17px; font-size: 10.5px; }
.kv-cc-f b { display: block; font-size: 13px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-cc-f small { display: block; font-size: 13px; color: var(--brand-ink); font-weight: 650; }
.kv-cc-sum { font-size: 25px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; margin: 3px 0 2px; }
.kv-cc-sum small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kv-cc-s { font-size: 13px; color: var(--ink-2); }
.kv-cc-r { display: flex; gap: 10px; align-items: baseline; font-size: 14px; margin-top: 5px; }
.kv-cc-r b { color: var(--brand); font-variant-numeric: tabular-nums; }
.kv-cc-r + .kv-cc-s { margin-top: 4px; }
.kv-cc-c { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 4px 0; border-top: 1px solid var(--line-2); }
.kv-cc-h + .kv-cc-c { margin-top: 5px; border-top: 0; }
.kv-cc-c span { color: var(--ink-2); }
.kv-cc-c b { font-weight: 650; white-space: nowrap; }
.kv-cc-c b.ok { color: var(--good-ink); }
.kv-cc-c b.bad { color: var(--bad-ink); }
.kv-cc-c b.ok::before { content: "✓ "; }
.kv-cc-c b.bad::before { content: "✕ "; }

/* миниатюры сетки и итог для снимков: полоски платежа сразу в конечном виде */
.w-final .kv-bar i, .w-th-in .kv-bar i { transition: none !important; }
.kv-qa .w-h, .kv-qa .w-d, .kv-qa .w-stamp, .kv-qa .w-result, .kv-qa .w-msg, .kv-qa .w-note, .kv-qa .kv-bar i { transition: none !important; animation: none !important; }

@container (max-width: 700px) {
  .kv-body { grid-template-columns: minmax(0, 1fr); }
  .kv-fi small { white-space: normal; }
  .kv-price { font-size: 16px; }
  .kv-pt b { font-size: 21px; }
  .kv-pt small { white-space: normal; }
  .kv-stamp, .kv-stamp.br, .kv-stamp.tl, .kv-stamp.tr, .kv-stamp.bl { position: relative; inset: auto; width: max-content; margin: 12px auto 4px; }
  .kv-cr { font-size: 13.5px; }
}
