/* «Чому саме ми». Theme switches four colour variables. */
.bm-b-why--dark {
	--why-bg: var(--bm-navy-900);
	--why-head: #fff;
	--why-text: var(--bm-on-dark);
	--why-line: rgba(255, 255, 255, .12);
}
.bm-b-why--light {
	--why-bg: var(--bm-g50);
	--why-head: var(--bm-strong);
	--why-text: var(--bm-text);
	--why-line: var(--bm-border);
}
.bm-b-why { background: var(--why-bg); }
.bm-b-why .bm-h2 { color: var(--why-head); }
.bm-b-why .bm-shead { margin-bottom: 44px; }

.bm-b-why__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	margin-bottom: 46px;
	padding-bottom: 46px;
	border-bottom: 1px solid var(--why-line);
}
.bm-b-why__num { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.bm-b-why__num [data-count] {
	font: 800 52px/1 var(--bm-fd);
	letter-spacing: -.02em;
	color: var(--bm-orange);
	font-variant-numeric: tabular-nums;
}
.bm-b-why__unit {
	font: 700 17px/1.2 var(--bm-fd);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--why-head);
}
.bm-b-why__label { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--why-text); }

.bm-b-why__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.bm-b-why__h {
	margin: 0 0 18px;
	font: 700 13.5px/1.35 var(--bm-fd);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--why-head);
}
.bm-b-why__list { display: flex; flex-direction: column; gap: 14px; }
.bm-b-why__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.55; color: var(--why-text); }
.bm-b-why__list .bm-ico { width: 16px; height: 16px; margin-top: 3px; color: var(--bm-orange); stroke-width: 2.6; }

@media (max-width: 1100px) {
	.bm-b-why__stats, .bm-b-why__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-b-why__num [data-count] { font-size: 38px; }
}
@media (max-width: 767px) {
	.bm-b-why__stats { gap: 24px 16px; margin-bottom: 34px; padding-bottom: 34px; }
	.bm-b-why__num { justify-content: center; }
	.bm-b-why__label { text-align: center; }
	.bm-b-why__num [data-count] { font-size: 29px; }
	.bm-b-why__unit { font-size: 13px; }
	.bm-b-why__cols { grid-template-columns: 1fr; gap: 28px; }
	/* (owner «да» 2026-10-05) number + unit stay on one line while the pair fits its half-width cell, otherwise the unit
	   goes under the number: «45 специалистов» (174 px) and «500+ объектов» (166 px) are wider than the 138–175 px cells
	   of 320–390 px phones, so the centred pair spilled out on both sides — «45» cut off by the screen edge at 320–333 px
	   and in the left gutter up to 389 px, «объектов» in the right gutter up to 374 px (UA «об’єктів»: 320–348 px).
	   Nothing moves where the pair fits:
	   - margin-inline −1 px: a 1 px allowance per side, so a pair a fraction of a pixel too wide (RU «45 специалистов»
	     at 388–391 px) keeps its line;
	   - the number box keeps the width of its final value (::after with the data-count text, invisible, 0 px high), so
	     the count-up from 0 never changes the line count (no jump of the unit, no layout shift; the digits grow to the
	     left of a fixed unit);
	   - each cell is a subgrid of two rows, so the labels of a row stay level when only one cell wraps. */
	.bm-b-why__stats > li { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
	.bm-b-why__num { flex-wrap: wrap; margin-inline: -1px; }
	.bm-b-why__num [data-count] { display: inline-flex; flex-direction: column; align-items: flex-end; }
	.bm-b-why__num [data-count]::after { content: attr(data-count); height: 0; overflow: hidden; visibility: hidden; }
}
