/* ============================================================
   Category and tag archives (category.php): hero, grid heading, «Не підійшли…» band, SEO text (catalog_section),
   old editor HTML (custom_text_01), inline form box ([get_calculation_form]), reviews, FAQ spacing.
   Design: ui_kits/website/CategoryPage.jsx. Product card, pager, FAQ: catalog.css; the calc window and the inline form's
   fields: assets/css/forms.css.
   ============================================================ */

/* ---------- hero: navy over the category photo ---------- */
.bm-cat-hero { position: relative; overflow: hidden; background: var(--bm-navy-700); color: #fff; }
.bm-cat-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-cat-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	/* owner 2026-09-29: a lighter scrim so the building shows more — dense only under the text column (lead ≥4.5:1 even
	   over white parts of a photo), then quickly clearer over the right half (was .55 at 58% / .2 at the edge) */
	background: linear-gradient(90deg, rgba(42, 46, 71, .9) 0%, rgba(42, 46, 71, .86) 44%, rgba(42, 46, 71, .35) 60%, rgba(42, 46, 71, .1) 80%, rgba(42, 46, 71, .05) 100%);
}
.bm-cat-hero--plain::after { content: none; }
.bm-cat-hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; min-height: 500px; padding-top: 54px; padding-bottom: 58px; }
/* owner 2026-09-29: no phone row (the header has it); messenger pills on phones only since A1 = B (block A1 at the end
   of this file). The hero keeps its height; crumbs, eyebrow, title and lead flow from the top, and the CTA row fills the
   rest of the hero down to its bottom edge with the buttons centred in it: the same space above them (from the lead) as
   below them (to the edge of the navy block). */
.bm-cat-hero .bm-crumbs { margin-bottom: 18px; }
.bm-cat-hero__in:has(> .bm-cat-hero__cta) { padding-bottom: 0; }
.bm-cat-hero__in > * { max-width: 600px; margin: 0; }
.bm-cat-hero .bm-crumbs { max-width: none; }
.bm-cat-hero__eyebrow { margin: 0; }
.bm-cat-hero__title { font: 500 clamp(1.8rem, .9rem + 3.4vw, 3.4rem)/1.04 var(--bm-fd); letter-spacing: -.01em; text-transform: uppercase; color: #fff; text-wrap: balance; }
/* a category's own H1 «ПОБУТІВКИ (БИТОВКИ)» (term meta bm_h1, owner round 67): the bracketed tail a line of its own —
   two lines at every width in both faces, so the late font swap moves nothing (bm_cat_h1_alt(), review 2026-11-03) */
.bm-cat-hero__alt { display: block; }
.bm-cat-hero__lead { max-width: 500px; font-size: 18px; line-height: 1.5; color: var(--bm-on-dark); text-wrap: pretty; }
.bm-cat-hero__lead strong { font-weight: 700; white-space: nowrap; color: #fff; }
.bm-cat-hero__cta { flex: 1 0 auto; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 14px 22px; margin-top: -20px; padding-block: 40px; } /* -20px cancels the column gap */
.bm-cat-hero__btn { padding: 17px 30px; }

/* ---------- grid heading + product grid ---------- */
.bm-cat-grid { padding: 72px 0 24px; }
.bm-cat-grid__head { max-width: 760px; margin-bottom: 32px; }
.bm-cat-grid__title { font-weight: 500; text-transform: none; }
.bm-cat-grid__lead { max-width: 660px; margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--bm-muted-text); text-wrap: pretty; }

/* ---------- the late font swap (checklist 67, owner «67 — да» 2026-11-03) ----------
   On a landing view the text is in the fallback faces until the web fonts are in (html.bm-fl, base.css). A line that fit
   in one face and not in the other re-wrapped at the swap and moved what was under it (scan of the 70 rubric / tag pages,
   2026-11-03: 37 at a common width, up to 0.025; up to 0.15 between those widths). Structural, for any text, no fitting to
   the current texts: the H1, the grid heading and its lead, the product card titles and spec values of the grid and the
   band title (and on phones the hero lead, below) reserve the height their text takes in the fallback faces too — an invisible copy
   (data-fb, the same text; category.php, template-parts/catalog/product-card.php) in the fallback stack of :root.bm-fl
   floats under the real text, full width, taking no room beside it. The box is at least as tall as the text in the
   fallback faces: a line only the fallback face needs stays as room under the text in the web fonts, so the swap takes
   no line away; a line only the web face needs can still grow the box at the swap (below). The fallback faces are the wider ones for the H1 at every width (and for the cards' spec labels); for the other
   texts the web fonts are at some widths and texts the wider ones (by a few % of a line). In the first screen (the grid
   heading and its lead, the phone hero lead; the chips below) the copies track a little wider than the text (tuned
   2026-11-03 over the 73 views every 2 px from 320 px; the odd widths, 375 / 393 among them, by the sweep): the grid
   heading +.015em over its own and its lead .005em, the least that left no re-wrap at a common width (one step less
   re-wrapped the heading of /ua/fap/ at 402 px; between the common widths the heading still re-wraps at 3 widths, the
   lead at 2, under the targets below), and the phone hero lead .01em, the least that left no re-wrap at any width (its
   re-wrap moves all of the first screen under it; .005em re-wrapped 28 views at 330 px). Their cost, at some widths an empty line under the text that neither face needs, is the one-line reserve agreed for the top
   block («запас высоты на одну строку»). Further down (the cards, the band) the copies are the fallback text exactly:
   never a line no face needs (review 2026-11-03: wider copies left one under 9 of 12 card titles of /ua/bytovki/ at
   1280 px); where the web font needs one more line there, that line still re-wraps. tools/cat-swap-check.py measures
   every such re-wrap and accepts it only where the real swap moves the view less than the targets (0.01 at the common
   phone widths, 0.001 at the common desktop widths, 0.1 between them). The « (…)» tail and the page line of the H1 start under the reserved name. The type
   chips (one line each) and the cards' spec labels keep the width of their label in the wider face instead (below): the
   label beside a spec value then leaves it the same room in both faces. */
.bm-cat-hero__title[data-fb], .bm-cat-grid__title[data-fb], .bm-cat-grid__lead[data-fb], .bm-cat-grid .bm-pcard__title[data-fb], .bm-cat-grid .bm-pcard__specs dd[data-fb], .bm-cat-band__title[data-fb] { display: flow-root; }
.bm-cat-hero__title[data-fb]::before, .bm-cat-grid__title[data-fb]::before, .bm-cat-grid__lead[data-fb]::before, .bm-cat-grid .bm-pcard__title[data-fb]::before, .bm-cat-grid .bm-pcard__specs dd[data-fb]::before, .bm-cat-band__title[data-fb]::before {
	content: attr(data-fb);
	float: left;
	width: 100%;
	margin-right: -100%;
	visibility: hidden;
}
.bm-cat-hero__title::before { font-family: 'Montserrat Fallback', 'Montserrat Fallback R', system-ui, sans-serif; }
.bm-cat-grid__title::before { font-family: 'Montserrat Fallback', 'Montserrat Fallback R', system-ui, sans-serif; letter-spacing: .005em; } /* its own -.01em + .015em */
.bm-cat-grid .bm-pcard__title::before { font-family: 'Montserrat Fallback', 'Montserrat Fallback R', system-ui, sans-serif; }
.bm-cat-grid .bm-pcard__specs dd::before { font-family: 'Noto Sans Fallback', 'Noto Sans Fallback R', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.bm-cat-grid .bm-pcard__specs dt[data-fb] { display: flex; flex-direction: column; }
.bm-cat-grid .bm-pcard__specs dt[data-fb]::before { content: attr(data-fb); order: 1; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; font-family: 'Noto Sans Fallback', 'Noto Sans Fallback R', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.bm-cat-band__title::before { font-family: 'Montserrat Fallback', 'Montserrat Fallback R', system-ui, sans-serif; }
.bm-cat-grid__lead::before { font-family: 'Noto Sans Fallback', 'Noto Sans Fallback R', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: .005em; }
.bm-cat-hero__lead::before { font-family: 'Noto Sans Fallback', 'Noto Sans Fallback R', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: .01em; }
.bm-cat-hero__title[data-fb] > * { clear: left; }
/* page N without a « (…)» tail — the H1's one child is its page line: the line's own 10 px above it (base.css, margin-top)
   would vanish into its clearance under the reserve, so the reserve keeps them (tools/category-check.py pins both) */
.bm-cat-hero__title[data-fb]:has(> *):not(:has(> .bm-cat-hero__alt))::before { margin-bottom: 10px; }

/* model-type filter chips (inc/catalog/filter.php; the works archive's chips, works.css .bm-wk-chip); the chip itself
   (.bm-cat-chip) is in catalog.css since 2026-10-07 — the product page's models row prints it too */
.bm-cat-chips { margin-bottom: 28px; }
.bm-cat-chips__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* the late font swap (checklist 67): a chip that fit on a row in one face and not in the other moved the chips under it
   and the whole grid a row down (/san-bloks/ at 635 px: 0.15–0.22) — each chip is as wide as its label in the wider of
   the two faces: a copy of the label (data-fb, template-parts/catalog/filter-chips.php) in the fallback stack, tracked
   .01em wider (the least that changed no chip's row over the 4 chip views, every px from 320 px, 2026-11-03), sits in
   the chip's column with no height, so the chip is as wide as the wider of its label in the web face and that copy, in
   both faces (after the label: the chip keeps the label's baseline, not the empty copy's) */
.bm-cat-chips .bm-cat-chip[data-fb] { flex-direction: column; justify-content: center; }
.bm-cat-chips .bm-cat-chip[data-fb]::before { content: attr(data-fb); order: 1; height: 0; overflow: hidden; visibility: hidden; white-space: nowrap; font-family: 'Noto Sans Fallback', 'Noto Sans Fallback R', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; letter-spacing: .01em; }
/* while cat-filter.js fetches the chosen models (in place, no reload) */
#models[aria-busy="true"] .bm-pgrid, #models[aria-busy="true"] .bm-pager { opacity: .45; transition: opacity 120ms linear 80ms; }

/* ---------- «Не підійшли наші типові планування?» ---------- */
.bm-cat-band { padding: 32px 0; } /* owner 2026-09-29: space below the band too (it touched the leaves backdrop) */
.bm-cat-band--end { padding-bottom: var(--bm-sec-y-end); } /* nothing follows it: the section end before the footer */
.bm-cat-band__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 30px 40px; border: 1px solid var(--bm-border); border-radius: 8px; background: var(--bm-g50); }
.bm-cat-band__title { margin: 0; font: 800 1.45rem/1.25 var(--bm-fd); color: var(--bm-strong); text-wrap: balance; }
/* the late font swap (checklist 67): from 768 px the button stays beside the title in both faces — the title takes the
   rest of the row (a basis of 0: it never pushes the button to a row of its own) and wraps there under its reserve
   (above); the button one width in both faces (19rem: its one line in either face fits, centred), so the title's room
   does not change at the swap either; before, the button sat beside the title in one face and under it in the other
   (0.15 at 835 px) */
@media (min-width: 768px) {
	.bm-cat-band__title { flex: 1 1 0; min-width: 0; }
	.bm-cat-band__box .bm-btn { flex: none; min-width: 19rem; }
}

/* ---------- SEO text (catalog_section rows) ---------- */
/* --bmd-ink(-2): colours the inline styles of some stored texts refer to (never defined by the old theme) */
.bm-cs { --bmd-ink: var(--bm-strong); --bmd-ink-2: var(--bm-text); padding: 60px 0 40px; }
/* leafy backdrop (owner 2026-09-29, as the live .ct-desc): the old theme's leaves photo on top, fading into white by
   itself (theme asset, decorative); the text sits on a white card over it. The photo is set once the section comes
   within two screens of the viewport (o93 B6 T6, owner «Е да» 2026-11-19: .is-near from assets/js/reveal.js), so its
   87 KB do not share a slow phone line with the hero photo at page load; without scripts a <noscript> style of
   inc/catalog/archive.php sets it at once. Undo: the two background-image lines back into the first rule, the second
   rule deleted. */
.bm-cs {
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: max(100%, 1100px) auto;
}
.bm-cs.is-near {
	background-image: url(../img/catalog/leaves.webp);
	background-image: image-set(url(../img/catalog/leaves.avif) type("image/avif"), url(../img/catalog/leaves.webp) type("image/webp"));
}
.bm-cs__card { max-width: 1200px; margin: 0 auto; padding: 56px clamp(24px, 6vw, 95px); border-radius: 8px; background: #fff; }
/* Old layout (block-module archive.php + .ct-desc--wrap): «В одну строку» rows (select0) span both columns, «Колонкою»
   rows (select1) and lists (select2) take one; dense flow lets a text and a photo of the same pair sit side by side. */
.bm-cs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 36px 56px; align-items: start; }
.bm-cs__wide { grid-column: 1 / -1; }
.bm-cs__title { margin: 0 0 .6em; font-family: var(--bm-fd); line-height: 1.2; color: var(--bm-strong); text-wrap: balance; }
h2.bm-cs__title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; }
h3.bm-cs__title, .bm-cs__title--h3 { font-size: 1.4rem; font-weight: 700; }
h4.bm-cs__title, .bm-cs__title--p { font-size: 1.15rem; font-weight: 700; }
.bm-cs__media img { display: block; max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--bm-shadow-md); } /* natural size at most: no upscaling */
.bm-cs__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px 32px; font-size: 15.5px; line-height: 1.55; }
.bm-cs__list li { position: relative; padding-left: 30px; }
.bm-cs__list li::before { content: ""; position: absolute; top: 3px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bm-orange-soft); }
.bm-cs__list li::after { content: ""; position: absolute; top: 8px; left: 7px; width: 6px; height: 9px; border: solid var(--bm-orange); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bm-cs .bm-rich table { display: block; overflow-x: auto; }
/* Zoomable schema (owner «28.3 — да», 2026-10-14): the link, its hint and the window are styled by assets/css/zoom.css
   (moved there unchanged on 2026-10-18; loaded only on the views that print a zoomable schema). */
/* «Модульні офіси» / «Модульные офисы» (the rubric's own designed text, inline 28 px headings), screens under 360 px
   (2026-10-08, checklist §1.20): RU «производительность» = 290 px in the 256 px text column of a 320 px phone made the page
   2 px wider than the screen — a heading word that does not fit is hyphenated (the page language's dictionary; else broken).
   The same for the RU pages of «Торговые павильоны» and «Модульные цеха» (2026-10-08, owner «да» to checklist §1.24): H2
   «…быстромонтируемое…» kept /torg-pavilion/ at 325 px, H3 «Мясоперерабатывающие» /tseha/ at 321 px; :lang(ru) — the UA
   pages share the slug class, fit the screen and keep their headings as they are. Only long words (14+ letters, 6+ on
   each side of the hyphen) are hyphenated: with plain hyphens: auto Chrome also split «пави-льоны», «мобиль-ное»,
   «реше-ние» — four hyphens in one heading for one word that did not fit (2026-10-08) */
@media (max-width: 359px) {
	.category-modulnye-ofisy .bm-cs .bm-rich :is(h1, h2, h3, h4, h5, h6),
	.category-torg-pavilion:lang(ru) .bm-cs .bm-rich :is(h1, h2, h3, h4, h5, h6),
	.category-tseha:lang(ru) .bm-cs .bm-rich :is(h1, h2, h3, h4, h5, h6) { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 14 6 6; }
}

/* ---------- inline form box ([get_calculation_form]: the type-1 short form inline, template-parts/catalog/calc-inline.php;
   its title p.bm-form__title and the B field style — labels over 52 px white bordered fields, the phone mask — are
   assets/css/forms.css). Variant A (owner 2026-10-09, mockup scratchpad inlineform/variant-A.css): no photo; one light box
   of the text column's width (g50 tint, g200 hairline, 8 px corners), compact padding, the small title line; on a wide box
   ONE row «Ім'я» · «Телефон» · the orange button (the fields' 52 px height), the privacy line under it; on phones title,
   name, phone, the full-width button, the privacy line. The layout follows the box's own width (container queries), not
   the screen: the same box in a narrower column (tablet, the /modulnye-doma/ grid column) stacks by itself. ---------- */
.bm-calc {
	display: block;
	container-type: inline-size;
	margin: 20px 0;
	padding: 18px 22px 16px;
	border: 1px solid var(--bm-border);
	border-radius: 8px;
	background: var(--bm-g50);
	font-size: 15px;
	line-height: 1.5;
}
/* the form opening its block (51 of the 65 pages with the form) or its container (/modulnye-doma/: the grid column beside the photo) starts
   at its top — level with the photo there */
.bm-calc:first-child { margin-top: 0; }
/* …and the form closing its container ends at its bottom: in a text block .bm-rich already does it (catalog.css
   `.bm-rich > :last-child`); the /modulnye-doma/-type grid column (.bmd-calc-form-wrap, the form its only child — a grid item,
   no margin collapse) kept the 20 px, so in one column (≤ 1024 px) the photo below sat 52 px away instead of the design's
   32 px grid gap (2026-10-09 review) */
.bm-calc:last-child { margin-bottom: 0; }
.bm-calc .bm-form__title { margin: 0 0 12px; font-size: 1rem; line-height: 1.3; letter-spacing: .01em; }
/* /modulnye-doma/ (UA + RU): the form sits under the section heading «Дізнайтесь вартість вашого модульного будинку» (the
   designed text) — its own title line only for screen readers (it still names the <form>: aria-labelledby) */
.bmd-calc-form-wrap .bm-calc .bm-form__title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* …and the designed article's paragraph spacing (legacy-bmd.css `.bmd p { margin: 0 0 .9em }`: loaded later, the same weight
   as forms.css `.bm-cf7 p { margin: 0 }`) stays out of the form — it added 11 px under the privacy line and spaced the
   success view's lines */
.bmd .bm-calc p:not(.bm-form__title) { margin-bottom: 0; }
/* RETIRED 2026-10-04 (the old inline form 16581 / 16580 opened with p.bm-cf7__title; not printed any more) — kept until after
   launch (site/docs/checklist-later.md) */
.bm-calc .bm-cf7__title { font: 800 1.25rem/1.25 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); }
.bm-rich .bm-calc ul { list-style: none; padding: 0; }

/* the CF7 body: one grid — the fields' row, the button, the privacy line (and CF7's own response line) */
.bm-calc .bm-form__cf7 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 14px; }
.bm-calc .bm-form__cf7 > :not(.bm-form__row, .wpcf7-submit) { grid-column: 1 / -1; }
.bm-calc .bm-form__cf7 .wpcf7-submit,
.bm-calc .bm-form__cf7 .wpcf7-submit:hover { width: 100%; min-height: 52px; padding-block: 0; }

/* wide enough (the desktop text column): name · phone · button in one row; the button lines up with the fields, not with
   their labels (label line 14 px × 1.4 + the 8 px label gap above the field) — a field message under a field does not
   move it */
@container (min-width: 620px) {
	.bm-calc .bm-form__cf7 { grid-template-columns: minmax(0, 1fr) auto; }
	.bm-calc .bm-form__cf7 .wpcf7-submit,
	.bm-calc .bm-form__cf7 .wpcf7-submit:hover { width: auto; align-self: start; margin-top: calc(14px * 1.4 + 8px); }
	.bm-calc .bm-form__privacy { margin-top: -2px; }
}

/* the success view, compact from a 480 px box (assets/js/forms.js pin() keeps the box at the form's height; the stacked
   view — mark, title, text, button: ~300 px — is taller than the one-row form (~150 px) and than the middle layout
   (480–620 px: ~240 px), so the box would grow after sending): one compact row — the mark, «Заявку надіслано» + the hours
   line, «Нова заявка». Under 480 px (phones) the stacked view stays, its gaps 10 px instead of 14 so it fits the stacked
   form's room (with 14 px the RU hours line in a 292 px box on a 320 px phone grew the box by 2–3 px). */
.bm-calc .bm-form__ok .bm-form-ok { gap: 10px; }
@container (min-width: 480px) {
	.bm-calc .bm-form__ok .bm-form-ok { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 0; text-align: left; }
	.bm-calc .bm-form-ok__mark { grid-row: 1 / span 2; width: 48px; height: 48px; }
	.bm-calc .bm-form-ok__mark .bm-ico { width: 24px; height: 24px; }
	.bm-calc .bm-form-ok__title { grid-column: 2; font-size: 1.1rem; }
	.bm-calc .bm-form-ok__text { grid-column: 2; max-width: none; font-size: 14px; line-height: 1.5; }
	.bm-calc .bm-form-ok__btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}
/* while the form is sent, the loader's status line «Надсилаємо…» (assets/js/forms-lazy.js: p.bm-cf7-note right after the
   form, in the flow: +31 px) takes the privacy line's place instead of adding a line, so the box keeps its height and
   forms.js pins the success view to the form's own room (measured 2026-10-09: the box grew by 31 px after a send without
   this); a failure message (.is-err) stays in the flow, in full */
.bm-calc .wpcf7 { position: relative; }
.bm-calc .wpcf7 > .bm-cf7-note:not(:empty, .is-err) { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; background: var(--bm-g50); }
.bm-calc .wpcf7:has(> .bm-cf7-note:not(:empty, .is-err)) .bm-form__privacy { visibility: hidden; }

/* ---------- old editor HTML: custom_text_01 («Готові проекти…», ct-group__* classes of the old theme) ---------- */
.bm-legacy-html { padding: 56px 0 8px; }
.bm-legacy-html .main__title { margin: 0 0 28px; font: 800 1.85rem/1.2 var(--bm-fd); letter-spacing: -.01em; color: var(--bm-strong); }
.bm-legacy-html .ct-group__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.bm-legacy-html .ct-group__element { overflow: hidden; border: 1px solid var(--bm-border); border-radius: var(--bm-r-md); background: #fff; transition: box-shadow 220ms var(--bm-ease-out), transform 220ms var(--bm-ease-out); }
.bm-legacy-html .ct-group__element:hover { box-shadow: var(--bm-shadow-md); transform: translateY(-4px); }
.bm-legacy-html .ct-group__element--link { display: flex; flex-direction: column; height: 100%; color: var(--bm-text); }
.bm-legacy-html .ct-group__list--title { order: 2; padding: 18px 20px 0; font: 700 1.1rem/1.3 var(--bm-fd); color: var(--bm-strong); }
.bm-legacy-html .ct-group__element:hover .ct-group__list--title { color: var(--bm-orange-text); }
.bm-legacy-html .ct-group__list--img { position: relative; order: 1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bm-g100); }
.bm-legacy-html .ct-group__list--img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--bm-ease-out); }
.bm-legacy-html .ct-group__list--hover { position: absolute; inset: 0; opacity: 0; }
.bm-legacy-html .ct-group__element:hover .ct-group__list--hover { opacity: 1; }
.bm-legacy-html .uk-overlay-area { display: none; }
.bm-legacy-html .ct-group__list--text { order: 3; padding: 10px 20px 20px; font-size: 14px; line-height: 1.5; }
.bm-legacy-html .ct-group__list--text ol { padding-left: 1.2em; list-style: decimal; }
.bm-legacy-html .ct-group__list--text ul { padding-left: 1.1em; list-style: disc; }
.bm-legacy-html .ct-group__list--text li::marker { color: var(--bm-orange); }

/* ---------- reviews ---------- */
.bm-reviews { padding: 56px 0 24px; }
.bm-reviews:last-of-type { padding-bottom: var(--bm-sec-y-end); }
.bm-reviews__title { margin: 0 0 24px; font: 800 24px/1.2 var(--bm-fd); letter-spacing: -.01em; text-transform: uppercase; color: var(--bm-strong); }
.bm-reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bm-review { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border: 1px solid var(--bm-border); border-radius: var(--bm-r-md); background: #fff; }
.bm-review__head { display: flex; align-items: center; gap: 12px; }
.bm-review__ava { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bm-review__who { flex: 1; min-width: 0; }
.bm-review__name { margin: 0; font-weight: 700; line-height: 1.3; color: var(--bm-strong); }
.bm-review__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--bm-muted-text); }
.bm-review__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bm-review__stars { flex: none; align-self: flex-start; font-size: 15px; letter-spacing: 1px; color: #A86200; } /* star glyphs are text: dark amber 4.75:1 on white (owner «contrast = darker»; Google gold #F5A623 = 2.03:1) */
.bm-review__text { margin: 0; font-size: 14.5px; line-height: 1.6; }
.bm-reviews__all { margin-top: 24px; }

/* ---------- FAQ ---------- */
.bm-cat-faq { padding-top: 56px; padding-bottom: 72px; }

/* touch / phones: the crumbs keep their -13px list margin (catalog.css), so 18px − 13px here */
@media (max-width: 767px), (pointer: coarse) {
	.bm-cat-hero .bm-crumbs { margin-bottom: 5px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
	.bm-cat-hero__in { min-height: 420px; padding-top: 40px; padding-bottom: 44px; }
	.bm-cat-hero::after { background: linear-gradient(90deg, rgba(42, 46, 71, .9) 0%, rgba(42, 46, 71, .86) 54%, rgba(42, 46, 71, .45) 72%, rgba(42, 46, 71, .15) 100%); }
	.bm-cat-grid { padding-top: 52px; }
	.bm-cs { padding-top: 48px; }
	.bm-cs__grid { gap: 28px 36px; }
	.bm-reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
	.bm-cat-hero::after { background: rgba(42, 46, 71, .84); } /* phones: the text covers the whole photo — scrim unchanged */
	.bm-cs { padding: 32px 0 24px; }
	.bm-cs__card { padding: 24px 18px; }
	.bm-cat-hero__in { gap: 14px; min-height: 0; padding-top: 22px; padding-bottom: 30px; }
	.bm-cat-hero__lead { font-size: 15.5px; }
	.bm-cat-hero__cta { flex-direction: column; align-content: stretch; align-items: stretch; justify-content: center; margin-top: -14px; padding-block: 24px; }
	.bm-cat-hero__btn { justify-content: center; }
	/* the late font swap (checklist 67, see above): the eyebrows one line — the hero's without its «Каталог · » lead-in
	   (the crumbs say it), a label too long for the screen ends in «…»; the price of the hero lead a line of its own (a
	   forced break before it, the <strong> stays inline: a block child took the lead out of the accessibility tree) and
	   the reserve copies text + price, so any room it keeps is under the price, never between the text and the price
	   (review 2026-11-03: an empty line there at 390 / 412 / 414 px); the buttons one line; the crumbs «Головна › Каталог ›
	   <rubric>» one line too — the current item takes the rest of the line (it never wraps to a line of its own: a basis
	   of 0) and a name too long for it ends in «…» (the H1 under it says it in full); it fit on the line in one face and
	   wrapped in the other (17 px, up to 0.15 at 320 px: the 13.10 item of the checklist; every rubric trail is these 3
	   items) */
	.bm-cat-hero .bm-crumbs li:last-child { flex: 1 1 0; }
	.bm-cat-hero .bm-crumbs [aria-current] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.bm-cat-hero__eb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.bm-cat-hero__eb-pre { display: none; }
	.bm-cat-grid__eb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.bm-cat-hero__lead[data-fb] { display: flow-root; }
	.bm-cat-hero__lead[data-fb]::before { content: attr(data-fb); float: left; width: 100%; margin-right: -100%; visibility: hidden; }
	.bm-cat-hero__lead[data-fbp]::before { content: attr(data-fb) "\A" attr(data-fbp); white-space: pre-line; }
	.bm-cat-hero__lead[data-fbp] > strong:last-child::before { content: "\A"; white-space: pre; } /* the price only, not a bold word of the text */
	.bm-cat-hero__btn { white-space: nowrap; }
	.bm-cat-band__box .bm-btn { padding-inline: 8px; white-space: nowrap; } /* full width: the fill is the same, the text has room */
	.bm-cat-grid { padding-top: 36px; }
	.bm-cat-grid__head { margin-bottom: 22px; }
	.bm-cat-grid__lead { font-size: 15px; }
	/* a few chips: they wrap (2 rows of 2 at 390 px) — every choice, the active one included, stays in view after the
	   page loads (the works archive's long list scrolls in one row instead) */
	.bm-cat-chips { margin-bottom: 20px; }
	.bm-cat-chips__list { gap: 8px; }
	.bm-cat-band { padding: 24px 0; }
	.bm-cat-band--end { padding-bottom: var(--bm-sec-y-end); }
	.bm-cat-band__box { padding: 22px 18px; }
	.bm-cat-band__box .bm-btn { width: 100%; }
	.bm-cat-band__title { font-size: 1.2rem; }
	.bm-cs { padding-top: 36px; }
	/* one column of the card's width, never wider (minmax(0, 1fr) as above 767 px, not 1fr = minmax(auto, 1fr)): a text
	   block's min-content must not widen it — a rubric text image that fails to load is no longer a shrinkable image, its
	   width attribute counted in full (through the «Узнать цену» card's auto-fit grid: ≈ 3 000 px, the page zoomed out to
	   1 560 px), and the stored inline-styled HTML of /modulnye-ofisy/ needed 519 px (owner checklist §4, 2026-10-07) */
	.bm-cs__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	h2.bm-cs__title, .bm-legacy-html .main__title { font-size: 1.4rem; }
	h3.bm-cs__title, .bm-cs__title--h3 { font-size: 1.2rem; }
	.bm-calc { padding: 16px 16px 14px; } /* variant A (2026-10-09; was 18px 16px) */
	.bm-calc .bm-form__row { gap: 12px; }
	.bm-legacy-html { padding-top: 40px; }
	.bm-reviews__list { grid-template-columns: 1fr; gap: 16px; }
	.bm-reviews__title { font-size: 20px; }
	.bm-cat-faq { padding-top: 40px; padding-bottom: 52px; }
}
/* the narrowest phones (checklist 67): the longest eyebrow labels («Технические и бытовые модули» over the H1,
   «Индивидуальная планировка» over the grid) fit on their one line without «…» — a little less tracking, a shorter
   dash; the full-width buttons' one line fits in the fallback face too (at 320–322 px the hero's was a few px wider than
   30 px padding left it and the button grew past the screen until the swap; the fill is the full width either way, so
   less padding changes nothing in view; the band's box gives its button 12 px more) */
@media (max-width: 359px) {
	.bm-cat-hero__eyebrow, .bm-cat-grid__head > .bm-eyebrow { gap: 8px; letter-spacing: .1em; }
	.bm-cat-hero__eyebrow::before, .bm-cat-grid__head > .bm-eyebrow::before { width: 18px; }
	.bm-cat-hero__btn { padding-inline: 16px; }
	.bm-cat-band__box { padding-inline: 12px; }
}
/* under 320 px (a folded phone's cover screen, a zoomed page) the buttons' one line no longer fits: they wrap again, as
   before the round (the swap guarantee holds from 320 px; review 2026-11-03: the label ran out of the button at 280 px) */
@media (max-width: 319px) {
	.bm-cat-hero__btn, .bm-cat-band__box .bm-btn { white-space: normal; }
}
/* ---------- the head's own options (owner 2026-11-23, «Торговые павильоны», variant Б) ----------
   Per rubric, only where its term fields are filled (category.php; blockmodul-core inc/catalog-fields.php); every other head stays as above.
   bm-cat-hero--right (bm_hero_pos «Праворуч»): from 768 px the photo kept to its right edge — a wide picture whose building stands on its
   right loses its left part (under the veil and the text) on narrower screens, never the building. Phones keep today's head (the photo
   centred behind the text) unless the head also has its phone photo (bm-cat-hero--m, below; o96 review D-A4).
   bm-cat-hero--m (bm_hero_m «Фото шапки для телефону»): up to 767 px the photo stands ABOVE the text, as on the home slider (o94 Q3 «А»): full
   width, 4 : 3 (the box is set here, so nothing moves when the file arrives; a file of another ratio is cut by object-fit), no veil over it, its
   last 17 % fading into the navy of the head; the text block under it on the navy, as before. The phone file is the <picture> source of the
   same width (category.php): a screen loads one of the two files. 768 px and wider: as without the field. Undo: delete this block. */
.bm-cat-hero__pic { display: block; }
@media (min-width: 768px) {
	.bm-cat-hero--right .bm-cat-hero__img { object-position: 100% 50%; }
}
@media (max-width: 767px) {
	.bm-cat-hero--m::after { content: none; }
	.bm-cat-hero--m .bm-cat-hero__img {
		position: static;
		display: block;
		height: auto;
		aspect-ratio: 4 / 3;
		object-position: 50% 50%;
		-webkit-mask-image: linear-gradient(180deg, #000 83%, transparent);
		mask-image: linear-gradient(180deg, #000 83%, transparent);
	}
}

/* A1 start */
/* ---------- hero messenger pills (owner A1 = B, 2026-11-26): bm_render_messengers( 'hero' ), rubric pages only ----------
   Phones only (owner 2026-11-26 evening: no messenger buttons on desktop): shown up to 640 px, where chrome.css hides
   the header circles (.bm-msgr--hdr); hidden from 641 px, so tablets and desktops render exactly as before. The last
   item of the CTA row. Glyph = ::before, a CSS mask of the bm_icon() paths (no inline svg in the page). Three equal
   pills (width 100%: the names never widen the buttons above), less padding below 390 px, glyphs only below 360 px
   (aria-label keeps the names). Undo: delete this block. */
.bm-cat-hero__cta .bm-msgr--hero { display: none; }
@media (max-width: 640px) {
	.bm-cat-hero__cta .bm-msgr--hero { display: flex; flex: none; width: 100%; gap: 8px; }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m] { display: inline-flex; flex: 1 1 0; min-width: 0; justify-content: center; gap: 7px; width: auto; height: 44px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 20px; background: transparent; color: #fff; font: 600 13.5px/1 var(--bm-fb); white-space: nowrap; transition: background-color 140ms, border-color 140ms; }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m]::before { content: ""; flex: none; width: 1em; height: 1em; font-size: 20px; background: var(--bm-wa); -webkit-mask: var(--bm-mi) center / contain no-repeat; mask: var(--bm-mi) center / contain no-repeat; forced-color-adjust: none; }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m="wa"] { --bm-mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.5l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.2.3-.9.9-.9 2.2s.9 2.6 1.1 2.8c.1.2 1.9 2.9 4.6 4 1.7.7 2.3.8 3.2.7.5-.1 1.5-.6 1.8-1.3.2-.6.2-1.1.1-1.2 0-.1-.2-.2-.5-.3Z'/%3E%3C/svg%3E"); }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m="vb"] { --bm-mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.3c-4.7 0-8.1 2.7-8.1 7.3 0 2.7 1.2 4.7 3.2 5.9v3.5c0 .5.6.8 1 .5l2.9-2.3h1c4.7 0 8.1-2.7 8.1-7.6S16.7 3.3 12 3.3Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M8.7 7.9c.3-.3.8-.3 1.1 0l1.2 1.5c.2.3.2.7-.1 1l-.6.6c.5 1 1.4 2 2.4 2.4l.6-.6c.3-.3.7-.3 1-.1l1.5 1.2c.3.3.3.8 0 1.1l-.6.6c-.5.5-1.3.6-2 .3-2.1-.9-3.7-2.5-4.6-4.6-.3-.7-.2-1.5.3-2l-.2.6Z'/%3E%3Cpath d='M13.3 7.5a3.6 3.6 0 0 1 3.3 3.3M13.4 9.4a1.8 1.8 0 0 1 1.6 1.6' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m="tg"] { --bm-mi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 4.5 2.9 11.8c-1 .4-1 1 .1 1.3l4.8 1.5 1.8 5.7c.2.5.1.8.6.8.4 0 .6-.2.8-.4l2.3-2.3 4.8 3.5c.9.5 1.5.2 1.7-.8l3.1-14.6c.3-1.2-.5-1.8-1.8-1.3l-.9.1ZM7.5 13.2l9.9-6.2c.5-.3.9-.1.5.2l-8 7.2-.3 3.3-2.1-4.5Z'/%3E%3C/svg%3E"); }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m="vb"]::before { font-size: 21px; background: #8F7FF7; }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m="tg"]::before { font-size: 19px; background: #3FB6F0; }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m]:hover, .bm-cat-hero__cta .bm-msgr--hero a[data-m]:focus-visible { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; }
}
@media (max-width: 389px) {
	.bm-cat-hero__cta .bm-msgr--hero { gap: 6px; }
	.bm-cat-hero__cta .bm-msgr--hero a[data-m] { gap: 5px; padding: 0 4px; }
}
@media (max-width: 359px) {
	.bm-cat-hero__cta .bm-msgr--hero a[data-m] > span { display: none; }
}
/* A1 end */
