/* ============================================================
   Page views — service pages, works, blog, news (inc/pages/): parts shared by every page template.
   Hero (light / navy / photo), section spacing, CTA band, stats row, prose (article body), meta line, embed facades,
   placeholders. Breadcrumbs, tile cards, pager, rich text, FAQ and dialogs: catalog.css (loaded before this file).
   A view's own rules go to assets/css/pages/<view>.css (inc/pages/assets.php loads it only there).
   Design: ProjectsPage.jsx, ContactsPage.jsx, WorkPage.jsx, ui_kits/website/{About,Delivery,Faq}Page.jsx.
   ============================================================ */

/* ---------- hero ---------- */
.bm-pg-hero { position: relative; overflow: hidden; }
/* light: dark text on the page's white, no grey band (owner answer «44 — а», 2026-10-19); its spacing and the way back
   to the band: «light hero on white» at the end of this file */
.bm-pg-hero--light { color: var(--bm-text); }
.bm-pg-hero--navy { background: var(--bm-navy-700); color: #fff; }
.bm-pg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a theme photo set (bm_page_hero() 'picture'): the <picture> is the photo layer, its <img> fills it unless a view
   art-directs it (works.css) */
.bm-pg-hero__pic { position: absolute; inset: 0; }
/* photo: the category hero's gradient (navy on the text side, the photo shows on the right) */
.bm-pg-hero--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--bm-navy-700) 0%, rgba(42, 46, 71, .92) 30%, rgba(42, 46, 71, .55) 58%, rgba(42, 46, 71, .2) 100%);
}
.bm-pg-hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 36px; padding-bottom: 44px; }
.bm-pg-hero--navy .bm-pg-hero__in { gap: 18px; padding-top: 44px; padding-bottom: 56px; }
.bm-pg-hero--photo .bm-pg-hero__in { justify-content: center; min-height: 380px; }
.bm-pg-hero__in > * { max-width: 100%; margin: 0; }
.bm-pg-hero__eyebrow { margin: 0; }
.bm-pg-hero__title {
	max-width: 960px;
	margin: 0;
	font: 800 clamp(1.75rem, 1rem + 2.4vw, 2.9rem)/1.06 var(--bm-fd);
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: var(--bm-strong);
	text-wrap: balance;
}
.bm-pg-hero--navy .bm-pg-hero__title { color: #fff; }
.bm-pg-hero--photo .bm-pg-hero__title { max-width: 620px; font-weight: 500; font-size: clamp(1.9rem, .9rem + 3.6vw, 3.4rem); }
/* posts (works, articles, news): long stored titles in sentence case (design WorkPage.jsx) */
.bm-pg-hero--post .bm-pg-hero__title { font-size: clamp(1.5rem, .9rem + 2.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; text-transform: none; }
.bm-pg-hero__lead { max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--bm-text); text-wrap: pretty; }
.bm-pg-hero--navy .bm-pg-hero__lead { color: var(--bm-on-dark); }
.bm-pg-hero--photo .bm-pg-hero__lead { max-width: 500px; }
.bm-pg-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.bm-pg-hero__stats { margin-top: 10px; }

/* ---------- meta line (date · place · byline) ---------- */
.bm-pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--bm-muted-text); }
.bm-pg-meta > span, .bm-pg-meta > time { display: inline-flex; align-items: center; gap: 7px; }
.bm-pg-meta .bm-ico { width: 15px; height: 15px; color: var(--bm-orange); }
.bm-pg-meta__sep { color: var(--bm-muted-text); }
.bm-pg-hero--navy .bm-pg-meta { color: var(--bm-on-dark); }

/* ---------- sections ---------- */
.bm-pg-sec { padding: 56px 0; }
.bm-pg-sec--gray { border-block: 1px solid var(--bm-border); background: var(--bm-g50); }
.bm-pg-sec--navy { background: var(--bm-navy-700); color: var(--bm-on-dark); }
.bm-pg-sec--cta { padding-top: 16px; }
main > .bm-pg-sec:last-child { padding-bottom: var(--bm-sec-y-end); }
.bm-pg-head { margin-bottom: 28px; }

/* ---------- stats row (values from facts.json only) ---------- */
.bm-stats { display: flex; flex-wrap: wrap; gap: 18px 36px; margin: 0; }
.bm-stats__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.bm-stats__value { margin: 0; font: 800 clamp(1.4rem, 1rem + 1.4vw, 1.9rem)/1 var(--bm-fd); color: var(--bm-strong); }
.bm-stats__label { font-size: 13px; line-height: 1.35; color: var(--bm-muted-text); }
.bm-stats--invert .bm-stats__value { color: #fff; }
.bm-stats--invert .bm-stats__label { color: var(--bm-on-dark); }

/* ---------- CTA band ---------- */
/* design Technology.dc.html «CTA» + design-system rules (low radii 2–6 px, Montserrat 800 uppercase banner titles):
   title ~27 px uppercase (smaller on phones), box radius 6 px; navy variant = the Technology band (white title, text
   at 75 % white), light variant = the same shape on the grey surface. The wrapper is a <div>, not a <section>: the
   title is a <p> unless a live outline has a heading there (no «Section lacks heading»). */
.bm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 44px 48px; border: 1px solid var(--bm-border); border-radius: var(--bm-r-md); background: var(--bm-g50); }
.bm-cta__copy { flex: 1 1 320px; min-width: 0; max-width: 640px; }
.bm-cta__title { margin: 0; font: 800 clamp(1.25rem, .9rem + 1.1vw, 1.6875rem)/1.15 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); text-wrap: balance; }
.bm-cta__text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--bm-g600); text-wrap: pretty; }
.bm-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.bm-cta__tel { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 600 18px/1.2 var(--bm-fd); white-space: nowrap; color: var(--bm-strong); }
.bm-cta__tel .bm-ico { width: 18px; height: 18px; color: var(--bm-orange); }
.bm-cta__tel:hover { color: var(--bm-orange-text); }
.bm-cta--navy { border-color: var(--bm-navy-700); background: var(--bm-navy-700); }
.bm-cta--navy .bm-cta__title, .bm-cta--navy .bm-cta__tel { color: #fff; }
.bm-cta--navy .bm-cta__text { color: rgba(255, 255, 255, .75); }
.bm-cta--navy .bm-cta__tel:hover { color: var(--bm-orange-text); }

/* ---------- CTA banner (bm_cta_band() 'variant' => 'banner'; owner round 39, 2026-10-13: the owner's Claude Design
   handoff 3a «Хочете схожий об’єкт?» for the works list — «плашка … темная и на ней плохо читается текст»; desktop high
   fidelity, the handoff's tablet / phone rules) ----------
   A calm grey box (no shadow; g50 #F7F8FA, 1 px g200 #E4E6EC, 10 px corners, 35 / 40 px inside, gaps 24 / 48 px): the text
   left (flex 1 1 420px; title Montserrat 800 22 px / 1.2, -0.01em, navy #2A2E47 12.5 : 1, balanced, normal case — not the
   bands' uppercase; the description Noto Sans 15 px / 1.5, g600 #5E6275 5.7 : 1, two lines: template-parts/pages/
   cta-band.php + bm_cta_banner_desc()), the button right: navy, 56 px, 0 32 px, gap 14, 4 px corners, Noto Sans 700 16 px /
   1 white on one line, the 18 px theme arrow. Orange appears only in answer to an action: the ::before fill (#F85A00, the
   brand orange) runs in from the left (scaleX 0 → 1, 460 ms) on hover — only under (hover: hover), so a tap leaves no
   sticky state — with the lift (-2 px), the orange shadow and the arrow 4 px on (220 ms); it rolls back when the pointer
   leaves; keyboard focus = the hover without the lift + the ring 0 0 0 3px rgba(248, 90, 0, .30) (no outline); press 1 px
   down, the fill in 160 ms; reduced motion: no transition, no move (the colour changes at once). A container narrower
   than ≈ 860 px wraps the button under the text at its own width, left (flex-wrap, no media query); ≤ 767 px: 24 / 20 px
   inside, 20 px gaps, title 20, text 14, the button full width (min 56 px, 15 px, 0 20 px, gap 12; it may wrap — never
   clipped); ≤ 360 px: 20 / 16 px inside, the button 14 px (0 14 px, gap 8) — the label on one line at 320 px. Own classes
   only: no .bm-cta rule reaches it and none of these reaches the bands above (pages-check rule works.list_band_3a_2026_10_13,
   check list_band_css). */
.bm-cta-banner {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	width: 100%;
	padding: 35px 40px;
	border: 1px solid var(--bm-g200);
	border-radius: 10px;
	background-color: var(--bm-g50);
	font-family: var(--bm-fb);
}
.bm-cta-banner__text { display: flex; flex: 1 1 420px; flex-direction: column; gap: 6px; min-width: 0; }
.bm-cta-banner__title { margin: 0; font-family: var(--bm-fd); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--bm-navy-700); text-wrap: balance; }
.bm-cta-banner__desc { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--bm-g600); text-wrap: pretty; }
.bm-cta-banner__btn {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	position: relative;
	isolation: isolate; /* the ::before fill (z-index -1) over the navy, under the label */
	overflow: hidden;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 14px;
	height: 56px;
	margin: 0;
	padding: 0 32px;
	border: 0;
	border-radius: 4px;
	background-color: var(--bm-navy-700);
	box-shadow: 0 1px 2px rgba(27, 30, 46, .10);
	font-family: var(--bm-fb);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: box-shadow 220ms var(--bm-ease-out), transform 220ms var(--bm-ease-out);
}
.bm-cta-banner__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--bm-orange);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 460ms var(--bm-ease-out);
}
.bm-cta-banner__btn:hover { color: #fff; } /* a link button: not the theme's link hover colour */
.bm-cta-banner__label { min-width: 0; }
.bm-cta-banner__arrow { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 220ms var(--bm-ease-out); }
@media (hover: hover) {
	.bm-cta-banner__btn:hover { box-shadow: 0 10px 24px rgba(248, 90, 0, .22); transform: translateY(-2px); }
	.bm-cta-banner__btn:hover::before { transform: scaleX(1); }
	.bm-cta-banner__btn:hover .bm-cta-banner__arrow { transform: translateX(4px); }
}
.bm-cta-banner__btn:focus { outline: none; }
.bm-cta-banner__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(248, 90, 0, .30), 0 10px 24px rgba(248, 90, 0, .22); }
.bm-cta-banner__btn:focus-visible::before { transform: scaleX(1); }
.bm-cta-banner__btn:focus-visible .bm-cta-banner__arrow { transform: translateX(4px); }
.bm-cta-banner__btn:active { transform: translateY(1px); }
.bm-cta-banner__btn:active::before { transform: scaleX(1); transition-duration: 160ms; } /* the press answers at once (touch) */
@media (max-width: 767px) {
	.bm-cta-banner { gap: 20px; padding: 24px 20px; }
	.bm-cta-banner__text { flex-basis: 100%; }
	.bm-cta-banner__title { font-size: 20px; }
	.bm-cta-banner__desc { font-size: 14px; }
	.bm-cta-banner__btn { gap: 12px; width: 100%; height: auto; min-height: 56px; padding: 0 20px; font-size: 15px; line-height: 1.2; white-space: normal; text-align: center; }
}
@media (max-width: 360px) {
	.bm-cta-banner { padding: 20px 16px; }
	.bm-cta-banner__btn { gap: 8px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-cta-banner__btn, .bm-cta-banner__btn::before, .bm-cta-banner__arrow { transition: none; }
	.bm-cta-banner__btn:hover, .bm-cta-banner__btn:active { transform: none; }
	.bm-cta-banner__btn:hover .bm-cta-banner__arrow, .bm-cta-banner__btn:focus-visible .bm-cta-banner__arrow { transform: none; }
}

/* ---------- tile cards (bm_page_card()): catalog.css .bm-pcard + .bm-pgcard (moved there 2026-10-07: the product page's
   «Реалізовані проєкти» band prints the same works cards) ---------- */

/* ---------- prose: stored editor HTML (articles, project texts, default pages) — on top of catalog.css .bm-rich ---------- */
.bm-prose { max-width: 800px; font-size: 16.5px; line-height: 1.75; }
.bm-prose > :first-child { margin-top: 0; }
.bm-prose h2 { font-size: 1.65rem; }
.bm-prose h3 { font-size: 1.3rem; }
.bm-prose img { max-width: 100%; height: auto; }
.bm-prose figure { margin: 1.5em 0; }
.bm-prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--bm-muted-text); }
.bm-prose .aligncenter { display: block; margin-inline: auto; }
.bm-prose .alignleft { float: left; max-width: 50%; margin: .35em 1.5em 1em 0; }
.bm-prose .alignright { float: right; max-width: 50%; margin: .35em 0 1em 1.5em; }
.bm-prose::after { content: ""; display: table; clear: both; }
.bm-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--bm-orange); color: var(--bm-strong); }
.bm-prose iframe, .bm-prose video { display: block; max-width: 100%; }
.bm-prose table { display: block; overflow-x: auto; }
@media (max-width: 767px) {
	.bm-prose { font-size: 16px; }
	.bm-prose .alignleft, .bm-prose .alignright { float: none; max-width: 100%; margin: 1em 0; }
}

/* ---------- embed facades (bm_facade(): YouTube, maps, Elfsight) ---------- */
.bm-facade { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--bm-r-md); background: var(--bm-navy-900); }
.bm-facade--r169 { aspect-ratio: 16 / 9; }
.bm-facade--r43 { aspect-ratio: 4 / 3; }
.bm-facade--r11 { aspect-ratio: 1; }
.bm-facade--map { height: 420px; background: var(--bm-g100); }
.bm-facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-facade > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-facade__btn { position: relative; z-index: 1; }
.bm-facade__btn--play { display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: var(--bm-orange); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(11, 11, 10, .35); transition: transform 200ms var(--bm-ease-out), background-color 200ms ease; }
.bm-facade__btn--play:hover { background: var(--bm-orange-deep); transform: scale(1.06); }
.bm-facade__ico { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; stroke: none; }
.bm-facade--iframe .bm-facade__btn { background: #fff; }
/* a script widget (Elfsight) is the content itself: its container in the flow, the button under it until it loads */
.bm-facade--script { display: block; overflow: visible; border-radius: 0; background: none; }
.bm-facade--script .bm-facade__btn { margin-top: 16px; }
.bm-facade .bm-btn--outline { background: #fff; }
.bm-facade.is-loaded .bm-facade__btn, .bm-facade.is-loaded .bm-facade__poster { display: none; }
@media (max-width: 767px) {
	.bm-facade--map { height: 320px; }
	.bm-facade__btn--play { width: 60px; height: 60px; }
}

/* ---------- plain lists (index.php) and placeholders ---------- */
.bm-pg-list { display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.bm-pg-list a { color: var(--bm-strong); }
.bm-pg-list a:hover { color: var(--bm-orange-text); }
.bm-pg-stub { margin: 0; color: var(--bm-muted-text); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.bm-pg-hero--photo .bm-pg-hero__in { min-height: 340px; }
}
@media (max-width: 767px) {
	.bm-pg-hero__in { gap: 14px; padding-top: 28px; padding-bottom: 32px; }
	.bm-pg-hero--navy .bm-pg-hero__in { padding-top: 32px; padding-bottom: 40px; }
	.bm-pg-hero--photo .bm-pg-hero__in { min-height: 0; }
	/* phones: the photo fades out under the text (it would sit behind the whole width) */
	.bm-pg-hero--photo::after { background: linear-gradient(180deg, rgba(42, 46, 71, .92) 0%, rgba(42, 46, 71, .82) 100%); }
	.bm-pg-hero__lead { font-size: 16px; }
	.bm-stats { gap: 14px 26px; }
	.bm-pg-sec { padding: 40px 0; }
	.bm-pg-sec--cta { padding-top: 8px; }
	.bm-cta { padding: 28px 20px; }
	.bm-cta__actions { width: 100%; }
	.bm-cta__actions .bm-btn { flex: 1 1 100%; }
}

/* ---------- light hero on white (owner answer «44 — а», 2026-10-19) ---------- */
/* Every light hero sits on the page's white, as the Delivery page (delivery.css, 2026-10-19) and the works pages
   (works.css, 2026-10-09) already did: now also the search results and the date archives of index.php and any page on
   the default template. The site header keeps its own line (chrome.css .bm-hdr__bar). The Delivery spacing: header line
   to the first line 40 px, 14 px between the lines of the head, no padding under it (no band to fill), and the block
   below starts after its own top padding of 40 px; phones 28 / 14 / 0 / 28. Since round 52 (owner answer «45 — да»,
   2026-10-19) 4 px of that gap sit inside the hero, under the H1 (padding-bottom 4px, the block below 36 / phones 24): the
   hero clips (.bm-pg-hero overflow: hidden) and a deep glyph of the H1's last line - a search query with ( ) , or p y -
   reached under its line box; the head looks the same, nothing under it moves. :where() keeps the block rule as weak as one
   class, so a view's own value wins (works.css .bm-wk-top 36 / 20 px since round 52: 40 / 24 minus the 4 px under the works H1). Delivery, the works pages (their top 36 / 28 px:
   works.css) and the Sitemap (sitemap.css) set their own heads and look as before.
   The grey band back (one edit): replace the rules of this block (the two rules and the media query below) with the old
   band rule - .bm-pg-hero--light with border-bottom: 1px solid var(--bm-border) and background: var(--bm-g50) - the look
   of the search results / date archives before 2026-10-19 (Delivery and the works pages keep their white heads). */
.bm-pg-hero--light .bm-pg-hero__in { gap: 14px; padding-top: 40px; padding-bottom: 4px; }
:where(.bm-pg-hero--light) + .bm-pg-sec { padding-top: 36px; }
@media (max-width: 767px) {
	.bm-pg-hero--light .bm-pg-hero__in { padding-top: 28px; }
	:where(.bm-pg-hero--light) + .bm-pg-sec { padding-top: 24px; }
}
