/* ============================================================
   «Мапа сайту / Карта сайта» (page-sitemap.php): white hero with the legend, the schema tree (≥ 1040 px) / accordion
   (< 1040 px), the «Шлях» line, the full list of pages, categories and products.
   Design: design/clients-reviews-sitemap-2026-09-30 README Screen 3 + site/ua/Карта сайту.dc.html (1440 px).
   Small muted text uses --bm-muted-text (#6B6F85, AA) instead of the design's #868AA0 / #A8ABBC; orange #F85A00 only.
   The H1 in Montserrat 900 as the design (owner 2026-10-05; the self-hosted Montserrat is declared up to 900 since
   2026-10-03, fonts.css — the same file, no extra download; base.css has the 900 fallback faces).
   ============================================================ */

/* ---------- hero: breadcrumb / eyebrow + H1 (left) · lead + legend (right) / 2 px navy rule ---------- */
.bm-sm-hero { border-bottom: 0; background: #fff; }
.bm-sm-hero .bm-pg-hero__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	grid-template-areas: "crumbs crumbs" "eyebrow aside" "title aside" "rule rule";
	align-items: end;
	gap: 0 64px;
	padding-top: 36px;
	padding-bottom: 32px;
}
.bm-sm-hero .bm-crumbs { grid-area: crumbs; margin-bottom: 32px; }
.bm-sm-hero .bm-pg-hero__eyebrow { grid-area: eyebrow; margin-bottom: 14px; }
/* the stored title «Мапа сайту» / «Карта сайта»: two words, two lines (design «Карта<br>сайту») */
.bm-sm-hero .bm-pg-hero__title {
	grid-area: title;
	width: min-content;
	max-width: 100%;
	font-size: clamp(40px, 1rem + 4.4vw, 76px);
	font-weight: 900;
	line-height: .96;
	letter-spacing: -.025em;
	text-wrap: wrap;
}
.bm-sm-hero .bm-pg-hero__in::after { content: ""; grid-area: rule; height: 2px; margin-top: 28px; background: var(--bm-navy-700); }
.bm-sm-hero__aside { grid-area: aside; align-self: end; }
.bm-sm-hero__lead { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--bm-text); text-wrap: pretty; }
/* the hover sentence of the lead (copy lead_hover): only where the tree lights paths (≥ 1040 px; the accordion below
   has no highlight; without JavaScript the <noscript> style of bm_sitemap_setup() hides it too) */
@media (max-width: 1039px) {
	.bm-sm-hero__hover { display: none; }
}
.bm-sm-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13px; line-height: 1.4; color: var(--bm-g600); }
.bm-sm-legend li { display: inline-flex; align-items: center; gap: 8px; }
.bm-sm-legend__sw { flex: none; width: 14px; height: 14px; border: 1px solid transparent; }
.bm-sm-legend__sw--sec { background: var(--bm-navy-700); }
.bm-sm-legend__sw--cl { border-color: var(--bm-g400); background: #fff; }
.bm-sm-legend__sw--page { border-color: var(--bm-g300); border-radius: 2px; background: var(--bm-g50); }
.bm-sm-legend__sw--new { border: 1px dashed var(--bm-orange); background: var(--bm-orange-soft); }

/* ---------- tree: nodes (every width) ---------- */
.bm-sm-scheme { padding: 16px 0 72px; }
.bm-sm-node { position: relative; display: flex; align-items: center; text-decoration: none; transition: background-color 200ms var(--bm-ease-out), border-color 200ms var(--bm-ease-out), color 200ms var(--bm-ease-out); }
.bm-sm-node--home, .bm-sm-node--sec { background: var(--bm-navy-700); color: #fff; }
.bm-sm-node--home { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 16px; }
.bm-sm-node--home .bm-sm-node__t { font: 800 15px/1.2 var(--bm-fd); letter-spacing: .02em; text-transform: uppercase; }
.bm-sm-node__p { font-size: 11.5px; line-height: 1.3; color: rgba(255, 255, 255, .7); transition: color 200ms var(--bm-ease-out); }
.bm-sm-node--sec { gap: 12px; min-height: 56px; padding: 0 14px; }
.bm-sm-node__n { flex: none; font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--bm-orange); transition: color 200ms var(--bm-ease-out); }
.bm-sm-node__b { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.bm-sm-node--sec .bm-sm-node__t { font: 800 14px/1.2 var(--bm-fd); letter-spacing: .02em; text-transform: uppercase; }
.bm-sm-node--sec .bm-sm-node__p { font-size: 11px; }
.bm-sm-node--sec .bm-sm-node__c { flex: none; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); transition: color 200ms var(--bm-ease-out); }
.bm-sm-node--cl {
	gap: 10px;
	min-height: 56px;
	padding: 0 14px;
	border: 1px solid var(--bm-g400);
	background: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bm-navy-700);
}
.bm-sm-node--cl .bm-sm-node__t { flex: 1; min-width: 0; }
.bm-sm-node--cl .bm-sm-node__c { flex: none; font-size: 11.5px; letter-spacing: 0; color: var(--bm-muted-text); }
.bm-sm-node--cl img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.bm-sm-node--cl.is-new { border-style: dashed; border-color: var(--bm-orange); background: var(--bm-orange-soft); }
.bm-sm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-sm-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--bm-g300);
	border-radius: 2px;
	background: var(--bm-g50);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--bm-navy-700);
	text-decoration: none;
	transition: background-color 160ms var(--bm-ease-out), border-color 160ms var(--bm-ease-out), color 160ms var(--bm-ease-out);
}
.bm-sm-chip__p { font-size: 11px; font-weight: 500; color: var(--bm-muted-text); transition: color 160ms var(--bm-ease-out); }
.bm-sm-chip.is-new { border-style: dashed; border-color: var(--bm-orange); background: var(--bm-orange-soft); }
.bm-sm-tree a:focus-visible { outline: 2px solid var(--bm-orange); outline-offset: 2px; }

/* highlight: the path from «Головна» to the node under the pointer / keyboard focus (sitemap.js sets the classes);
   without the script, the node itself on hover */
.bm-sm-home.is-hl .bm-sm-node--home,
.bm-sm-sec.is-on > .bm-sm-sec__head > .bm-sm-node--sec,
.bm-sm-chip.is-on { background: var(--bm-orange); color: #fff; }
.bm-sm-sec.is-on > .bm-sm-sec__head .bm-sm-node__n { color: #fff; }
.bm-sm-cl.is-on > .bm-sm-cl__head > .bm-sm-node--cl { border-color: var(--bm-orange); color: var(--bm-orange); }
.bm-sm-chip.is-on { border-color: var(--bm-orange); }
/* URL captions and counters on a lit (orange) node: opaque white — the white-on-orange brand pair (3.25:1); the
   translucent whites of the navy state would drop to 2.3–2.6:1 on orange */
.bm-sm-home.is-hl .bm-sm-node__p,
.bm-sm-sec.is-on > .bm-sm-sec__head .bm-sm-node__p,
.bm-sm-sec.is-on > .bm-sm-sec__head .bm-sm-node__c,
.bm-sm-chip.is-on .bm-sm-chip__p { color: #fff; }
@media (hover: hover) {
	.bm-sm-node--home:hover, .bm-sm-node--sec:hover, a.bm-sm-chip:hover { background: var(--bm-orange); color: #fff; }
	.bm-sm-node--sec:hover .bm-sm-node__n { color: #fff; }
	a.bm-sm-node--cl:hover { border-color: var(--bm-orange); color: var(--bm-orange); }
	a.bm-sm-chip:hover { border-color: var(--bm-orange); }
	.bm-sm-node--home:hover .bm-sm-node__p, .bm-sm-node--sec:hover .bm-sm-node__p, .bm-sm-node--sec:hover .bm-sm-node__c,
	a.bm-sm-chip:hover .bm-sm-chip__p { color: #fff; }
}

/* the «Шлях» line (tree only) */
.bm-sm-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 22px; margin: 24px 0 0; font-size: 14px; line-height: 1.5; color: var(--bm-g600); }
.bm-sm-path__l { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-sm-path__v { font-weight: 600; color: var(--bm-navy-700); }

/* accordion toggles (phones: tree nodes and categories) */
.bm-sm-tog { display: none; flex: none; place-items: center; padding: 0; border: 0; cursor: pointer; }
.bm-sm-tog .bm-ico { width: 20px; height: 20px; transition: transform 200ms var(--bm-ease-out); }
.bm-sm-tog[aria-expanded="true"] .bm-ico { transform: rotate(180deg); }
.bm-sm-tog:focus-visible { outline: 2px solid var(--bm-orange); outline-offset: -4px; }

/* ---------- tree layout ≥ 1040 px (design: 172 / 224 / 236 px columns, 2 px navy and 1 px grey connectors) ---------- */
@media (min-width: 1040px) {
	.bm-sm-tree { overflow-x: auto; padding: 16px 0 8px; }
	.bm-sm-home { display: grid; grid-template-columns: 172px minmax(0, 1fr); align-items: start; min-width: 1040px; }
	.bm-sm-home__cell { position: relative; height: 56px; }
	.bm-sm-home__cell::after { content: ""; position: absolute; top: 27px; left: 150px; width: 22px; height: 2px; background: var(--bm-navy-700); transition: background-color 200ms var(--bm-ease-out); }
	.bm-sm-node--home { width: 150px; height: 56px; }

	.bm-sm-sec { position: relative; display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; padding: 0 0 22px 28px; }
	.bm-sm-sec:last-child { padding-bottom: 0; }
	.bm-sm-sec::before, .bm-sm-sec::after,
	.bm-sm-sec__head::before, .bm-sm-sec__kids::before { content: ""; position: absolute; background: var(--bm-navy-700); transition: background-color 200ms var(--bm-ease-out); }
	.bm-sm-sec::before { top: 0; left: 0; width: 2px; height: 28px; }
	.bm-sm-sec::after { top: 28px; bottom: 0; left: 0; width: 2px; }
	.bm-sm-sec:first-child::before, .bm-sm-sec:last-child::after { display: none; }
	.bm-sm-sec__head { position: relative; }
	.bm-sm-sec__head::before { top: 27px; left: -28px; width: 28px; height: 2px; }
	.bm-sm-node--sec { height: 56px; }
	.bm-sm-sec__kids { position: relative; min-height: 56px; padding-left: 28px; }
	.bm-sm-sec__kids::before { top: 27px; left: 0; width: 28px; height: 2px; }
	.bm-sm-sec__kids > .bm-sm-chips { padding-top: 11px; }

	.bm-sm-cl { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; padding: 0 0 14px 24px; }
	.bm-sm-cl:last-child { padding-bottom: 0; }
	.bm-sm-cl::before, .bm-sm-cl::after, .bm-sm-cl__head::before { content: ""; position: absolute; background: var(--bm-g400); transition: background-color 200ms var(--bm-ease-out); }
	.bm-sm-cl::before { top: 0; left: 0; width: 1px; height: 28px; }
	.bm-sm-cl::after { top: 28px; bottom: 0; left: 0; width: 1px; }
	.bm-sm-cl:first-child::before, .bm-sm-cl:last-child::after { display: none; }
	.bm-sm-cl__head { position: relative; }
	.bm-sm-cl__head::before { top: 27px; left: -24px; width: 24px; height: 1px; }
	.bm-sm-node--cl { height: 56px; }
	.bm-sm-cl > .bm-sm-chips { padding: 11px 0 0 14px; }
	.bm-sm-chip { height: 34px; }

	/* path highlight: rows above the hovered one fully, the hovered one to its tick; the connector to a section's
	   children when something below it is hovered */
	.bm-sm-home.is-hl .bm-sm-home__cell::after,
	.bm-sm-sec.is-past::before, .bm-sm-sec.is-past::after, .bm-sm-sec.is-on::before,
	.bm-sm-sec.is-on > .bm-sm-sec__head::before, .bm-sm-sec.is-deep > .bm-sm-sec__kids::before,
	.bm-sm-cl.is-past::before, .bm-sm-cl.is-past::after, .bm-sm-cl.is-on::before,
	.bm-sm-cl.is-on > .bm-sm-cl__head::before { background: var(--bm-orange); }
}

/* ---------- accordion < 1040 px: the same list, sections and groups fold ---------- */
@media (max-width: 1039px) {
	.bm-sm-scheme { padding: 8px 0 56px; }
	.bm-sm-node--home { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; }
	.bm-sm-secs { margin-left: 12px; padding-top: 10px; }
	.bm-sm-sec { position: relative; padding: 0 0 8px 16px; }
	.bm-sm-sec:last-child { padding-bottom: 0; }
	.bm-sm-sec::before, .bm-sm-sec::after, .bm-sm-sec__head::before { content: ""; position: absolute; background: var(--bm-navy-700); }
	.bm-sm-sec::before { top: 0; left: 0; width: 2px; height: 28px; }
	.bm-sm-sec:first-child::before { top: -10px; height: 38px; }
	.bm-sm-sec::after { top: 28px; bottom: 0; left: 0; width: 2px; }
	.bm-sm-sec:last-child::after { display: none; }
	.bm-sm-sec__head { position: relative; display: flex; }
	.bm-sm-sec__head::before { top: 27px; left: -16px; width: 16px; height: 2px; }
	.bm-sm-node--sec { flex: 1; min-width: 0; padding-block: 8px; }
	.bm-sm-sec__head > .bm-sm-tog { display: grid; width: 56px; border-left: 1px solid rgba(255, 255, 255, .16); background: var(--bm-navy-700); color: #fff; }
	.bm-sm-sec:not(.is-open) > .bm-sm-sec__kids { display: none; }
	.bm-sm-sec__kids { padding: 10px 0 6px; }

	.bm-sm-cl { position: relative; padding: 0 0 8px 14px; }
	.bm-sm-cl:last-child { padding-bottom: 0; }
	.bm-sm-cl::before, .bm-sm-cl::after, .bm-sm-cl__head::before { content: ""; position: absolute; background: var(--bm-g400); }
	.bm-sm-cl::before { top: 0; left: 0; width: 1px; height: 24px; }
	.bm-sm-cl:first-child::before { display: none; }
	.bm-sm-cl::after { top: 24px; bottom: 0; left: 0; width: 1px; }
	.bm-sm-cl:last-child::after { display: none; }
	.bm-sm-cl__head { position: relative; display: flex; }
	.bm-sm-cl__head::before { top: 23px; left: -14px; width: 14px; height: 1px; }
	.bm-sm-node--cl { flex: 1; min-width: 0; min-height: 48px; padding-block: 8px; }
	.bm-sm-cl__head > .bm-sm-tog { display: grid; width: 48px; border: 1px solid var(--bm-g400); border-left: 0; background: #fff; color: var(--bm-navy-700); }
	.bm-sm-cl:not(.is-open) > .bm-sm-chips { display: none; }
	.bm-sm-cl > .bm-sm-chips { padding: 8px 0 6px; }
	.bm-sm-chip { padding-block: 6px; }
	.bm-sm-chip__p { display: none; } /* the URL captions are the wide tree's */
	.bm-sm-path { display: none; }
}

/* ---------- full list: every page, every category (H2) with its products — the live HTML sitemap ---------- */
.bm-sm-all { border-top: 1px solid var(--bm-border); background: var(--bm-g50); }
.bm-sm-all__head { margin-bottom: 28px; }
.bm-sm-all__head .bm-eyebrow { margin-bottom: 12px; }
.bm-sm-all__title { margin: 0; font: 800 clamp(1.4rem, 1rem + 1vw, 1.75rem)/1.15 var(--bm-fd); text-transform: uppercase; color: var(--bm-navy-700); text-wrap: balance; }
.bm-sm-all__label { margin: 0 0 12px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-sm-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.bm-sm-pages a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--bm-g300);
	border-radius: 2px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bm-navy-700);
	transition: border-color 160ms var(--bm-ease-out), color 160ms var(--bm-ease-out), background-color 160ms var(--bm-ease-out);
}
.bm-sm-pages a:hover { border-color: var(--bm-orange); color: var(--bm-orange-text); }
.bm-sm-pages a[aria-current="page"] { border-color: var(--bm-navy-700); background: var(--bm-navy-700); color: #fff; }
.bm-sm-cats { columns: 3 280px; column-gap: 40px; }
.bm-sm-cat { break-inside: avoid; padding-bottom: 28px; }
.bm-sm-cat__head { display: flex; align-items: center; gap: 12px; min-height: 36px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--bm-g300); }
.bm-sm-cat__h { flex: 1; min-width: 0; margin: 0; font: 800 14px/1.3 var(--bm-fd); letter-spacing: .04em; text-transform: uppercase; }
.bm-sm-cat__h a { color: var(--bm-navy-700); }
.bm-sm-cat__h a:hover { color: var(--bm-orange-text); }
.bm-sm-cat__n { flex: none; font-size: 12px; font-weight: 700; color: var(--bm-muted-text); }
.bm-sm-cat__list { display: grid; gap: 7px; font-size: 14.5px; line-height: 1.45; }
.bm-sm-cat__list a { color: var(--bm-text); }
.bm-sm-cat__list a:hover { color: var(--bm-orange-text); }
.bm-sm-cat__head > .bm-sm-tog { width: 44px; height: 44px; margin: -6px -10px -6px 0; background: none; color: var(--bm-navy-700); }
@media (max-width: 767px) {
	.bm-sm-cat { padding-bottom: 6px; }
	.bm-sm-cat__head { margin-bottom: 0; padding-bottom: 4px; }
	.bm-sm-cat__head > .bm-sm-tog { display: grid; }
	.bm-sm-cat:not(.is-open) > .bm-sm-cat__list { display: none; }
	.bm-sm-cat__list { gap: 0; padding: 6px 0 10px; }
	.bm-sm-cat__list a { display: block; padding: 7px 0; }
	.bm-sm-cat__h a { display: inline-block; padding: 8px 0; }
	.bm-sm-pages { margin-bottom: 32px; }
}

/* ---------- hero, phones and tablets ---------- */
@media (max-width: 900px) {
	.bm-sm-hero .bm-pg-hero__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "eyebrow" "title" "aside" "rule"; }
	.bm-sm-hero__aside { max-width: 560px; margin-top: 20px; }
}
@media (max-width: 767px) {
	.bm-sm-hero .bm-pg-hero__in { padding-top: 24px; padding-bottom: 24px; }
	.bm-sm-hero .bm-crumbs { margin-bottom: 24px; }
	.bm-sm-hero .bm-pg-hero__in::after { margin-top: 22px; }
}

/* touch: 44 px targets — by spacing, the type sizes stay: the list's product links become 44 px rows (no gap between
   them), the category heading links fill their heading row at 44 px; the accordion's chips grow to 44 px, the tree's
   (≥ 1040 px) keep 34 px on their connector ticks and get a 44 px hit area around them (no layout shift) */
@media (pointer: coarse) {
	.bm-sm-pages a { min-height: 44px; }
	.bm-sm-node--cl, .bm-sm-cl__head > .bm-sm-tog { min-height: 48px; }
	.bm-sm-cat__list { gap: 0; }
	.bm-sm-cat__list a, .bm-sm-cat__h a { display: flex; align-items: center; min-height: 44px; padding-block: 4px; }
}
@media (pointer: coarse) and (max-width: 1039px) {
	.bm-sm-chip { min-height: 44px; }
}
@media (pointer: coarse) and (min-width: 1040px) {
	.bm-sm-chips { row-gap: 10px; } /* stacked chips 44 px apart: the hit areas below touch, never overlap */
	.bm-sm-chip { position: relative; }
	.bm-sm-chip::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 44px; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.bm-sm-node, .bm-sm-node__n, .bm-sm-node__p, .bm-sm-node__c, .bm-sm-chip, .bm-sm-chip__p, .bm-sm-tog .bm-ico, .bm-sm-pages a,
	.bm-sm-home__cell::after, .bm-sm-sec::before, .bm-sm-sec::after, .bm-sm-sec__head::before, .bm-sm-sec__kids::before,
	.bm-sm-cl::before, .bm-sm-cl::after, .bm-sm-cl__head::before { transition: none; }
}
