/* ==========================================================================
   layout.css — шапка, мега-меню, мобильное меню, подвал.
   Подключается после bo-system.css и перекрывает проблемные правила:
   навигация больше не позиционируется абсолютно и не наезжает на логотип,
   мега-меню закреплено под шапкой, дубли в стилях подвала сняты.
   ========================================================================== */

:root {
	--bo-bar-gap: clamp(10px, 1.1vw, 20px);
	--bo-chat-w: 392px;
}

/* --- доступность: переход к содержимому --- */
.bo-skip {
	position: fixed;
	left: 50%;
	top: 8px;
	z-index: 999;
	transform: translate(-50%, -160%);
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--ff-ink);
	color: var(--ff-bg);
	font-size: 14px;
	font-weight: 600;
	transition: transform .18s ease;
}

.bo-skip:focus-visible {
	transform: translate(-50%, 0);
	outline: 2px solid var(--ff-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   1. Шапка
   ========================================================================== */

.bo-top {
	position: sticky;
	top: 0;
	z-index: 300;
	height: var(--ff-header);
	background: color-mix(in srgb, var(--ff-bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--ff-line);
}

.bo-top__bar {
	display: flex;
	align-items: center;
	gap: var(--bo-bar-gap);
	height: 100%;
	width: min(var(--ff-container), calc(100% - var(--ff-gutter) * 2));
	margin-inline: auto;
	padding: 0;
	box-sizing: border-box;
}

/* логотип */
.bo-top__logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	min-width: 0;
	color: var(--ff-ink);
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.1;
	text-decoration: none;
}

.bo-top__logo .bo-top__name {
	font-family: var(--ff-font);
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: -.015em;
	color: inherit;
	white-space: nowrap;
}

.bo-top__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--ff-accent-soft);
	overflow: hidden;
}

.bo-top__mark img {
	width: 26px;
	height: 26px;
	object-fit: contain;
	display: block;
}

.bo-top__mark--sm {
	width: 32px;
	height: 32px;
	border-radius: 9px;
}

.bo-top__mark--sm img {
	width: 20px;
	height: 20px;
}

/* навигация: в потоке, тянется по центру, сжимается плавно */
.bo-top__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
	position: static;
	transform: none;
}

.bo-top__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	height: 38px;
	padding: 0 clamp(8px, .62vw, 13px);
	border: 0;
	border-radius: 9px;
	background: none;
	color: var(--ff-ink);
	font-family: inherit;
	font-size: clamp(13px, .93vw, 14px);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease;
}

.bo-top__link:hover,
.bo-top__link:focus-visible {
	background: var(--ff-bg-2);
	color: var(--ff-accent);
	opacity: 1;
}

.bo-top__link.is-active,
.bo-top__link.is-open {
	color: var(--ff-accent);
	font-weight: 600;
	opacity: 1;
}

/* прежняя подчёркивающая анимация больше не нужна */
.bo-top__link::after {
	display: none !important;
}

.bo-top__chev {
	flex: 0 0 auto;
	transition: transform .2s ease;
}

.bo-top__link--mega[aria-expanded="true"] {
	background: var(--ff-bg-2);
	color: var(--ff-accent);
}

.bo-top__link--mega[aria-expanded="true"] .bo-top__chev {
	transform: rotate(180deg);
}

/* правый блок */
.bo-top__right {
	display: flex;
	align-items: center;
	gap: clamp(6px, .7vw, 12px);
	flex: 0 0 auto;
	margin-left: auto;
}

.bo-top__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: right;
	line-height: 1.2;
}

/* Телефон и часы уходят раньше, чем навигация начнёт тесниться. */
@media (max-width: 1279px) {
	.bo-top__meta {
		display: none;
	}
}

.bo-top__phone {
	color: var(--ff-ink);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.bo-top__phone:hover {
	color: var(--ff-accent);
}

.bo-top__hours {
	color: var(--ff-soft);
	font-size: 11.5px;
	white-space: nowrap;
}

.bo-top__theme,
.bo-top__burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--ff-line);
	border-radius: 10px;
	background: var(--ff-bg);
	color: var(--ff-ink);
	cursor: pointer;
	transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.bo-top__theme:hover,
.bo-top__burger:hover,
.bo-top__theme:focus-visible,
.bo-top__burger:focus-visible {
	border-color: var(--ff-accent);
	color: var(--ff-accent);
}

.bo-top__burger {
	display: none;
}

.bo-top__cta {
	height: 42px;
	padding: 0 18px;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	border-radius: 10px;
}

.bo-top__cta-short {
	display: none;
}

/* --- прогрессивное раскрытие пунктов меню --- */
@media (max-width: 1439px) {
	:root {
		--ff-gutter: 32px;
	}

	.bo-top__hours {
		display: none;
	}

	.bo-top__cta-long {
		display: none;
	}

	.bo-top__cta-short {
		display: inline;
	}
}

@media (max-width: 1099px) {
	.bo-top__nav {
		display: none;
	}

	.bo-top__burger {
		display: inline-flex;
	}

	.bo-top__meta {
		display: none;
	}
}

@media (max-width: 719px) {
	.bo-top__name {
		display: none;
	}

	.bo-top .bo-top__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		height: 40px;
		padding: 0 14px;
	}
}

@media (max-width: 479px) {
	.bo-top__cta-long,
	.bo-top__cta-short {
		display: none;
	}

	.bo-top__cta::before {
		content: "";
		width: 18px;
		height: 18px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-2.7-.4L4 21l1.4-4.1A8.3 8.3 0 0 1 3.6 11.5a8.4 8.4 0 0 1 9-8.4 8.4 8.4 0 0 1 8.4 8.4z'/%3E%3C/svg%3E") center/contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-2.7-.4L4 21l1.4-4.1A8.3 8.3 0 0 1 3.6 11.5a8.4 8.4 0 0 1 9-8.4 8.4 8.4 0 0 1 8.4 8.4z'/%3E%3C/svg%3E") center/contain no-repeat;
	}

	.bo-top .bo-top__cta {
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.bo-top__mark {
		width: 36px;
		height: 36px;
	}
}

/* ==========================================================================
   2. Мега-меню «Услуги»: четыре группы + промо-панель направления
   ========================================================================== */

.bo-mega {
	position: fixed;
	top: var(--ff-header);
	left: 0;
	right: 0;
	z-index: 299;
	max-height: calc(100vh - var(--ff-header));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px 0 0;
	background: var(--ff-bg);
	border-bottom: 1px solid var(--ff-line);
	box-shadow: 0 26px 50px -28px rgba(17, 17, 17, .26);
}

.bo-mega[hidden] {
	display: none;
}

/* Слева — сетка групп, справа — промо одного направления. */
.bo-mega__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 272px;
	gap: 0 30px;
	align-items: stretch;
}

.bo-mega__groups {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 26px;
	min-width: 0;
}

.bo-mega__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-bottom: 24px;
}

/* Заголовок группы: иконка, название, счётчик. */
.bo-mega__ghead {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 0 0 11px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--ff-line);
	text-decoration: none;
}

.bo-mega__gicon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--ff-accent-soft);
	color: var(--ff-accent-deep);
}

.bo-mega__gicon svg {
	width: 15px;
	height: 15px;
	display: block;
}

.bo-mega__gname {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--ff-display);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ff-ink);
	transition: color .16s ease;
}

.bo-mega__gnum {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	color: var(--ff-soft);
	font-variant-numeric: tabular-nums;
}

.bo-mega__ghead:hover .bo-mega__gname {
	color: var(--ff-accent-deep);
}

/* Строки направлений: чистый список, срок ушёл на страницу услуги. */
.bo-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	align-content: start;
	display: grid;
	align-items: start;
}

.bo-mega__row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0 -8px;
	padding: 7px 8px;
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.3;
	color: var(--ff-muted);
	text-decoration: none;
	transition: background .16s ease, color .16s ease;
}

.bo-mega__row:hover,
.bo-mega__row:focus-visible {
	background: var(--ff-accent-soft);
	color: var(--ff-accent-deep);
}

.bo-mega__l {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bo-mega__arrow {
	flex: 0 0 auto;
	width: 12px;
	font-size: 12px;
	line-height: 1;
	text-align: right;
	color: var(--ff-accent);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .16s ease, transform .16s ease;
}

.bo-mega__row:hover .bo-mega__arrow,
.bo-mega__row:focus-visible .bo-mega__arrow {
	opacity: 1;
	transform: none;
}

/* Промо-панель: обложка направления + короткий рассказ о нём. */
.bo-mega__feature {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0 0 24px;
	border: 1px solid var(--ff-line);
	border-radius: 14px;
	background: var(--ff-bg-2);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.bo-mega__feature:hover,
.bo-mega__feature:focus-visible {
	border-color: rgba(124, 58, 237, .34);
	box-shadow: 0 18px 36px -26px rgba(109, 40, 217, .5);
}

.bo-mega__fmedia {
	display: block;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: linear-gradient(145deg, #f5f3ff, #ede9fe);
}

.bo-mega__fmedia img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.19, 1, .22, 1);
}

.bo-mega__feature:hover .bo-mega__fmedia img {
	transform: scale(1.05);
}

.bo-mega__fbody {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 13px 15px 15px;
}

.bo-mega__fewebrow {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ff-accent);
}

.bo-mega__ftitle {
	font-family: var(--ff-display);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -.018em;
	line-height: 1.25;
	color: var(--ff-ink);
}

.bo-mega__ftext {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ff-muted);
}

.bo-mega__flink {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ff-accent-deep);
}

.bo-mega__flink span {
	transition: transform .16s ease;
}

.bo-mega__feature:hover .bo-mega__flink span {
	transform: translateX(3px);
}

/* Нижняя строка панели. */
.bo-mega__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 15px 0;
	border-top: 1px solid var(--ff-line);
}

.bo-mega__count {
	font-size: 12.5px;
	color: var(--ff-soft);
}

.bo-mega__act {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 15px;
	border: 1px solid var(--ff-line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ff-ink);
	text-decoration: none;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.bo-mega__act:hover,
.bo-mega__act:focus-visible {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
}

.bo-mega__act span {
	transition: transform .16s ease;
}

.bo-mega__act:hover span {
	transform: translateX(3px);
}

/* Тёмная тема. */
html[data-theme="dark"] .bo-mega__gicon {
	background: rgba(124, 58, 237, .22);
	color: #ddd6fe;
}

html[data-theme="dark"] .bo-mega__row:hover,
html[data-theme="dark"] .bo-mega__row:focus-visible {
	background: rgba(124, 58, 237, .18);
	color: #ddd6fe;
}

html[data-theme="dark"] .bo-mega__feature {
	border-color: #2a2a36;
	background: #17171f;
}

html[data-theme="dark"] .bo-mega__fmedia {
	background: linear-gradient(145deg, #1d1d28, #17171f);
}

html[data-theme="dark"] .bo-mega__act:hover,
html[data-theme="dark"] .bo-mega__act:focus-visible {
	color: #1a1023;
}

@media (prefers-reduced-motion: reduce) {
	.bo-mega__row,
	.bo-mega__arrow,
	.bo-mega__fmedia img,
	.bo-mega__feature,
	.bo-mega__act {
		transition: none;
	}
}

/* Планшет/ноутбук: промо-панель убираем, группы в две колонки. */
@media (max-width: 1279px) {
	.bo-mega__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.bo-mega__feature {
		display: none;
	}

	.bo-mega__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 26px;
	}
}

@media (max-width: 719px) {
	.bo-mega {
		padding-top: 20px;
	}

	.bo-mega__groups {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.bo-mega__l {
		white-space: normal;
	}
}

/* ==========================================================================
   3. Мобильное меню
   ========================================================================== */

/* База — скрыт (как в bo-system.css), показывается только на мобильных. */
.bo-drawer {
	display: none;
}

.bo-drawer[hidden] {
	display: none;
}

@media (max-width: 1099px) {
	.bo-drawer {
		display: flex;
		position: fixed;
		inset: var(--ff-header) 0 0 0;
		z-index: 298;
		flex-direction: column;
		background: var(--ff-bg);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0;
	}
}

.bo-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px var(--ff-gutter) 6px;
}

.bo-drawer__eyebrow {
	color: var(--ff-soft);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bo-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--ff-line);
	border-radius: 10px;
	background: var(--ff-bg);
	color: var(--ff-ink);
	cursor: pointer;
}

.bo-drawer__nav {
	display: flex;
	flex-direction: column;
	padding: 6px 0 12px;
}

.bo-drawer__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 15px var(--ff-gutter);
	border: 0;
	background: none;
	color: var(--ff-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	border-bottom: 1px solid var(--ff-line-2);
}

.bo-drawer__link:hover,
.bo-drawer__link:focus-visible {
	background: var(--ff-bg-2);
	color: var(--ff-accent);
}

.bo-drawer__link--sub[aria-expanded="true"] .bo-top__chev {
	transform: rotate(180deg);
}

.bo-drawer__sub {
	display: flex;
	flex-direction: column;
	background: var(--ff-bg-3);
	border-bottom: 1px solid var(--ff-line-2);
}

.bo-drawer__sub[hidden] {
	display: none;
}

.bo-drawer__sub a {
	padding: 12px var(--ff-gutter) 12px calc(var(--ff-gutter) + 16px);
	color: var(--ff-muted);
	font-size: 14.5px;
	text-decoration: none;
	border-bottom: 1px solid var(--ff-line-2);
}

.bo-drawer__sub a:hover {
	color: var(--ff-accent);
}

.bo-drawer__sub-all {
	color: var(--ff-accent) !important;
	font-weight: 600;
}

.bo-drawer__foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding: 20px var(--ff-gutter) 32px;
	text-align: center;
}

.bo-drawer__cta {
	width: 100%;
	max-width: 340px;
}

.bo-drawer__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ff-ink);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.bo-drawer__hours {
	color: var(--ff-soft);
	font-size: 12.5px;
}

body.is-drawer,
body.bo-chat-open {
	overflow: hidden;
}

@media (min-width: 1100px) {
	body.is-drawer {
		overflow: auto;
	}
}

/* ==========================================================================
   4. Подвал — снятие конфликтующих дублей и адаптивная сетка
   ========================================================================== */

.bo-foot {
	padding: 64px 0 28px;
}

.bo-foot__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr));
	gap: clamp(24px, 2.6vw, 40px);
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.bo-foot__desc {
	max-width: 34ch;
	margin: 0 0 18px;
	color: rgba(255, 255, 255, .62);
	font-size: 13.5px;
	line-height: 1.65;
}

.bo-foot__col ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bo-foot__col li {
	font-size: 13.5px;
	line-height: 1.5;
}

/* единственное определение соцкнопок подвала */
.bo-foot__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.bo-foot__socials a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	height: auto;
	padding: 8px 14px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	color: rgba(255, 255, 255, .9);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .16s ease, background-color .16s ease;
}

.bo-foot__socials a:hover {
	border-color: rgba(255, 255, 255, .4);
	background: rgba(255, 255, 255, .06);
}

.bo-foot__socials svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.bo-foot__socials a.tg:hover {
	color: #6cc7f5;
}

.bo-foot__socials a.vk:hover {
	color: #6ba8ff;
}

.bo-foot__contacts li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: rgba(255, 255, 255, .62);
}

.bo-foot__contacts li > a,
.bo-foot__contacts li > svg {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
}

.bo-foot__contacts svg {
	flex: 0 0 auto;
	margin-top: 2px;
	opacity: .7;
}

.bo-foot__hours {
	font-size: 13px;
}

.bo-foot__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	padding-top: 20px;
	color: rgba(255, 255, 255, .48);
	font-size: 12.5px;
	line-height: 1.5;
}

.bo-foot__legal a {
	color: rgba(255, 255, 255, .62);
	text-decoration: none;
}

.bo-foot__legal a:hover {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 1099px) {
	.bo-foot__grid {
		grid-template-columns: 1fr 1fr;
	}

	.bo-foot__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599px) {
	.bo-foot__about {
		grid-column: auto;
	}

	.bo-foot__cta-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.bo-foot__cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.bo-foot__cta-actions .bo-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   5. Тёмная тема
   ========================================================================== */

[data-theme="dark"] .bo-top {
	background: color-mix(in srgb, var(--ff-bg) 90%, transparent);
}

[data-theme="dark"] .bo-top__mark {
	background: rgba(124, 58, 237, .16);
}

/* ==========================================================================
   6. Каталог услуг (/services/) — фильтр, hero, FAQ
   ========================================================================== */

.bo-svc-hero-page .bo-h1 {
	max-width: 26ch;
}

.bo-svc-hero-page .bo-lead {
	max-width: 68ch;
}

/* Фильтр по направлениям: кнопки в стиле .bo-tax-nav a (theme.css красит только <a>) */
.bo-svc-filter {
	gap: 8px;
}

.bo-svc-filter button {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--ff-line);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ff-ink);
	background: var(--ff-bg);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bo-svc-filter button:hover,
.bo-svc-filter button:focus-visible {
	background: var(--ff-accent-soft);
	border-color: transparent;
	color: var(--ff-accent-deep);
}

.bo-svc-filter button.is-active {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
}

.bo-svc-filter__empty {
	margin-top: 20px;
}

.bo-svc-filter__empty .bo-link-more {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--ff-accent);
	cursor: pointer;
	text-decoration: underline;
}

.bo-svc-card--all[hidden] {
	display: none;
}

/* Карточка без иконки направления не должна терять отступ */
.bo-svc-card__icon:empty {
	display: none;
}

/* Тёмная тема для новых блоков */
[data-theme="dark"] .bo-svc-filter button {
	background: #191922;
	border-color: var(--ff-line);
	color: #d0d0dc;
}

[data-theme="dark"] .bo-svc-filter button:hover,
[data-theme="dark"] .bo-svc-filter button:focus-visible {
	background: rgba(124, 58, 237, .22);
	color: #eae6ff;
}

[data-theme="dark"] .bo-svc-filter button.is-active {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
}

@media (max-width: 719px) {
	.bo-svc-filter {
		gap: 6px;
	}

	.bo-svc-filter button {
		padding: 7px 12px;
		font-size: 12.5px;
	}
}

/* ==========================================================================
   7. Изображения карточек услуг
   Картинка — миниатюра записи (1200x630, оригами-рендер). Карточка уже
   flex-колонка с overflow:hidden, поэтому изображение льётся по краям
   и скругляется общим радиусом карточки.
   ========================================================================== */
.bo-svc-card__media {
	display: block;
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(145deg, #f5f3ff, #ede9fe);
}

.bo-svc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .45s cubic-bezier(.19, 1, .22, 1);
}

.bo-svc-card:hover .bo-svc-card__media img,
.bo-svc-card:focus-visible .bo-svc-card__media img,
.bo-svc-card:focus-within .bo-svc-card__media img {
	transform: scale(1.045);
}

/* тело карточки тянется, чтобы «Подробнее» оставался внизу одной высоты */
.bo-svc-card__body {
	flex: 1 1 auto;
}

/* тёмная тема: светлые рендеры на белой подложке не должны давать белую щель */
[data-theme="dark"] .bo-svc-card__media {
	background: #1a1a24;
}

@media (prefers-reduced-motion: reduce) {
	.bo-svc-card__media img {
		transition: none;
	}

	.bo-svc-card:hover .bo-svc-card__media img,
	.bo-svc-card:focus-visible .bo-svc-card__media img,
	.bo-svc-card:focus-within .bo-svc-card__media img {
		transform: none;
	}
}

/* ==========================================================================
   8. Цена и рейтинг в карточках услуг
   ========================================================================== */
.bo-svc-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 12px;
	padding-top: 12px;
	margin-top: auto;
	border-top: 1px solid var(--ff-line);
}

.bo-svc-card__price {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--ff-ink);
}

.bo-svc-card__rate {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: help;
}

.bo-svc-card__stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 1;
}

.bo-svc-card__score {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ff-ink);
}

.bo-svc-card__votes {
	font-size: 11.5px;
	color: var(--ff-muted);
}

[data-theme="dark"] .bo-svc-card__meta {
	border-top-color: var(--ff-line);
}

[data-theme="dark"] .bo-svc-card__stars .bo-star--off {
	fill: #2f2f3c;
}

@media (max-width: 560px) {
	.bo-svc-card__meta {
		gap: 4px 10px;
	}

	.bo-svc-card__price {
		font-size: 13px;
	}
}

/* ==========================================================================
   9. Дата + время чтения в карточках и на страницах
   ========================================================================== */
.bo-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.3;
	color: var(--ff-muted);
	font-variant-numeric: tabular-nums;
}

.bo-card__meta time {
	color: inherit;
}

.bo-card__dot {
	color: var(--ff-soft);
}

.bo-page-hero .bo-card__meta {
	margin-top: 16px;
	font-size: 13px;
}

.bo-page-hero .bo-card__meta time,
.bo-page-hero .bo-card__meta {
	color: var(--ff-muted);
}

/* ==========================================================================
   10. «Услуги студии» на главной — bento-сетка вместо колонок .bo-cats
   ========================================================================== */
.bo-bento {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

@media (min-width: 1440px) {
	.bo-bento {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
}

.bo-bento__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--ff-line);
	border-radius: var(--ff-radius-lg);
	background: var(--ff-bg);
	transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.bo-bento__card:hover,
.bo-bento__card:focus-within {
	border-color: rgba(124, 58, 237, .34);
	box-shadow: var(--ff-shadow-card);
	transform: translateY(-2px);
}

.bo-bento__media {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: linear-gradient(145deg, #f5f3ff, #ede9fe);
}

.bo-bento__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 34px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 100%);
	pointer-events: none;
}

.bo-bento__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .55s cubic-bezier(.19, 1, .22, 1);
}

.bo-bento__card:hover .bo-bento__media img {
	transform: scale(1.04);
}

.bo-bento__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 15px 17px 17px;
}

.bo-bento__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
}

.bo-bento__idx {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 8px;
	border: 1px solid rgba(17, 17, 17, .07);
	border-radius: 8px;
	background: rgba(255, 255, 255, .84);
	box-shadow: 0 8px 18px -12px rgba(17, 17, 22, .55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-family: var(--ff-display);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
}

.bo-bento__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: var(--ff-display);
	font-size: clamp(17px, 1.2vw, 19px);
	font-weight: 700;
	letter-spacing: -.026em;
	line-height: 1.22;
}

.bo-bento__title a {
	color: var(--ff-ink);
	text-decoration: none;
	transition: color .16s ease;
}

.bo-bento__card:hover .bo-bento__title a {
	color: var(--ff-accent);
}

.bo-bento__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--ff-bg-2);
	color: var(--ff-muted);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.bo-bento__desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ff-muted);
}

.bo-bento__list {
	flex: 1 1 auto;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.bo-bento__list li + li {
	border-top: 1px solid var(--ff-line);
}

.bo-bento__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -9px;
	padding: 8px 9px;
	border-radius: 9px;
	color: var(--ff-ink);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	transition: color .16s ease;
}

.bo-bento__list a:hover,
.bo-bento__list a:focus-visible {
	color: var(--ff-accent);
	background: var(--bo-tint-soft, rgba(124, 58, 237, .08));
}

.bo-bento__list a:hover .bo-bento__l,
.bo-bento__list a:focus-visible .bo-bento__l {
	transform: translateX(2px);
}

.bo-bento__l {
	flex: 1 1 auto;
	min-width: 0;
	transition: transform .18s ease;
}

.bo-bento__t {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--ff-soft);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.bo-bento__arrow {
	flex: 0 0 auto;
	width: 14px;
	color: var(--ff-accent);
	text-align: right;
	opacity: 0;
	transform: translateX(-5px);
	transition: opacity .18s ease, transform .18s ease;
}

.bo-bento__list a:hover .bo-bento__arrow,
.bo-bento__list a:focus-visible .bo-bento__arrow {
	opacity: 1;
	transform: none;
}

.bo-bento__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--ff-accent-deep);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

.bo-bento__more span {
	transition: transform .18s ease;
}

.bo-bento__more:hover {
	text-decoration: none;
}

.bo-bento__more:hover span,
.bo-bento__more:focus-visible span {
	transform: translateX(3px);
}

/* Плитка-призыв: занимает всю ширину строки, акцентный фон. */
.bo-bento__card--cta {
	grid-column: 1 / -1;
	border-color: transparent;
	background: linear-gradient(120deg, #7c3aed 0%, #6d28d9 55%, #5b21b6 100%);
	color: #fff;
}

.bo-bento__card--cta .bo-bento__body {
	padding: 22px 26px;
	gap: 12px;
}

.bo-bento__card--cta .bo-bento__title {
	color: #fff;
	font-size: clamp(17px, 1.4vw, 20px);
}

.bo-bento__card--cta .bo-bento__desc {
	max-width: 62ch;
	color: rgba(255, 255, 255, .82);
}

.bo-bento__cta-btn {
	align-self: flex-start;
	border: 0;
	cursor: pointer;
	padding: 11px 22px;
	border-radius: 999px;
	background: #fff;
	color: #5b21b6;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .5);
	transition: transform .18s ease, box-shadow .18s ease;
}

.bo-bento__cta-btn:hover,
.bo-bento__cta-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .55);
}

.bo-bento__card--cta .bo-bento__more {
	color: rgba(255, 255, 255, .88);
}

.bo-bento__card--cta:hover,
.bo-bento__card--cta:focus-within {
	border-color: transparent;
}

html[data-theme="dark"] .bo-bento__card--cta {
	background: linear-gradient(120deg, #6d28d9 0%, #5b21b6 60%, #4c1d95 100%);
}

@media (max-width: 799px) {
	.bo-bento__card--cta .bo-bento__body {
		padding: 24px 22px;
	}
}

[data-theme="dark"] .bo-bento__card {
	background: #17171f;
	border-color: #2a2a36;
}

[data-theme="dark"] .bo-bento__media {
	background: #1a1a24;
	border-bottom-color: #26262f;
}

[data-theme="dark"] .bo-bento__title a {
	color: #fff;
}

[data-theme="dark"] .bo-bento__list,
[data-theme="dark"] .bo-bento__list li + li {
	border-color: #26262f;
}

[data-theme="dark"] .bo-bento__num {
	background: #222230;
	color: #b9b9c9;
}

@media (max-width: 1099px) {
	.bo-bento {
		gap: 16px;
	}
}

@media (max-width: 799px) {
	.bo-bento {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.bo-bento__body {
		padding: 16px 18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bo-bento__card,
	.bo-bento__media img,
	.bo-bento__arrow {
		transition: none;
	}

	.bo-bento__card:hover {
		transform: none;
	}

	.bo-bento__card:hover .bo-bento__media img {
		transform: none;
	}
}

/* ==========================================================================
   11. Цветовые акценты карточек (умеренные): bento услуг и «Почему с нами»
   ========================================================================== */
.bo-bento__card,
.bo-why__card {
	--bo-tint: #7c3aed;
	--bo-tint-ink: #5b21b6;
	--bo-tint-soft: rgba(124, 58, 237, .09);
	--bo-tint-line: rgba(124, 58, 237, .28);
}

.bo-bento__card:nth-child(4n + 2),
.bo-why__card:nth-child(4n + 2) {
	--bo-tint: #0d9488;
	--bo-tint-ink: #0f766e;
	--bo-tint-soft: rgba(13, 148, 136, .09);
	--bo-tint-line: rgba(13, 148, 136, .26);
}

.bo-bento__card:nth-child(4n + 3),
.bo-why__card:nth-child(4n + 3) {
	--bo-tint: #b45309;
	--bo-tint-ink: #92400e;
	--bo-tint-soft: rgba(180, 83, 9, .09);
	--bo-tint-line: rgba(180, 83, 9, .24);
}

.bo-bento__card:nth-child(4n),
.bo-why__card:nth-child(4n) {
	--bo-tint: #2563eb;
	--bo-tint-ink: #1d4ed8;
	--bo-tint-soft: rgba(37, 99, 235, .09);
	--bo-tint-line: rgba(37, 99, 235, .26);
}

.bo-bento__card:hover,
.bo-bento__card:focus-within {
	border-color: var(--bo-tint-line);
}

.bo-bento__idx {
	color: var(--bo-tint-ink);
	border-color: var(--bo-tint-line);
}

.bo-bento__num {
	background: var(--bo-tint-soft);
	color: var(--bo-tint-ink);
}

.bo-bento__media {
	background: linear-gradient(145deg, var(--bo-tint-soft), #f5f3ff);
}

.bo-bento__title a:hover {
	color: var(--bo-tint-ink);
}

.bo-bento__list a:hover,
.bo-bento__list a:focus-visible {
	color: var(--bo-tint-ink);
}

.bo-bento__arrow {
	color: var(--bo-tint);
}

.bo-bento__more {
	color: var(--bo-tint-ink);
}

.bo-why__card {
	position: relative;
	overflow: hidden;
}

/* theme.css красит .bo-why__card .bo-ico в --ff-accent (специфичность 0,2,0) —
   берём выше, чтобы цвет карточки всё-таки применялся. */
.bo-why .bo-why__card .bo-ico {
	color: var(--bo-tint);
}

/* Полоса-подсветка при наведении — в цвет карточки, а не только фиолетовая. */
.bo-why__card::before {
	background: linear-gradient(90deg, var(--bo-tint), var(--bo-tint-ink));
}

.bo-why__card:hover {
	border-color: var(--bo-tint-line);
	box-shadow: 0 22px 50px -24px var(--bo-tint-soft);
}

html[data-theme="dark"] .bo-bento__card,
html[data-theme="dark"] .bo-why__card {
	--bo-tint: #a78bfa;
	--bo-tint-ink: #c4b5fd;
	--bo-tint-soft: rgba(167, 139, 250, .14);
	--bo-tint-line: rgba(167, 139, 250, .34);
}

html[data-theme="dark"] .bo-bento__card:nth-child(4n + 2),
html[data-theme="dark"] .bo-why__card:nth-child(4n + 2) {
	--bo-tint: #2dd4bf;
	--bo-tint-ink: #5eead4;
	--bo-tint-soft: rgba(45, 212, 191, .13);
	--bo-tint-line: rgba(45, 212, 191, .3);
}

html[data-theme="dark"] .bo-bento__card:nth-child(4n + 3),
html[data-theme="dark"] .bo-why__card:nth-child(4n + 3) {
	--bo-tint: #fbbf24;
	--bo-tint-ink: #fcd34d;
	--bo-tint-soft: rgba(251, 191, 36, .12);
	--bo-tint-line: rgba(251, 191, 36, .28);
}

html[data-theme="dark"] .bo-bento__card:nth-child(4n),
html[data-theme="dark"] .bo-why__card:nth-child(4n) {
	--bo-tint: #60a5fa;
	--bo-tint-ink: #93c5fd;
	--bo-tint-soft: rgba(96, 165, 250, .13);
	--bo-tint-line: rgba(96, 165, 250, .3);
}

html[data-theme="dark"] .bo-bento__media {
	background: linear-gradient(145deg, var(--bo-tint-soft), #1a1a24);
}

/* Стекло плашки и уход обложки в карточку — под тёмную тему. */
[data-theme="dark"] .bo-bento__media::after {
	background: linear-gradient(180deg, rgba(23, 23, 31, 0) 0%, rgba(23, 23, 31, .72) 100%);
}

[data-theme="dark"] .bo-bento__idx {
	border-color: rgba(255, 255, 255, .14);
	background: rgba(23, 23, 31, .74);
	box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .8);
}

/* Bento услуг — один акцент на весь блок.
   Четыре разных тона соседних карточек спорили между собой: номера, счётчики
   и ссылки «Все услуги раздела» пестрели. Здесь зафиксирован брендовый
   фиолетовый, а цифры вообще выведены в нейтральный цвет — они служат
   нумерацией, а не украшением. «Почему с нами» свои мягкие тона сохраняет. */
.bo-bento__card,
.bo-bento__card:nth-child(4n + 2),
.bo-bento__card:nth-child(4n + 3),
.bo-bento__card:nth-child(4n) {
	--bo-tint: var(--ff-accent);
	--bo-tint-ink: var(--ff-accent-deep);
	--bo-tint-soft: rgba(124, 58, 237, .07);
	--bo-tint-line: rgba(124, 58, 237, .24);
}

html[data-theme="dark"] .bo-bento__card,
html[data-theme="dark"] .bo-bento__card:nth-child(4n + 2),
html[data-theme="dark"] .bo-bento__card:nth-child(4n + 3),
html[data-theme="dark"] .bo-bento__card:nth-child(4n) {
	--bo-tint: #a78bfa;
	--bo-tint-ink: #c4b5fd;
	--bo-tint-soft: rgba(167, 139, 250, .13);
	--bo-tint-line: rgba(167, 139, 250, .3);
}

/* Номер раздела и счётчик услуг — нейтральные, в стекле и в серой пилюле. */
.bo-bento__idx {
	color: var(--ff-ink);
	border-color: rgba(17, 17, 22, .08);
}

.bo-bento__num {
	background: var(--ff-bg-2);
	color: var(--ff-muted);
}

html[data-theme="dark"] .bo-bento__idx {
	color: var(--ff-ink);
	border-color: rgba(255, 255, 255, .16);
}

/* ==========================================================================
   12. Навигация в архивах: тулбар, рубрики, сортировка, пагинация
   ========================================================================== */
.bo-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
	margin: 0 0 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ff-line);
}

.bo-toolbar__title {
	margin: 0;
	font-family: var(--ff-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ff-ink);
}

.bo-hero__note {
	margin: 14px 0 0;
	font-size: 13.5px;
	color: var(--ff-muted);
}

.bo-hero__note strong {
	color: var(--ff-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* --- рубрики --- */
.bo-rubric {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.bo-rubric__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border: 1px solid var(--ff-line);
	border-radius: 999px;
	background: var(--ff-bg);
	color: var(--ff-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.bo-rubric__item:hover {
	border-color: rgba(124, 58, 237, .38);
	color: var(--ff-accent-deep);
	transform: translateY(-1px);
}

.bo-rubric__item.is-active {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
}

.bo-rubric__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--ff-bg-2);
	color: var(--ff-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.bo-rubric__item.is-active .bo-rubric__n {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

.bo-rubric--bottom {
	margin: 34px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--ff-line);
}

/* --- сортировка --- */
.bo-sort {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.bo-sort__lbl {
	font-size: 12.5px;
	color: var(--ff-muted);
	margin-right: 2px;
}

.bo-sort__item {
	padding: 6px 11px;
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--ff-muted);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.bo-sort__item:hover {
	color: var(--ff-accent-deep);
}

.bo-sort__item.is-active {
	background: var(--bo-tint-soft, rgba(124, 58, 237, .09));
	border-color: rgba(124, 58, 237, .2);
	color: var(--ff-accent-deep);
}

/* --- пагинация --- */
.bo-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	margin-top: 38px;
	padding-top: 26px;
	border-top: 1px solid var(--ff-line);
}

.bo-pager__label,
.bo-pager__total {
	font-size: 12.5px;
	color: var(--ff-muted);
	font-variant-numeric: tabular-nums;
}

.bo-pager__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.bo-pager__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 38px;
	height: 38px;
	padding: 0 11px;
	border: 1px solid var(--ff-line);
	border-radius: 10px;
	background: var(--ff-bg);
	color: var(--ff-ink);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
	transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.bo-pager__item:hover {
	border-color: rgba(124, 58, 237, .38);
	color: var(--ff-accent-deep);
	transform: translateY(-1px);
}

.bo-pager__item.is-current {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
	pointer-events: none;
}

.bo-pager__item.page-numbers.dots {
	border-color: transparent;
	background: none;
	color: var(--ff-soft);
	pointer-events: none;
}

.bo-pager__ico {
	font-size: 13px;
	line-height: 1;
}

.bo-pager__item--prev,
.bo-pager__item--next {
	background: var(--ff-bg-2);
}

/* --- тёмная тема --- */
html[data-theme="dark"] .bo-toolbar {
	border-bottom-color: #26262f;
}

html[data-theme="dark"] .bo-toolbar__title {
	color: #fff;
}

html[data-theme="dark"] .bo-rubric__item {
	background: #17171f;
	border-color: #2a2a36;
	color: #dcdce6;
}

html[data-theme="dark"] .bo-rubric__item:hover {
	border-color: rgba(167, 139, 250, .5);
	color: #fff;
}

html[data-theme="dark"] .bo-rubric__item.is-active {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
}

html[data-theme="dark"] .bo-rubric__n {
	background: #22222e;
	color: #b9b9c8;
}

html[data-theme="dark"] .bo-rubric__item.is-active .bo-rubric__n {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

html[data-theme="dark"] .bo-rubric--bottom {
	border-top-color: #26262f;
}

html[data-theme="dark"] .bo-sort__item.is-active {
	background: rgba(167, 139, 250, .16);
	border-color: rgba(167, 139, 250, .32);
	color: #c4b5fd;
}

html[data-theme="dark"] .bo-pager {
	border-top-color: #26262f;
}

html[data-theme="dark"] .bo-pager__item {
	background: #17171f;
	border-color: #2a2a36;
	color: #dcdce6;
}

html[data-theme="dark"] .bo-pager__item.is-current {
	background: var(--ff-accent);
	border-color: var(--ff-accent);
	color: #fff;
}

html[data-theme="dark"] .bo-pager__item--prev,
html[data-theme="dark"] .bo-pager__item--next {
	background: #1d1d27;
}

@media (max-width: 799px) {
	.bo-pager {
		gap: 8px 10px;
		margin-top: 30px;
		padding-top: 22px;
	}

	.bo-pager__item {
		min-width: 36px;
		height: 36px;
	}
}

@media (max-width: 479px) {
	.bo-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.bo-rubric {
		gap: 6px;
	}

	.bo-rubric__item {
		padding: 7px 11px;
		font-size: 12.5px;
	}

	.bo-pager__label,
	.bo-pager__total {
		display: none;
	}

	.bo-pager__lbl {
		display: none;
	}

	.bo-pager__item {
		min-width: 34px;
		height: 34px;
		padding: 0 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bo-rubric__item,
	.bo-pager__item {
		transition: none;
	}

	.bo-rubric__item:hover,
	.bo-pager__item:hover {
		transform: none;
	}
}

/* =========================================================
   13. v3.9.0 — страница поиска
   ========================================================= */
.bo-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bo-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 26px;
	max-width: 620px;
}

.bo-search__input {
	flex: 1 1 260px;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 1px solid var(--ff-line-2, rgba(17, 17, 17, 0.14));
	border-radius: 14px;
	background: var(--ff-bg);
	color: var(--ff-ink, #14141c);
	font: inherit;
	font-size: 15.5px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.bo-search__input::placeholder { color: var(--ff-muted, #6b6b78); }
.bo-search__input:focus {
	outline: none;
	border-color: var(--ff-accent);
	box-shadow: 0 0 0 4px var(--ff-accent-soft);
}
.bo-search .bo-btn { height: 52px; flex: 0 0 auto; }

.bo-empty {
	max-width: 680px;
	margin: 0 auto;
	padding: 48px 0 24px;
	text-align: left;
}
.bo-empty .bo-h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.bo-empty .bo-lead { margin: 0 0 26px; }
.bo-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; }

html[data-theme="dark"] .bo-search__input {
	background: #17171f;
	border-color: #2a2a35;
	color: #ececf2;
}
html[data-theme="dark"] .bo-search__input::placeholder { color: #7c7c8c; }

@media (max-width: 560px) {
	.bo-search { margin-top: 20px; }
	.bo-search__input { flex: 1 1 100%; height: 48px; }
	.bo-search .bo-btn { flex: 1 1 100%; height: 48px; justify-content: center; }
	.bo-empty { padding-top: 28px; }
}

/* --- 13.1 точка входа в поиск: хедер (раскрытие поверх навигации, без перестройки строки) --- */
.bo-top__search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	height: 40px;
	border: 1px solid var(--ff-line);
	border-radius: 12px;
	background: var(--ff-bg-2);
	transition: border-color .18s ease, background .18s ease;
}
.bo-top__search:hover { border-color: var(--ff-line-2, rgba(17, 17, 17, 0.22)); }
.bo-top__search button {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 11px;
	background: none;
	color: var(--ff-ink);
	cursor: pointer;
	transition: color .16s ease, background .16s ease;
}
.bo-top__search button:hover { color: var(--ff-accent); background: rgba(124, 58, 237, 0.08); }
.bo-top__search input {
	position: absolute;
	right: 42px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 38px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 11px;
	background: var(--ff-bg);
	color: var(--ff-ink);
	font: inherit;
	font-size: 14px;
	opacity: 0;
	outline: none;
	transition: width .26s cubic-bezier(.19, 1, .22, 1), padding .26s cubic-bezier(.19, 1, .22, 1), opacity .16s ease;
}
.bo-top__search input::placeholder { color: var(--ff-muted); }
.bo-top__search:focus-within { background: var(--ff-bg); border-color: var(--ff-accent); }
.bo-top__search:focus-within input {
	width: min(300px, 44vw);
	padding: 0 12px;
	opacity: 1;
	border-color: var(--ff-accent);
	box-shadow: 0 18px 34px -20px rgba(17, 17, 17, 0.45);
}

/* --- 13.2 точка входа в поиск: мобильный ящик --- */
.bo-drawer__search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px var(--ff-gutter) 14px;
	padding: 0 6px 0 14px;
	height: 50px;
	border: 1px solid var(--ff-line);
	border-radius: 14px;
	background: var(--ff-bg-2);
}
.bo-drawer__search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: none;
	outline: none;
	font: inherit;
	font-size: 15px;
	color: var(--ff-ink);
}
.bo-drawer__search input::placeholder { color: var(--ff-muted); }
.bo-drawer__search button {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 11px;
	background: var(--ff-accent);
	color: #fff;
	cursor: pointer;
	transition: background .16s ease, transform .16s ease;
}
.bo-drawer__search button:hover { background: var(--ff-accent-hover, #6d28d9); transform: translateY(-1px); }

@media (max-width: 479px) {
	.bo-drawer__search { margin-left: 20px; margin-right: 20px; }
}

html[data-theme="dark"] .bo-top__search button:hover { background: rgba(167, 139, 250, 0.14); }
html[data-theme="dark"] .bo-top__search:focus-within input { box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.7); }
