/* БурГрад — блоки главной: как устроено, мозаика, сезон, цены, география, заявка. Один селектор — одна строка */

/* Переключатель-сегменты (общий) */
.bg-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); }
.bg-seg button { border: 0; background: none; padding: 11px 20px; border-radius: 9px; font-weight: 650; white-space: nowrap; transition: background-color .25s var(--ease), color .25s; }
.bg-seg [aria-selected="true"] { background: var(--navy); color: oklch(97% .01 258); }
.bg-seg--wrap { flex-wrap: wrap; margin-bottom: var(--space-lg); }

/* ---------- Как устроено ---------- */
.bg-how { padding: var(--sec) 0; background: var(--surface); border-block: 1px solid var(--line); }
.bg-how__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.bg-how__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: center; animation: bg-fade .5s var(--ease); }
.bg-how__panel[hidden] { display: none; }
@keyframes bg-fade { from { opacity: 0; transform: translateY(10px); } }
.bg-how__svg { width: 100%; height: auto; max-height: 640px; border-radius: var(--r-lg); background: var(--sky); }
.bg-how__svg .h-ground { fill: var(--sand); }
.bg-how__svg .h-aqua { fill: var(--water-deep); }
.bg-how__svg .h-clay { fill: var(--clay); }
.bg-how__svg .h-grass { stroke: oklch(58% .12 135); stroke-width: 6; }
.bg-how__svg .h-ring { fill: oklch(80% .008 80); stroke: oklch(58% .01 80); stroke-width: 2; }
.bg-how__svg .h-inner { fill: oklch(36% .03 60); }
.bg-how__svg .h-seam { stroke: oklch(58% .01 80); stroke-width: 3; }
.bg-how__svg .h-skoba { fill: var(--navy); }
.bg-how__svg .h-water { fill: var(--water); }
.bg-how__svg .h-gravel { fill: oklch(80% .02 70); }
.bg-how__svg .h-post { stroke: oklch(42% .06 50); stroke-width: 8; }
.bg-how__svg .h-roof { fill: var(--orange); }
.bg-how__svg .h-vorot { fill: oklch(48% .07 50); }
.bg-how__svg .h-chain { stroke: oklch(45% .01 258); stroke-width: 2; stroke-dasharray: 3 2; }
.bg-how__svg .h-bucket { fill: oklch(72% .01 258); }
.bg-how__svg .h-sewer { stroke: var(--orange); stroke-width: 12; stroke-linecap: round; fill: none; }
.bg-how__svg .h-sewage { fill: oklch(52% .06 80); }
.bg-how__svg .h-sewage--2 { fill: oklch(62% .06 100); }
.bg-how__svg .h-lid { fill: oklch(62% .01 80); }
.bg-how__svg .h-hatch { fill: oklch(40% .01 258); }
.bg-how__svg .h-vent { stroke: oklch(45% .02 258); stroke-width: 8; fill: none; stroke-linecap: round; }
.bg-how__svg .h-seep { stroke: oklch(70% .08 222); stroke-width: 3; stroke-dasharray: 4 6; }
.bg-how__svg .h-caisson { fill: oklch(55% .02 258); stroke: oklch(35% .03 258); stroke-width: 3; }
.bg-how__svg .h-head { fill: var(--navy); }
.bg-how__svg .h-casing { fill: oklch(92% .01 258); stroke: oklch(60% .02 258); stroke-width: 2; }
.bg-how__svg .h-slot { stroke: oklch(45% .02 258); stroke-width: 2; }
.bg-how__svg .h-pump { fill: var(--orange); }
.bg-how__svg .h-cable { stroke: oklch(30% .02 258); stroke-width: 2; }
.bg-how__svg .h-pipe { stroke: oklch(45% .03 258); stroke-width: 10; stroke-linecap: round; }
.bg-how__svg .h-aqline { fill: var(--water); }
.bg-how__svg [data-part] { transition: opacity .3s var(--ease), filter .3s; }
.bg-how__svg.is-focus [data-part] { opacity: .28; }
.bg-how__svg.is-focus [data-part].is-on { opacity: 1; filter: drop-shadow(0 0 10px color-mix(in oklch, var(--orange) 70%, transparent)); }
.bg-how__svg .h-nums circle { fill: var(--surface); stroke: var(--orange); stroke-width: 3; transition: fill .2s, r .2s; }
.bg-how__svg .h-nums text { font: 800 15px var(--f-display); fill: var(--ink); text-anchor: middle; }
.bg-how__svg .h-nums g { cursor: pointer; }
.bg-how__svg .h-nums g.is-on circle { fill: var(--orange); }
.bg-how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: h; }
.bg-how__list li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "n b e" "n s e"; column-gap: var(--space-md); align-items: center; padding: 14px 16px; border-radius: var(--r-md); cursor: pointer; transition: background-color .25s var(--ease); }
.bg-how__list li::before { content: attr(data-n); grid-area: n; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--f-display); background: var(--surface-2); transition: background-color .25s, color .25s; }
.bg-how__list li b { grid-area: b; font-weight: 700; font-size: 17px; }
.bg-how__list li span { grid-area: s; font-size: 14.5px; color: var(--ink-2); }
.bg-how__list li em { grid-area: e; font-style: normal; font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bg-how__list li:hover, .bg-how__list li.is-on { background: var(--surface-2); }
.bg-how__list li.is-on::before { background: var(--accent-btn); color: var(--on-accent); }

/* ---------- Фото-мозаика ---------- */
.bg-mosaic { padding: var(--sec) 0; }
.bg-mosaic__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: var(--space-md); }
.bg-mosaic__grid figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.bg-mosaic__grid a { display: block; height: 100%; }
.bg-mosaic__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bg-mosaic__grid figure:hover img { transform: scale(1.05); }
.bg-mosaic__grid figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in oklch, var(--surface) 92%, transparent); font-size: 14.5px; line-height: 1.4; pointer-events: none; }
.bg-mosaic__grid figcaption b { display: block; font: 700 12px var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 4px; }
.bg-mosaic .m-a { grid-row: span 2; }
.bg-mosaic .m-d { grid-column: span 2; }

/* ---------- Когда копать ---------- */
.bg-season { padding: var(--sec) 0; background: var(--surface); border-block: 1px solid var(--line); }
.bg-season__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-3xl); align-items: center; }
.bg-season__card { margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--r-lg); background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.bg-season__m { margin: 0 0 8px; font: 750 26px var(--f-display); }
.bg-season__t { margin: 0; color: var(--ink-2); min-height: 4.8em; }
.bg-season__chart { position: relative; padding: 36px 20px 20px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--sand) 0%, var(--loam) 100%); }
.bg-season__ground { position: absolute; top: 10px; left: 20px; font: 700 11px var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: oklch(30% .04 50 / .7); }
.bg-season__bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 320px; align-items: end; }
.bg-season__bars button { position: relative; height: 100%; border: 0; padding: 0; background: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.bg-season__bars .w { display: block; height: calc(var(--lv) * 100%); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%); transition: height .8s var(--ease), filter .2s; transform-origin: bottom; }
.bg-season__bars .best .w { background: linear-gradient(180deg, oklch(80% .1 220), var(--water)); box-shadow: inset 0 0 0 2px var(--orange); }
.bg-season__bars .mo { position: absolute; left: 0; right: 0; top: -2px; font: 700 11px var(--f-display); text-align: center; color: oklch(30% .04 50 / .75); }
.bg-season__bars button:hover .w, .bg-season__bars button.is-on .w { filter: brightness(1.12) saturate(1.2); }
.bg-season__bars button.is-on .mo { color: var(--ink); }
.bg-season__bars button.is-on::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }
.bg-season__legend { display: flex; gap: var(--space-lg); margin-top: var(--space-lg); font-size: 13px; color: oklch(98% .01 80); }
.bg-season__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bg-season__legend .lg-best { background: oklch(80% .1 220); box-shadow: inset 0 0 0 2px var(--orange); }
.bg-season__legend .lg-high { background: var(--water-deep); }

/* ---------- Цены ---------- */
.bg-price { padding: var(--sec) 0; }
.bg-price__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.bg-search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 360px); height: 52px; padding: 0 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.bg-search:focus-within { box-shadow: 0 0 0 2px var(--navy); }
.bg-search input { flex: 1; min-width: 0; border: 0; background: none; font: 500 16px var(--f-text); color: var(--ink); outline: none; }
.bg-price__table { border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.bg-price__group { padding: 6px var(--space-lg); break-inside: avoid; }
.bg-price__table.is-all { columns: 2; column-gap: 0; column-rule: 1px solid var(--line); }
.bg-price__table.is-all .bg-price__group + .bg-price__group { border-top: 0; }
.bg-price__group + .bg-price__group { border-top: 1px solid var(--line); }
.bg-price__gh { margin: var(--space-md) 0 6px; font: 750 18px var(--f-display); }
.bg-price__row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); animation: bg-fade .35s var(--ease); }
.bg-price__row:last-child { border-bottom: 0; }
.bg-price__row span { flex: 0 1 auto; min-width: 0; max-width: 70%; }
.bg-price__row small { color: var(--ink-2); font-size: 13px; margin-left: 6px; }
.bg-price__row i { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.bg-price__row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bg-price__row mark { background: color-mix(in oklch, var(--orange) 30%, transparent); color: inherit; border-radius: 3px; }
.bg-price__empty { padding: var(--space-xl); text-align: center; color: var(--ink-2); }

/* ---------- География ---------- */
.bg-geo { padding: var(--sec) 0; background: var(--navy); color: oklch(96% .01 258); }
.bg-geo .bg-sub { color: oklch(84% .03 258); }
.bg-geo__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-3xl); align-items: center; }
.bg-geo .bg-search { margin-top: var(--space-xl); background: oklch(100% 0 0 / .08); box-shadow: 0 0 0 1.5px oklch(100% 0 0 / .2); }
.bg-geo .bg-search input { color: oklch(97% .01 258); }
.bg-geo .bg-search input::placeholder { color: oklch(80% .02 258); }
.bg-geo__res { margin-top: var(--space-lg); min-height: 120px; padding: var(--space-lg); border-radius: var(--r-lg); background: oklch(100% 0 0 / .06); }
.bg-geo__res p { margin: 0; }
.bg-geo__res .r-city { font: 750 26px var(--f-display); margin-bottom: 6px; }
.bg-geo__res .r-km { color: var(--orange); font-weight: 700; }
.bg-geo__res .bg-btn { margin-top: var(--space-md); }
.bg-geo__map svg { width: 100%; height: auto; display: block; }
.bg-geo__map .g-r { fill: none; stroke: oklch(100% 0 0 / .14); stroke-width: .6; stroke-dasharray: 2 2; }
.bg-geo__map .g-r1 { fill: oklch(100% 0 0 / .05); }
.bg-geo__map .g-axis { stroke: oklch(100% 0 0 / .06); stroke-width: .5; }
.bg-geo__map .g-km { font: 600 5px var(--f-text); fill: oklch(100% 0 0 / .45); }
.bg-geo__map .g-msk { fill: var(--orange); }
.bg-geo__map .g-msk-t { font: 800 8px var(--f-display); fill: var(--on-accent); text-anchor: middle; }
.bg-geo__map .g-dot { fill: oklch(96% .01 258); cursor: pointer; transition: fill .2s, r .2s; }
.bg-geo__map .g-dot:hover, .bg-geo__map .g-dot.is-on { fill: var(--orange); }
.bg-geo__map .g-lbl { font: 600 4.6px var(--f-text); fill: oklch(92% .01 258 / .85); pointer-events: none; }
.bg-geo__map .g-lbl.is-on { fill: var(--orange); font-weight: 800; }
.bg-geo__map .g-pulse { fill: none; stroke: var(--orange); stroke-width: .8; animation: bg-gpulse 1.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bg-gpulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.5); opacity: 0; } }

/* ---------- Финальная заявка ---------- */
.bg-final { padding: var(--sec) 0; }
.bg-final__in { display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: var(--space-3xl); align-items: center; }
.bg-final__mes { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.bg-pill { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 14px; border-radius: 99px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-weight: 650; transition: transform .25s var(--ease), box-shadow .25s; }
.bg-pill:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--ink); }
.bg-blank--inline { width: 100%; }
.bg-field select { min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 500 17px var(--f-text); }

@media (max-width: 960px) {
  .bg-how__panel, .bg-season__in, .bg-geo__in, .bg-final__in { grid-template-columns: 1fr; gap: var(--space-xl); }
  .bg-mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .bg-mosaic .m-a { grid-row: span 1; grid-column: span 2; }
  .bg-mosaic .m-d { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bg-how__list li { grid-template-columns: 36px 1fr; grid-template-areas: "n b" "n s" "n e"; }
  .bg-how__list li em { margin-top: 4px; }
  .bg-season__bars { gap: 4px; height: 240px; }
  .bg-season__bars .mo { font-size: 9px; }
  .bg-mosaic__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .bg-mosaic .m-a, .bg-mosaic .m-d { grid-column: auto; }
  .bg-seg { display: flex; overflow-x: auto; scrollbar-width: none; }
  .bg-price__table.is-all { columns: 1; }
  .bg-price__row { flex-wrap: wrap; }
  .bg-price__row span { max-width: 100%; }
}

/* ---------- Каталог услуг ---------- */
.bg-cat { padding: var(--sec) 0; }
.bg-cat__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.bg-cat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-xl) var(--space-md); }
.bg-svc { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "img img" "t go" "p go"; gap: 4px 12px; text-decoration: none; animation: bg-fade .45s var(--ease) both; }
.bg-svc[hidden] { display: none; }
.bg-svc__img { grid-area: img; position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; margin-bottom: 10px; background: var(--surface-2); }
.bg-svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bg-svc:hover .bg-svc__img img { transform: scale(1.06); }
.bg-svc__depth { position: absolute; left: 10px; top: 10px; padding: 6px 10px; border-radius: 99px; background: color-mix(in oklch, var(--surface) 92%, transparent); font: 700 12px var(--f-display); font-variant-numeric: tabular-nums; }
.bg-svc__t { grid-area: t; font: 700 18px/1.25 var(--f-display); }
.bg-svc__p { grid-area: p; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.bg-svc__go { grid-area: go; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; transition: background-color .25s, transform .3s var(--ease); }
.bg-svc:hover .bg-svc__go { background: var(--orange); transform: translateX(4px); }
.bg-cat__more { display: flex; margin: var(--space-xl) auto 0; }
.bg-cat__more[hidden] { display: none; }

/* ---------- Местный блок поддомена ---------- */
.bg-local { padding: var(--sec) 0; background: var(--surface); border-block: 1px solid var(--line); }
.bg-local__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl) var(--space-3xl); align-items: start; }
.bg-local__text .bg-sub { max-width: 56ch; }
.bg-local__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.bg-local__facts div { padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.bg-local__facts dt { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.bg-local__facts dd { margin: 0; font: 750 19px/1.2 var(--f-display); }
.bg-local__near { grid-column: 1 / -1; }
.bg-local__cap { margin: 0 0 var(--space-sm); font-weight: 650; }
.bg-local__near ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.bg-local__near a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; transition: box-shadow .2s, transform .25s var(--ease); }
.bg-local__near a:hover { box-shadow: 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.bg-local__near a span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.bg-local__note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); max-width: 80ch; }
.bg-h1__city { display: block; font-size: .55em; color: var(--ink-2); margin-top: .2em; }
@media (max-width: 960px) {
  .bg-local__in { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bg-local__facts { grid-template-columns: 1fr; }
}
