/*
Theme Name: Баракат Молия
Theme URI: https://example.tj/
Author: Barakat Moliya
Description: Тема ТАҚХ «Баракат Молия» с конструктором страниц: библиотека блоков «Баракат» (главный экран, карточки продуктов, шаги, цифры, вопросы, баннеры, форма заявки) в стандартном редакторе WordPress. Три языка через Polylang, формы Contact Form 7. Курсы, калькуляторы и слайдеры — плагин «Баракат — финансовые модули».
Version: 2.0.10
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barakat
*/

/* =========================================================
   1. Шрифт и переменные
   ========================================================= */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 400; src: url(assets/fonts/onest-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 500; src: url(assets/fonts/onest-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 600; src: url(assets/fonts/onest-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 700; src: url(assets/fonts/onest-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 400; src: url(assets/fonts/onest-cyrillic-ext-400-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 500; src: url(assets/fonts/onest-cyrillic-ext-500-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 600; src: url(assets/fonts/onest-cyrillic-ext-600-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 700; src: url(assets/fonts/onest-cyrillic-ext-700-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 400; src: url(assets/fonts/onest-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 500; src: url(assets/fonts/onest-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 600; src: url(assets/fonts/onest-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 700; src: url(assets/fonts/onest-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	color-scheme: only light; /* не перекрашивать в тёмную тему системы */
	--bm-blue: #005099;
	--bm-red: #DA211A;
	--bm-blue-d: color-mix(in srgb, var(--bm-blue) 78%, #001a33);
	--bm-blue-dd: color-mix(in srgb, var(--bm-blue) 58%, #001a33);
	--bm-red-d: color-mix(in srgb, var(--bm-red) 84%, #000);
	--bm-ink: #0D2440;
	--bm-text: #1B2B40;
	--bm-muted: #56677D;
	--bm-line: #DCE5EF;
	--bm-soft: #EEF4FA;
	--bm-sky: color-mix(in srgb, var(--bm-blue) 12%, #fff);
	--bm-ok: #1d7f49;

	--bm-font: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
	--bm-w: 1240px;
	--bm-gut: clamp(16px, 4vw, 32px);
	--bm-r-lg: 28px;
	--bm-r-md: 18px;
	--bm-r-sm: 12px;
	--bm-gap: clamp(16px, 2vw, 24px);
	--bm-shadow: 0 1px 2px rgba(13, 36, 64, .06), 0 12px 32px -8px rgba(13, 36, 64, .16);

	--bm-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
	--bm-h2: clamp(1.65rem, 1.3rem + 1.4vw, 2.5rem);
	--bm-h3: 1.25rem;

	/* Орнамент: восьмиконечная звезда (хатам) с решёткой — узор таджикской резьбы. */
	--bm-orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M28 8L48 28L28 48L8 28Z'/%3E%3Cpath d='M13.86 13.86H42.14V42.14H13.86Z'/%3E%3Cpath d='M28 0V8M28 48V56M0 28H8M48 28H56M0 14L14 0M42 0L56 14M56 42L42 56M14 56L0 42'/%3E%3Ccircle cx='28' cy='28' r='4'/%3E%3C/svg%3E");
}

/* =========================================================
   2. База
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
html { background: #fff; color-scheme: only light; }
body {
	margin: 0;
	font-family: var(--bm-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--bm-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "tnum" 0;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--bm-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bm-blue-d); }
h1, h2, h3, h4 { color: var(--bm-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: var(--bm-h1); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: var(--bm-h2); }
h3 { font-size: var(--bm-h3); letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--bm-blue) 55%, #fff); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--bm-sky); color: var(--bm-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bm-skip:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--bm-shadow); }

.bm-container { width: 100%; max-width: calc(var(--bm-w) + var(--bm-gut) * 2); margin-inline: auto; padding-inline: var(--bm-gut); }
.bm-ico { width: 24px; height: 24px; flex: none; }
.bm-ico--sm { width: 18px; height: 18px; }
.bm-admin-hint { padding: 14px 18px; border: 1px dashed #c3ccd8; border-radius: var(--bm-r-sm); background: #fffbe8; color: #6b5800; font-size: 14px; }
.bm-admin-hint a { color: inherit; }

/* Орнамент: span.bm-orn, цвет задаёт color. */
.bm-orn {
	display: block;
	background: currentColor;
	-webkit-mask: var(--bm-orn) 0 0 / 56px 56px repeat;
	mask: var(--bm-orn) 0 0 / 56px 56px repeat;
	pointer-events: none;
}

/* =========================================================
   3. Кнопки
   ========================================================= */
.bm-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--bm-r-sm);
	background: var(--bm-blue);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.bm-btn:hover, .wp-block-button__link:hover { background: var(--bm-blue-d); color: #fff; }
.bm-btn--red, .bm-btn--accent, .is-style-red .wp-block-button__link { background: var(--bm-red); }
.bm-btn--red:hover, .bm-btn--accent:hover, .is-style-red .wp-block-button__link:hover { background: var(--bm-red-d); color: #fff; }
.bm-btn--line, .is-style-outline .wp-block-button__link { background: transparent; color: var(--bm-blue); border-color: color-mix(in srgb, var(--bm-blue) 30%, #fff); }
.bm-btn--line:hover, .is-style-outline .wp-block-button__link:hover { background: var(--bm-blue); border-color: var(--bm-blue); color: #fff; }
.bm-btn--white { background: #fff; color: var(--bm-blue); }
.bm-btn--white:hover { background: var(--bm-soft); color: var(--bm-blue-d); }
.bm-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.bm-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.bm-btn--block { width: 100%; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.bm-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bm-more .bm-ico { transition: transform .15s; }
.bm-more:hover .bm-ico { transform: translateX(3px); }

/* =========================================================
   4. Верхняя полоса и шапка
   ========================================================= */
.bm-topbar { background: var(--bm-ink); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.bm-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.bm-topbar__left, .bm-topbar__right { display: flex; align-items: center; gap: 22px; }
.bm-topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bm-topbar a:hover { color: #fff; }
.bm-topbar__ib { color: #fff !important; font-weight: 500; }
.bm-topbar__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.bm-topbar__hours { display: inline-flex; align-items: center; gap: 6px; }

.bm-langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.bm-langs li { margin: 0; }
.bm-langs a { display: block; text-decoration: none; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.bm-langs .current-lang a { background: #fff; color: var(--bm-ink) !important; }
.bm-langs--mobile { display: none; }

.bm-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .bm-header { top: 32px; }
.bm-header.is-scrolled { border-bottom-color: var(--bm-line); box-shadow: 0 6px 24px -18px rgba(13, 36, 64, .5); }
.bm-header__in { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.bm-logo { display: block; flex: none; }
.bm-logo__img { width: auto; height: 34px; }
.bm-nav { flex: 1; min-width: 0; }
.bm-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.bm-menu > li { position: relative; }
.bm-menu > li > a {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 10px;
	color: var(--bm-ink); font-weight: 500; font-size: 15.5px; text-decoration: none; white-space: nowrap;
}
.bm-menu > li > a:hover, .bm-menu > li:focus-within > a { background: var(--bm-soft); color: var(--bm-blue); }
.bm-menu > .current-menu-item > a, .bm-menu > .current-menu-ancestor > a { color: var(--bm-blue); }
.bm-menu > .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); opacity: .6; transition: transform .15s;
}
.bm-menu .bm-mi-ico, .bm-menu .bm-mi-text, .bm-menu .bm-mi-title { display: contents; }

/* Выпадающее меню с иконками */
.bm-menu .sub-menu {
	position: absolute; top: calc(100% + 8px); left: -8px; z-index: 10;
	display: grid; gap: 2px; min-width: 340px;
	margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-r-md); box-shadow: var(--bm-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.bm-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.bm-menu > li:hover > .sub-menu, .bm-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bm-menu > li:hover > a::after { transform: rotate(225deg); margin-top: 3px; }
.bm-menu .sub-menu a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--bm-r-sm); color: var(--bm-ink); text-decoration: none; }
.bm-menu .sub-menu a:hover { background: var(--bm-soft); }
.bm-menu .sub-menu .bm-mi-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bm-sky); color: var(--bm-blue); }
.bm-menu .sub-menu .bm-mi-ico svg, .bm-menu .sub-menu .bm-mi-ico img { width: 22px; height: 22px; object-fit: contain; }
.bm-menu .sub-menu a:hover .bm-mi-ico { background: var(--bm-blue); color: #fff; }
.bm-menu .sub-menu .bm-mi-text { display: flex; flex-direction: column; }
.bm-menu .sub-menu .bm-mi-title { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.bm-mi-desc { display: block; font-size: 13.5px; line-height: 1.35; color: var(--bm-muted); }

.bm-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.bm-topbar__phone { color: #fff !important; font-weight: 600; font-size: 14.5px; }
.bm-header__phone { display: none; align-items: center; justify-content: center; color: var(--bm-blue); }
.bm-header__phone .bm-ico { width: 20px; height: 20px; }
.bm-header__cta { white-space: nowrap; min-height: 46px; padding-inline: 20px; }
/* Таджикский: пункты меню длиннее — шапка компактнее, на средних экранах кнопка уходит. */
@media (min-width: 1024px) {
	html[lang|="tg"] .bm-header__in { gap: 20px; }
	html[lang|="tg"] .bm-menu > li > a { padding: 7px 10px; font-size: 15px; }
	html[lang|="tg"] .bm-header__cta { min-height: 44px; padding-inline: 16px; font-size: 15px; }
}
@media (max-width: 1500px) { html[lang|="tg"] .bm-header__cta { display: none; } }
.bm-burger { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--bm-line); border-radius: var(--bm-r-sm); background: #fff; color: var(--bm-ink); cursor: pointer; }
.bm-burger__close { display: none; }
.bm-nav__mobile-extra { display: none; }
.bm-nav__head { display: none; }

/* =========================================================
   5. Раскладка страниц из блоков
   ========================================================= */
.bm-main { display: block; }
.bm-blocks { display: flow-root; }
/* Обычные блоки (абзацы, списки, таблицы) верхнего уровня — в колонку сайта. */
.bm-blocks > :not(.alignfull):not(.bm-sec):not(.bm-hero) {
	max-width: calc(var(--bm-w) + var(--bm-gut) * 2);
	margin-inline: auto;
	padding-inline: var(--bm-gut);
}
.bm-blocks > :not(.alignfull):not(.bm-sec):not(.bm-hero):first-child { margin-top: clamp(32px, 5vw, 56px); }
.bm-blocks > :not(.alignfull):not(.bm-sec):not(.bm-hero):last-child { margin-bottom: clamp(48px, 7vw, 88px); }

/* Секция */
.bm-sec { position: relative; isolation: isolate; overflow: clip; }
.bm-sec__in { position: relative; width: 100%; max-width: calc(var(--bm-w) + var(--bm-gut) * 2); margin-inline: auto; padding-inline: var(--bm-gut); }
.bm-sec.is-narrow .bm-sec__in { max-width: calc(860px + var(--bm-gut) * 2); }
.bm-sec__in > * + * { margin-top: clamp(24px, 3vw, 40px); }
.bm-sec__in > .bm-head + * { margin-top: clamp(20px, 2.4vw, 32px); }
.bm-sec__in > p, .bm-sec__in > ul, .bm-sec__in > ol { margin-bottom: 0; }
.bm-sec--pad-none { padding-block: 0; }
.bm-sec--pad-s { padding-block: clamp(16px, 2.4vw, 28px); }
.bm-sec--pad-m { padding-block: clamp(48px, 6vw, 88px); }
.bm-sec--pad-l { padding-block: clamp(72px, 9vw, 128px); }
/* Две белые секции подряд — без двойного отступа. */
.bm-sec--white.bm-sec--pad-m + .bm-sec--white.bm-sec--pad-m,
.bm-sec--soft.bm-sec--pad-m + .bm-sec--soft.bm-sec--pad-m { padding-top: 0; }
.bm-sec--white { background: #fff; }
.bm-sec--soft { background: var(--bm-soft); }
.bm-sec--blue { background: var(--bm-blue); color: rgba(255, 255, 255, .86); }
.bm-sec--ink { background: var(--bm-ink); color: rgba(255, 255, 255, .8); }
.bm-sec--image { color: #fff; }
.bm-sec__bg { position: absolute; inset: 0; z-index: -2; }
.bm-sec__bg img { width: 100%; height: 100%; object-fit: cover; }
.bm-sec--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 36, 64, .82), rgba(13, 36, 64, .35)); }
.bm-sec--blue :is(h1, h2, h3, h4), .bm-sec--ink :is(h1, h2, h3, h4), .bm-sec--image :is(h1, h2, h3, h4) { color: #fff; }
.bm-sec--blue a:not(.bm-btn), .bm-sec--ink a:not(.bm-btn) { color: #fff; }
.bm-sec__orn { position: absolute; inset: 0; z-index: -1; color: rgba(255, 255, 255, .09); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%); }
.bm-sec--white .bm-sec__orn, .bm-sec--soft .bm-sec__orn { color: color-mix(in srgb, var(--bm-blue) 9%, transparent); }
.bm-sec__orn .bm-orn { position: absolute; inset: 0; }

/* Колонки WordPress внутри секций */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: var(--bm-gap); margin: 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns.bm-cols { align-items: stretch; }
.wp-block-columns.bm-cols > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.bm-cols > .wp-block-column > * { flex: 1; }

/* =========================================================
   6. Шапка внутренней страницы (без блока «Главный экран»)
   ========================================================= */
.bm-page-hero { background: var(--bm-soft); padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px); }
.bm-page-hero__title { margin: 0; }
.bm-page-hero__sub { max-width: 640px; margin: 12px 0 0; color: var(--bm-muted); font-size: 1.1rem; }
.bm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--bm-muted); }
.bm-crumbs a { color: inherit; text-decoration: none; }
.bm-crumbs a:hover { color: var(--bm-blue); text-decoration: underline; }
.bm-crumbs [aria-current] { color: var(--bm-ink); }
.bm-hero--blue .bm-crumbs [aria-current] { color: #fff; }
.bm-page { padding-block: clamp(40px, 6vw, 72px); }
.bm-page--narrow { max-width: calc(820px + var(--bm-gut) * 2); }

/* =========================================================
   7. Блок «Главный экран»
   ========================================================= */
.bm-hero { position: relative; isolation: isolate; overflow: clip; }
.bm-hero__in {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px;
	max-width: calc(var(--bm-w) + var(--bm-gut) * 2); margin-inline: auto;
	padding: clamp(36px, 5vw, 72px) var(--bm-gut) clamp(40px, 5.5vw, 76px);
}
.bm-hero__body { grid-column: 1; position: relative; z-index: 1; max-width: 680px; }
.bm-hero__title { margin: 0; }
.bm-hero__text { margin: 18px 0 0; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.5; max-width: 560px; }
.bm-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bm-hero__media { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.bm-hero__img { max-height: 420px; width: auto; object-fit: contain; border-radius: var(--bm-r-lg); }
.bm-hero__orn { position: absolute; top: 0; bottom: 0; right: 0; left: 42%; z-index: 0; }
.bm-hero__img { position: relative; z-index: 1; }
.bm-hero__orn.bm-orn { -webkit-mask: var(--bm-orn) 0 0 / 56px 56px repeat, linear-gradient(90deg, transparent, #000 50%); -webkit-mask-composite: source-in; mask: var(--bm-orn) 0 0 / 56px 56px repeat intersect, linear-gradient(90deg, transparent, #000 50%); }
.bm-hero__facts {
	grid-column: 1; display: flex; flex-wrap: wrap; gap: 12px 40px;
	margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid currentColor;
	border-top-color: color-mix(in srgb, currentColor 22%, transparent);
	position: relative; z-index: 1;
}
.bm-hero__facts dt { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bm-hero__facts dd { margin: 4px 0 0; font-size: 14.5px; opacity: .8; }

.bm-hero--blue { background: linear-gradient(135deg, var(--bm-blue) 0%, var(--bm-blue-d) 60%, var(--bm-blue-dd) 100%); color: rgba(255, 255, 255, .88); }
.bm-hero--blue .bm-hero__title, .bm-hero--blue .bm-hero__facts dt { color: #fff; }
.bm-hero--blue .bm-hero__orn { color: rgba(255, 255, 255, .16); }
.bm-hero--blue .bm-crumbs { color: rgba(255, 255, 255, .7); }
.bm-hero--blue .bm-crumbs a:hover { color: #fff; }
.bm-hero--soft { background: var(--bm-soft); color: var(--bm-muted); }
.bm-hero--soft .bm-hero__orn { color: color-mix(in srgb, var(--bm-blue) 13%, transparent); }
.bm-hero--soft .bm-hero__facts dt { color: var(--bm-blue); }
.bm-hero--soft .bm-btn--ghost { color: var(--bm-blue); border-color: color-mix(in srgb, var(--bm-blue) 30%, #fff); }
.bm-hero--soft .bm-btn--ghost:hover { background: var(--bm-blue); color: #fff; }
.bm-hero.has-img .bm-hero__orn { opacity: .6; }

/* =========================================================
   8. Заголовок секции
   ========================================================= */
.bm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bm-head__main { max-width: 760px; }
.bm-head__title { margin: 0; }
.bm-head__text { margin: 12px 0 0; color: var(--bm-muted); font-size: 1.08rem; }
.bm-head--center { justify-content: center; text-align: center; }
.bm-head--center .bm-head__main { margin-inline: auto; }
.bm-sec--blue .bm-head__text, .bm-sec--ink .bm-head__text, .bm-sec--image .bm-head__text { color: rgba(255, 255, 255, .78); }
.bm-head .bm-more { margin-bottom: 6px; }

/* =========================================================
   9. Карточки
   ========================================================= */
.bm-grid { display: grid; gap: var(--bm-gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.bm-grid--2 { --cols: 2; }
.bm-grid--3 { --cols: 3; }
.bm-grid--4 { --cols: 4; }

.bm-card {
	position: relative;
	display: flex; flex-direction: column;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-r-md);
	color: var(--bm-muted);
}
.bm-sec--soft .bm-card { border-color: transparent; }
.bm-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.bm-card__ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--bm-sky); color: var(--bm-blue); }
.bm-card__ico svg { width: 26px; height: 26px; }
.bm-card__img { display: block; width: calc(100% + 56px); margin: -28px -28px 0; }
.bm-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--bm-r-md) var(--bm-r-md) 0 0; }
.bm-card__img + .bm-card__badge { position: absolute; top: 16px; right: 16px; }
.bm-card__badge { padding: 4px 10px; border-radius: 999px; background: var(--bm-red); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.bm-card__title { margin: 0; font-size: 1.3rem; }
.bm-card__title a { color: inherit; text-decoration: none; }
.bm-card__rate { margin: 14px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; line-height: 1; }
.bm-card__rate b { font-size: clamp(2.2rem, 1.9rem + 1vw, 2.9rem); font-weight: 700; letter-spacing: -.035em; color: var(--bm-blue); font-variant-numeric: tabular-nums; }
.bm-card__rate span { font-size: 15px; }
.bm-card__text { margin: 12px 0 0; }
.bm-card__list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--bm-line); display: grid; gap: 10px; }
.bm-card__list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; font-size: 15.5px; color: var(--bm-text); }
.bm-card__list .bm-ico { color: var(--bm-blue); margin-top: 1px; }
.bm-card__foot { margin-top: auto; padding-top: 24px; }
.bm-card__foot .bm-btn { width: 100%; }

.bm-card--feature { padding: 28px 28px 30px; }
.bm-card--feature .bm-card__title { font-size: 1.2rem; }

.bm-card--link { transition: border-color .15s, transform .15s; }
.bm-card--link:hover { border-color: var(--bm-blue); }
.bm-card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bm-card__go { margin-top: auto; padding-top: 20px; color: var(--bm-blue); }
.bm-card--link:hover .bm-card__go .bm-ico { transform: translateX(4px); }
.bm-card__go .bm-ico { transition: transform .15s; }

.bm-card.is-accent { background: var(--bm-blue); border-color: var(--bm-blue); color: rgba(255, 255, 255, .82); }
.bm-card.is-accent .bm-card__title, .bm-card.is-accent .bm-card__rate b, .bm-card.is-accent .bm-card__list li { color: #fff; }
.bm-card.is-accent .bm-card__ico { background: rgba(255, 255, 255, .14); color: #fff; }
.bm-card.is-accent .bm-card__list { border-top-color: rgba(255, 255, 255, .2); }
.bm-card.is-accent .bm-card__list .bm-ico { color: #fff; }
.bm-sec--blue .bm-card:not(.is-accent) { border-color: transparent; }

/* =========================================================
   10. Быстрые ссылки
   ========================================================= */
.bm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bm-tiles.is-overlap { position: relative; z-index: 2; margin-top: -44px !important; padding-inline: clamp(12px, 3vw, 40px); }
.bm-tile {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px; min-height: 84px;
	background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-r-md);
	color: var(--bm-ink); text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.bm-tiles.is-overlap .bm-tile { border-color: transparent; box-shadow: var(--bm-shadow); }
.bm-tile:hover { border-color: var(--bm-blue); color: var(--bm-ink); }
.bm-tile__ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--bm-sky); color: var(--bm-blue); transition: background-color .15s, color .15s; }
.bm-tile:hover .bm-tile__ico { background: var(--bm-blue); color: #fff; }
.bm-tile__body { display: flex; flex-direction: column; min-width: 0; }
.bm-tile__title { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.bm-tile__text { font-size: 14px; line-height: 1.35; color: var(--bm-muted); margin-top: 2px; }

/* =========================================================
   11. Цифры
   ========================================================= */
.bm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0; }
.bm-stat { padding: 4px 28px 4px 0; }
.bm-stat + .bm-stat { padding-left: 28px; border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.bm-stat__value { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--bm-blue); font-variant-numeric: tabular-nums; }
.bm-stat__label { margin: 10px 0 0; font-size: 15.5px; }
.bm-sec--blue .bm-stat__value, .bm-sec--ink .bm-stat__value { color: #fff; }

/* =========================================================
   12. Шаги
   ========================================================= */
.bm-steps { counter-reset: bm-step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px var(--bm-gap); }
.bm-step { counter-increment: bm-step; position: relative; padding-top: 64px; }
.bm-step::before {
	content: counter(bm-step);
	position: absolute; top: 0; left: 0;
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--bm-blue); color: #fff; font-weight: 700; font-size: 18px;
}
.bm-step::after { content: ""; position: absolute; top: 22px; left: 56px; right: calc(-1 * var(--bm-gap) + 12px); height: 1px; background: var(--bm-line); }
.bm-step:last-child::after { display: none; }
.bm-step__title { margin: 0 0 6px; font-size: 1.15rem; }
.bm-step__text { margin: 0; color: var(--bm-muted); font-size: 15.5px; }
.bm-sec--blue .bm-step::before, .bm-sec--ink .bm-step::before { background: #fff; color: var(--bm-blue); }
.bm-sec--blue .bm-step::after, .bm-sec--ink .bm-step::after { background: rgba(255, 255, 255, .28); }
.bm-sec--blue .bm-step__text, .bm-sec--ink .bm-step__text { color: rgba(255, 255, 255, .8); }

/* =========================================================
   13. Вопросы и ответы
   ========================================================= */
.bm-faq { display: grid; gap: 10px; }
.bm-faq__item { background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-r-md); }
.bm-sec--soft .bm-faq__item { border-color: transparent; }
.bm-faq__item summary, .bm-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 24px; cursor: pointer; list-style: none;
	font-weight: 600; font-size: 1.05rem; color: var(--bm-ink); line-height: 1.4;
}
.bm-faq__item summary::-webkit-details-marker { display: none; }
.bm-faq__ico { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bm-sky); }
.bm-faq__ico::before, .bm-faq__ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--bm-blue); border-radius: 2px; transition: transform .2s; }
.bm-faq__ico::after { transform: rotate(90deg); }
.bm-faq__item[open] .bm-faq__ico::after { transform: rotate(0); }
.bm-faq__item[open] .bm-faq__ico { background: var(--bm-blue); }
.bm-faq__item[open] .bm-faq__ico::before, .bm-faq__item[open] .bm-faq__ico::after { background: #fff; }
.bm-faq__a { padding: 0 24px 20px; color: var(--bm-muted); }
.bm-faq__a > :last-child { margin-bottom: 0; }

/* =========================================================
   14. Текст и картинка
   ========================================================= */
.bm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.bm-split.is-reverse .bm-split__media { order: -1; }
.bm-split__body > :first-child { margin-top: 0; }
.bm-split__body > :last-child { margin-bottom: 0; }
.bm-split__body p { color: var(--bm-muted); }
.bm-split__media { position: relative; display: flex; align-items: center; justify-content: center; }
.bm-split__img { width: 100%; border-radius: var(--bm-r-lg); }
.bm-split.has-panel .bm-split__media { min-height: 320px; padding: 32px; border-radius: var(--bm-r-lg); background: var(--bm-sky); overflow: hidden; isolation: isolate; }
.bm-split.has-panel .bm-split__img { border-radius: var(--bm-r-md); }
.bm-split__media > .bm-orn { position: absolute; inset: 0; z-index: -1; color: color-mix(in srgb, var(--bm-blue) 14%, transparent); }
.bm-split__mark { width: 128px; border-radius: 6px; box-shadow: 0 0 0 14px #fff; }
.bm-sec--soft .bm-split.has-panel .bm-split__media { background: #fff; }

/* Списки с галочками */
.is-style-bm-checks { list-style: none; padding-left: 0 !important; display: grid; gap: 12px; }
.is-style-bm-checks li { position: relative; padding-left: 34px; line-height: 1.45; }
.is-style-bm-checks li::before {
	content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
	background: var(--bm-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* =========================================================
   15. Призыв к действию
   ========================================================= */
.bm-cta {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
	padding: clamp(28px, 4.5vw, 56px);
	border-radius: var(--bm-r-lg);
}
.bm-cta__orn { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000); mask-image: linear-gradient(100deg, transparent 40%, #000); }
.bm-cta__orn.bm-orn { -webkit-mask: var(--bm-orn) 0 0 / 56px 56px repeat, linear-gradient(100deg, transparent 40%, #000); -webkit-mask-composite: source-in; mask: var(--bm-orn) 0 0 / 56px 56px repeat intersect, linear-gradient(100deg, transparent 40%, #000); }
.bm-cta__body { flex: 1 1 420px; max-width: 680px; }
.bm-cta__title { margin: 0; }
.bm-cta__text { margin: 12px 0 0; font-size: 1.08rem; }
.bm-cta__act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.bm-cta__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bm-cta--blue { background: var(--bm-blue); color: rgba(255, 255, 255, .85); }
.bm-cta--red { background: var(--bm-red); color: rgba(255, 255, 255, .9); }
.bm-cta--blue .bm-cta__title, .bm-cta--red .bm-cta__title, .bm-cta--blue .bm-cta__phone, .bm-cta--red .bm-cta__phone { color: #fff; }
.bm-cta--blue .bm-cta__orn, .bm-cta--red .bm-cta__orn { color: rgba(255, 255, 255, .15); }
.bm-cta--red .bm-btn--white { color: var(--bm-red); }
.bm-cta--soft { background: var(--bm-soft); color: var(--bm-muted); }
.bm-cta--soft .bm-cta__orn { color: color-mix(in srgb, var(--bm-blue) 12%, transparent); }
.bm-cta--soft .bm-cta__phone { color: var(--bm-ink); }
.bm-sec--soft .bm-cta--soft { background: #fff; }

/* =========================================================
   16. Мобильное приложение
   ========================================================= */
.bm-app {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: end;
	padding: 32px 32px 0;
	background: var(--bm-soft); border-radius: var(--bm-r-lg);
}
.bm-sec--soft .bm-app { background: #fff; }
.bm-app__body { padding-bottom: 32px; align-self: center; }
.bm-app__title { margin: 0; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.bm-app__text { margin: 12px 0 0; color: var(--bm-muted); }
.bm-app__media { align-self: end; }
.bm-app__img { width: 100%; }
.bm-phone {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
	height: 290px; padding: 40px 18px 0;
	background: #fff; border: 8px solid var(--bm-ink); border-bottom: 0; border-radius: 34px 34px 0 0;
}
.bm-phone__notch { position: absolute; top: 8px; left: 50%; width: 56px; height: 14px; margin-left: -28px; border-radius: 99px; background: var(--bm-ink); }
.bm-phone img { width: 40px; border-radius: 4px; }
.bm-phone__bal { font-weight: 700; font-size: 26px; letter-spacing: -.03em; color: var(--bm-ink); font-variant-numeric: tabular-nums; }
.bm-phone__bal small { font-size: 14px; color: var(--bm-muted); letter-spacing: 0; }
.bm-phone__row { display: block; width: 100%; height: 40px; border-radius: 10px; background: var(--bm-soft); }
.bm-phone__row.is-short { width: 60%; }

.bm-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bm-store { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 16px; border-radius: var(--bm-r-sm); background: var(--bm-ink); color: #fff; text-decoration: none; line-height: 1.15; font-weight: 600; }
.bm-store:hover { background: #000; color: #fff; }
.bm-store small { display: block; font-size: 11px; font-weight: 400; opacity: .75; }
.bm-store .bm-ico { width: 22px; height: 22px; }

/* =========================================================
   17. Новости
   ========================================================= */
.bm-post { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-r-md); overflow: hidden; transition: border-color .15s; }
.bm-sec--soft .bm-post { border-color: transparent; }
.bm-post:hover { border-color: var(--bm-blue); }
.bm-post__media { aspect-ratio: 16 / 9; background: var(--bm-sky); }
.bm-post__media img { width: 100%; height: 100%; object-fit: cover; }
.bm-post__ph { position: relative; display: flex; height: 100%; align-items: center; justify-content: center; isolation: isolate; }
.bm-post__ph .bm-orn { position: absolute; inset: 0; z-index: -1; color: color-mix(in srgb, var(--bm-blue) 16%, transparent); }
.bm-post__ph img { width: 64px; height: auto; box-shadow: 0 0 0 10px var(--bm-sky); border-radius: 4px; }
.bm-post__body { padding: 20px 22px 24px; }
.bm-post__date { font-size: 14px; color: var(--bm-muted); }
.bm-post__title { margin: 6px 0 0; font-size: 1.12rem; line-height: 1.35; }
.bm-post__link { color: var(--bm-ink); text-decoration: none; }
.bm-post__link::after { content: ""; position: absolute; inset: 0; }
.bm-post:hover .bm-post__link { color: var(--bm-blue); }
.bm-pagination { margin-top: 40px; }
.bm-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.bm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--bm-r-sm); border: 1px solid var(--bm-line); text-decoration: none; color: var(--bm-ink); font-weight: 600; }
.bm-pagination .current { background: var(--bm-blue); border-color: var(--bm-blue); color: #fff; }
.bm-empty { color: var(--bm-muted); }

/* Новость */
.bm-article { font-size: 1.06rem; }
.bm-article__thumb { margin: 0 0 32px; }
.bm-article__thumb img { border-radius: var(--bm-r-lg); }
.bm-postnav { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bm-line); font-weight: 600; }
.bm-postnav a { text-decoration: none; }

/* =========================================================
   18. Формы (Contact Form 7)
   ========================================================= */
.bm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bm-field > span:first-child { font-size: 14px; font-weight: 500; color: var(--bm-muted); }
.bm-field--wide { grid-column: 1 / -1; }
.bm-field input, .bm-field select, .bm-field textarea, .bm-fake-input,
.bm-cf7 .bm-field .wpcf7-form-control:not(.wpcf7-acceptance) {
	width: 100%; min-height: 50px; padding: 12px 14px;
	border: 1px solid #C9D5E3; border-radius: var(--bm-r-sm); background: #fff;
	font-size: 16px; color: var(--bm-ink);
	transition: border-color .15s, box-shadow .15s;
}
.bm-fake-input { display: block; }
.bm-field textarea, .bm-cf7 .bm-field textarea.wpcf7-form-control { min-height: 96px; resize: vertical; }
.bm-field select, .bm-cf7 .bm-field select.wpcf7-form-control:not(.wpcf7-acceptance) {
	appearance: none; padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356677D' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.bm-field input:focus, .bm-field select:focus, .bm-field textarea:focus,
.bm-cf7 .bm-field .wpcf7-form-control:focus { outline: 0; border-color: var(--bm-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bm-blue) 15%, transparent); }
.bm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--bm-muted); }
.bm-cf7 .wpcf7-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.bm-cf7 .wpcf7-form > p { margin: 0; }
.bm-cf7 .hidden-fields-container { display: none; border: 0; padding: 0; margin: 0; }
.bm-cf7 .wpcf7-form-control-wrap { display: block; position: relative; }
.bm-cf7 .bm-field .wpcf7-not-valid { border-color: var(--bm-red); }
.bm-cf7 .bm-form__grid { row-gap: 24px; }
.bm-cf7 .wpcf7-not-valid-tip { position: absolute; left: 2px; top: 100%; margin-top: 2px; font-size: 12.5px; line-height: 1.3; font-weight: 500; color: var(--bm-red-d); white-space: nowrap; }
.bm-cf7 .bm-check { display: block; }
.bm-cf7 .bm-check .wpcf7-not-valid-tip { position: static; margin-top: 4px; }
.bm-cf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.bm-cf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bm-cf7 .wpcf7-acceptance input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bm-blue); flex: none; }
.bm-cf7 .wpcf7-submit { width: 100%; font: inherit; font-weight: 600; }
.bm-cf7 .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.bm-cf7 .wpcf7-spinner { display: block; margin: -4px auto 0; }
.bm-cf7 .wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 16px; border: 0; border-radius: var(--bm-r-sm); font-weight: 600; font-size: 14.5px; }
.bm-cf7 .wpcf7 form.sent .wpcf7-response-output { background: color-mix(in srgb, var(--bm-ok) 12%, #fff); color: var(--bm-ok); }
.bm-cf7 .wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output { background: color-mix(in srgb, var(--bm-red) 10%, #fff); color: var(--bm-red-d); }

/* Блок «Форма заявки» */
.bm-formblock { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bm-gap); }
.bm-formblock.has-side { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
.bm-formblock__main { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--bm-line); border-radius: var(--bm-r-lg); }
.bm-sec--soft .bm-formblock__main { border-color: transparent; }
.bm-formblock__title { margin: 0; }
.bm-formblock__text { margin: 10px 0 28px; color: var(--bm-muted); }
.bm-formblock__side { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3.5vw, 40px); background: var(--bm-blue); color: rgba(255, 255, 255, .85); border-radius: var(--bm-r-lg); }
.bm-formblock__side > .bm-orn { position: absolute; inset: 0; z-index: -1; color: rgba(255, 255, 255, .1); }
.bm-formblock__side p { margin: 0 0 4px; }
.bm-formblock__lbl { margin-top: 22px !important; font-size: 14px; color: rgba(255, 255, 255, .65); }
.bm-formblock__lbl:first-of-type { margin-top: 0 !important; }
.bm-formblock__phone { display: block; color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; text-decoration: none; }

/* Контакты */
.bm-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--bm-gap); }
.bm-contact { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border: 1px solid var(--bm-line); border-radius: var(--bm-r-md); background: #fff; }
.bm-contact .bm-card-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--bm-sky); color: var(--bm-blue); }
.bm-contact__label { font-size: 14px; color: var(--bm-muted); }
.bm-contact__val { font-weight: 600; color: var(--bm-ink); line-height: 1.4; }
.bm-contact__val a { color: inherit; text-decoration: none; }
.bm-contacts-block { display: grid; gap: var(--bm-gap); }
.bm-map { border-radius: var(--bm-r-lg); overflow: hidden; background: var(--bm-soft); }
.bm-map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* Таблицы */
.wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table, .is-style-bm table { width: 100%; border-collapse: collapse; }
.is-style-bm table { background: #fff; border-radius: var(--bm-r-md); overflow: hidden; border: 1px solid var(--bm-line); }
.is-style-bm th { background: var(--bm-ink); color: #fff; font-weight: 600; text-align: left; padding: 14px 18px; font-size: 15px; }
.is-style-bm td { padding: 14px 18px; border-top: 1px solid var(--bm-line); font-variant-numeric: tabular-nums; }
.is-style-bm tbody tr:nth-child(even) td { background: #F7FAFD; }
.bm-note { font-size: 14.5px; color: var(--bm-muted); padding-left: 16px; border-left: 3px solid var(--bm-blue); }

/* Обычный текст страниц (абзацы, заголовки из редактора) */
.bm-blocks > h2, .bm-sec__in > h2 { margin-bottom: 0; }
.bm-blocks .wp-block-image img { border-radius: var(--bm-r-md); }
.wp-block-details { border: 1px solid var(--bm-line); border-radius: var(--bm-r-md); padding: 16px 20px; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* =========================================================
   19. Футер
   ========================================================= */
.bm-footer { background: var(--bm-soft); color: var(--bm-muted); font-size: 15.5px; border-top: 1px solid var(--bm-line); }
.bm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.bm-footer .bm-logo__img { height: 30px; }
.bm-footer__phone { display: block; margin-top: 26px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--bm-ink); text-decoration: none; }
.bm-footer__hours { margin: 2px 0 14px; font-size: 14.5px; }
.bm-footer__mail { color: var(--bm-ink); font-weight: 500; text-decoration: none; }
.bm-footer__addr { margin: 6px 0 0; }
.bm-footer__title { margin: 0 0 16px; font-size: 1rem; color: var(--bm-ink); letter-spacing: 0; }
.bm-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bm-footer__menu a { color: inherit; text-decoration: none; }
.bm-footer a:hover { color: var(--bm-blue); }
.bm-footer .bm-stores { margin: 0 0 16px; }
.bm-socials { display: flex; gap: 8px; margin-top: 20px; }
.bm-socials a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--bm-blue); }
.bm-socials a:hover { background: var(--bm-blue); color: #fff; }
.bm-socials .bm-ico { width: 20px; height: 20px; }
.bm-footer__bottom { border-top: 1px solid var(--bm-line); font-size: 13.5px; }
.bm-footer__bottom-in { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 18px; }

/* =========================================================
   20. Окно заявки
   ========================================================= */
.bm-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bm-modal[hidden] { display: none; }
.bm-modal__backdrop { position: absolute; inset: 0; background: rgba(13, 36, 64, .55); }
.bm-modal__box { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--bm-r-lg); box-shadow: 0 30px 80px -20px rgba(13, 36, 64, .45); animation: bm-pop .2s ease-out; }
.bm-modal__box h2 { margin: 0; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.bm-modal__sub { margin: 8px 0 24px; color: var(--bm-muted); }
.bm-modal__close { position: absolute; top: 14px; right: 14px; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--bm-soft); color: var(--bm-ink); cursor: pointer; }
.bm-modal__close:hover { background: var(--bm-sky); }
.bm-modal-open { overflow: hidden; }
@keyframes bm-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Футер всегда внизу экрана, даже на коротких страницах */
body { display: flex; flex-direction: column; min-height: 100vh; }
.bm-main { flex: 1 0 auto; }
.bm-footer { flex-shrink: 0; }

/* =========================================================
   21. Адаптив
   ========================================================= */

@media (max-width: 1180px) {
	.bm-header__in { gap: 18px; }
	.bm-menu > li > a { padding-inline: 10px; }
}
@media (max-width: 1023px) {
	.bm-topbar__hours, .bm-topbar__menu { display: none; }
	.bm-topbar .bm-langs { display: flex; }
	.bm-header__in { min-height: 68px; }
	.bm-logo { flex: 1 1 auto; min-width: 0; }
	.bm-logo__img { height: auto; max-height: 28px; max-width: 100%; }
	.bm-header__in { gap: 10px; }
	.bm-header__actions { gap: 8px; flex: none; }
	.bm-burger { display: inline-flex; }
	.bm-header__cta { display: none; }
	.bm-header__phone { display: inline-flex; width: 46px; height: 46px; border: 1px solid var(--bm-line); border-radius: var(--bm-r-sm); }
	.bm-topbar__phone { display: none !important; }
	/* Меню на весь экран со своей строкой «логотип + закрыть» — не зависит от прокрутки и шапки. */
	.bm-nav {
		position: fixed; inset: 0; z-index: 100000; height: 100dvh;
		padding: 0 var(--bm-gut) 32px; background: #fff; overflow-y: auto; overscroll-behavior: contain;
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.bm-menu-open .bm-nav { visibility: visible; opacity: 1; transform: none; }
	.bm-nav__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; margin: 0 calc(-1 * var(--bm-gut)) 4px; padding: 0 var(--bm-gut); background: #fff; border-bottom: 1px solid var(--bm-line); }
	.bm-nav__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border: 1px solid var(--bm-line); border-radius: var(--bm-r-sm); background: #fff; color: var(--bm-ink); cursor: pointer; }
	.bm-menu-open .bmf-fab { display: none; }
	.bm-menu-open .bm-header { z-index: 100000; } /* меню поверх всего, даже панели WordPress */
	.bm-menu-open { overflow: hidden; }
	.bm-menu-open .bm-burger__open { display: none; }
	.bm-menu-open .bm-burger__close { display: block; }
	.bm-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.bm-menu > li { border-bottom: 1px solid var(--bm-line); }
	.bm-menu > li > a { padding: 16px 4px; font-size: 17px; justify-content: space-between; border-radius: 0; }
	.bm-menu > li > a:hover { background: none; }
	.bm-menu .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.bm-menu .is-open > .sub-menu { display: grid; }
	.bm-menu .is-open > a::after { transform: rotate(225deg); margin-top: 3px; }
	.bm-menu > li:hover > a::after { transform: rotate(45deg); margin-top: -3px; }
	.bm-menu .is-open:hover > a::after { transform: rotate(225deg); margin-top: 3px; }
	.bm-menu .sub-menu a { padding: 10px 4px; }
	.bm-nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
	.bm-langs--mobile { display: flex; background: var(--bm-soft); justify-self: start; }
	.bm-langs--mobile a { color: var(--bm-ink); padding: 8px 16px; font-size: 14px; text-transform: none; letter-spacing: 0; }
	.bm-langs--mobile .current-lang a { background: var(--bm-blue); color: #fff !important; }
	.bm-nav__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 18px; color: var(--bm-ink); text-decoration: none; }

	.bm-hero__in { grid-template-columns: 1fr; }
	.bm-hero__media { grid-column: 1; grid-row: auto; min-height: 0; }
	.bm-hero__orn { left: 0; opacity: .7; }
	.bm-hero.has-img .bm-hero__media { margin-top: 32px; order: 3; }
	.bm-grid--4 { --cols: 2; }
	.bm-grid--3 { --cols: 2; }
	.bm-formblock.has-side { grid-template-columns: 1fr; }
	.bm-footer__grid { grid-template-columns: 1fr 1fr; }
	.bm-split { grid-template-columns: 1fr; }
	.bm-split.is-reverse .bm-split__media { order: 0; }
	.bm-split.has-panel .bm-split__media { min-height: 220px; }
}
@media (max-width: 782px) {
	.admin-bar .bm-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .bm-header { top: 0; } /* панель WordPress здесь прокручивается вместе со страницей */
}
@media (max-width: 782px) {
	.bm-step::after { display: none; }
	.bm-stat + .bm-stat { padding-left: 0; border-left: 0; }
	.bm-stats { gap: 24px; }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.bm-topbar__ib span, .bm-topbar__left .bm-ico { display: inline; }
	.bm-grid--2, .bm-grid--3, .bm-grid--4 { --cols: 1; }
	.bm-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.bm-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
	.bm-tile__text { display: none; }
	.bm-tiles.is-overlap { margin-top: -28px !important; padding-inline: 8px; }
	/* Форма на телефоне: компактнее, сумма и срок — в одну строку. */
	.bm-form__grid, .bm-cf7 .bm-form__grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; row-gap: 18px; }
	.bm-form__grid > .bm-field:nth-child(1), .bm-form__grid > .bm-field:nth-child(2), .bm-form__grid > .bm-field--wide { grid-column: 1 / -1; }
	.bm-field { gap: 4px; }
	.bm-field > span:first-child { font-size: 13px; }
	.bm-field input, .bm-field select, .bm-field textarea, .bm-fake-input,
	.bm-cf7 .bm-field .wpcf7-form-control:not(.wpcf7-acceptance) { min-height: 40px; height: 40px; padding: 6px 12px; border-radius: 10px; font-size: 16px; line-height: 1.3; }
	.bm-field select, .bm-cf7 .bm-field select.wpcf7-form-control:not(.wpcf7-acceptance) { padding-right: 30px; background-position: right 8px center; background-size: 16px; }
	.bm-field textarea, .bm-cf7 .bm-field textarea.wpcf7-form-control { height: auto; min-height: 60px; }
	.bm-form__grid, .bm-cf7 .bm-form__grid { row-gap: 14px; }
	.bm-cf7 .wpcf7-submit { min-height: 46px; }
	.bm-cf7 .wpcf7-form { gap: 14px; }
	.bm-cf7 .wpcf7-submit { min-height: 48px; }
	.bm-check { font-size: 13px; }
	.bm-modal { padding: 12px; align-items: flex-end; }
	.bm-modal__box { padding: 20px 18px 18px; max-height: calc(100dvh - 24px); border-radius: 22px; }
	.bm-modal__box h2 { font-size: 1.35rem; padding-right: 44px; }
	.bm-modal__sub { margin: 6px 0 16px; font-size: 14px; line-height: 1.45; }
	.bm-modal__close { top: 12px; right: 12px; width: 36px; height: 36px; }
	.bm-modal__close .bm-ico { width: 20px; height: 20px; }
	.bm-formblock__main { padding: 20px 18px; }
	.bm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.bm-app { grid-template-columns: 1fr; padding: 24px 24px 0; }
	.bm-app__media { width: 190px; justify-self: center; }
	.bm-app__body { padding-bottom: 0; }
	.bm-hero__facts { gap: 16px 28px; }
	.bm-cta__act { width: 100%; }
	.bm-cta__act .bm-btn { flex: 1 1 100%; }
	.bm-card { padding: 22px; }
	.bm-card__img { width: calc(100% + 44px); margin: -22px -22px 0; }
	.bm-faq__item summary, .bm-faq__q { padding: 16px 18px; }
	.bm-faq__a { padding: 0 18px 16px; }
	.bm-steps { grid-template-columns: 1fr; gap: 20px; }
	.bm-step { padding: 0 0 0 60px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
