/* ============================================================
   Works — archive /project/ (ProjectsPage.jsx) and realized project pages (WorkPage.jsx).
   Loaded by archive-project.php / single-project.php only (template-parts/works/helpers.php bm_works_setup()), after
   catalog.css (cards, pager, FAQ) and pages.css (hero, CTA band, cards, prose, facades); project pages also load
   product.css (gallery + lightbox) and the lead-form block CSS (+ forms.css: the form component). Tokens: base.css.
   Owner 2026-10-12: the band «Хочете такий самий?» = variant B (navy, name · phone · e-mail · button) and the hero CTA
   «Хочу такий самий» (Claude Design variant 2c) — the two blocks after the info rail rules below.
   ============================================================ */

/* ---------- archive: hero ----------
   Since the works hero map round (owner request 2026-10-14, Claude Design handoff design_handoff_works_hero) the archive
   hero is template-parts/works/hero.php with its own classes (.bm-wkh*), styled by the view's own stylesheet
   assets/css/pages/archive-project.css (archive views only). The guard-post panorama backdrop of 2026-10-01 (the
   .bm-wk-hero art direction that stood here: a box anchored at the hero's top-left, 71.2vw + 866px wide, the post's
   right edge on the content's right edge, one 90deg navy scrim .95 -> .76 -> .06, the vertical scrim at <= 900 px) is
   no longer printed; its rules (and the 2 x 2 figures grid at <= 767 px) are kept verbatim for a rollback in
   site/design/works-hero-map-2026-10-14/works-css-panorama-hero-2026-10-01.css, the files stay in assets/img/works/
   (bm_works_hero_picture()). */

/* ---------- archive: list head, chips ---------- */
.bm-wk-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
.bm-wk-head__copy { min-width: 0; }
.bm-wk-head__copy .bm-eyebrow { margin-bottom: 10px; }
.bm-wk-head__title { margin: 0; font: 500 clamp(1.4rem, 1rem + 1.6vw, 2.1875rem)/1.15 var(--bm-fd); letter-spacing: -.01em; color: var(--bm-strong); text-wrap: balance; }
.bm-wk-head__count { margin: 0; padding-bottom: 6px; font-size: 14px; color: var(--bm-muted-text); }
.bm-wk-head .bm-btn { flex: none; }

.bm-wk-chips { margin-bottom: 32px; }
.bm-wk-chips__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bm-wk-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1px solid var(--bm-border); border-radius: var(--bm-r-md); background: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--bm-strong); transition: border-color 150ms var(--bm-ease-out), color 150ms var(--bm-ease-out), background-color 150ms var(--bm-ease-out); }
.bm-wk-chip:hover { border-color: var(--bm-orange); color: var(--bm-orange-text); }
.bm-wk-chip.is-active { border-color: var(--bm-orange-fill); background: var(--bm-orange-fill); color: #fff; }
.bm-wk-chip.is-active:hover { color: #fff; }

/* the current page is a link as on the live pager (catalog.css paints .current; keep its white text on hover) */
.bm-pager a.current:hover { color: #fff; }
.bm-wk-empty { margin: 0; padding: 48px 0; text-align: center; color: var(--bm-muted-text); }

/* ---------- project page: hero band ---------- */
/* white, no grey band (owner 2026-10-09: «убери серую подложку вверху на страницах наших работ»): the crumbs, eyebrow and
   H1 sit on the page's white; the gap to the gallery is the section's own padding-top (40 / 24 px). The top stays the
   shared 36 px (phones 28, below): since 2026-10-19 (owner answer «44 — а») pages.css starts a light hero at 40 px, the
   Delivery head - these pages keep theirs.
   4 px under the H1 (owner answer «45 — да», 2026-10-19): the hero clips its content (pages.css .bm-pg-hero overflow:
   hidden) and the descenders of the H1's last line (р, у, д, ф …) reach up to about 2 px under its line box, so the lowest
   pixel row was cut at 1024-1920 px; the same 4 px come off the gallery section's top (40 -> 36, phones 24 -> 20), so
   nothing under the hero moves. Way back (one edit): padding-bottom 0 here and .bm-wk-top 40 / phones 24 */
.bm-wk-phero.bm-pg-hero--light { border-bottom: 0; background: none; }
.bm-wk-phero .bm-pg-hero__in { gap: 14px; padding-top: 36px; padding-bottom: 4px; }
.bm-wk-top { padding-top: 36px; }

/* gallery + info rail (design [data-wp-hero]: 1.25fr / .75fr; ≤ 1100 px stacked, the rail rows in columns). Above
   1100 px the rail card is as tall as the photo frame (design: card height = photo height): see the media query below. */
.bm-wk-hero2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: start; }
.bm-wk-hero2__gal { min-width: 0; }
.bm-wk-hero2__gal:only-child { grid-column: 1 / -1; max-width: 880px; }

/* photo overlays of the design: «Реалізовано» top left, «N / M фото» bottom right (the zoom icon: product.css) */
.bm-wk-gal__badge, .bm-wk-gal__count { position: absolute; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--bm-r-md); line-height: 1.2; color: #fff; pointer-events: none; }
.bm-wk-gal__badge { top: 16px; left: 16px; padding: 8px 14px; background: rgba(11, 11, 10, .62); font-size: 12.8px; font-weight: 700; }
.bm-wk-gal__count { right: 16px; bottom: 16px; padding: 7px 13px; background: rgba(27, 30, 46, .78); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bm-wk-gal__badge .bm-ico, .bm-wk-gal__count .bm-ico { width: 15px; height: 15px; stroke-width: 2.1; }

.bm-wk-info { overflow: hidden; border: 1px solid var(--bm-border); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(27, 30, 46, .05); }
.bm-wk-info__title { margin: 0; padding: 13px 22px; background: var(--bm-navy-700); font: 600 12.5px/1.3 var(--bm-fd); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.bm-wk-info__list { margin: 0; }
/* a row = icon «1a» | label over value (owner 2026-10-09, site/design/icons-1a README §3: the 32 px drawing without a
   tile, 14 px to the text, padding 14px 22px, centred on the row's height). The icon stands in the <dt> (a <dl> row
   holds only <dt> / <dd>), so it is placed at the row's left and the text starts after it: 22 + 32 + 14 = 68 px */
.bm-wk-info__row { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 14px 22px 14px 68px; }
.bm-wk-info__row + .bm-wk-info__row { border-top: 1px solid var(--bm-border); }
.bm-wk-info__label { font-size: 12.5px; line-height: 1.35; color: var(--bm-muted-text); }
.bm-wk-info__ico { position: absolute; top: 50%; left: 22px; width: 32px; height: 32px; transform: translateY(-50%); }
.bm-wk-info__value { margin: 0; font-weight: 700; font-size: clamp(.92rem, .85rem + .3vw, 1.02rem); line-height: 1.35; overflow-wrap: anywhere; color: var(--bm-strong); }

/* ---------- «Хочете такий самий?» band (owner decisions 2026-10-12: mockup variant B «темна смуга, як на робочому сайті»
   + the live band's fourth field e-mail «для комерційної пропозиції», no comment; template-parts/works/calc.php) ----------
   The live band redrawn with the new site's parts: a navy band (--bm-navy-700, the info rail's title bar colour) the full
   width of the content column, 8 px corners as the site's cards; the white title «Хочете такий самий?», one line in the
   light tint that names what the form asks for (UA «Залиште контакти — менеджер передзвонить і надішле комерційну
   пропозицію на e-mail.»); the fields in the site's B style (white, 52 px, 4 px corners) with their labels visible above
   them in white (the form component's dark tone .bm-form--dark: labels, title, success texts; forms.css: the light-red
   field messages on navy); the privacy line in the light tint, its link white + underlined (orange text on navy is 4.1:1 —
   under AA for 12.5 px; the brand orange is never lightened, owner rule 2026-09-29); the send button's keyboard ring white.
   The layout follows the band's own width (container queries), not the screen: the three fields of the CF7 row div
   (display: contents) and the button are items of ONE grid — wide one row of four equal columns «Ім’я · Телефон · E-mail ·
   Дізнатися ціну» (the live band's rhythm; from 912 px of band — a 1024 px screen — in UA and RU alike since the owner's
   answer «27 — по советам» of 2026-10-12: the short e-mail hints «Надішлемо пропозицію» / «Отправим предложение» whole in
   their columns; the first hints «Для комерційної пропозиції» / «Для коммерческого предложения» needed 1000 / 1148 px),
   medium (≥ 540 px) two clean rows «Ім’я · Телефон»
   / «E-mail · Дізнатися ціну», narrow stacked with the button full width. The button stands level with the fields (the
   label line 14 px × 1.4 + the 8 px label gap above it). Placement (single-project.php, V1): inside «Про проєкт» right after
   the project's text, 48 / 36 px above it; a work without stored text keeps the band under the gallery (32 / 24 px). */
.bm-wk-calc {
	display: block;
	container-type: inline-size;
	max-width: none;
	margin-top: 32px;
	padding: 26px 32px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--bm-navy-700);
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
}
.bm-wk-about .bm-wk-calc { margin-top: 48px; }
.bm-wk-calc .bm-wk-calc__form { max-width: none; } /* the form alone in the band: no width cap */
.bm-wk-calc .bm-form__title { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; color: #fff; }
/* the short line balanced: from 375 px (UA) / 390 px (RU) of screen two even lines (on a 600 px screen 314 / 300 px,
   not 464 + a lone «e-mail.»); narrower phones need three lines (UA 320–360, RU 340–375) or four (RU 320) for the long
   words — still balanced there, as plain / pretty wrapping leaves a 32–44 px «e-mail.» alone on the last line (measured
   2026-10-12, verifier follow-up) */
.bm-wk-calc .bm-form__text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--bm-on-dark); text-wrap: balance; }
.bm-wk-calc .bm-form--dark .bm-form__privacy { color: var(--bm-on-dark); }
.bm-wk-calc .bm-form--dark .bm-form__privacy a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .6); text-underline-offset: 2px; }
.bm-wk-calc .bm-form--dark .bm-form__privacy a:hover { text-decoration-color: #fff; }
/* the keyboard ring of the send button: white on navy (the site's orange ring would sit on the orange button) */
.bm-wk-calc .bm-form--dark .wpcf7-submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the CF7 body: ONE grid — the three fields of the row div (display: contents), the button, the privacy line */
.bm-wk-calc .bm-form__cf7 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 16px; }
.bm-wk-calc .bm-form__row { display: contents; }
.bm-wk-calc .bm-form__cf7 > :not(.bm-form__row, .wpcf7-submit) { grid-column: 1 / -1; }
.bm-wk-calc .bm-sheet-form input[type="email"] { min-height: 52px; } /* as the name / phone fields (forms.css) */
/* their 15 px text too — on the desktop only: on phones / touch screens forms.css' 16 px rule (iOS zooms into a field under
   16 px) must keep winning (category-check inline_form_a, rule category.inline_form_a_2026_10_09) */
@media (min-width: 768px) and (pointer: fine) {
	.bm-wk-calc .bm-sheet-form input[type="email"] { font-size: 15px; }
}
/* a hint that ever runs out of room ends in «…», never in a cut letter — a safety net: since the short hints (owner answer
   «27 — по советам», 2026-10-12) every hint is whole at 320–1920 px (the 16 px phone text of forms.css: RU «Отправим
   предложение» 189 px in the 230 px field of a 320 px phone) */
.bm-wk-calc .bm-sheet-form :is(input[type="text"], input[type="tel"], input[type="email"]) { text-overflow: ellipsis; }
.bm-wk-calc .bm-form__cf7 .wpcf7-submit,
.bm-wk-calc .bm-form__cf7 .wpcf7-submit:hover { width: 100%; min-height: 52px; padding-block: 0; }
/* medium: two rows «Ім’я · Телефон» / «E-mail · Дізнатися ціну», the button level with the e-mail field */
@container (min-width: 540px) {
	.bm-wk-calc .bm-form__cf7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-wk-calc .bm-form__cf7 .wpcf7-submit,
	.bm-wk-calc .bm-form__cf7 .wpcf7-submit:hover { align-self: start; margin-top: calc(14px * 1.4 + 8px); }
	.bm-wk-calc .bm-form__privacy { margin-top: -2px; }
}
/* wide: one row of four equal columns (the live band's rhythm); the fields 10 px inside, 14 px apart. ONE threshold for UA
   and RU (owner answer «27 — по советам», 2026-10-12: the short e-mail hints): from 912 px of band = the band of a 1024 px
   screen (up to 1100 px the band is the screen − 112 px; a column = (band − 3 × 14) / 4 = 217.5 px at 912). Measured in
   Noto Sans (the fallback faces are narrower): the widest needs are the UA button «ДІЗНАТИСЯ ЦІНУ» 125.6 px + its 28 / 52 px
   padding = a 205.6 px column (RU «УЗНАТЬ ЦЕНУ» 100.7 px) and, on touch screens, the RU hint «Отправим предложение» at the
   16 px of forms.css 189.3 px + 2 × 10 padding + 2 border = 211.3 px (UA «Надішлемо пропозицію» 185.7 px; with a mouse
   15 px: 177.5 / 174.1 px; the name hints 161.6 / 151.8 px). 912 = the smallest band where every hint, label and the
   button keep at least 6 px to spare (911: the RU touch hint 5.9 px): at 912 the RU hint 6.2 px on a touch screen (iPad
   1024 landscape), UA 9.8 px; with a mouse 18.0 / 21.4 px; the button 11.9 px. The padding was 12 px until the fixer's
   follow-up of 2026-10-12 — 2.2 px for the RU touch hint, not the safe margin the owner asked for; 12 px would need 928 px
   of band (a 1040 px screen) for the same 6 px, and the 1024 px tablet would lose the one row. A desktop window with a
   classic scrollbar (Windows) is ≈ 15 px wider than its viewport: one row from a ≈ 1040 px window there */
@container (min-width: 912px) {
	.bm-wk-calc .bm-form__cf7 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; }
	.bm-wk-calc .bm-sheet-form :is(input[type="text"], input[type="tel"], input[type="email"]) { padding-inline: 10px; }
}
/* the short-form fallback (a site before step 77: name + phone only, template-parts/works/calc.php): from 540 px one row
   «Ім’я · Телефон · Дізнатися ціну» in three equal columns */
@container (min-width: 540px) {
	.bm-wk-calc .bm-form__cf7:not(:has(input[type="email"])) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* the success view in the form's room (forms.js pin()): the short line goes, the view is centred in the room; from a
   480 px band one compact row (mark, «Заявку надіслано» + hours, «Нова заявка»), under 480 px stacked with 10 px gaps
   (keyed to the shown success view, not to [data-bm-pin]: pin() sets that attribute BEFORE it reads the box's height, so
   a rule on it would hide the line too early and the box would be pinned short) */
.bm-wk-calc .bm-form:has(> .bm-form__ok:not([hidden])) { display: flex; flex-direction: column; }
.bm-wk-calc .bm-form:has(> .bm-form__ok:not([hidden])) > .bm-form__text { display: none; }
.bm-wk-calc .bm-form > .bm-form__ok:not([hidden]) { flex: 1 0 auto; }
.bm-wk-calc .bm-form__ok .bm-form-ok { gap: 10px; }
.bm-wk-calc .bm-form--dark .bm-form-ok__text { color: var(--bm-on-dark); }
.bm-wk-calc .bm-form--dark .bm-form-ok__btn { border-color: #fff; background: transparent; color: #fff; }
.bm-wk-calc .bm-form--dark .bm-form-ok__btn:hover { background: rgba(255, 255, 255, .1); }
.bm-wk-calc .bm-form--dark .bm-form-ok__btn:focus-visible { outline-color: #fff; }
@container (min-width: 480px) {
	.bm-wk-calc .bm-form__ok .bm-form-ok { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 0; text-align: left; }
	.bm-wk-calc .bm-form-ok__mark { grid-row: 1 / span 2; width: 48px; height: 48px; }
	.bm-wk-calc .bm-form-ok__mark .bm-ico { width: 24px; height: 24px; }
	.bm-wk-calc .bm-form-ok__title { grid-column: 2; font-size: 1.1rem; }
	.bm-wk-calc .bm-form-ok__text { grid-column: 2; max-width: none; font-size: 14px; line-height: 1.5; }
	.bm-wk-calc .bm-form-ok__btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
}
/* «Надсилаємо…» (forms-lazy.js) takes the privacy line's place, on the band's colour */
.bm-wk-calc .wpcf7 { position: relative; }
.bm-wk-calc .wpcf7 > .bm-cf7-note { color: var(--bm-on-dark); }
.bm-wk-calc .wpcf7 > .bm-cf7-note.is-err { color: #FFA5A5; }
.bm-wk-calc .wpcf7 > .bm-cf7-note:not(:empty, .is-err) { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; background: var(--bm-navy-700); }
.bm-wk-calc .wpcf7:has(> .bm-cf7-note:not(:empty, .is-err)) .bm-form__privacy { visibility: hidden; }

/* ---------- hero CTA «Хочу такий самий» (owner 2026-10-12: «подготовил в Claude Design код кнопки; в десктопной версии
   вставь расширенный вариант, в мобильной — упрощённый, меньшей толщины»; handoff variant 2c «Графіт із надзаголовком»,
   high fidelity: cta-2c.css; template-parts/works/cta.php) ----------
   A graphite tile (--bm-graphite ≈ RAL 7024, the modules' facade) in the empty corner under «Інформація про проект»:
   desktop the eyebrow «Сподобався об’єкт?» (Noto Sans 700 11 px / .16em, #B9BCC4, 6.9:1) after the 28 × 2 orange tick, the
   label «Хочу такий самий» (Montserrat 700 16 px / .08em, white, 13:1), the 48 px square with the orange arrow; ≤ 767 px the
   compact one (64 px, no eyebrow, a 24 px tick before the 14 px label, 44 px square); ≤ 400 px tighter. States: hover only
   on real hover devices (no sticky state after a tap) — #26282C, up 2 px, the shadow, the tick 28 → 44 px, the square
   orange with a white arrow moving 4 px; keyboard focus the same without the lift + the orange ring (box-shadow; no
   outline); press: #26282C, 1 px down, the square orange; 220 ms ease-out, the tick 320 ms; reduced motion: no transition,
   no move. Classes (owner round 39, 2026-10-13): the tile's own block .bm-wk-want / .bm-wk-want__* (template-parts/works/
   cta.php) — round 38 gave it «bm-cta bm-wk-cta», the pages CTA band's block (pages.css) and the works list band's page
   class, and the list band turned graphite with unreadable navy text. The selectors below are the round-38 ones with the
   classes swapped one for one (the old tile class → .bm-wk-want, each old element class → .bm-wk-want__<same name>: same
   specificity, same order) and keep every value, also the ones that only countered the pages band's rules (border 0,
   nowrap, the text span's margin / size / line height / colour / wrap reset): computed styles and geometry measured
   identical before / after at 1440–320 px, rest / hover / focus / press. pages-check rule works.cta_class_guard_2026_10_13:
   only this link carries the class, no stylesheet but this one names it.
   Geometry (mockup G1, measured 0 px): above 1100 px (gallery and rail side by side) the tile takes the grid cell next to
   the thumbnail strip (row 2 / column 2): margin 18px 0 6px (the strip's 14 px margin + 4 px thumbnail padding above, 6 px
   below), align-self stretch, contain: size — its top on the thumbnails' top, its bottom on their bottom at every width,
   the row's height set by the thumbnails alone (the 106 px of the handoff are the mockup's cell); the content fits the
   96 px cell of 1101 px. A work with one photo (no strip): under the rail, 16 px, 106 px. 768–1100 px: full width under the
   rail, desktop version, 106 px, 16 px gap (the stacked grid's 24 px - 8). ≤ 767 px: the compact tile, 16 px gap. */
.bm-wk-want {
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-width: 0;
	height: 106px;
	min-height: 96px;
	margin: 16px 0 0;
	padding: 0 18px 0 24px;
	border: 0;
	border-radius: 10px;
	background-color: var(--bm-graphite);
	box-shadow: 0 1px 2px rgba(27, 30, 46, .10);
	font-family: var(--bm-fb);
	text-align: left;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 220ms var(--bm-ease-out), box-shadow 220ms var(--bm-ease-out), transform 220ms var(--bm-ease-out);
}
.bm-wk-want:hover { color: #fff; }
.bm-wk-want .bm-wk-want__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; font-size: inherit; line-height: normal; color: inherit; text-wrap: wrap; }
.bm-wk-want .bm-wk-want__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--bm-graphite-muted); }
.bm-wk-want .bm-wk-want__tick { flex: none; display: block; width: 28px; height: 2px; background: var(--bm-orange); transition: width 320ms var(--bm-ease-out); }
.bm-wk-want .bm-wk-want__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bm-wk-want .bm-wk-want__row > .bm-wk-want__tick { display: none; } /* the label's own tick: the compact tile only */
.bm-wk-want .bm-wk-want__label { font-family: var(--bm-fd); font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.bm-wk-want .bm-wk-want__chip { flex: none; box-sizing: border-box; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; background-color: rgba(20, 22, 26, .35); color: var(--bm-orange); transition: background-color 220ms var(--bm-ease-out), color 220ms var(--bm-ease-out); }
.bm-wk-want .bm-wk-want__arrow { width: 20px; height: 20px; stroke-width: 2.2; transition: transform 220ms var(--bm-ease-out); }
@media (hover: hover) {
	.bm-wk-want:hover { background-color: var(--bm-graphite-deep); box-shadow: 0 12px 28px rgba(27, 30, 46, .22); transform: translateY(-2px); }
	.bm-wk-want:hover .bm-wk-want__tick { width: 44px; }
	.bm-wk-want:hover .bm-wk-want__chip { background-color: var(--bm-orange); color: #fff; }
	.bm-wk-want:hover .bm-wk-want__arrow { transform: translateX(4px); }
}
.bm-wk-want:focus { outline: none; }
.bm-wk-want:focus-visible { outline: none; background-color: var(--bm-graphite-deep); box-shadow: 0 0 0 3px rgba(248, 90, 0, .30), 0 12px 28px rgba(27, 30, 46, .22); }
.bm-wk-want:focus-visible .bm-wk-want__tick { width: 44px; }
.bm-wk-want:focus-visible .bm-wk-want__chip { background-color: var(--bm-orange); color: #fff; }
.bm-wk-want:focus-visible .bm-wk-want__arrow { transform: translateX(4px); }
.bm-wk-want:active { background-color: var(--bm-graphite-deep); transform: translateY(1px); }
.bm-wk-want:active .bm-wk-want__chip { background-color: var(--bm-orange); color: #fff; }

/* the project's text, videos, FAQ */
.bm-wk-about { padding-top: 24px; }
.bm-wk-about .bm-eyebrow { margin-bottom: 18px; }
.bm-wk-text { max-width: 860px; }
.bm-wk-text p { margin: 0 0 .8em; }
.bm-wk-text > :last-child { margin-bottom: 0; }
.bm-wk-text .iframe-responsify { max-width: 640px; margin: 1.5em 0; }
.bm-wk-videos { margin-top: 44px; }
.bm-wk-videos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bm-wk-videos__grid--one { grid-template-columns: minmax(0, 860px); }
.bm-wk-faq { max-width: 860px; margin-top: 48px; }

/* related works */
.bm-wk-related .bm-wk-head { margin-bottom: 28px; }

/* ---------- responsive ---------- */
@media (min-width: 1101px) {
	/* The gallery wrapper and the gallery block hand their stage frame and thumbnail strip to this grid (display:
	   contents; template-parts/works/gallery.php), so the rail shares the frame's row and stretches to it; its rows
	   share the height (design: flex 1 each). A rail taller than the frame (a wide photo, long values) makes the row
	   taller: the frame follows and the stage grows with it, the photo stays whole (object-fit: contain). Without a
	   rail the gallery keeps its own block (:only-child above). */
	.bm-wk-hero2 { grid-template-rows: auto auto; row-gap: 0; align-items: stretch; }
	.bm-wk-hero2__gal:not(:only-child), .bm-wk-hero2__gal:not(:only-child) > .bm-wk-gal { display: contents; }
	.bm-wk-hero2 .bm-gal__frame { grid-area: 1 / 1; }
	.bm-wk-hero2 .bm-gal__stage { min-height: 100%; }
	.bm-wk-hero2 .bm-gal__strip { grid-area: 2 / 1; }
	.bm-wk-hero2 > .bm-wk-info { display: flex; flex-direction: column; grid-area: 1 / 2; }
	.bm-wk-info__list { display: flex; flex: 1 1 auto; flex-direction: column; }
	.bm-wk-info__row { flex: 1 1 auto; }
	/* the hero CTA «Хочу такий самий» (owner 2026-10-12) in the corner next to the thumbnail strip: its top on the
	   thumbnails' top, its bottom on their bottom (the strip's 14 + 4 px above, 6 px below); contain: size — the row keeps
	   the thumbnails' height */
	.bm-wk-hero2 > .bm-wk-want { grid-area: 2 / 2; align-self: stretch; height: auto; min-height: 0; margin: 18px 0 6px; contain: size; }
	/* a work with one photo has no strip and no corner: the tile under the rail, 16 px, the handoff's 106 px */
	.bm-wk-hero2:not(:has(.bm-gal__strip)) > .bm-wk-want { align-self: start; height: 106px; min-height: 96px; margin: 16px 0 0; contain: none; }
}
@media (max-width: 1100px) {
	.bm-wk-hero2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.bm-wk-info__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
	.bm-wk-info__row + .bm-wk-info__row { border-top: 0; }
	.bm-wk-info__row { border-bottom: 1px solid var(--bm-border); }
	.bm-wk-info__list { margin-bottom: -1px; }
	.bm-wk-hero2 > .bm-wk-want { margin-top: -8px; } /* the hero CTA right under the rail: the stacked grid's 24 px - 8 = 16 px */
}
@media (max-width: 900px) {
	.bm-wk-calc { padding: 24px 24px 20px; }
}
@media (max-width: 767px) {
	.bm-wk-head { margin-bottom: 20px; }
	/* chips: one row that scrolls sideways, bleeding to the screen edges (no page overflow: the list scrolls itself) */
	.bm-wk-chips { margin: 0 calc(-1 * var(--bm-pad)) 24px; }
	.bm-wk-chips__list { flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px var(--bm-pad) 6px; scroll-padding-inline: var(--bm-pad); scrollbar-width: none; }
	.bm-wk-chips__list::-webkit-scrollbar { display: none; }
	.bm-wk-chips__list > li { flex: none; }
	.bm-wk-chip { white-space: nowrap; }
	.bm-wk-phero .bm-pg-hero__in { padding-top: 28px; }
	.bm-wk-top { padding-top: 20px; } /* 24 - the 4 px under the H1 */
	.bm-wk-info__row { padding-left: 64px; padding-right: 18px; } /* 18 + 32 + 14 */
	.bm-wk-info__ico { left: 18px; }
	.bm-wk-gal__badge { padding: 6px 11px; font-size: 12px; }
	.bm-wk-gal__count { padding: 5px 10px; font-size: 12px; }
	.bm-wk-calc { margin-top: 24px; padding: 20px 16px 16px; }
	.bm-wk-about .bm-wk-calc { margin-top: 36px; }
	.bm-wk-calc .bm-form__title { font-size: 1.1rem; }
	.bm-wk-calc .bm-form__text { margin-bottom: 14px; font-size: 14px; }
	/* the hero CTA: the compact tile (handoff «Мобільна»: 64 px, no eyebrow, the tick before the label, 44 px square) */
	.bm-wk-want { height: 64px; min-height: 64px; gap: 12px; padding: 0 10px 0 18px; }
	.bm-wk-want .bm-wk-want__eyebrow { display: none; }
	.bm-wk-want .bm-wk-want__row > .bm-wk-want__tick { display: block; width: 24px; }
	.bm-wk-want .bm-wk-want__label { font-size: 14px; }
	.bm-wk-want .bm-wk-want__chip { width: 44px; height: 44px; }
	/* keyboard focus: the compact hover width (the handoff's 44 px would push the one-line label out at 320 px) */
	.bm-wk-want:focus-visible .bm-wk-want__row > .bm-wk-want__tick { width: 32px; }
	.bm-wk-videos { margin-top: 32px; }
	.bm-wk-videos__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.bm-wk-faq { margin-top: 36px; }
}
@media (max-width: 767px) and (hover: hover) {
	.bm-wk-want:hover .bm-wk-want__row > .bm-wk-want__tick { width: 32px; }
}
/* the narrowest phones (handoff ≤ 400 px): the label stays on one line at 320 px */
@media (max-width: 400px) {
	.bm-wk-want { padding-left: 16px; }
	.bm-wk-want .bm-wk-want__row { gap: 10px; }
	.bm-wk-want .bm-wk-want__row > .bm-wk-want__tick { width: 20px; }
	.bm-wk-want .bm-wk-want__label { letter-spacing: .05em; }
}
/* touch: 44 px targets for the chips */
@media (max-width: 767px), (pointer: coarse) {
	.bm-wk-chip { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-wk-chip { transition: none; }
	/* the hero CTA: no transition, no move (colours still change) */
	.bm-wk-want, .bm-wk-want .bm-wk-want__tick, .bm-wk-want .bm-wk-want__chip, .bm-wk-want .bm-wk-want__arrow { transition: none; }
	.bm-wk-want:hover, .bm-wk-want:active, .bm-wk-want:focus-visible { transform: none; }
	.bm-wk-want:hover .bm-wk-want__arrow, .bm-wk-want:focus-visible .bm-wk-want__arrow { transform: none; }
}
