/* Hero slider — design Home «Hero · C». */
.bm-b-hero {
	position: relative;
	display: grid;
	min-height: max(620px, calc(100vh - var(--bm-hdr-h)));
	overflow: hidden;
	background: var(--bm-navy-900);
	color: #fff;
}

.bm-b-hero__slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	overflow: clip; /* not a scroll container: the text scrim below reaches past the slide edges */
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease, visibility 0s linear 900ms;
}
.bm-b-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 900ms ease, visibility 0s;
}

.bm-b-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 9000ms linear;
}
.bm-b-hero__slide.is-active .bm-b-hero__img { transform: scale(1.09); }
/* Slides 2+ load after the first photo (o93 B6 T2): until view.js arms the slider, the photos of the hidden slides are
   not rendered, so their lazy images wait instead of sharing a slow phone line with the first photo (−0.9 MB before
   the LCP on / and /ua/). Without scripts the slides never change, so nothing visible is lost. Undo: delete this rule
   and the arm() lines in view.js. */
.bm-b-hero:not(.is-armed) .bm-b-hero__slide:not(.is-active) .bm-b-hero__img { display: none; }
/* the zoom starts on the landing view (owner 2026-10-23: «картинка-фон на главном экране долго не приближается»).
   The first slide is printed .is-active, so its photo got scale(1.09) with its very first style: no transition, the
   photo stood still until the slider came back to it (~24 s); only the later slides zoomed. The starting style below
   gives the active photo the resting scale(1.001) for that first style, so it zooms 1.001 -> 1.09 in the same 9 s
   linear transition as every later slide, from the first frame; slide changes stay as they were (a slide that leaves
   or comes back mid-zoom carries on from where it is). Not a CSS animation on the photo: in Chrome it took the
   transition away, and a leaving slide snapped to 1.001 while still fading out (measured 2026-10-23, round 57).
   Browsers without @starting-style keep the still first photo, as before. Undo: delete this block. */
@starting-style {
	.bm-b-hero__slide.is-active .bm-b-hero__img { transform: scale(1.001); }
}

.bm-b-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(12, 14, 26, .9) 0%, rgba(12, 14, 26, .72) 34%, rgba(12, 14, 26, .28) 66%, rgba(12, 14, 26, .45) 100%);
}

.bm-b-hero__body {
	position: relative;
	width: 100%;
	display: flex;
	align-items: flex-start;
	gap: 34px;
	padding-top: 48px;
	padding-bottom: 150px; /* room for the controls bar */
}
.bm-b-hero__num {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	align-self: stretch;
	padding-top: 8px;
}
.bm-b-hero__num span {
	font: 800 56px/1 var(--bm-fd);
	color: rgba(255, 255, 255, .14);
}
.bm-b-hero__num i {
	display: block;
	flex: 1;
	width: 1px;
	min-height: 90px;
	background: linear-gradient(180deg, var(--bm-orange), rgba(255, 255, 255, .1));
}
.bm-b-hero__text { position: relative; z-index: 0; max-width: 690px; }
/* scrim behind the copy (owner 2026-09-28 «contrast = darker»: small text ≥ 4.5:1 on any slide photo). The shade
   alone fades to .28 across the text column, so the eyebrow / sub / ghost button sat on bright facades (1.5:1 on
   phones and tablets). A pseudo-element of the text block follows the copy wherever the slide puts it: a soft dark
   panel from the number column's gap through the text column, 90 px above and below it, fading out on every side
   (eased, 280 px to the right), so the photo stays clear around the copy. The text block is its own stacking
   context: the scrim paints above the photo and the shade, below the text; the slide clips it. */
.bm-b-hero__text::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -90px;
	bottom: -90px;
	left: -34px;
	right: -280px;
	background: linear-gradient(90deg, rgba(12, 14, 26, 0), rgba(12, 14, 26, .66) 34px, rgba(12, 14, 26, .66) calc(100% - 280px),
		rgba(12, 14, 26, .5) calc(100% - 200px), rgba(12, 14, 26, .26) calc(100% - 120px), rgba(12, 14, 26, .08) calc(100% - 50px), rgba(12, 14, 26, 0));
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
	mask-image: linear-gradient(180deg, transparent, #000 90px, #000 calc(100% - 90px), transparent);
	pointer-events: none;
}

.bm-b-hero__kicker {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--bm-orange-text);
}
.bm-b-hero__title {
	margin: 0 0 20px;
	font-family: var(--bm-fd);
	font-weight: 800;
	font-size: 58px;
	line-height: 1.06;
	letter-spacing: -.015em;
	text-transform: uppercase;
	color: #fff;
	text-wrap: balance;
}
.bm-b-hero__sub {
	max-width: 560px;
	margin: 0 0 34px;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .84);
	text-wrap: pretty;
}
.bm-b-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bm-b-hero__cta .bm-btn--primary { padding: 17px 32px; }
.bm-b-hero__cta .bm-btn--ghost { padding: 16px 30px; }

/* controls */
.bm-b-hero__ctrl {
	position: absolute;
	left: 0; right: 0; bottom: 40px;
	z-index: 5;
}
.bm-b-hero__ctrl-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bm-b-hero__arrows { display: flex; gap: 12px; }
.bm-b-hero__arrow {
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	background: rgba(12, 14, 26, .3);
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: background 200ms ease, border-color 200ms ease;
}
.bm-b-hero__arrow .bm-ico { stroke-width: 2.2; }
.bm-b-hero__arrow:hover { background: var(--bm-orange); border-color: var(--bm-orange); }

.bm-b-hero__thumbs { display: flex; gap: 12px; }
.bm-b-hero__thumb {
	width: 124px; height: 78px;
	padding: 0;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, .28);
	border-radius: var(--bm-r);
	background: none;
	opacity: .55;
	cursor: pointer;
	transition: opacity 240ms ease, border-color 240ms ease;
}
.bm-b-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bm-b-hero__thumb:hover { opacity: .85; }
.bm-b-hero__thumb.is-active { opacity: 1; border-color: var(--bm-orange); }

@media (prefers-reduced-motion: reduce) {
	.bm-b-hero__img, .bm-b-hero__slide.is-active .bm-b-hero__img { transform: none; transition: none; }
}

/* tablet */
@media (max-width: 1100px) {
	.bm-b-hero { min-height: 560px; }
	.bm-b-hero__body { gap: 24px; padding-bottom: 130px; }
	.bm-b-hero__num span { font-size: 40px; }
	.bm-b-hero__title { font-size: 42px; }
	.bm-b-hero__thumb { width: 92px; height: 58px; }
	/* 768–1100 px the buttons are 44 px tall (owner 2026-10-05, checklist item 12 «кнопки на слайдах главной на планшетах
	   сделать 44 px»; 42 px before): the -1 px block margins keep their row 42 px, so the 2 px grow 1 px up and 1 px down
	   around the same label line and nothing else on the slide moves (phones: 46 px, below) */
	.bm-b-hero__cta .bm-btn { height: 44px; margin-block: -1px; padding: 0 20px; font-size: 12.5px; white-space: nowrap; }
}

/* mobile */
@media (max-width: 767px) {
	.bm-b-hero { min-height: calc(100svh - var(--bm-hdr-h)); max-height: 760px; }
	.bm-b-hero__slide { align-items: flex-end; }
	/* phones: the copy sits at the bottom, so the photo shows above it under a light shade and the scrim turns
	   vertical: transparent 110 px above the eyebrow → .8 from 10 px above it down to the slide's bottom edge */
	.bm-b-hero__shade { background: linear-gradient(180deg, rgba(12, 14, 26, .3) 0%, rgba(12, 14, 26, .45) 100%); }
	.bm-b-hero__text::before {
		top: -110px;
		bottom: -100vh;
		left: -100vw;
		right: -100vw;
		background: linear-gradient(180deg, rgba(12, 14, 26, 0), rgba(12, 14, 26, .8) 100px);
		-webkit-mask-image: none;
		mask-image: none;
	}
	.bm-b-hero__body { padding-top: 40px; padding-bottom: 104px; }
	.bm-b-hero__num { display: none; }
	.bm-b-hero__kicker { margin-bottom: 12px; font-size: 11px; letter-spacing: .18em; }
	.bm-b-hero__title { font-size: 31px; letter-spacing: -.01em; }
	.bm-b-hero__sub { margin-bottom: 24px; font-size: 15.5px; }
	.bm-b-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
	.bm-b-hero__cta .bm-btn { height: 46px; margin-block: 0; }
	.bm-b-hero__ctrl { bottom: 28px; }
	/* thumbnails become progress dashes (36 × 4 px, 8 px apart), each in a 44 × 44 tap area; the row's negative
	   margins keep the dashes where they were (4 px each side, 10 px below the arrows' baseline) */
	.bm-b-hero__thumbs { gap: 0; margin: 0 -4px -10px; }
	.bm-b-hero__thumb { position: relative; width: 44px; height: 44px; border: 0; border-radius: 0; opacity: 1; }
	.bm-b-hero__thumb img { display: none; }
	.bm-b-hero__thumb::after { content: ""; position: absolute; left: 4px; right: 4px; top: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
	.bm-b-hero__thumb.is-active::after { background: var(--bm-orange); }
	/* (owner «да» 2026-10-05) the copy column is a flex item of its slide and the slides are grid items of the hero, so
	   without min-width: 0 both grew to the title's longest word and the buttons, stretched to the column, ran past the
	   gutter or the screen edge. With it the column and the buttons stay between the gutters whatever a title holds (and
	   in every font phase); a word that is too long can only overflow the title itself. */
	.bm-b-hero__slide, .bm-b-hero__text { min-width: 0; }
}
/* RU title on phones (owner «да» 2026-10-05: the 320 px round and checklist question 11). «БЫСТРОВОЗВОДИМЫЕ» is 12.72 ×
   the font size with the web font (394 px at 31 px, 343 px at 27 px) and 13.07 × with the landing view's fallback face
   (:root.bm-fl, ≤ 3 s), so at 31 px it fits the column (width − 2 × 18 px) only from 431 px (fallback face: 442 px), and
   at the 27 px of ≤ 400 px (width − 2 × 14 px) from ≈ 374 px (≈ 381 px). Below that the title scales with the hero's
   width so that the word fits between the gutters, with ONE divisor (13.2, the fallback face's width) in every font
   phase, so the size is the same before and after the web font arrives: 27.7 px at 401, 28.5 at 412, 29.9 at 430,
   22.1 at 320, 25.1 at 360. The UA titles fit as they are («ШВИДКОЗВОДИМІ» is 10.12 ×), so above 400 px they keep
   31 px. */
@media (max-width: 441px) {
	.bm-b-hero { container-type: inline-size; }
	.bm-b-hero__title:lang(ru) { font-size: min(31px, calc((100cqi - 2 * var(--bm-pad)) / 13.2)); }
}
@media (max-width: 400px) {
	/* the narrowest phones: the same rule under the 27 px of these widths, for both languages since the 320 px round
	   (27 px first for browsers without container units) */
	.bm-b-hero__title { font-size: 27px; font-size: min(27px, calc((100cqi - 2 * var(--bm-pad)) / 12.8)); }
	.bm-b-hero__title:lang(ru) { font-size: 27px; font-size: min(27px, calc((100cqi - 2 * var(--bm-pad)) / 13.2)); }
}
/* slide 1 eyebrow on the landing view (verifier 2026-10-05): the UA text «Швидкозводимі будівлі …» needs a 378 px column
   for two lines with the web font but only 374 px with the fallback face (:root.bm-fl, ≤ 3 s), so at 410–413 px (411 /
   412 are common Android widths) it set two lines first and three after the swap, and the bottom-aligned copy with its
   scrim moved up 18 px (CLS 0.011 on slow 4G at UA 412). A 32em measure (352 px at 11 px; it must stay ≥ 328 px, where
   the RU text keeps three lines in both faces, and < 374 px) gives three lines in both faces on these widths, the same
   rule in every font phase. With the web font the copy keeps its height at every width; only the words per line change
   (3 + 2 + 2 instead of 3 + 3 + 1) at UA 382–413 and RU 400 and 408–413 px. */
@media (max-width: 413px) {
	.bm-b-hero__kicker { max-width: 32em; }
}
/* the H1 of the home pages on phones (owner's chat request of 2026-11-10, after step 137's new titles «Быстровозводимые модульные
   здания для жизни и бизнеса» / «Швидкозводимі модульні будівлі для життя та бізнесу»): with the column's width alone the titles
   changed their line count on the font swap at some phone widths (RU 388–390, 450–451, 666–678 px; UA 381–382, 442, 590 px;
   CLS 0.0227 at / 390 px with the fonts held). A measure in em, the same in both font faces, keeps one line count per width
   (round o83 test injection tryA; the titles take four lines on phones). */
@media (max-width: 767px) {
	.bm-b-hero__title:lang(ru) { max-width: 13.2em; }
	.bm-b-hero__title:lang(uk) { max-width: 12.8em; }
}
/* Q3 start. Phones: the photo is a window ABOVE the copy (owner answer Q3 «А», 22.11, round o94; advice int/img95/advice/phone/phone.md
   §2 / §4.1). Before, the photo filled the whole slide under the copy, so a phone showed 26-34 % of its width and only a strip of it
   above the text. Now it takes the top 46 % of the slide and fades out over its last 17 % into the slide's navy; the copy, its scrim,
   the light shade, the slide height, the zoom and reduced motion stay as they were, and so do the files, sizes, loading and
   fetchpriority. --bm-fx = the horizontal focus of a slide's photo (default 50 %), set per file here (the block has no focus field):
   slide 2 bmz-3et 62 %, slide 4 office-8x3-premium 34 % (phone.md §2); slides 1 and 3 keep the centre (slide 3's own phone crop,
   phone.md §4.3, is a later option). 768 px and wider: nothing changes. The harness (bm_owner94 q3 rule) reads this block between
   the «Q3 start» / «Q3 end» marks and the rest of the file. Undo: delete this block. */
@media (max-width: 767px) {
	.bm-b-hero__img {
		bottom: auto;
		height: 46%;
		object-position: var(--bm-fx, 50%) 50%;
		transform-origin: var(--bm-fx, 50%) 50%;
		-webkit-mask-image: linear-gradient(180deg, #000 83%, transparent);
		mask-image: linear-gradient(180deg, #000 83%, transparent);
	}
	.bm-b-hero__img[src*="/bmz-3et"] { --bm-fx: 62%; }
	.bm-b-hero__img[src*="/office-8x3-premium"] { --bm-fx: 34%; }
}
/* Q3 end */
/* Г1 start. Home hero on small and turned phones: the text always under the photo, never over it (owner answer G1 of
   25.11: all items but G3, G4, G11, G16 = done by our advice; round o98, C98-1; designed on the hero after the
   configurator install: the orange button + the glass 3D button on every slide). Phones (767 px and narrower, either way
   up): the photo window of Q3 keeps a fixed height, 46 % of the first screen under the header (100svh - header): the
   same window as before on every phone whose copy fits, and it never changes size while the page loads or the slides
   turn; the copy starts at least 12 px below it. A short screen (320 x 568, 360 x 640, 375 x 667 ...) whose tallest
   slide does not fit under the window grows the hero to window + copy + the controls' room (no 760 px cap there).
   Landscape phones as wide as a tablet (768-1100 px wide, 500 px tall at most) take the same window above the copy
   instead of the desktop overlay: the light phone shade covers only the window, the number column hides; type, buttons
   and controls stay the tablet's. The copy's line count does not depend on the font face (the em measures above:
   title 13.2em / 12.8em, eyebrow 32em), so a grown hero keeps its height through the late font swap. 1101 px and wider,
   and tablets taller than 500 px: nothing changes. The harness (bm_owner94 q3 rule) strips this block, between its
   start / end marks, before it reads Q3. Undo: delete this block. */
@media (max-width: 767px) {
	.bm-b-hero { --bm-hero-win: calc(.46 * (100svh - var(--bm-hdr-h))); max-height: none; }
	.bm-b-hero__img { height: var(--bm-hero-win); }
	.bm-b-hero__body { padding-top: calc(var(--bm-hero-win) + 12px); }
}
@media (min-width: 768px) and (max-width: 1100px) and (max-height: 500px) and (orientation: landscape) {
	.bm-b-hero { --bm-hero-win: calc(.46 * (100svh - var(--bm-hdr-h))); min-height: calc(100svh - var(--bm-hdr-h)); }
	.bm-b-hero__slide { align-items: flex-end; }
	.bm-b-hero__img {
		bottom: auto;
		height: var(--bm-hero-win);
		-webkit-mask-image: linear-gradient(180deg, #000 83%, transparent);
		mask-image: linear-gradient(180deg, #000 83%, transparent);
	}
	.bm-b-hero__shade { bottom: auto; height: var(--bm-hero-win); background: linear-gradient(180deg, rgba(12, 14, 26, .3) 0%, rgba(12, 14, 26, .45) 100%); }
	.bm-b-hero__body { padding-top: calc(var(--bm-hero-win) + 12px); }
	.bm-b-hero__num { display: none; }
}
/* Г1 end */
