:root {
	--bnd-blue: #3d9be9;
	--bnd-navy: #00335d;
	--bnd-line: #8ebfea;
	--bnd-green: #009a00;
	--bnd-green-dark: #007200;
	--bnd-beige: #f0e9da;
	--bnd-ink: #0b2a4a;
	--bnd-sans: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--bnd-frame-pad: clamp(16px, 5.7vw, 80px);
}

/* header: fluid frame like the Wix original (80px off each edge at 1400px), not the 1170 content width */
.site-header-row-layout-contained { max-width: none; margin: 0 var(--bnd-frame-pad); padding: 0; }
.site-header-row-layout-contained .site-container { max-width: none; }
.site-branding .site-title {
	width: min-content;
	font-family: var(--bnd-sans);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.25;
	color: #fff;
}
.site-branding a.brand:hover .site-title { color: #fff; }
.site-bottom-header-wrap .site-header-row-container-inner,
.site-bottom-header-wrap .site-container { padding: 0; }
.site-bottom-header-wrap .site-header-row { grid-template-columns: 1fr; }
.site-bottom-header-wrap .site-header-section-right { display: none; }
.site-bottom-header-wrap .site-header-section-left,
.site-bottom-header-wrap .site-header-item,
.site-bottom-header-wrap .header-html,
.site-bottom-header-wrap .header-html-inner { flex: 1; width: 100%; margin: 0; }

.bnd-important { display: flex; align-items: stretch; height: 46px; color: #fff; }
.bnd-important__label {
	display: flex;
	align-items: center;
	padding: 0 40px;
	background: #1a5fa0;
	font-family: var(--bnd-sans);
	font-size: 14px;
}
.bnd-important__items { position: relative; flex: 1; overflow: hidden; }
.bnd-important__item {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 0 12px;
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none !important;
	white-space: nowrap;
	visibility: hidden;
}
.bnd-important__item.is-active { visibility: visible; }
.bnd-important__item:hover { text-decoration: underline !important; }
.bnd-important__nav {
	padding: 0 18px;
	background: none;
	border: 0;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.bnd-important__nav:hover, .bnd-important__nav:focus { background: rgba(255, 255, 255, .08); color: #fff; }
/* shared */
.bnd-hero { margin-left: var(--bnd-frame-pad); margin-right: var(--bnd-frame-pad); }
.bnd-btn {
	display: inline-block;
	font-family: var(--bnd-sans);
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
}
.bnd-btn {
	padding: 9px 28px;
	background: var(--bnd-green);
	color: #fff !important;
}
.bnd-btn:hover { background: var(--bnd-green-dark); }
.bnd-btn--shadow { box-shadow: 4px 4px 7px rgba(0, 0, 0, .25); }
.bnd-more { margin: 18px 0 0; text-align: right; font-family: var(--bnd-sans); font-size: 14px; }
.bnd-more a { color: var(--global-palette12); text-decoration: none; }
.bnd-more a:hover { text-decoration: underline; }

.bnd-tile__title {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: #fff;
}

/* hero: two gallery bands, label left, horizontally scrolling tiles right */
.bnd-hero { --bnd-shelf-h: 340px; --bnd-shelf-pad: 24px; }
.bnd-shelf {
	display: grid;
	grid-template-columns: 40fr 60fr;
	height: var(--bnd-shelf-h);
	background: var(--bnd-green);
}
.bnd-shelf--docs { background: var(--bnd-green-dark); }
.bnd-shelf__label { display: flex; flex-direction: column; justify-content: center; padding: 28px; color: #fff; }
.bnd-shelf__label .bnd-tile__big { text-decoration: none; }
.bnd-shelf__label p { margin: 14px 0 0; max-width: 34rem; font-size: 16px; line-height: 1.5; }
.bnd-shelf__label p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bnd-tile__big {
	font-family: var(--global-heading-font-family);
	font-weight: 700;
	font-size: clamp(28px, 3.2vw, 46px);
	line-height: 1.1;
	text-transform: uppercase;
	overflow-wrap: normal;
	color: #fff;
}
.bnd-shelf__label .bnd-tile__big:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.bnd-shelf__strip { position: relative; min-width: 0; }
.bnd-shelf__track {
	display: flex;
	gap: 16px;
	height: 100%;
	padding: var(--bnd-shelf-pad) var(--bnd-shelf-pad) var(--bnd-shelf-pad) 0;
	box-sizing: border-box;
	overflow-x: auto;
	scrollbar-width: none;
}
.bnd-shelf__tile {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	width: calc(var(--bnd-shelf-h) - 2 * var(--bnd-shelf-pad));
	height: 100%;
	padding: 18px 16px;
	box-sizing: border-box;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: #1d2b3a center / cover;
}
.bnd-shelf--docs .bnd-shelf__tile { width: calc(100% - 3rem); }
.bnd-shelf__tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .75) 100%);
	transition: background .3s;
}
.bnd-shelf__tile:hover::before { background: rgba(0, 0, 0, .6); }
.bnd-shelf__tile > * { position: relative; }
.bnd-shelf__tile time { font-family: var(--bnd-sans); font-size: 13px; opacity: .85; }
.bnd-shelf__tile .bnd-tile__title {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bnd-shelf--docs .bnd-tile__title { max-width: 40rem; font-size: 24px; -webkit-line-clamp: 3; }
.bnd-shelf__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--bnd-green-dark);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
	transition: opacity .2s;
}
.bnd-shelf__nav[data-dir="-1"] { left: 8px; }
.bnd-shelf__nav[data-dir="1"] { right: calc(var(--bnd-shelf-pad) + 8px); }
.bnd-shelf__nav:hover, .bnd-shelf__nav:focus { background: #fff; color: #111; }
@media (hover: none) { .bnd-shelf__nav { display: none; } }

/* feature */
.bnd-feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 28px;
	background: var(--bnd-beige);
}
.bnd-feature__text {
	align-self: center;
	padding: 60px 48px 60px calc(var(--bnd-frame-pad) + 28px);
}
.bnd-feature h2 { margin: 0 0 22px; font-size: 38px; line-height: 1.3; }
.bnd-feature h2 a { color: var(--global-palette12); text-decoration: none; }
.bnd-feature__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.bnd-feature__actions .bnd-btn { text-transform: uppercase; letter-spacing: .08em; padding: 9px 16px; }
.bnd-feature__actions .bnd-more { margin: 0; }
.bnd-feature__img { min-height: 420px; background-size: cover; background-position: center; }

/* social rail */
.bnd-rail {
	position: fixed;
	right: 10px;
	top: 50%;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transform: translateY(-50%);
}
.bnd-rail a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #111;
	color: #fff;
}
.bnd-rail a:hover { background: var(--bnd-blue); }
.bnd-rail svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 900px) {
	.bnd-hero { --bnd-shelf-h: 280px; --bnd-shelf-pad: 16px; }
	.bnd-shelf { grid-template-columns: 1fr; height: auto; }
	.bnd-shelf__label { padding: 24px 16px 0; }
	.bnd-shelf__label p { font-size: 15px; }
	.bnd-shelf__track { height: var(--bnd-shelf-h); padding-left: 16px; }
	.bnd-shelf__nav[data-dir="-1"] { left: 24px; }
	.bnd-tile__big { font-size: 34px; }
	.bnd-feature { grid-template-columns: 1fr; }
	.bnd-feature__text { padding: 40px 16px; }
	.bnd-feature__img { min-height: 280px; order: -1; }
	.bnd-feature h2 { font-size: 30px; }
}
@media (max-width: 600px) {
	.bnd-shelf--docs .bnd-tile__title { font-size: 19px; }
	.bnd-rail { display: none; }
}

/* category archive mosaic — ported from bashkortrights ops/53 + its live CSS */
.bnd-archive { padding: 2rem var(--bnd-frame-pad) 3rem; background: var(--bnd-beige); container-type: inline-size; }
/* row = .85 of a column: a 1x2 tile is then ~1.75x as tall as wide, never past 2x */
.bnd-archive .hpm-grid {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	grid-auto-rows: calc((100cqw - (var(--cols) - 1) * 1rem) / var(--cols) * .85);
	grid-auto-flow: dense;
	gap: 1rem;
}
.hpm-card {
	--hpm-px: 1.1rem;
	--hpm-py: 1rem;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--hpm-py) var(--hpm-px);
	overflow: hidden;
	background: #fff center / cover;
	border: 1px solid #ded8ca;
	color: #43413b;
}
.hpm-card--w2 { grid-column: span 2; }
.hpm-card--h2 { grid-row: span 2; }
.hpm-card--w2.hpm-card--h2 { --hpm-px: 1.6rem; --hpm-py: 1.5rem; }
.hpm-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; }
.hpm-card--w2.hpm-card--h2 h3 { font-size: 1.35rem; }
.hpm-card h3 a { color: #1d1c18; text-decoration: none; }
.hpm-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hpm-card p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
}
.hpm-card--h2 p { -webkit-line-clamp: 6; }
.hpm-meta {
	margin-bottom: .4rem;
	font-family: var(--bnd-sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #7a7768;
}
.hpm-card--img { color: #fff; }
/* fixed band, not hug-the-text: tiles of one size line up; 1x1 gets ~55% since 33% of ~250px holds only a title */
.hpm-card--img .hpm-body {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 33%;
	margin: 0 calc(-1 * var(--hpm-px)) calc(-1 * var(--hpm-py));
	padding: .6rem var(--hpm-px) var(--hpm-py);
	overflow: hidden;
	background: rgba(20, 18, 14, .9);
}
.hpm-card--img:not(.hpm-card--h2) .hpm-body { height: 56%; }
.hpm-card--img .hpm-body h3 {
	flex: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hpm-card--img .hpm-body p {
	font-size: 1.05rem;
	line-height: 1.4;
	flex: 1 1 auto;
	display: block;
	min-height: 0;
	-webkit-line-clamp: unset;
	-webkit-mask-image: linear-gradient(#000 calc(100% - 1.1em), transparent);
	mask-image: linear-gradient(#000 calc(100% - 1.1em), transparent);
}
.hpm-card--img h3 a { color: #fff; }
.hpm-card--img p { color: rgba(255, 255, 255, .9); }
.hpm-card--img .hpm-meta { color: rgba(255, 255, 255, .7); }
.hpm-card:hover h3 a { text-decoration: underline; }
.bnd-archive__cols.has-scale { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2rem; align-items: start; }
.bnd-archive__main { container-type: inline-size; }
.bnd-scale { position: sticky; top: calc(var(--bnd-head-bottom, 0px) + 1.5rem); max-height: calc(100vh - var(--bnd-head-bottom, 0px) - 3rem); overflow-y: auto; scrollbar-width: thin; padding: 1.25rem 1.25rem 1.25rem 0; background: #fff; border: 1px solid #ded8ca; font-family: var(--bnd-sans); }
.bnd-scale summary { display: none; }
.bnd-scale ul { margin: 0; padding: 0; list-style: none; }
.bnd-scale a { position: relative; display: flex; align-items: baseline; gap: .5rem; padding: .22rem 0 .22rem 4.25rem; color: #43413b; text-decoration: none; line-height: 1.25; }
.bnd-scale a::before { content: ""; position: absolute; left: 0; top: calc(50% - 1px); height: 2px; width: calc(.9rem + var(--bnd-tick, 0) * 2.4rem); background: #c9c1ae; transition: background .15s, width .15s; }
.bnd-scale a span { flex: 1; }
.bnd-scale small { font-size: .75rem; color: #9a9584; font-variant-numeric: tabular-nums; }
.bnd-scale a:hover::before, .bnd-scale a.is-active::before { background: var(--bnd-green); }
.bnd-scale a:hover span { color: var(--bnd-green-dark); }
.bnd-scale a.is-active span { color: var(--bnd-green-dark); font-weight: 700; }
.bnd-scale__major { margin-top: .6rem; }
.bnd-scale__major > a { font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1d1c18; }
.bnd-scale__major > a::before { width: 3.6rem; height: 3px; top: calc(50% - 1.5px); background: var(--bnd-navy); }
.bnd-scale__major li a { font-size: .95rem; }
.bnd-scale__all { padding-left: 4.25rem !important; font-size: .85rem; color: #7a7768 !important; }
.bnd-chron { margin: .2rem 0 .5rem; }
.bnd-chron__month { margin: .55rem 0 .1rem; padding-left: 4.25rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9a9584; }
.bnd-chron a { font-size: .95rem; }
.bnd-scale__all.is-active { color: var(--bnd-green-dark) !important; font-weight: 700; }
@media (max-width: 1024px) {
	.bnd-archive__cols.has-scale { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.bnd-scale { order: -1; position: static; max-height: none; padding: 0; }
	.bnd-scale summary { display: block; padding: .8rem 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
	.bnd-scale details > :not(summary) { padding: 0 1rem 1rem 0; }
}
@container (max-width: 760px) { .bnd-archive .hpm-grid { --cols: 2; } }
@container (max-width: 440px) { .bnd-archive .hpm-grid { --cols: 1; grid-auto-rows: 220px; } .bnd-archive .hpm-card--w2 { grid-column: span 1; } }
.bnd-arows { display: grid; gap: .5rem; }
.bnd-arow {
	--bnd-arow-h: calc(.425 * (100cqw - 3rem) + 1rem);
	--bnd-arow-min: 64px;
	position: relative;
	display: grid;
	grid-template-columns: calc(var(--bnd-arow-min) - 2px) minmax(0, 1fr);
	column-gap: 1.25rem;
	box-sizing: border-box;
	height: var(--bnd-arow-min);
	overflow: hidden;
	background: #fff;
	border: 1px solid #ded8ca;
	transition: height .35s ease, grid-template-columns .35s ease, column-gap .35s ease;
}
.bnd-arow__img { min-height: 0; overflow: hidden; background: var(--bnd-beige); }
.bnd-arow__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bnd-arow__body { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 0 1.25rem 0 0; transition: padding .35s ease; }
.bnd-arow .hpm-meta { margin: 0 0 .15rem; font-size: .7rem; }
.bnd-arow h3 { flex: none; margin: 0; overflow: hidden; font-size: 1.2rem; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.bnd-arow h3 a { color: #1d1c18; text-decoration: none; }
.bnd-arow h3 a::after { content: ""; position: absolute; inset: 0; }
.bnd-arow p {
	flex: 0 1 auto;
	min-height: 0;
	max-height: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	font-size: 1.1rem;
	line-height: 1.55;
	color: #43413b;
	-webkit-mask-image: linear-gradient(#000 calc(100% - 2em), transparent);
	mask-image: linear-gradient(#000 calc(100% - 2em), transparent);
	transition: opacity .25s ease;
}
/* no hover on touch screens: titles wrap instead of being cut, the row grows to fit */
@media (hover: none) {
	.bnd-arow { height: auto; min-height: var(--bnd-arow-min); }
	.bnd-arow__body { padding-block: .5rem; }
	.bnd-arow h3 { font-size: 1.05rem; white-space: normal; }
}
/* the delay keeps rows still while the pointer just crosses the list on its way elsewhere */
@media (hover: hover) {
	.bnd-arow:hover, .bnd-arow:focus-within {
		grid-template-columns: calc(var(--bnd-arow-h) - 2px) minmax(0, 1fr);
		column-gap: 2rem;
		height: var(--bnd-arow-h);
		transition-delay: .12s;
	}
	.bnd-arow:hover .bnd-arow__body, .bnd-arow:focus-within .bnd-arow__body { justify-content: flex-start; padding: 1.75rem 2rem 1.75rem 0; transition-delay: .12s; }
	.bnd-arow:hover .hpm-meta, .bnd-arow:focus-within .hpm-meta { margin-bottom: .4rem; font-size: .75rem; }
	.bnd-arow:hover h3, .bnd-arow:focus-within h3 { margin-bottom: 1rem; font-size: 1.6rem; white-space: normal; }
	.bnd-arow:hover h3 a, .bnd-arow:focus-within h3 a { text-decoration: underline; }
	.bnd-arow:hover p, .bnd-arow:focus-within p { flex: 1 1 auto; max-height: none; opacity: 1; transition-delay: .3s; }
}

/* single post: the scale beside the article, the hero still spans both columns */
.bnd-topic-post .content-container.site-container { max-width: none; padding-inline: var(--bnd-frame-pad); }
.bnd-topic-post .content-wrap { display: grid; grid-template-columns: minmax(0, 1170px) calc(17rem + 22px); justify-content: center; column-gap: 0; align-items: start; }
.bnd-topic-post .content-wrap > .post-thumbnail { display: none; }
.bnd-topic-post .content-area { margin-top: 2rem; }
.bnd-post-img { float: right; box-sizing: border-box; width: 50%; margin: 0 0 1.5rem 2rem; border: solid var(--bnd-green); border-width: 8px 8px 24px 24px; }
.bnd-post-img img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) {
	.bnd-post-img { float: none; width: auto; margin: 0 0 1.5rem; }
}
.bnd-topic-post .content-wrap > article { grid-column: 1; grid-row: 1; }
.bnd-topic-post .content-wrap > .bnd-scale { grid-column: 2; grid-row: 1; }
.bnd-topic-post .content-wrap > article.single-entry, .bnd-topic-post .post-thumbnail, .bnd-topic-post .post-thumbnail img { border-radius: 0; box-shadow: none; }
.bnd-topic-post .content-wrap > .bnd-scale { position: static; align-self: stretch; max-height: none; overflow: visible; border: 0; border-left: 24px solid var(--bnd-green); }
/* the bar runs under the article column only and meets the scale's bar in the corner */
.bnd-topic-post .content-wrap > article.single-entry { align-self: stretch; border-bottom: 24px solid var(--bnd-green); }
.bnd-topic-post .content-wrap > .post-navigation { grid-column: 1 / -1; max-width: none; margin: 0; padding-top: 2rem; }
@media (max-width: 1024px) {
	.bnd-topic-post .content-wrap { grid-template-columns: minmax(0, 1fr); }
	/* the topics / dates / contents sit on top, collapsed, so they are found without reading to the end */
	.bnd-topic-post .content-wrap > .bnd-scale { grid-column: 1; grid-row: 1; border-left: 0; border-bottom: 24px solid var(--bnd-green); }
	.bnd-topic-post .content-wrap > article.single-entry { grid-row: 2; }
	.bnd-topic-post .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
	.bnd-topic-post .post-navigation .nav-next { grid-column: 1; padding-left: 0; text-align: left; border: 0; }
	.bnd-topic-post .post-navigation .nav-previous::after { display: none; }
}
.bnd-pintro { margin: 0 0 2.5rem; color: #1d1c18; }
.bnd-pintro strong { color: #1d1c18; }
.bnd-pintro h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.1; }
.bnd-pintro p { margin: 0 0 1rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: #43413b; }
.bnd-pintro p:last-child { margin-bottom: 0; font-weight: 600; color: var(--bnd-green-dark); }
.bnd-pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.bnd-pcard { position: relative; display: flex; flex-direction: column; padding: 1.5rem; background: #fff; border: 1px solid #ded8ca; }
.bnd-pcard__img { margin: 0 0 1.25rem; border: solid var(--bnd-green); border-width: 8px 8px 24px 24px; }
.bnd-pcard__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.bnd-pcard h2 { margin: 0 0 .75rem; font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.2; }
.bnd-pcard h2 a { color: #1d1c18; text-decoration: none; }
.bnd-pcard h2 a::after { content: ""; position: absolute; inset: 0; }
.bnd-pcard:hover h2 a { text-decoration: underline; }
.bnd-pcard p { flex: 1; margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.55; color: #43413b; }
.bnd-pcard__btn { align-self: flex-start; }
.bnd-pcard:hover .bnd-pcard__btn { background: var(--bnd-green-dark); }
@media (max-width: 900px) { .bnd-pcards { grid-template-columns: minmax(0, 1fr); } }
.bnd-scale__toc a { font-size: .9rem !important; }
.bnd-scale__major > a.is-active + .bnd-scale__toc { margin-bottom: .4rem; }
.bnd-prows { display: grid; gap: 1rem; }
.bnd-prow {
	position: relative;
	display: grid;
	grid-template-columns: 256px 1fr auto;
	align-items: center;
	gap: 2rem;
	padding: 1rem 2rem 1rem 1rem;
	background: #fff;
	border: 1px solid #ded8ca;
	border-radius: .75rem;
}
.bnd-prow__img { width: 256px; height: 256px; overflow: hidden; border-radius: .4rem; background: var(--bnd-beige); }
.bnd-prow__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bnd-prow h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; }
.bnd-prow h2 a { color: #1d1c18; text-decoration: none; }
.bnd-prow h2 a::after { content: ""; position: absolute; inset: 0; }
.bnd-prow:hover h2 a { text-decoration: underline; }
.bnd-prow__go { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; color: var(--bnd-green); transition: transform .2s; }
.bnd-prow:hover .bnd-prow__go { transform: translateX(.4rem); }
@media (max-width: 600px) {
	.bnd-prow { grid-template-columns: 96px 1fr auto; gap: 1rem; padding: .75rem 1rem .75rem .75rem; }
	.bnd-prow__img { width: 96px; height: 96px; }
	.bnd-prow h2 { font-size: 1.25rem; }
	.bnd-prow__go { font-size: 2.5rem; }
}
.bnd-archive .pagination { margin: 2rem 0 1rem; }
.bnd-archive__empty { margin: 4rem 0; text-align: center; }
@media (max-width: 900px) {
	.bnd-archive .hpm-grid { --cols: 2; }
}
@media (max-width: 600px) {
	.bnd-archive .hpm-grid { --cols: 1; grid-auto-rows: 220px; }
	.hpm-card--w2 { grid-column: span 1; }
}

.content-area:has(.bnd-tube) { margin: 0; container-type: inline-size; }
.bnd-tube {
	--bnd-tube-gap: 1rem;
	--bnd-card-line: #ded8ca;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
	grid-template-areas: "main list" "shorts list" "club list";
	grid-template-rows: auto auto 1fr;
	gap: var(--bnd-tube-gap);
	width: 100cqw;
	margin: 0 0 0 calc(50% - 50cqw);
	padding: 2rem var(--bnd-frame-pad) 3rem;
	background: var(--bnd-beige);
}
.bnd-tube__main, .bnd-tube__shorts, .bnd-tube__list { min-width: 0; background: #fff; border: 1px solid var(--bnd-card-line); border-radius: .75rem; overflow: hidden; }
.bnd-tube__main { grid-area: main; }
.bnd-tube__main .bnd-yt__link, .bnd-tube__main .bnd-yt__frame { border-radius: 0; }
.bnd-tube__info { padding: 1rem 1.25rem 1.1rem; }
.bnd-tube__title { margin: 0 0 .4rem; font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.25; }
.bnd-tube__desc p { margin: 0 0 .6em; }
.bnd-tube__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bnd-tube__yt { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 36px; border-radius: 8px; transition: background .2s; }
.bnd-tube__yt:hover, .bnd-tube__yt:focus-visible { background: #f7f3ea; }
.bnd-tube__yt svg { display: block; }

.bnd-tube__shorts { grid-area: shorts; padding: 1rem 0 1.1rem; }
.bnd-tube__shorts--wide { grid-area: club; }
.bnd-tube__shorts--wide .bnd-tube__rail { --short-w: clamp(220px, 19vw, 300px); }
.bnd-tube__shorts--wide .bnd-tube__arrow { top: calc(var(--short-w) * 9 / 16 / 2 - 22px); }
.bnd-tube__shorts-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem .6rem 1.25rem; }
.bnd-tube__shorts-head h3 { margin: 0; font-size: 1.2rem; }
.bnd-tube__rail { --short-w: clamp(130px, 12vw, 170px); position: relative; }
.bnd-tube__row {
	--fade-l: 0px;
	--fade-r: 56px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: var(--short-w);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 1.25rem;
	scrollbar-width: none;
	padding: 0 1.25rem;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.bnd-tube__row::-webkit-scrollbar { display: none; }
.bnd-tube__rail:not(.is-start) .bnd-tube__row { --fade-l: 56px; }
.bnd-tube__rail.is-end .bnd-tube__row { --fade-r: 0px; }
.bnd-tube__arrow {
	position: absolute;
	z-index: 2;
	top: calc(var(--short-w) * 16 / 9 / 2 - 22px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bnd-card-line);
	border-radius: 50%;
	background: #fff;
	color: var(--bnd-green);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: transform .15s, background .15s;
}
.bnd-tube__arrow[hidden] { display: none; }
.bnd-tube__arrow:hover, .bnd-tube__arrow:focus-visible { background: var(--bnd-green); color: #fff; }
.bnd-tube__arrow.is-next { right: 10px; }
.bnd-tube__arrow.is-prev { left: 10px; }
.bnd-tube__arrow.is-prev svg { transform: scaleX(-1); }
.bnd-tube__short { scroll-snap-align: start; color: inherit; text-decoration: none; }
.bnd-tube__short .bnd-tube__thumb { aspect-ratio: 9 / 16; border-radius: 8px; }
.bnd-tube__shorts--wide .bnd-tube__thumb { aspect-ratio: 16 / 9; }
.bnd-tube__short img { display: block; }
.bnd-tube__cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: .85rem; line-height: 1.3; }
.bnd-tube__short.is-active .bnd-tube__thumb { outline: 3px solid var(--bnd-green); outline-offset: -3px; }

.bnd-tube__list { grid-area: list; position: relative; }
.bnd-tube__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: .5rem; }
.bnd-tube__item { display: grid; grid-template-columns: minmax(120px, 44%) 1fr; gap: 10px; align-items: start; padding: .5rem; border-radius: .5rem; color: inherit; text-decoration: none; }
.bnd-tube__item:hover, .bnd-tube__item:focus-visible { background: #f7f3ea; }
.bnd-tube__item.is-active { background: var(--bnd-beige); box-shadow: inset 3px 0 0 var(--bnd-green); }
.bnd-tube__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; }
.bnd-tube__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bnd-tube__dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; line-height: 1.4; }
.bnd-tube__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.25; font-weight: 600; }
@media (max-width: 900px) {
	.bnd-tube { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "shorts" "club" "list"; grid-template-rows: auto; }
	.bnd-tube__scroll { position: static; max-height: 75vh; }
}

.bnd-yt__link { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.bnd-yt__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s ease; }
.bnd-yt__link:hover img, .bnd-yt__link:focus-visible img { transform: scale(1.03); opacity: .85; }
.bnd-yt__play { position: absolute; inset: 0; width: 68px; height: 48px; margin: auto; border-radius: 12px; background: rgba(0, 0, 0, .7); transition: background .2s; }
.bnd-yt__play::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.bnd-yt__link:hover .bnd-yt__play, .bnd-yt__link:focus-visible .bnd-yt__play { background: #e00; }
.bnd-yt__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.bnd-hero-post .content-area { margin-top: 0; container-type: inline-size; }
.bnd-hero-post .content-wrap {
	--bnd-hero-rendered: calc(100cqw - 2 * var(--bnd-frame-pad));
	--bnd-hero-height: calc(var(--bnd-hero-rendered) * var(--bnd-hero-ratio));
	--bnd-hero-text-start: min(400px, calc(var(--bnd-hero-height) * .8));
}
.bnd-hero-post .wp-site-blocks .post-thumbnail.article-post-thumbnail {
	width: var(--bnd-hero-rendered);
	max-width: none;
	margin: 0 0 calc(var(--bnd-hero-text-start) - var(--bnd-hero-height)) calc(50% - var(--bnd-hero-rendered) / 2);
	padding: 0;
	height: auto;
	overflow: visible;
}
.bnd-hero-post .wp-site-blocks .post-thumbnail.article-post-thumbnail::after { display: none; }
.bnd-hero-post .wp-site-blocks .post-thumbnail.article-post-thumbnail .post-thumbnail-inner { position: static; }
.bnd-hero-post .wp-site-blocks .post-thumbnail.article-post-thumbnail img {
	position: static;
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	object-fit: fill;
}
.bnd-hero-post article.single-entry { min-height: calc(var(--bnd-hero-height) - var(--bnd-hero-text-start)); }

.bnd-tube--home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; grid-template-rows: auto; }
.bnd-tube--home .bnd-tube__main { border-radius: 0; border-color: var(--bnd-green); }
.bnd-tube--home .bnd-tube__info { background: var(--bnd-green); color: #fff; }
.bnd-tube--home .bnd-tube__title { margin: 0; color: #fff; }
.bnd-tube--home .bnd-tube__head { align-items: center; }
.bnd-tube--home .bnd-tube__desc:not(:empty) { margin-top: .4rem; }
.bnd-tube__all { flex: none; align-self: center; white-space: nowrap; }
.bnd-tube--home .bnd-tube__all { padding: 8px 27px; border: 1px solid #fff; background: var(--bnd-green); }
.bnd-tube--home .bnd-tube__all:hover, .bnd-tube--home .bnd-tube__all:focus-visible { background: #fff; color: var(--bnd-green) !important; }
@media (max-width: 600px) {
	.bnd-tube--home .bnd-tube__head { flex-direction: column; align-items: stretch; }
	.bnd-tube__all { text-align: center; }
}

#masthead { position: sticky; z-index: 100; top: 0; }

.bnd-join {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(320px, 42vw, 540px);
	margin: 3rem var(--bnd-frame-pad) 0;
	padding: 3rem 1.5rem;
	background: var(--bnd-navy) center / cover no-repeat fixed;
	color: #fff;
	text-align: center;
}
.bnd-join::before { content: ""; position: absolute; inset: 0; background: rgba(0, 20, 40, .45); }
.bnd-join__inner { position: relative; max-width: 46rem; }
.bnd-join h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: .02em; }
.bnd-join p { margin: 0 auto 1.8rem; max-width: 36ch; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.bnd-join__btn { padding: 12px 36px; font-size: 15px; letter-spacing: .08em; }
@media (hover: none) {
	.bnd-join { background-attachment: scroll; }
}
.bnd-topic-post .entry-header .entry-taxonomies { display: none; }
.bnd-scale[aria-label="Проекты"] .bnd-scale__major > a { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.bnd-topic-post [id^="razdel-"] { scroll-margin-top: calc(var(--bnd-head-bottom, 0px) + 1.5rem); }
.bnd-pband { margin: 0 0 0; padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem); background: var(--bnd-green); color: #fff; }
.bnd-pband h1 { max-width: 30ch; margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.bnd-pband p { max-width: 60ch; margin: 1rem 0 0; color: rgba(255, 255, 255, .92); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; }
.bnd-project-post .entry-header { display: none; }
.bnd-project-post .content-area { margin-top: 0; }
.bnd-project-post .content-wrap > .bnd-scale { border-left-color: var(--bnd-green); }
/* projects: the contents follow the reader; the green bar moves to the article so it still runs full height */
.bnd-project-post .content-wrap > article.single-entry { border-right: 24px solid var(--bnd-green); }
.bnd-project-post .content-wrap > .bnd-scale { position: sticky; top: var(--bnd-head-bottom, 0px); align-self: start; max-height: calc(100vh - var(--bnd-head-bottom, 0px)); overflow-y: auto; border-left: 0; }
.bnd-scale__toc a.is-current span { color: var(--bnd-green-dark); font-weight: 700; }
.bnd-scale__toc a.is-current::before { background: var(--bnd-green); }
@media (max-width: 1024px) {
	.bnd-project-post .content-wrap > article.single-entry { border-right: 0; }
	.bnd-project-post .content-wrap > .bnd-scale { position: static; max-height: none; }
}
.bnd-scale__toc .bnd-scale__chapter { margin-top: .5rem; }
.bnd-scale__toc .bnd-scale__chapter > a span { font-weight: 700; color: #1d1c18; }
.bnd-scale__toc .bnd-scale__chapter ~ li:not(.bnd-scale__chapter) > a { padding-left: 5rem; font-size: .85rem !important; }
@media (max-width: 1024px) {
	.bnd-scale summary { display: flex !important; justify-content: space-between; align-items: center; list-style: none; }
	.bnd-scale summary::-webkit-details-marker { display: none; }
	.bnd-scale summary::after { content: ""; width: .6rem; height: .6rem; margin-right: .3rem; border: solid var(--bnd-green); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .2s; }
	.bnd-scale details[open] > summary::after { transform: rotate(-135deg); }
}

/* footer, after the bashnd.org black footer */
.bnd-footer { margin-top: 4rem; background: #000; color: #fff; font-family: var(--bnd-sans); }
.bnd-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 28rem) 1fr;
	grid-template-areas: "about nav" "copy copy";
	gap: 3rem;
	padding: 4rem var(--bnd-frame-pad) 2rem;
}
.bnd-footer__about { grid-area: about; }
.bnd-footer__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, .6);
	color: #fff;
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
}
.bnd-footer__brand img { width: 84px; height: 84px; flex: none; }
.bnd-footer h2 { margin: 2rem 0 .75rem; color: #fff; font-size: 22px; line-height: 1.3; }
.bnd-footer__about p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.bnd-footer__nav { grid-area: nav; justify-self: end; padding-top: 31px; }
.bnd-footer__menu {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bnd-footer__menu a {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
}
.bnd-footer__menu a:hover, .bnd-footer__menu .current-menu-item > a { color: var(--bnd-green); }
.bnd-footer__copy { grid-area: copy; margin: 0; text-align: right; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 1024px) {
	.bnd-footer__inner { grid-template-columns: 1fr; grid-template-areas: "nav" "about" "copy"; gap: 2rem; padding-top: 3rem; }
	.bnd-footer__nav { justify-self: start; padding-top: 0; }
	.bnd-footer__copy { text-align: left; }
}
