/* ============================================================
   Product page (single-post.php). Design: ProjectPage.jsx («Пост охорони БП1»).
   Breadcrumbs, the works cards of the «Реалізовані проєкти» band (.bm-pgcard), the model chips (.bm-cat-chip), FAQ:
   catalog.css. Forms (the КП window): assets/css/forms.css.
   ============================================================ */

.bm-pp { padding-bottom: var(--bm-sec-y-end); }
.bm-pp__crumbs { padding-top: 24px; } /* 44 px breadcrumb targets on touch: catalog.css */
.bm-pp-sec { padding-top: 64px; }
.bm-pp-shead { margin-bottom: 28px; }
/* section titles in sentence case, as the design's SectionHeading (the site-wide .bm-h2 is uppercase); this file loads
   on product pages only */
.bm-pp .bm-h2 { letter-spacing: -.015em; text-transform: none; }
.bm-pp-shead .bm-h2 { font-size: 30px; }

/* ---------- hero: gallery + info rail (≤ 1100 px: stacked, gallery first — design site-chrome.css [data-pp-hero]) ---------- */
.bm-pp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	grid-template-areas: "gal head" "gal body";
	grid-template-rows: auto 1fr;
	column-gap: 44px;
	row-gap: 20px;
	padding-top: 24px;
}
.bm-pp-hero__gallery { grid-area: gal; min-width: 0; }
.bm-pp-hero__head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.bm-pp-hero__body { grid-area: body; display: flex; flex-direction: column; gap: 20px; }
.bm-pp-hero__title { margin: 0; font: 800 clamp(1.5rem, .7rem + 3.2vw, 2.8rem)/1.08 var(--bm-fd); letter-spacing: -.015em; color: var(--bm-strong); text-wrap: balance; }
.bm-pp-hero__lead { margin: 0; line-height: 1.6; color: var(--bm-text); }

/* rating widget (rate-my-post [ratemypost]): one compact line — stars, then «4.7 / 5 · 35 оцінок»
   (bm_product_rating_html()); owner 2026-10-08 (trial): a row of its own above «Інші моделі:» (single-post.php) */
.bm-pp-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 32px; }
.bm-pp-rate + .bm-pp-models { padding-top: 16px; }
.bm-pp-rate__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--bm-muted-text); }
.bm-pp-rate__w .rmp-widgets-container { margin: 0; padding: 0; text-align: left; }
.bm-pp-rate__w .rmp-rating-widget { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.bm-pp-rate__w .rmp-rating-widget__icons { margin: 0; }
.bm-pp-rate__w .rmp-rating-widget__icons-list { display: flex; gap: 2px; margin: 0; padding: 0; }
.bm-pp-rate__w .rmp-icon { font-size: 18px; }
.bm-pp-rate__w .rmp-rating-widget__hover-text:empty,
.bm-pp-rate__w .rmp-rating-widget__msg:empty,
.bm-pp-rate__w .rmp-rating-widget__submit-btn:empty { display: none; }
.bm-pp-rate__w .rmp-rating-widget__results { margin: 0; font-size: 14px; color: var(--bm-muted-text); }
.bm-pp-rate__w .rmp-rating-widget__results__rating { font-weight: 700; color: var(--bm-strong); }
.bm-pp-rate__w .rmp-rating-widget__not-rated,
.bm-pp-rate__w .rmp-rating-widget__msg { margin: 0; font-size: 13.5px; }
/* touch (and every phone width): each star is a 44 px target, 4 px apart; one tap votes (rate-my-post votes on
   click, its «prevent accidental» second step is off); the glyphs keep their left edge in line with the text */
@media (max-width: 767px), (pointer: coarse) {
	.bm-pp-rate__w .rmp-rating-widget { gap: 0 8px; }
	.bm-pp-rate__w .rmp-rating-widget__icons-list { gap: 4px; margin-left: -10px; }
	.bm-pp-rate__w .rmp-widgets-container.rmp-main-container .rmp-rating-widget__icons-list .rmp-rating-widget__icons-list__icon { display: grid; place-items: center; width: 44px; height: 44px; }
	.bm-pp-rate__w .rmp-icon { font-size: 24px; line-height: 1; }
}

/* spec chips */
.bm-pp-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; padding: 18px 0 20px; border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); }
.bm-pp-spec { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; font-size: 13px; line-height: 1.3; }
/* every chip = an icon + its value, all alike (owner 2026-10-08: no «Габарити: / Площа:» caption — the label is
   .screen-reader-text). Icons «1a» (owner 2026-10-09, site/design/icons-1a README §1): the 32 px drawing (colours in
   the file, stroke 2), 3 px to the left — the drawing's own inner margin — so its edge stands on the text line; a
   picture that is not one of the 21 old PNG icons and the neutral mark of a chip without one take the same box */
.bm-pp-spec__ico, .bm-pp-spec__img, .bm-pp-spec__mark { width: 32px; height: 32px; margin-left: -3px; }
.bm-pp-spec__img { object-fit: contain; }
.bm-pp-spec__mark { padding: 2px; color: var(--bm-orange); stroke-width: 1.8; }
.bm-pp-spec__value { font-weight: 500; color: var(--bm-strong); overflow-wrap: anywhere; }

/* price + CTA; on phones (≤ 767 px) on a light panel in a frame with the note under the price linking to the price
   table (owner 2026-10-08, variant A; wider screens keep the plain block). The CTA keeps one shape: a single-line button in sentence case (design Button), beside the price when
   the rail is wide enough (≥ 640 px: stacked tablet layout), else on its own row at the full rail width; only a very
   narrow rail (< 360 px) lets its label take a second, balanced line. */
.bm-pp-buy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-top: auto; container-type: inline-size; }
.bm-pp-buy__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bm-pp-buy__note { display: none; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--bm-muted-text); }
.bm-pp-buy__note a { font-weight: 600; color: var(--bm-strong); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.bm-pp-buy__note a:hover { color: var(--bm-orange-text); }
.bm-pp-buy__price { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bm-pp-buy__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-pp-buy__price b { font: 900 clamp(1.6rem, .9rem + 2.6vw, 2.4rem)/1 var(--bm-fd); color: var(--bm-strong); white-space: nowrap; }
.bm-pp-buy__price small { font-size: .5em; font-weight: 700; }
.bm-pp-buy__btn { flex: 0 1 auto; min-height: 52px; padding: 14px 22px; font-size: 15px; letter-spacing: .01em; text-transform: none; white-space: nowrap; }
@container (max-width: 639px) {
	.bm-pp-buy__btn { flex: 1 1 100%; }
}
/* phones (owner 2026-10-08, trial): the shorter label «Отримати пропозицію» — one of the two spans shows (display: none
   keeps the hidden one out of the button's accessible name) */
.bm-pp-buy__short { display: none; }
@media (max-width: 767px) {
	.bm-pp-buy__long { display: none; }
	.bm-pp-buy__short { display: inline; }
}
@container (max-width: 399px) {
	.bm-pp-buy__btn { padding-inline: 18px; font-size: 14px; }
}
@container (max-width: 359px) {
	.bm-pp-buy__btn { white-space: normal; text-align: center; text-wrap: balance; }
}

/* ---------- gallery ---------- */
.bm-gal__frame { position: relative; overflow: hidden; border: 1px solid var(--bm-border); border-radius: 8px; background: var(--bm-g100); }
/* the stage takes the first photo's proportions (gallery.php --bm-gal-ar, 4:3 … 16:9); every photo is shown whole
   (contain), a photo of other proportions on the neutral ground of the frame */
.bm-gal__stage { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: var(--bm-gal-ar, 3 / 2); }
.bm-gal__stage::-webkit-scrollbar { display: none; }
.bm-gal__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.bm-gal__link { display: block; height: 100%; border-radius: 7px; cursor: zoom-in; }
/* the link fills the scrolling stage, which would clip an outside ring: draw it inside */
.bm-gal__link:focus-visible { outline-width: 3px; outline-offset: -3px; }
.bm-gal__img { width: 100%; height: 100%; object-fit: contain; }
/* photos 2+ load after photo 1 (o93 B6 T4, owner «В да» 2026-11-19): until product.js arms the gallery (photo 1 loaded or
   failed, or the visitor swipes / scrolls the stage, taps a thumbnail or a strip arrow, uses the keys, opens the
   lightbox) their stage images are not rendered, so the lazy ones wait instead of sharing a slow phone line with photo 1
   (the LCP element). A slide keeps its box (flex: 0 0 100% of the stage, its link 100% high), so nothing moves. Without
   scripts a <noscript> style (inc/catalog/product.php) shows them. Undo: delete this rule, the arm() lines of product.js
   and that hook. */
.bm-gal:not(.is-armed) .bm-gal__slide + .bm-gal__slide .bm-gal__img { display: none; }
.bm-gal__badge { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 4px; background: rgba(42, 46, 71, .72); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; pointer-events: none; }
.bm-gal__zoom { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: rgba(11, 11, 10, .42); color: #fff; font-size: 18px; pointer-events: none; }
.bm-gal__count { position: absolute; right: 16px; bottom: 14px; padding: 3px 10px; border-radius: 99px; background: rgba(11, 11, 10, .62); font-size: 12.5px; font-weight: 600; color: #fff; pointer-events: none; }
/* strip row: [prev] thumbnails [next] (gallery.php; the buttons only when the strip has more thumbnails than it shows) */
.bm-gal__strip { display: flex; align-items: stretch; gap: 12px; margin-top: 14px; }
/* 4 px of padding (and scroll-padding, else snapping scrolls it away) hold a focused thumbnail's outside ring; the
   negative side margins keep the strip aligned with the stage. position: relative makes it the thumbnails' offset
   parent (product.js centres the current thumbnail with offsetLeft). */
.bm-gal__thumbs { position: relative; display: flex; flex: 1; min-width: 0; gap: 12px; margin: 0 -4px; padding: 4px 4px 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: thin; }
/* prev / next (design ProjectPage.jsx ppHasNav): 36 px, as tall as the thumbnails; the scrollbar goes where they are */
.bm-gal__nav { position: relative; display: none; flex: none; place-items: center; width: 36px; margin: 4px 0 6px; padding: 0; border: 1px solid var(--bm-border); border-radius: 4px; background: #fff; color: var(--bm-strong); font-size: 18px; cursor: pointer; transition: border-color 180ms var(--bm-ease-out), opacity 180ms var(--bm-ease-out); }
.bm-gal__nav .bm-ico { stroke-width: 2.4; }
.bm-gal__nav:hover { border-color: var(--bm-g300); }
.bm-gal__nav[disabled], .bm-gal__nav[aria-disabled="true"] { opacity: .4; cursor: default; }
.bm-gal__nav[disabled]:hover, .bm-gal__nav[aria-disabled="true"]:hover { border-color: var(--bm-border); }
.bm-gal__strip--nav .bm-gal__nav { display: grid; }
.bm-gal__strip--nav .bm-gal__thumbs { scrollbar-width: none; }
.bm-gal__strip--nav .bm-gal__thumbs::-webkit-scrollbar { display: none; }
.bm-gal__thumb { flex: 0 0 calc((100% - 4 * 12px) / 5); aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid var(--bm-border); border-radius: 4px; background: var(--bm-g100); cursor: pointer; scroll-snap-align: start; transition: border-color 180ms var(--bm-ease-out), transform 180ms var(--bm-ease-out); }
.bm-gal__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity 250ms var(--bm-ease-out); }
.bm-gal__thumb:hover { transform: translateY(-2px); }
.bm-gal__thumb:hover img, .bm-gal__thumb.is-active img { opacity: 1; }
.bm-gal__thumb.is-active { border: 2px solid var(--bm-orange); }

/* lightbox */
/* owner 2026-09-29: opens smoothly, frosted glass around the photo, smooth prev / next (product.js). The dialog fills
   the viewport with inset 0 (not 100vw: a scrollbar can never push it sideways and cut the prev button); the photo box
   has the photo's own ratio (--lb-r from product.js) at a fixed size, so the stage image shown at once and the
   full-size one that replaces it never resize it — no jump. */
.bm-lb {
	position: fixed;
	inset: 0;
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 4vh 5vw;
	border: 0;
	background: rgba(22, 24, 38, .55);
	color: #fff;
	-webkit-backdrop-filter: blur(18px) saturate(115%);
	backdrop-filter: blur(18px) saturate(115%);
	opacity: 0;
	transition: opacity 260ms var(--bm-ease-out);
	/* never scrolls: a modal <dialog> is overflow:auto by default, and the prev / next slide (±28px) briefly made a
	   horizontal scrollbar that lifted the whole photo (owner 2026-09-29) */
	overflow: hidden;
	overscroll-behavior: contain;
}
.bm-lb[open] { display: flex; align-items: center; justify-content: center; }
.bm-lb.is-in { opacity: 1; }
.bm-lb::backdrop { background: transparent; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bm-lb { background: rgba(14, 15, 24, .9); }
}
.bm-lb__fig { --lb-w: 88vw; --lb-h: 80dvh; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.bm-lb__img {
	display: block;
	width: min(var(--lb-w), calc(var(--lb-h) * var(--lb-r, 1.5)));
	max-width: none;
	height: auto;
	aspect-ratio: var(--lb-r, 1.5);
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
	object-fit: contain;
	opacity: 0;
	transform: scale(.965);
	transition: opacity 280ms var(--bm-ease-out), transform 340ms var(--bm-ease-out);
}
.bm-lb.is-in .bm-lb__img { opacity: 1; transform: none; }
/* the caption line is always there (filled on open, not after it): its arrival never moves the centred photo */
.bm-lb__cap { min-height: 1.6em; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bm-lb__close { position: absolute; top: 18px; right: 22px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 28px; cursor: pointer; transition: background 160ms ease; }
.bm-lb__nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; cursor: pointer; transform: translateY(-50%); transition: background 160ms ease; }
.bm-lb__nav:hover, .bm-lb__close:hover { background: rgba(255, 255, 255, .26); }
.bm-lb__nav:focus-visible, .bm-lb__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bm-lb__nav--prev { left: max(16px, 1.6vw); }
.bm-lb__nav--next { right: max(16px, 1.6vw); }
@media (prefers-reduced-motion: reduce) {
	.bm-lb, .bm-lb__img { transition: none; }
	.bm-lb__img { transform: none; }
}

/* ---------- price matrix (design PriceMatrix2A) ---------- */
.bm-pp-prices .bm-pp-shead { align-items: flex-end; margin-bottom: 28px; }
.bm-pp-prices__diff { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bm-pm { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 6px; background: #fff; }
.bm-pm__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bm-pm__table thead th { padding: 18px; border-top: 3px solid transparent; background: var(--bm-navy); font: 700 1.02rem/1.2 var(--bm-fd); text-align: left; white-space: nowrap; color: #fff; }
.bm-pm__table thead .bm-pm__size { width: 18%; font: 700 12px/1.2 var(--bm-fb); letter-spacing: .08em; text-transform: uppercase; color: var(--bm-on-dark); }
.bm-pm__table thead .is-featured { border-top-color: var(--bm-orange); color: var(--bm-orange-text); }
.bm-pm__table tbody tr { border-top: 1px solid var(--bm-border); }
.bm-pm__table tbody tr:nth-child(even) > * { background: var(--bm-g50); }
.bm-pm__table tbody th { padding: 18px; font: 700 1.4rem/1.2 var(--bm-fd); text-align: left; vertical-align: top; color: var(--bm-strong); }
.bm-pm__table td { padding: 18px; vertical-align: top; }
.bm-pm__cell { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.bm-pm__code { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-pm__price { font: 700 1.32rem/1 var(--bm-fd); white-space: nowrap; color: var(--bm-strong); }
.bm-pm__price small { font-size: .78rem; font-weight: 500; color: var(--bm-muted-text); }
.bm-pm__none { color: var(--bm-muted-text); }
.bm-pm__buy { padding: 9px 16px; border: 1.5px solid var(--bm-orange); background: transparent; font-size: 12.5px; }
.bm-pm__buy:hover { background: var(--bm-orange-fill); color: #fff; }
@media (max-width: 900px), (pointer: coarse) {
	.bm-pm__buy { min-height: 44px; }
}
@media (max-width: 1100px) {
	.bm-pm__table thead th, .bm-pm__table tbody th, .bm-pm__table td { padding: 14px; }
	.bm-pm__table tbody th { font-size: 1.15rem; }
	.bm-pm__table thead .bm-pm__size { width: 16%; }
}
/* ≤900 px: one card per size; its classes flow 3 → 2 → 1 inside it, no horizontal scroll */
@media (max-width: 900px) {
	.bm-pm { overflow: visible; border: 0; background: none; }
	.bm-pm__table, .bm-pm__table tbody { display: block; }
	.bm-pm__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.bm-pm__table tbody tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--bm-border); border-radius: 6px; background: var(--bm-border); }
	.bm-pm__table tbody tr:nth-child(even) > * { background: #fff; }
	.bm-pm__table tbody th { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--bm-navy); font-size: 1.2rem; color: #fff; }
	.bm-pm__table tbody tr:nth-child(even) > th { background: var(--bm-navy); }
	.bm-pm__table tbody th::before { content: attr(data-label); font: 700 12px/1.2 var(--bm-fb); letter-spacing: .08em; text-transform: uppercase; color: var(--bm-on-dark); }
	.bm-pm__table td { display: block; padding: 14px 16px 16px; border-top: 3px solid transparent; background: #fff; }
	/* the featured class card is --bm-orange-soft: the muted grey #6B6F85 gives 4.48:1 there → g600 (5.46:1) */
	.bm-pm__table td.is-featured { --bm-muted-text: var(--bm-g600); border-top-color: var(--bm-orange); background: var(--bm-orange-soft); }
	.bm-pm__table tbody tr:nth-child(even) > td.is-featured { background: var(--bm-orange-soft); }
	.bm-pm__table td::before { content: attr(data-label); display: block; margin-bottom: 8px; font: 700 .98rem/1.2 var(--bm-fd); color: var(--bm-strong); }
	.bm-pm__table td.is-featured::before { color: var(--bm-orange-text); }
	.bm-pm__buy { align-self: stretch; }
}
@media (max-width: 480px) {
	.bm-pm__price { font-size: 1.1rem; }
}

/* ---------- «Опис»: a plain section under a styled label (owner 2026-11-04: no tab bar; the options moved to the rows below;
   section labels are not headings) ---------- */
.bm-pp-about__label { margin: 0 0 18px; font: 800 22px/1.2 var(--bm-fd); letter-spacing: -.01em; color: var(--bm-strong); }
.bm-pp-desc { max-width: 880px; }
/* description «Детальніше» (owner 2026-10-07: on phones the first paragraph, the rest unfolds smoothly; single-post.php
   bm_product_desc_parts()): the rest sits in .bm-pp-more > .bm-pp-more__in — on wider screens and without scripts plain
   blocks (their margins collapse as before: nothing moves); at ≤ 767 px with scripts the wrapper is folded to height 0
   and its text is hidden from the keyboard and screen readers while folded (visibility); the button toggles .is-open +
   aria-expanded and product.js moves the wrapper's own height in px over 320 ms ease-out (2026-10-08, as the accordion
   below: the wrapper is the clip, so the button follows the last line shown — the grid rows 0fr ↔ 1fr of 2026-10-07 let it
   run ~200 px ahead). It clips only while folded or moving (.is-moving), with overflow: clip; the text box is a flow root,
   so its margins stay inside it in every state (as in the old grid's clipped row) */
.bm-pp-more__in > :last-child { margin-bottom: 0; }
.bm-pp-more__btn { display: none; }
@media (max-width: 767px) and (scripting: enabled) {
	.bm-pp-more:not(.is-open) { height: 0; overflow: clip; }
	.bm-pp-more.is-moving { overflow: clip; }
	.bm-pp-more__in { display: flow-root; }
	.bm-pp-more:not(.is-open):not(.is-moving) > .bm-pp-more__in { visibility: hidden; }
	.bm-pp-more__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; padding: 0; border: 0; background: none; font: 700 15px/1.3 var(--bm-fb); color: var(--bm-orange-text); cursor: pointer; }
	.bm-pp-more__btn .bm-ico { width: 18px; height: 18px; stroke-width: 2.4; transition: transform 320ms var(--bm-ease-out); }
	.bm-pp-more__btn[aria-expanded="true"] .bm-ico { transform: rotate(180deg); }
}
@supports not (overflow: clip) { /* Safari < 16: hidden (nothing sticky in the text) */
	@media (max-width: 767px) and (scripting: enabled) {
		.bm-pp-more:not(.is-open), .bm-pp-more.is-moving { overflow: hidden; }
	}
}

/* options (no overflow: hidden — it would cut the tooltips of the last rows; the header cells take the corner radius) */
.bm-opts { width: 100%; border: 1px solid var(--bm-border); border-radius: 6px; border-collapse: separate; border-spacing: 0; }
.bm-opts th { padding: 14px 22px; background: var(--bm-g50); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-opts th:first-child { border-top-left-radius: 5px; }
.bm-opts th:last-child { border-top-right-radius: 5px; }
.bm-opts td { padding: 18px 22px; border-top: 1px solid var(--bm-border); vertical-align: middle; }
.bm-opts__name { overflow-wrap: anywhere; font-weight: 600; color: var(--bm-strong); } /* a longer name from a template breaks rather than pushes the table out of its row */
.bm-opts .bm-opts__price { width: 1%; text-align: right; white-space: nowrap; font-family: var(--bm-fd); font-weight: 700; color: var(--bm-strong); }
.bm-opts th.bm-opts__price { font-family: var(--bm-fb); color: var(--bm-muted-text); }

/* tooltip (<details>): the old hover popups, readable without JS. The «?» is 20 px; the summary around it is a 44 px
   target whose negative margins keep the 20 px footprint in the line. product.js closes a tip on a click elsewhere or
   Esc, keeps one open at a time and, above 900 px, shifts a tip that would cross the viewport edge (--bm-tip-dx). */
.bm-tip { display: inline-block; position: relative; margin-left: 6px; vertical-align: middle; font-size: 14px; font-weight: 400; }
.bm-tip summary { display: grid; place-items: center; width: 44px; height: 44px; margin: -12px; border-radius: 50%; list-style: none; cursor: pointer; }
.bm-tip summary::-webkit-details-marker { display: none; }
.bm-tip summary:focus-visible { outline: 0; }
.bm-tip__q { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bm-g200); font-size: 12px; font-weight: 700; line-height: 1; color: var(--bm-g600); }
.bm-tip summary:focus-visible .bm-tip__q { outline: 2px solid var(--bm-orange); outline-offset: 2px; }
.bm-tip summary:hover .bm-tip__q, .bm-tip[open] .bm-tip__q { background: var(--bm-orange-fill); color: #fff; }
.bm-tip__body { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 20; display: flex; flex-direction: column; gap: 10px; width: max-content; max-width: min(320px, 80vw); padding: 12px 14px; border: 1px solid var(--bm-border); border-radius: 6px; background: #fff; box-shadow: var(--bm-shadow-md); font-size: 13.5px; line-height: 1.5; color: var(--bm-text); transform: translateX(calc(-50% + var(--bm-tip-dx, 0px))); }
.bm-tip__img { width: 100%; max-width: 240px; height: auto; border-radius: 4px; }
/* ≤900 px: the popup hangs from its table cell (full cell width, just under the «?»), never from the 20 px icon, so
   it cannot start or end off-screen */
@media (max-width: 900px) {
	.bm-opts__name { position: relative; }
	.bm-tip { position: static; }
	.bm-tip__body { top: auto; left: 0; right: 0; width: auto; max-width: 480px; margin-top: 10px; transform: none; }
}

/* ---------- «Що входить у вартість»: accordion of <details> (design Accordion: one bordered list, rows divided by a
   hairline, the open row's title on a grey ground, a square +/− toggle). No overflow clipping on the list: it would cut
   the «?» popups of the options table's last rows; the title grounds take the corner radius instead.
   Smooth rows (owner 2026-10-07 «по нажатию на плюсик … плавно»; 2026-10-08: all three alike, no jump of the table
   head): product.js animates the clip box's height in px over 320 ms ease-out, between 0 and the part of the body on the
   screen (the rest comes and goes at once, below the screen's edge); it keeps .is-shut on a closed row (opening: [open]
   first, then the class goes; closing: the class first, [open] goes when the row has folded) and .is-moving while a row
   moves — only then the clip box clips, so a settled open row lets the «?» popups out. Without scripts no class is ever
   set: the native <details> opens at once. The open look (grey title ground, orange −) follows [open]:not(.is-shut), so
   the toggle turns as soon as a row starts to close. ---------- */
.bm-pp-acc { border: 1px solid var(--bm-border); border-radius: 6px; background: #fff; }
.bm-pp-acc .bm-acc__item + .bm-acc__item { border-top: 1px solid var(--bm-border); }
.bm-pp-acc .bm-acc__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; font: 600 1.02rem/1.35 var(--bm-fb); color: var(--bm-strong); cursor: pointer; transition: background-color 180ms var(--bm-ease-out); }
.bm-pp-acc .bm-acc__item > summary::-webkit-details-marker { display: none; }
.bm-pp-acc .bm-acc__item > summary:focus-visible { outline-offset: -3px; }
.bm-pp-acc .bm-acc__item[open]:not(.is-shut) > summary { background: var(--bm-g50); }
.bm-pp-acc .bm-acc__item:first-child > summary { border-radius: 5px 5px 0 0; }
.bm-pp-acc .bm-acc__item:last-child:is(:not([open]), .is-shut) > summary { border-radius: 0 0 5px 5px; }
.bm-pp-acc .bm-acc__item:only-child:is(:not([open]), .is-shut) > summary { border-radius: 5px; }
.bm-pp-acc__tgl { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--bm-r); background: var(--bm-g100); color: var(--bm-navy-700); transition: background-color 180ms var(--bm-ease-out), color 180ms var(--bm-ease-out); }
.bm-pp-acc__tgl .bm-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.bm-pp-acc__bar { transform-box: fill-box; transform-origin: center; transition: transform 200ms var(--bm-ease-out); }
.bm-pp-acc .bm-acc__item > summary:hover .bm-pp-acc__tgl { color: var(--bm-orange); }
.bm-pp-acc .bm-acc__item[open]:not(.is-shut) .bm-pp-acc__tgl { background: var(--bm-orange); color: #fff; }
.bm-pp-acc .bm-acc__item[open]:not(.is-shut) .bm-pp-acc__bar { transform: scaleY(0); }
/* the fold (the mobile menu's accordion in chrome.css shares the .bm-acc__* names: its grid fold and clipped inner box
   are switched off here). The moving clip box clips with overflow: clip, not hidden: hidden makes it a scroll box, and
   the table's sticky head (top: --bm-hdr-h) then sticks inside it — 84 px down over the first row — and jumps back up
   when the row settles. */
.bm-pp-acc .bm-acc__body { display: block; }
.bm-pp-acc .bm-acc__body > .bm-acc__clip { overflow: visible; }
.bm-pp-acc .bm-acc__item.is-moving > .bm-acc__body > .bm-acc__clip { overflow: clip; }
@supports not (overflow: clip) { /* Safari < 16: hidden, and the head lies still while its row moves */
	.bm-pp-acc .bm-acc__item.is-moving > .bm-acc__body > .bm-acc__clip { overflow: hidden; }
	.bm-pp-acc .bm-acc__item.is-moving .bm-tech-tbl__head { position: static; }
}
.bm-pp-acc .bm-acc__in { padding: 20px 22px 22px; }
.bm-pp-acc .bm-acc__in.bm-rich :is(h2, h3, h4) { font-size: 1.05rem; } /* the stored «фундамент» headings (h4 → h2, bm_product_text_html()) keep their size */

/* the class table in its row (assets/css/tech-table.css; template-parts/technology/table.php, embed mode): the switch alone
   on a line, right-hand; the head's sticky place and the stacked layouts are the shared rules' */
.bm-tech-embed__bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
/* the columns are narrower than on /technology/, which these two rules do not reach: the tag under a class name wraps instead
   of ending in «…» («Максимальна комплектація», 4 classes), a long word stays in its cell */
.bm-tech-embed .bm-tech-tbl__ctag { white-space: normal; }
.bm-tech-embed .bm-tech-tbl__val { overflow-wrap: anywhere; }

/* RETIRED 2026-10-04 (no template prints .bm-cf7--open: the catalog «open» CF7 form 16579 / 16578 was replaced by the
   short form row «Дізнатися ціну», itself removed on 2026-10-07 with its .bm-pp-lead rules) — kept until after launch
   (site/docs/checklist-later.md) */
.bm-cf7--open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 16px; }
.bm-cf7--open .bm-cf7__title { grid-column: 1 / -1; margin: 0; font: 800 1.45rem/1.25 var(--bm-fd); color: var(--bm-strong); text-wrap: balance; }
.bm-cf7--open .bm-cf7__phones { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 22px; margin: -14px 0 -6px; }
.bm-cf7--open .bm-cf7__phones a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1.1rem/1.3 var(--bm-fd); color: var(--bm-strong); }
.bm-cf7--open .bm-cf7__phones a:hover { color: var(--bm-orange-text); }
.bm-cf7--open .wpcf7-submit { width: auto; min-height: 47px; }
.bm-cf7--open .wpcf7-response-output { grid-column: 1 / -1; }
@media (max-width: 1100px) {
	.bm-cf7--open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-cf7--open .wpcf7-submit { width: 100%; }
}
@media (max-width: 767px) {
	.bm-cf7--open { grid-template-columns: 1fr; }
	.bm-cf7--open .bm-cf7__title { font-size: 1.2rem; }
}

/* ---------- models row «Інші моделі: СБТ2 · … · Усі 27 моделей →» (owner 2026-10-07: under the accordion, on the white
   ground — the least prominent place; the chips = the category filter chips .bm-cat-chip, catalog.css). Phones: the label
   on its own line, the chips wrap. ---------- */
.bm-pp-models { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 32px; }
.bm-pp-models__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--bm-muted-text); }
.bm-pp-models__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bm-pp-models__all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: 6px; font-size: 14px; font-weight: 600; color: var(--bm-strong); text-decoration: underline; text-underline-offset: 3px; }
.bm-pp-models__all .bm-ico { width: 16px; height: 16px; color: var(--bm-orange); }
.bm-pp-models__all:hover { color: var(--bm-orange-text); }

/* ---------- «Наші роботи / Реалізовані проєкти» (owner 2026-10-07, mock-up A): the works page's related band on the grey
   ground, the last part of the article (the article's end padding moves into it); the cards = the works page's
   (.bm-pgrid of .bm-pgcard, catalog.css), the heading = this page's section heading (.bm-pp-shead) ---------- */
.bm-pp:has(> .bm-pp-works:last-child) { padding-bottom: 0; }
.bm-pp-works { margin-top: 64px; padding: 56px 0 var(--bm-sec-y-end); border-block: 1px solid var(--bm-border); background: var(--bm-g50); }
.bm-pp-works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.bm-pp-works__head .bm-pp-shead { min-width: 0; margin-bottom: 0; }
.bm-pp-works__head .bm-btn { flex: none; }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
	/* design: the hero stacks — gallery, then the info rail (title, rating, lead, chips, price) at the full width */
	.bm-pp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gal" "head" "body"; grid-template-rows: auto; }
	.bm-pp-hero__gallery { margin-bottom: 8px; }
}
@media (max-width: 480px) {
	.bm-pp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.bm-pp-buy { padding: 18px; border: 1px solid var(--bm-border); border-radius: 8px; background: var(--bm-g50); }
	.bm-pp-buy__note { display: block; }
	.bm-pp-sec { padding-top: 48px; }
	.bm-pp__crumbs { padding-top: 16px; }
	.bm-pp-hero { padding-top: 16px; row-gap: 16px; }
	.bm-pp-shead .bm-h2 { font-size: 22px; }
	.bm-pp-specs { gap: 14px 12px; padding: 16px 0; }
	.bm-gal__thumb { flex-basis: calc((100% - 3 * 10px) / 4); }
	.bm-gal__thumbs, .bm-gal__strip { gap: 10px; }
	/* 4 thumbnails show here: 5 photos need prev / next too */
	.bm-gal__strip--nav-sm .bm-gal__nav { display: grid; }
	.bm-gal__strip--nav-sm .bm-gal__thumbs { scrollbar-width: none; }
	.bm-gal__strip--nav-sm .bm-gal__thumbs::-webkit-scrollbar { display: none; }
	.bm-opts th, .bm-opts td { padding: 14px; }
	.bm-pp-acc .bm-acc__item > summary { padding: 16px 18px; font-size: 1rem; }
	.bm-pp-acc .bm-acc__in { padding: 16px 18px 18px; }
	.bm-tech-embed .bm-tech-seg__btn { min-height: 44px; } /* the switch of the class table: the touch norm; /technology/ keeps its own size */
	.bm-lb { padding: 64px 12px 84px; }
	.bm-lb__fig { --lb-w: calc(100vw - 24px); --lb-h: 68dvh; }
	.bm-lb__nav { top: auto; bottom: 18px; transform: none; width: 48px; height: 48px; }
	.bm-pp-models { gap: 10px; padding-top: 24px; }
	.bm-pp-models__label { flex-basis: 100%; }
	.bm-pp-works { margin-top: 48px; padding-top: 40px; }
	.bm-pp-works__head { margin-bottom: 20px; }
}
/* below 360 px: the rows give their side padding to the tables in them. RU «Электроконвектор» + the nowrap price need 288 px
   in the options table (254 px of row at 320); RU «кондиционирования,» needs 141 px of the stacked table's value column */
@media (max-width: 359px) {
	.bm-opts th, .bm-opts td { padding-inline: 9px; }
	.bm-pp-acc .bm-acc__item > summary, .bm-pp-acc .bm-acc__in { padding-inline: 10px; }
	.bm-tech-embed .bm-tech-tbl__cell { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; }
}
/* touch / phones: prev / next are 44 px wide buttons (their own box, not a pseudo-element hit area), 4 px into the strip
   gaps on each side (negative margins: the layout keeps its 36 px column), above the thumbnail track's padding; the
   visible 36 px box with its border is drawn by ::before, so the look does not change */
@media (max-width: 767px), (pointer: coarse) {
	.bm-pp-models__all { min-height: 44px; }
	.bm-gal__nav { z-index: 1; isolation: isolate; width: 44px; min-height: 44px; margin-right: -4px; margin-left: -4px; border-color: transparent; background: none; }
	.bm-gal__nav::before { content: ""; position: absolute; inset: -1px 3px; z-index: -1; border: 1px solid var(--bm-border); border-radius: 4px; background: #fff; transition: border-color 180ms var(--bm-ease-out); }
	.bm-gal__nav:hover, .bm-gal__nav[disabled]:hover, .bm-gal__nav[aria-disabled="true"]:hover { border-color: transparent; }
	.bm-gal__nav:hover::before { border-color: var(--bm-g300); }
	.bm-gal__nav[disabled]:hover::before, .bm-gal__nav[aria-disabled="true"]:hover::before { border-color: var(--bm-border); }
}
@media (prefers-reduced-motion: reduce) {
	.bm-gal__nav, .bm-gal__nav::before, .bm-gal__thumb, .bm-gal__thumb img, .bm-pp-acc .bm-acc__item > summary, .bm-pp-acc__tgl, .bm-pp-acc__bar,
	.bm-pp-more__btn .bm-ico { transition: none; }
	.bm-gal__stage { scroll-behavior: auto; }
}
