/* БурГрад — волна 4 (inc/v4c.php): карта глубин .v4m, ссылка на карту .v4-dl, наборы .v4s, «Что с колодцем?» .v4d,
   «Сколько человек живёт?» .v4p, подбор домика .v4k. Один селектор — одна строка деклараций. */

/* ---------- Карта глубин: первый экран ---------- */
.v4m { padding: 0 0 calc(var(--sec) * .6); }
.v4m__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl) var(--space-2xl); align-items: end; padding: var(--space-xl) 0 var(--space-xl); }
.v4m .bg-kicker { flex-wrap: wrap; margin-bottom: var(--space-md); }
.v4m__h1 { font-size: clamp(28px, 3.5vw, 48px); margin-bottom: var(--space-md); }
.v4m__lead { max-width: 62ch; margin: 0; }
.v4m__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: var(--space-sm); }
.v4m__facts li { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.v4m__facts b { font: 700 19px/1.15 var(--f-display); white-space: nowrap; }
.v4m__facts span { font-size: 13px; color: var(--ink-2); }

.v4m__tool { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--space-xl); align-items: start; }
.v4m__mapcol { display: grid; gap: var(--space-md); min-width: 0; }
.v4m__search { position: relative; }
.v4m__sico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-2); display: grid; pointer-events: none; }
.v4m__search input { width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 17px/1 var(--f-text); transition: border-color .2s; }
.v4m__search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in oklch, var(--orange) 35%, transparent); }
.v4m__list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); max-height: 340px; overflow: auto; }
.v4m__list [role="option"] { display: flex; justify-content: space-between; gap: var(--space-md); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.v4m__list [role="option"] span { color: var(--ink-2); font-size: 14px; text-align: right; }
.v4m__list [aria-selected="true"], .v4m__list [role="option"]:hover { background: color-mix(in oklch, var(--orange) 12%, var(--surface)); }
.v4m__none { padding: 10px 12px; color: var(--ink-2); font-size: 15px; }

.v4m__fig { margin: 0; padding: 10px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.v4m-map { display: block; width: 100%; height: auto; font-family: var(--f-text); user-select: none; -webkit-tap-highlight-color: transparent; }
.v4m-grid { stroke: var(--line); stroke-width: 1; opacity: .7; }
.v4m-sec { stroke: var(--surface); stroke-width: 2; transition: fill .4s var(--ease); }
.v4m-sec--a { fill: color-mix(in oklch, var(--water) 13%, transparent); }
.v4m-sec--b { fill: color-mix(in oklch, var(--water-deep) 13%, transparent); }
.v4m-sec--c { fill: color-mix(in oklch, var(--navy) 11%, transparent); }
.v4m-sec--a.is-on { fill: color-mix(in oklch, var(--water) 30%, transparent); }
.v4m-sec--b.is-on { fill: color-mix(in oklch, var(--water-deep) 28%, transparent); }
.v4m-sec--c.is-on { fill: color-mix(in oklch, var(--navy) 24%, transparent); }
.v4m-dir { font: 700 11px/1 var(--f-display); fill: var(--ink-2); text-anchor: middle; letter-spacing: .04em; }
.v4m-dir tspan + tspan { font: 500 11px/1 var(--f-text); letter-spacing: 0; }
.v4m-ring { fill: none; stroke: var(--ink-2); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 4 6; }
.v4m-ring__t { font-size: 11px; fill: var(--ink-2); }
.v4m-mkad { fill: var(--surface); stroke: var(--navy); stroke-width: 2; }
.v4m-mkad__t { font: 700 12px/1 var(--f-display); fill: var(--navy); text-anchor: middle; }
.v4m-north path { fill: var(--orange); }
.v4m-north text { font: 700 12px/1 var(--f-display); fill: var(--ink-2); text-anchor: middle; }
.v4m-pt { cursor: pointer; outline: none; }
.v4m-pt__hit { fill: transparent; }
.v4m-pt__dot { stroke: var(--surface); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.v4m-pt--a .v4m-pt__dot { fill: var(--water); }
.v4m-pt--b .v4m-pt__dot { fill: var(--water-deep); }
.v4m-pt--c .v4m-pt__dot { fill: var(--navy); }
.v4m-pt__halo { fill: none; stroke: var(--orange); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s var(--ease); }
.v4m-pt__t { font: 700 13px/1 var(--f-text); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; opacity: 0; transition: opacity .2s; pointer-events: none; }
.v4m-pt:hover .v4m-pt__dot, .v4m-pt:focus-visible .v4m-pt__dot { transform: scale(1.3); }
.v4m-pt:hover .v4m-pt__t, .v4m-pt:focus-visible .v4m-pt__t, .v4m-pt.is-on .v4m-pt__t { opacity: 1; }
.v4m-pt:focus-visible .v4m-pt__halo { opacity: .6; }
.v4m-pt.is-on .v4m-pt__dot { transform: scale(1.45); fill: var(--orange); }
.v4m-pt.is-on .v4m-pt__halo { opacity: 1; animation: v4m-pulse 2.4s var(--ease) infinite; }
@keyframes v4m-pulse { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
.v4m__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 6px 2px; font-size: 14px; color: var(--ink-2); }
.v4m__legend span { display: inline-flex; align-items: center; gap: 8px; }
.v4m-sw { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.v4m-sw--a { background: var(--water); }
.v4m-sw--b { background: var(--water-deep); }
.v4m-sw--c { background: var(--navy); }
.v4m__legend-note { margin-left: auto; }

/* Карточка города — «паспорт участка» */
.v4m__card { position: sticky; top: 24px; display: grid; gap: var(--space-md); padding: var(--space-xl) var(--space-lg); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.v4m__card.is-flash { animation: v4m-flash .6s var(--ease); }
@keyframes v4m-flash { from { box-shadow: 0 0 0 3px var(--orange), var(--shadow); } to { box-shadow: 0 0 0 1px var(--line), var(--shadow); } }
.v4m__empty p { margin: 0 0 var(--space-sm); color: var(--ink-2); }
.v4m__full { display: grid; gap: var(--space-md); }
.v4m__full[hidden], .v4m__empty[hidden] { display: none; }
.v4m__kick { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); }
.v4m__ct { margin: 0; font: 750 clamp(24px, 2.4vw, 32px)/1.1 var(--f-display); color: var(--ink); }
.v4m__empty .v4m__ct { margin-bottom: var(--space-sm); }
.v4m__rayon { margin: -8px 0 0; color: var(--ink-2); }
.v4m__nums { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: var(--space-md); align-items: center; padding: var(--space-md); border-radius: var(--r-md); background: var(--surface-2); }
.v4m__nums dl { margin: 0; display: grid; gap: var(--space-md); }
.v4m__nums dt { font-size: 13px; color: var(--ink-2); }
.v4m__nums dd { margin: 2px 0 0; font: 700 21px/1.2 var(--f-display); }
.v4m-col { display: block; width: 100%; height: auto; overflow: visible; }
.v4m-col__ax { stroke: var(--ink-2); stroke-width: 1.5; }
.v4m-col__t { stroke: var(--ink-2); stroke-width: 1.5; }
.v4m-col__tl, .v4m-col__u { font: 500 12px/1 var(--f-text); fill: var(--ink-2); text-anchor: end; }
.v4m-col__u { text-anchor: middle; }
.v4m-col__lb { font: 600 12px/1 var(--f-text); fill: var(--ink-2); text-anchor: middle; }
.v4m-col__sand { fill: var(--sand); stroke: var(--loam); stroke-width: 1.5; transform-box: fill-box; transform-origin: top; }
.v4m-col__lime { fill: url(#v4m-brick); stroke: var(--clay); stroke-width: 1.5; transform-box: fill-box; transform-origin: top; }
.v4m-brick-bg { fill: color-mix(in oklch, var(--sand) 55%, var(--surface)); }
.v4m-brick-ln { fill: none; stroke: color-mix(in oklch, var(--clay) 60%, transparent); stroke-width: 1; }
.v4m-col .is-grow { animation: v4m-grow .7s var(--ease) both; }
@keyframes v4m-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.v4m-col__v { font: 700 13px/1 var(--f-display); fill: var(--ink); text-anchor: middle; }
.v4m-col__v.is-in { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.v4m__calc { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.v4m__calc .bg-btn { flex: 1 1 200px; padding: 0 16px; font-size: 15px; }
.v4m__calc [hidden], .v4m__deep[hidden] { display: none; }
.v4m__deep { margin: 0; font-size: 14px; color: var(--ink-2); }
.v4m__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.v4m__links a { color: var(--orange-ink); font-weight: 600; }
.v4m__note { margin: 0; padding-top: var(--space-md); border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); }

/* Таблицы страницы карты */
.v4m-tbl__city { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 650; text-align: left; text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; }
.v4m-tbl__city:hover { color: var(--orange-ink); }
.v4m-tbl--all table { min-width: 860px; font-size: 15px; }
.v4m-tbl--all td:last-child { white-space: nowrap; }
.v4m-tbl a { color: var(--orange-ink); }
.v4m-near { margin-top: var(--space-2xl); }
.v4m-near > p { color: var(--ink-2); max-width: 70ch; margin: 0 0 var(--space-lg); }
.v4m-near ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-sm); }
.v4m-near a { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.v4m-near a:hover { box-shadow: 0 0 0 2px var(--orange); transform: translateY(-2px); }
.v4m-near span { font-size: 13px; color: var(--ink-2); }

/* ---------- Ссылка на карту глубин (услуги и разделы) ---------- */
.v4-dl { padding: 0 0 calc(var(--sec) * .5); }
.v4-dl__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; padding: var(--space-md) var(--space-xl); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.v4-dl__in:hover { box-shadow: 0 0 0 2px var(--orange), var(--shadow); transform: translateY(-2px); }
.v4-dl__pic { width: 44px; height: 68px; }
.v4-dl__ax { stroke: var(--ink-2); stroke-width: 2; }
.v4-dl__s { fill: var(--sand); stroke: var(--loam); stroke-width: 1.5; }
.v4-dl__l { fill: color-mix(in oklch, var(--clay) 45%, var(--surface)); stroke: var(--clay); stroke-width: 1.5; }
.v4-dl__txt { display: grid; gap: 4px; }
.v4-dl__h { font: 700 clamp(18px, 1.7vw, 22px)/1.2 var(--f-display); }
.v4-dl__t { color: var(--ink-2); font-size: 15px; }
.v4-dl__go { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--orange-ink); white-space: nowrap; }
.v4-dl__go svg { width: 18px; height: 18px; }

/* ---------- Готовые наборы: карточки-бирки ---------- */
.v4s { padding: calc(var(--sec) * .75) 0; }
.v4s__head { margin-bottom: var(--space-xl); }
.v4s__head .bg-kicker { margin-bottom: var(--space-md); color: var(--orange-ink); }
.v4s__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.v4s__card { position: relative; display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg) var(--space-lg); border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.v4s__card::before { content: ""; position: absolute; top: 18px; right: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.v4s__card:hover { box-shadow: 0 0 0 2px var(--navy), var(--shadow); transform: translateY(-3px); }
.v4s__tag { margin: 0; padding-right: 30px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.v4s__name { margin: 0; font: 700 clamp(20px, 1.8vw, 24px)/1.2 var(--f-display); }
.v4s__sub { margin: 0; color: var(--ink-2); font-size: 15px; }
.v4s__lines { flex: 1 0 auto; align-content: start; list-style: none; margin: var(--space-sm) 0 0; padding: var(--space-md) 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 15px; }
.v4s__lines li { display: grid; grid-template-columns: minmax(0, auto) minmax(12px, 1fr) auto; align-items: baseline; gap: 8px; }
.v4s__lines i { border-bottom: 1.5px dotted color-mix(in oklch, var(--ink-2) 50%, transparent); transform: translateY(-4px); }
.v4s__lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.v4s__sum { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin: var(--space-sm) 0 0; padding-top: var(--space-md); border-top: 2px solid var(--ink); }
.v4s__sum span { font-weight: 600; color: var(--ink-2); }
.v4s__sum b { font: 800 clamp(24px, 2.2vw, 30px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.v4s__act { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: auto; padding-top: var(--space-md); }
.v4s__act .bg-btn { flex: 1 1 180px; padding: 0 16px; }
.v4s__note { margin: 0; font-size: 14px; color: var(--ink-2); }
.v4s__foot { margin: var(--space-lg) 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- «Что с колодцем?»: признак ↔ разрез шахты ---------- */
.v4d { padding: calc(var(--sec) * .75) 0; background: var(--surface); border-block: 1px solid var(--line); }
.v4d__head { margin-bottom: var(--space-xl); }
.v4d__head .bg-kicker { margin-bottom: var(--space-md); color: var(--orange-ink); }
.v4d__in { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(220px, 300px) minmax(0, 1.25fr); gap: var(--space-xl); align-items: start; }
.v4d__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.v4d__list button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--bg); text-align: left; font-weight: 600; font-size: 16px; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.v4d__list button:hover { border-color: var(--ink-2); }
.v4d__list [aria-selected="true"] { border-color: var(--navy); background: color-mix(in oklch, var(--navy) 8%, var(--surface)); }
.v4d__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--navy); color: oklch(97% .01 258); font: 700 13px/1 var(--f-display); }
.v4d__list [aria-selected="true"] .v4d__n { background: var(--orange); color: var(--on-accent); }
.v4d__pic { margin: 0; }
.v4d__svg { display: block; width: 100%; height: auto; }
.v4d__soil { fill: color-mix(in oklch, var(--loam) 22%, var(--surface)); }
.v4d__gl { stroke: var(--soil); stroke-width: 2; }
.v4d__aq { stroke: var(--water); stroke-width: 2; stroke-dasharray: 6 5; }
.v4d__roof { fill: var(--clay); }
.v4d__cap { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; }
.v4d__ring { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.5; }
.v4d__ring--off { fill: var(--surface-2); }
.v4d__crack { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.v4d__water { fill: color-mix(in oklch, var(--water) 55%, transparent); }
.v4d__filter { fill: var(--sand); stroke: var(--loam); stroke-width: 1.5; }
.v4d__lvl { stroke: var(--water-deep); stroke-width: 3; stroke-linecap: round; }
.v4d__arrow { fill: none; stroke: var(--water-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v4d__z > * { transition: stroke .3s var(--ease), stroke-width .3s var(--ease), fill .3s var(--ease); }
.v4d__z.is-on > :not(.v4d__arrow):not(.v4d__lvl) { stroke: var(--orange); stroke-width: 3; }
.v4d__z.is-on .v4d__water { fill: color-mix(in oklch, var(--water) 75%, var(--orange) 10%); }
.v4d__pin { cursor: pointer; }
.v4d__pin circle { fill: var(--navy); stroke: var(--surface); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease), fill .3s; }
.v4d__pin text { font: 700 13px/1 var(--f-display); fill: oklch(97% .01 258); text-anchor: middle; pointer-events: none; }
.v4d__pin.is-on circle { fill: var(--orange); transform: scale(1.18); }
.v4d__cards { min-width: 0; }
.v4d__card { display: grid; gap: var(--space-md); padding: var(--space-xl) var(--space-lg); border-radius: var(--r-lg); background: var(--bg); box-shadow: 0 0 0 1px var(--line); animation: v4d-in .45s var(--ease) both; }
@keyframes v4d-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.v4d__card[hidden] { display: none; }
.v4d__ch { margin: 0; font: 750 clamp(20px, 2vw, 26px)/1.15 var(--f-display); }
.v4d__why, .v4d__do { margin: 0; }
.v4d__why b, .v4d__do b { font-weight: 700; }
.v4d__svc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1.5px var(--navy); text-decoration: none; font-weight: 650; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.v4d__svc:hover { box-shadow: 0 0 0 2px var(--orange); transform: translateY(-2px); }
.v4d__svc b { font: 700 17px/1 var(--f-display); white-space: nowrap; }
.v4d__svc svg { width: 18px; height: 18px; }
.v4d__alt { color: var(--orange-ink); font-size: 15px; }
.v4d__act { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.v4d__act .bg-btn { flex: 1 1 170px; padding: 0 18px; }

/* ---------- «Сколько человек живёт?» в каталоге схем септиков ---------- */
.v4p { display: grid; grid-template-columns: 200px minmax(220px, 1fr) minmax(0, 1.3fr); gap: var(--space-xl); align-items: center; margin-bottom: var(--space-lg); padding: var(--space-lg) var(--space-xl); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.v4p__house svg { display: block; width: 100%; height: auto; }
.v4p__roof { fill: none; stroke: var(--clay); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.v4p__wall { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.v4p__ground { stroke: var(--soil); stroke-width: 3; }
.v4p__man { fill: var(--navy); animation: v4p-in .4s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes v4p-in { from { opacity: 0; } to { opacity: 1; } }
.v4p__ctl { display: grid; gap: var(--space-md); }
.v4p__h { margin: 0; font: 700 clamp(19px, 1.7vw, 22px)/1.2 var(--f-display); }
.v4p__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px auto; gap: 10px; align-items: center; }
.v4p__pm { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; transition: border-color .2s, transform .2s var(--ease); }
.v4p__pm:hover { border-color: var(--ink); }
.v4p__pm:active { transform: scale(.94); }
.v4p__out { min-width: 2.2ch; font: 800 28px/1 var(--f-display); font-variant-numeric: tabular-nums; text-align: right; }
.v4p__mode { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--surface-2); width: max-content; max-width: 100%; }
.v4p__mode button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 15px; transition: background-color .2s, box-shadow .2s; }
.v4p__mode [aria-checked="true"] { background: var(--surface); box-shadow: 0 1px 3px oklch(25% .06 258 / .18); }
.v4p__res { display: grid; gap: 8px; }
.v4p__f { margin: 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.v4p__v { margin: 0; font-size: 17px; }
.v4p__note { margin: 0; font-size: 14px; color: var(--ink-2); }
.v4p__act { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: 4px; }
.v4p__act .bg-btn { min-height: 46px; padding: 0 18px; }
.v4p__act [hidden] { display: none; }
.v4p-on [data-item] { transition: opacity .35s var(--ease), filter .35s var(--ease), box-shadow .35s var(--ease); }
.v4p-on [data-item].is-off { opacity: .45; filter: saturate(.3); }
.v4p-on .bg-pc.is-fit { border-color: var(--navy); }
.v4p-on .bg-pc.is-best { box-shadow: 0 0 0 3px var(--orange); }
.v4p-on .bg-pc.is-best::after { content: "Подходит лучше всего"; position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: var(--orange); color: var(--on-accent); font: 700 12px/1 var(--f-text); }
.bg-pc.is-flash { animation: v4p-flash 1s var(--ease); }
@keyframes v4p-flash { 0%, 40% { box-shadow: 0 0 0 5px var(--orange); } 100% { box-shadow: 0 0 0 3px var(--orange); } }

/* ---------- Подбор домика по шагам ---------- */
.v4k { margin-bottom: var(--space-lg); }
.v4k__mode { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--surface-2); margin-bottom: var(--space-md); max-width: 100%; }
.v4k__mode button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: none; font-weight: 650; font-size: 15px; transition: background-color .2s, box-shadow .2s; }
.v4k__mode [aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px oklch(25% .06 258 / .18); }
.v4k__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-xl); padding: var(--space-lg); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); animation: v4d-in .4s var(--ease) both; }
.v4k__panel[hidden] { display: none; }
.v4k-pick .bg-shop__bar, .v4k-pick .bg-shop__status, .v4k-pick [data-grid], .v4k-pick [data-more], .v4k-pick [data-empty] { display: none; }
.v4k__steps { display: grid; gap: var(--space-lg); align-content: start; }
.v4k__step { display: grid; gap: 10px; transition: opacity .3s; }
.v4k__step.is-wait { opacity: .7; }
.v4k__sl { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.v4k__sl span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: oklch(97% .01 258); font: 700 12px/1 var(--f-display); }
.v4k__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.v4k__opts button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; transition: border-color .2s, background-color .2s, opacity .2s; }
.v4k__opts button small { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; text-align: center; }
.v4k__opts button:hover { border-color: var(--ink-2); }
.v4k__opts [aria-pressed="true"] { border-color: var(--navy); background: color-mix(in oklch, var(--navy) 9%, var(--surface)); }
.v4k__opts [aria-pressed="true"] small { background: var(--navy); color: oklch(97% .01 258); }
.v4k__opts [aria-disabled="true"] { opacity: .38; border-style: dashed; cursor: not-allowed; }
.v4k__res { display: grid; gap: var(--space-md); align-content: start; min-width: 0; }
.v4k__count { margin: 0; font-size: 16px; }
.v4k__count b { font-family: var(--f-display); }
.v4k__paint { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.v4k__paint input { height: 46px; padding: 0 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 16px/1 var(--f-text); }
.v4k__paint input:focus { outline: none; border-color: var(--navy); }
.v4k__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.v4k__it { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px var(--space-md); align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); animation: v4d-in .35s var(--ease) both; }
.v4k__it img, .v4k__noimg { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--surface-2); grid-row: span 2; }
.v4k__tx p { margin: 0; }
.v4k__code { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.v4k__nm { font: 700 17px/1.2 var(--f-display); }
.v4k__sp { font-size: 13px; color: var(--ink-2); }
.v4k__pr { margin: 0; display: grid; text-align: right; }
.v4k__pr b { font: 700 18px/1.1 var(--f-display); white-space: nowrap; }
.v4k__pr span { font-size: 12px; color: var(--ink-2); }
.v4k__b { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.v4k__b .bg-btn { min-height: 42px; padding: 0 18px; }
.v4k__go { border: 0; background: none; padding: 6px 0; color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v4k__morewrap { display: flex; justify-content: center; padding-top: 4px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .v4d__in { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr); }
  .v4d__list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v4p { grid-template-columns: 160px minmax(0, 1fr); }
  .v4p__res { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .v4m__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .v4m__tool { grid-template-columns: minmax(0, 1fr); }
  .v4m__card { position: static; }
  .v4s__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .v4k__panel { grid-template-columns: minmax(0, 1fr); }
  .v4-dl__in { grid-template-columns: auto minmax(0, 1fr); }
  .v4-dl__go { grid-column: 2; }
}
@media (max-width: 640px) {
  .v4m__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v4m__facts li { padding: 10px; }
  .v4m__facts b { font-size: 14px; }
  .v4m__fig { padding: 4px; }
  .v4m-dir, .v4m-ring__t { display: none; }
  .v4m-pt__hit { r: 26px; }
  .v4m-pt__dot { r: 10px; }
  .v4m-pt__t { font-size: 22px; stroke-width: 6px; }
  .v4m-pt__t, .v4m-pt:hover .v4m-pt__t { opacity: 0; }
  .v4m-pt.is-on .v4m-pt__t { opacity: 1; }
  .v4m-mkad__t { font-size: 13px; }
  .v4m__legend { font-size: 13px; }
  .v4m__legend-note { margin-left: 0; }
  .v4m__card { padding: var(--space-lg) var(--space-md); }
  .v4m__nums { grid-template-columns: minmax(0, 1fr) 140px; padding: 12px; }
  .v4m-tbl--all table { min-width: 0; }
  .v4m-tbl tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .v4m-tbl tbody th { grid-column: 1 / -1; }
  .v4m-tbl tbody td { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; align-content: start; }
  .v4m-tbl tbody td::before { font-size: 12px; }
  .v4m-tbl tbody td:last-child { font-weight: 400; }
  .v4m-tbl tbody td:last-child:nth-child(odd), .v4m-tbl--all tbody td:last-child { grid-column: 1 / -1; }
  .v4m-tbl--all td:last-child { white-space: normal; }
  .v4-dl__in { padding: var(--space-md); gap: var(--space-md); }
  .v4-dl__pic { width: 34px; height: 54px; }
  .v4d__in { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .v4d__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4d__list button { min-height: 48px; padding: 8px 10px; font-size: 15px; gap: 8px; }
  .v4d__pic { max-width: 240px; justify-self: center; }
  .v4d__card { padding: var(--space-lg) var(--space-md); }
  .v4s__card { padding: var(--space-lg) var(--space-md) var(--space-md); }
  .v4p { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md); }
  .v4p__house { max-width: 170px; justify-self: center; }
  .v4p__mode { width: 100%; }
  .v4p__mode button { flex: 1; }
  .v4p__act .bg-btn { flex: 1 1 100%; }
  .v4k__mode { display: flex; }
  .v4k__mode button { flex: 1; padding: 0 10px; }
  .v4k__panel { padding: var(--space-md); }
  .v4k__it { grid-template-columns: 64px minmax(0, 1fr); }
  .v4k__it img, .v4k__noimg { width: 64px; height: 64px; grid-row: auto; }
  .v4k__pr { grid-column: 2; text-align: left; }
  .v4k__b { grid-column: 1 / -1; }
  .v4k__b .bg-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .v4m-pt.is-on .v4m-pt__halo, .v4m__card.is-flash, .v4m-col .is-grow, .v4d__card, .v4p__man, .v4k__panel, .v4k__it, .bg-pc.is-flash { animation: none; }
  .v4s__card:hover, .v4-dl__in:hover, .v4d__svc:hover, .v4m-near a:hover { transform: none; }
}
