/* ============================================================
   Софрино — раздел каталога в новом виде (редизайн 2026, этап 2).
   Подключается только шаблоном Groups/view_v26.ctp, поверх home.css:
   токены, кнопки, чипсы и карточки товара берутся оттуда.
   ============================================================ */

/* Под шапкой нет фотографии первого экрана, поэтому шапка сразу плотная:
   иначе белый текст меню лёг бы на светлый фон страницы. */
.v26 .site-header {
	background: rgba(4, 10, 9, .94);
}

.v26 .site-header::before {
	opacity: 0;
}

.v26 .catalog-bar {
	background: #013D4D;
}

.catalog-page {
	padding: 24px 0 clamp(52px, 5.5vw, 84px);
}

/* Хлебные крошки ---------------------------------------------- */

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	/* пункт со стрелкой выше строки — без этого он уезжал вниз */
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}

.crumbs li + li::before {
	content: "/";
	margin: 0 8px;
	color: var(--border-strong);
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
	transition: color .15s ease;
}

@media (hover: hover) {
	.crumbs a:hover {
		color: var(--brand);
	}
}

.crumbs [aria-current] {
	color: var(--ink);
}

/* раскрытие у крошки — соседние разделы или подразделы, как в старом
   каталоге; само меню то же, что «Категории» (.sort-menu) */
.crumbs__menu {
	display: inline-flex;
	align-items: center;
}

.crumbs li {
	display: inline-flex;
	align-items: center;
}

.crumb-menu {
	display: inline-block;
	margin-left: 2px;
}

.crumb-menu__toggle {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	/* кружок под стрелкой не раздвигает строку крошек */
	margin: -4px 0;
	border-radius: 999px;
	color: var(--muted);
	list-style: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.crumb-menu__toggle::-webkit-details-marker {
	display: none;
}

.crumb-menu__toggle svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

@media (hover: hover) {
	.crumb-menu__toggle:hover {
		background: var(--surface-subtle);
		color: var(--brand);
	}
}

.crumb-menu[open] .crumb-menu__toggle {
	background: var(--brand-soft);
	color: var(--brand);
}

.crumb-menu[open] .crumb-menu__toggle svg {
	transform: rotate(180deg);
}

/* список над плитками подразделов и строкой фильтра; на телефоне он
   выезжает снизу по общим правилам .sort-menu__list */
.crumb-menu .sort-menu__list {
	color: var(--ink);
}

@media (min-width: 641px) {
	.crumb-menu .sort-menu__list {
		z-index: 70;
		top: calc(100% + 4px);
		left: -8px;
		font-size: 14px;
	}
}

/* Заголовок --------------------------------------------------- */

.catalog-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
	margin-top: 18px;
}

.catalog-head h1 {
	margin: 0;
	text-wrap: balance;
}

.catalog-head__page {
	color: var(--muted);
	font-size: .6em;
}

.catalog-head__count {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.catalog-lead {
	max-width: 760px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
}

.catalog-lead > :first-child {
	margin-top: 0;
}

.catalog-lead > :last-child {
	margin-bottom: 0;
}

/* Подразделы -------------------------------------------------- */

.catalog-subs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	margin-top: 28px;
}

.catalog-sub {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 14px 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s ease, transform .15s ease, color .15s ease;
}

@media (hover: hover) {
	.catalog-sub:hover {
		border-color: var(--brand);
		color: var(--brand);
		transform: translateY(-2px);
	}
}

.catalog-sub__img {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border-radius: var(--radius-sm);
	background: var(--product-bg);
	overflow: hidden;
}

.catalog-sub__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* иконы — как в мегаменю: срезаем несколько пикселей рамки */
.catalog-sub__img--icon-crop img {
	transform: scale(1.1);
}

.catalog-sub__img--icon {
	padding: 22px;
	background: var(--surface-subtle);
	color: var(--brand);
	opacity: .85;
}

.catalog-sub__img--icon svg {
	width: 100%;
	height: 100%;
}

.v26[data-theme="dark"] .catalog-sub__img--icon svg {
	filter: brightness(0) invert(1);
	opacity: .82;
}

.catalog-sub__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Тип товара ------------------------------------------------- */

/*
 * Плитки по характеристике «Наименование» в подразделе (Заказчик,
 * 13.11.2026). Мельче плиток подразделов — это уже отбор внутри раздела,
 * а не навигация. Все типы рядами, без ленты вбок.
 */
.type-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.type-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 12px 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.type-tile[hidden] {
	display: none;
}

@media (hover: hover) {
	.type-tile:hover {
		border-color: var(--brand);
		color: var(--brand);
	}
}

.type-tile.is-current {
	border-color: var(--brand-fill);
	box-shadow: inset 0 0 0 1px var(--brand-fill);
	color: var(--brand);
	font-weight: 600;
}

.type-tile__img {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: var(--radius-sm);
	background: var(--product-bg);
	overflow: hidden;
}

.type-tile__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.type-tile__img svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: .6;
}

.type-tile--more .type-tile__img {
	background: var(--surface-subtle);
}

.type-tile__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 640px) {
	.type-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 18px;
	}

	.type-tile {
		padding: 10px 6px 8px;
		font-size: 12px;
	}

	.type-tile__img {
		width: 52px;
		height: 52px;
	}
}

/* в подразделе соседи — лентой чипсов, текущий выделен */
.catalog-subs--chips {
	display: flex;
	gap: 8px;
	margin-top: 22px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.catalog-subs--chips::-webkit-scrollbar {
	display: none;
}

/* на широком экране ряд мышью не прокрутить — чипсы переносим на вторую
   строку; лентой вбок они листаются только на телефоне */
@media (min-width: 641px) {
	.catalog-subs--chips {
		flex-wrap: wrap;
		overflow: visible;
	}
}

.catalog-subs--chips .chip {
	text-decoration: none;
	color: var(--ink);
}

.catalog-subs--chips .chip.is-current {
	border-color: var(--brand-fill);
	background: var(--brand-fill);
	color: var(--on-brand);
}

/* Все подразделы списком (когда их больше 16) ------------------
   Над списком — восемь самых просматриваемых плитками. На компьютере
   список в колонки по алфавиту, свёрнут до трёх строк; на телефоне —
   за плиткой «Все N подразделов», выезжает снизу с поиском. */

button.catalog-sub {
	font-family: inherit;
	cursor: pointer;
}

/* восемь популярных — ровно одним рядом, без сиротливой восьмой; плитки
   небольших разделов — ровными рядами (число колонок считает шаблон) */
@media (min-width: 1101px) {
	.catalog-subs--top {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	.catalog-subs--even {
		grid-template-columns: repeat(var(--subs-cols), minmax(0, 1fr));
	}
}

@media (min-width: 641px) and (max-width: 1100px) {
	.catalog-subs--top {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* на компьютере весь список и так под плитками */
.catalog-sub--all {
	display: none;
}

.catalog-sub__img--all {
	padding: 26%;
	background: var(--surface-subtle);
	color: var(--brand);
}

.catalog-sub__img--all svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.subs-index {
	margin-top: 20px;
	padding: 18px 20px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.subs-index__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 12px;
}

.subs-index__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.subs-index__title span {
	margin-left: 4px;
	color: var(--muted);
	font-weight: 500;
}

.subs-index__search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(280px, 100%);
	height: 38px;
	margin-left: auto;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--page);
}

.subs-index__search:focus-within {
	border-color: var(--brand);
}

.subs-index__search svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--muted);
	stroke-width: 2;
	stroke-linecap: round;
}

.subs-index__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.subs-index__close {
	display: none;
}

/* колонками сверху вниз, как в оглавлении: в сетке строками длинное
   название в две строки оставляло дыры в соседних колонках */
.subs-index__list {
	columns: 5;
	column-gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.subs-index__list > li {
	break-inside: avoid;
}

.subs-index__list a {
	display: block;
	padding: 6px 0;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
}

@media (hover: hover) {
	.subs-index__list a:hover {
		color: var(--brand);
	}
}

/* свёрнуто — верх колонок, три строки с затуханием: колонки при этом
   строятся по всему списку и остаются ровными (скрывать пункты нельзя —
   тогда браузер раскладывал оставшиеся 4/4/4/2/1). При поиске — всё найденное */
.subs-index:not(.is-open):not(.is-searching) .subs-index__list {
	max-height: 92px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 62%, transparent);
	mask-image: linear-gradient(180deg, #000 62%, transparent);
}

.subs-index__list > li[hidden] {
	display: none;
}

.subs-index.is-searching .subs-index__more {
	display: none;
}

.subs-index__empty {
	margin: 4px 0 6px;
	color: var(--muted);
	font-size: 14px;
}

.subs-index__more {
	margin-top: 8px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--brand);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.subs-index-shade {
	display: none;
}

@media (max-width: 900px) {
	.subs-index__list {
		columns: 3;
	}
}

@media (max-width: 640px) {
	.catalog-sub--all {
		display: flex;
	}

	/* на телефоне список — только по плитке «Все N подразделов» */
	.subs-index {
		display: none;
	}

	.subs-index.is-sheet {
		position: fixed;
		z-index: 136;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		max-height: 82vh;
		margin: 0;
		padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
		box-shadow: var(--shadow-md);
	}

	.subs-index.is-sheet .subs-index__search {
		order: 3;
		width: 100%;
		margin-left: 0;
	}

	.subs-index.is-sheet .subs-index__close {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		margin-left: auto;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: var(--surface-subtle);
		color: var(--ink);
		cursor: pointer;
	}

	.subs-index__close svg {
		width: 18px;
		height: 18px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
	}

	.subs-index.is-sheet .subs-index__list {
		columns: 1;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.subs-index.is-sheet .subs-index__list > li {
		display: list-item;
	}

	.subs-index.is-sheet .subs-index__list > li[hidden] {
		display: none;
	}

	.subs-index.is-sheet .subs-index__list a {
		padding: 11px 2px;
		border-bottom: 1px solid var(--border);
		font-size: 16px;
	}

	.subs-index.is-sheet .subs-index__more {
		display: none;
	}

	.subs-index-shade:not([hidden]) {
		position: fixed;
		z-index: 135;
		inset: 0;
		display: block;
		background: rgba(2, 12, 15, .5);
	}

	html.is-subs-sheet,
	html.is-subs-sheet body {
		overflow: hidden;
	}

	html.is-subs-sheet [data-site-assistant-root] {
		display: none;
	}
}

/* Окно «Дни памяти» ------------------------------------------ */

.feasts-dialog {
	width: min(920px, calc(100vw - 32px));
	/* высота постоянная: при поиске список то короче, то длиннее, и окно,
	   подстраиваясь под него, прыгало вверх-вниз */
	height: min(640px, calc(100vh - 48px));
	max-height: min(640px, calc(100vh - 48px));
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg, 18px);
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	overflow: hidden;
}

.feasts-dialog[open] {
	display: flex;
	flex-direction: column;
}

.feasts-dialog::backdrop {
	background: rgba(2, 12, 15, .55);
}

.is-feasts-open [data-site-assistant-root] {
	display: none;
}

.feasts-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 12px;
}

.feasts-dialog__title {
	margin: 0;
	font-family: var(--font-display, Georgia, serif);
	font-size: 24px;
	font-weight: 500;
}

.feasts-dialog__lead {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.feasts-dialog__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--surface-subtle);
	color: var(--ink);
	cursor: pointer;
}

.feasts-dialog__close svg,
.feasts-cal__nav svg,
.feasts-dialog__search svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.feasts-dialog__search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 24px 4px;
	padding: 0 14px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--page);
	color: var(--muted);
}

.feasts-dialog__search:focus-within {
	border-color: var(--brand);
}

.feasts-dialog__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

.feasts-dialog__body {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	min-height: 0;
	flex: 1;
}

.feasts-dialog__loading {
	margin: 24px;
	color: var(--muted);
}

/* календарь */
.feasts-cal {
	padding: 16px 20px 20px 24px;
	border-right: 1px solid var(--border);
}

.feasts-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.feasts-cal__month {
	font-size: 16px;
	font-weight: 600;
	text-transform: capitalize;
}

.feasts-cal__nav {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.feasts-cal__quick {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.feasts-cal__quick .chip {
	cursor: pointer;
}

.feasts-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.feasts-cal__wd {
	padding: 4px 0;
	color: var(--muted);
	font-size: 12px;
	text-align: center;
}

.feasts-cal__day {
	position: relative;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.feasts-cal__day.has-feasts {
	color: var(--ink);
	font-weight: 500;
}

/* точка — есть лики; золотая — великий праздник */
.feasts-cal__day.has-feasts::after {
	content: "";
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: var(--brand);
}

.feasts-cal__day.has-grand::after {
	width: 6px;
	height: 6px;
	margin-left: -3px;
	background: var(--accent);
}

.feasts-cal__day.is-today {
	box-shadow: inset 0 0 0 1px var(--brand);
}

.feasts-cal__day.is-selected {
	background: var(--brand-fill);
	color: var(--on-brand);
}

.feasts-cal__day.is-selected::after {
	background: currentColor;
}

@media (hover: hover) {
	.feasts-cal__day:not(.is-selected):hover,
	.feasts-cal__nav:hover {
		background: var(--surface-subtle);
	}
}

/* список дня и результаты поиска */
.feasts-day {
	padding: 16px 24px 20px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.feasts-day__title {
	margin: 2px 0 10px;
	font-size: 16px;
	font-weight: 600;
}

.feasts-day__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.feasts-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none;
}

@media (hover: hover) {
	.feasts-item:hover {
		background: var(--surface-subtle);
		color: var(--brand);
	}
}

.feasts-item__title {
	font-size: 15px;
	line-height: 1.35;
}

.feasts-item.is-grand .feasts-item__title {
	font-weight: 600;
}

.feasts-item.is-grand .feasts-item__title::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--accent);
	vertical-align: 2px;
}

.feasts-item__meta {
	color: var(--muted);
	font-size: 13px;
}

.feasts-day__empty {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 14px;
}

/* телефон: окно на весь экран, календарь сверху, список под ним */
@media (max-width: 640px) {
	.feasts-dialog {
		width: 100vw;
		max-width: 100vw;
		height: 100%;
		max-height: 100%;
		margin: 0;
		border: 0;
		border-radius: 0;
	}

	.feasts-dialog[open] {
		overflow-y: auto;
	}

	.feasts-dialog__head {
		padding: 16px 16px 10px;
	}

	.feasts-dialog__title {
		font-size: 21px;
	}

	.feasts-dialog__search {
		margin: 0 16px 4px;
	}

	.feasts-dialog__body {
		display: block;
	}

	.feasts-cal {
		padding: 12px 16px 14px;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.feasts-cal__day {
		height: 42px;
	}

	.feasts-day {
		padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
		overflow: visible;
	}
}

/* Объявление раздела ------------------------------------------ */

.catalog-notice {
	margin-top: 24px;
	padding: 14px 18px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-md);
	background: var(--accent-soft);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}

.catalog-notice p {
	margin: 0;
}

/* Фильтр ------------------------------------------------------ */

/*
 * Фильтр — строка кнопок над товарами (как в старом каталоге), товары на
 * всю ширину. «Все фильтры» открывает панель со всеми характеристиками
 * сбоку на любой ширине (на телефоне — во весь экран).
 */
.catalog-body {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.is-filter-empty .catalog-filter,
.is-filter-empty .catalog-filter-toggle,
.is-filter-empty .catalog-pills {
	display: none;
}

.catalog-filter {
	position: fixed;
	z-index: 130;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(400px, 100vw);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	box-shadow: var(--shadow-md);
	transform: translateX(-102%);
	visibility: hidden;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
}

.is-filter-open .catalog-filter {
	transform: none;
	visibility: visible;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.is-filter-open body {
	overflow: hidden;
}

/* кнопка помощника не должна лежать на кнопке «Показать» */
.is-filter-open [data-site-assistant-root] {
	display: none;
}

.catalog-filter-backdrop {
	position: fixed;
	z-index: 129;
	inset: 0;
	background: rgba(2, 12, 15, .5);
}

.catalog-filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 12px;
	border-bottom: 1px solid var(--border);
}

.catalog-filter__title {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
}

.catalog-filter__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--surface-subtle);
	color: var(--ink);
	cursor: pointer;
}

.catalog-filter__close svg,
.catalog-filter-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.catalog-filter__form {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 18px;
}

.catalog-filter__loading {
	margin: 16px 0;
	color: var(--muted);
	font-size: 14px;
}

.catalog-filter__foot {
	display: grid;
	gap: 8px;
	padding: 12px 18px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.catalog-filter__apply {
	width: 100%;
}

.catalog-filter__apply[aria-busy="true"] {
	opacity: .7;
}

.catalog-filter__apply:disabled {
	opacity: .55;
	cursor: default;
}

.catalog-filter__reset {
	justify-self: center;
	color: var(--muted);
	font-size: 14px;
}

/*
 * Второй вариант на сравнение (Заказчик, 13.11.2026): фильтры открытой
 * узкой колонкой слева, как у Озона и Маркета, — без «Все фильтры» и кнопок
 * над товарами. Это та же панель и та же форма, только не выезжает, а стоит
 * в колонке и едет вместе с прокруткой; «Показать N товаров» — внизу неё.
 * Включается cookie v26filter=side из окна «Просмотр редизайна». На
 * планшете и телефоне колонке места нет — там всё как в основном варианте.
 */
@media (min-width: 1025px) {
	.catalog-body--side {
		display: grid;
		grid-template-columns: 264px minmax(0, 1fr);
		align-items: start;
		gap: 28px;
	}

	/*
	 * Колонка во всю свою высоту, без внутренней прокрутки, и прилипает
	 * «с магнитами»: длиннее экрана — едет вместе со страницей, пока не
	 * упрётся низом в край окна, при прокрутке вверх — пока не упрётся
	 * верхом под шапку. top считает catalog-filter.js; без скрипта —
	 * просто прилипает верхом.
	 */
	.catalog-body--side .catalog-filter {
		position: sticky;
		z-index: 1;
		top: calc(var(--header-height, 120px) + 16px);
		bottom: auto;
		width: auto;
		border: 1px solid var(--border);
		border-radius: var(--radius-lg);
		box-shadow: none;
		transform: none;
		visibility: visible;
		transition: none;
	}

	.catalog-body--side .catalog-filter__head {
		padding: 14px 16px 10px;
		border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	}

	.catalog-body--side .catalog-filter__form {
		flex: none;
		overflow: visible;
		padding: 0 16px;
	}

	/* «Показать N товаров» держится у низа окна, пока колонка не кончилась */
	.catalog-body--side .catalog-filter__foot {
		position: sticky;
		bottom: 0;
		padding: 12px 16px 14px;
		border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	}

	.catalog-body--side .catalog-filter__close,
	.catalog-body--side .catalog-filter-toggle,
	.catalog-body--side .catalog-pills,
	.catalog-body--side ~ .catalog-filter-backdrop,
	.catalog-body--side .catalog-filter-backdrop {
		display: none;
	}

	/* фильтровать нечего (в маленькой подборке у товаров нет характеристик) —
	   колонки нет, товары на всю ширину: иначе они вставали в её 264px */
	.is-filter-empty .catalog-body--side {
		display: block;
	}

	.is-filter-empty .catalog-body--side .catalog-products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	/* колонка забрала ширину — карточек в ряд на одну меньше */
	.catalog-body--side .catalog-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.catalog-body--side .catalog-products.is-large {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.filter-prop {
	margin: 0;
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--border);
	min-width: 0;
}

.filter-prop:last-child {
	border-bottom: 0;
}

/* legend внутри fieldset браузеры ставят на рамку и добавляют пустоту под
   ним — обтекание возвращает ему обычное место в потоке */
.filter-prop__name {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}

.filter-prop__name + * {
	clear: both;
}

/* название слева, «× Сбросить» справа — когда в характеристике что-то выбрано */
.filter-prop__name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.filter-prop__reset {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: color .15s ease;
}

.filter-prop__reset[hidden] {
	display: none;
}

.filter-prop__reset svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

@media (hover: hover) {
	.filter-prop__reset:hover {
		color: var(--brand);
	}
}

.filter-prop__search {
	width: 100%;
	height: 38px;
	margin-bottom: 8px;
	padding: 0 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.filter-prop__vals {
	display: grid;
	gap: 2px;
}

.filter-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 32px;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}

.filter-check[hidden] {
	display: none;
}

.filter-check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--brand-fill);
}

.filter-check.is-off {
	color: var(--muted);
	opacity: .55;
	cursor: default;
}

.filter-prop__more {
	margin-top: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--brand);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.filter-price {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.filter-price label {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--muted);
	font-size: 13px;
}

.filter-price label:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-soft);
}

.filter-price input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

/* выбранные условия над списком */
.catalog-chosen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.catalog-chosen[hidden] {
	display: none;
}

.catalog-chosen__chip {
	gap: 8px;
	text-decoration: none;
	color: var(--ink);
}

.catalog-chosen__chip span {
	color: var(--muted);
	font-size: 16px;
	line-height: 1;
}

.catalog-chosen__reset {
	order: 99;
	color: var(--brand);
	font-size: 14px;
	font-weight: 600;
}

/* Строка над товарами: сортировка, «Все фильтры», характеристики ------ */

/* строка прилипает под шапкой: у длинного списка фильтр и сортировка
   всегда под рукой, не надо листать наверх */
.catalog-toolbar {
	position: sticky;
	z-index: 25;
	/* catalog.js ставит top по нижнему краю шапки: она сжимается при
	   прокрутке, а на телефоне уезжает вверх */
	top: var(--header-height, 120px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: -8px 0 10px;
	padding: 8px 0;
	background: var(--page);
	transition: box-shadow .2s ease, top .3s cubic-bezier(.2, .7, .2, 1);
}

.catalog-toolbar.is-stuck {
	box-shadow: 0 10px 14px -12px rgba(0, 20, 26, .35);
}

/* кнопка-пилюля: сортировка, «Все фильтры», характеристика */
.fpill__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	list-style: none;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.fpill__btn::-webkit-details-marker {
	display: none;
}

.fpill__btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var(--muted);
	transition: transform .15s ease;
}

.fpill__btn .fpill__icon {
	width: 18px;
	height: 18px;
	color: var(--ink);
}

@media (hover: hover) {
	.fpill__btn:hover {
		border-color: var(--brand);
	}
}

.fpill.is-open .fpill__btn svg,
.sort-menu[open] .fpill__btn svg:last-child {
	transform: rotate(180deg);
}

/* выбрано хоть одно значение — пилюля залита бирюзовым и с числом */
.fpill.is-active .fpill__btn {
	border-color: var(--brand-fill);
	background: var(--brand-soft);
	color: var(--brand);
	font-weight: 600;
}

.fpill__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--brand-fill);
	color: var(--on-brand);
	font-size: 12px;
	font-weight: 600;
}

.fpill__count[hidden] {
	display: none;
}

.catalog-pills {
	display: contents;
}

.catalog-pills[hidden] {
	display: none;
}

.catalog-pills .fpill[hidden] {
	display: none;
}

.fpill,
.sort-menu {
	position: relative;
}

/* выпадающий список характеристики */
.fpill__pop,
.sort-menu__list {
	position: absolute;
	z-index: 60;
	top: calc(100% + 6px);
	left: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.fpill__pop {
	width: 300px;
	padding: 4px 16px 0;
}

.fpill__pop[hidden] {
	display: none;
}

.fpill__pop.is-right {
	left: auto;
	right: 0;
}

.fpill__pop .filter-prop {
	padding: 12px 0;
	border-bottom: 0;
}

/* название и так на кнопке */
.fpill__pop .filter-prop__name {
	display: none;
}

.fpill__pop .filter-prop__vals {
	max-height: 300px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.fpill__foot {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 -16px;
	padding: 12px 16px;
	border-top: 1px solid var(--border);
	background: var(--surface);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.fpill__foot .btn {
	flex: 1 1 auto;
}

.fpill__foot .btn[aria-busy="true"] {
	opacity: .7;
}

.fpill__reset {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

/* выбран подраздел — на кнопке «Категории» его название */
.fpill__btn.is-chosen {
	border-color: var(--brand-fill);
	background: var(--brand-soft);
	color: var(--brand);
	font-weight: 600;
}

.fpill__label {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fpill__narrow {
	display: none;
}

/* «Группировать по артикулу» — переключатель, как в старом каталоге */
.group-switch {
	margin-left: auto;
	text-decoration: none;
}

.group-switch__track {
	position: relative;
	flex: none;
	width: 32px;
	height: 18px;
	border-radius: 999px;
	background: var(--border-strong);
	transition: background .15s ease;
}

.group-switch__track span {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}

.group-switch.is-on .group-switch__track {
	background: var(--brand-fill);
}

.group-switch.is-on .group-switch__track span {
	transform: translateX(14px);
}

/* меню категорий и сортировки */
.sort-menu__list {
	display: grid;
	min-width: 220px;
	padding: 6px;
}

.sort-menu__list--long {
	min-width: 280px;
	max-height: min(60vh, 440px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sort-menu__link {
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

/* поиск в длинном меню «Категории» — прилипает к верху списка */
.sort-menu__search {
	position: sticky;
	z-index: 1;
	top: -6px;
	margin: -6px -6px 4px;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--border);
	outline: none;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.sort-menu__link[hidden] {
	display: none;
}

/* на телефоне у выезжающего списка отступ сверху 10px — поле прилипает
   к самому краю, чтобы над ним не просвечивал список */
@media (max-width: 640px) {
	.sort-menu__search {
		top: -10px;
		margin: -10px -10px 4px;
		padding: 14px 16px;
		font-size: 16px;
	}
}

@media (hover: hover) {
	.sort-menu__link:hover {
		background: var(--surface-subtle);
		color: var(--brand);
	}
}

.sort-menu__link.is-active {
	color: var(--brand);
	font-weight: 600;
}

.sort-menu__link.is-active::after {
	content: " ✓";
}

/* «Дни памяти» в иконах: число ликов на сегодня — тихим кружком, чтобы
   не путать с числом выбранных значений фильтра; в меню дни подписями,
   великие праздники жирным */
.fpill__btn--feasts {
	gap: 6px;
	padding: 0 12px;
}

.fpill__count--soft {
	background: var(--brand-soft);
	color: var(--brand);
}

.feast-menu {
	min-width: 320px;
}

.feast-menu__note {
	margin: 4px 12px 6px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.35;
}

.feast-menu__day {
	margin: 8px 12px 2px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.feast-menu__grand {
	font-weight: 600;
}

/* Товары ------------------------------------------------------ */

/* На главной на планшете сетка обрезается до шести карточек — в каталоге
   показываем все. */
@media (min-width: 641px) and (max-width: 900px) {
	.catalog-products > :nth-child(n + 7) {
		display: flex;
	}
}

.product-variants {
	color: var(--muted);
	font-size: 12px;
}

/* блок товаров, пока группировка подгружается без перезагрузки */
.catalog-results {
	transition: opacity .2s ease;
}

.catalog-results.is-loading {
	opacity: .45;
	pointer-events: none;
}

/* «Обычно / Крупно» ------------------------------------------- */

.view-switch {
	display: inline-flex;
	flex: none;
	gap: 2px;
	margin-left: auto;
	padding: 3px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
}

/* если есть «Группировать по артикулу» — он уже прижат вправо */
.group-switch ~ .view-switch {
	margin-left: 0;
}

.view-switch__btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--muted);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.view-switch__btn svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.view-switch__btn.is-active {
	background: var(--brand-soft);
	color: var(--brand);
}

@media (hover: hover) {
	.view-switch__btn:not(.is-active):hover {
		color: var(--ink);
	}
}

/* крупно — 2 в ряд на компьютере и планшете, 1 на телефоне: изделие
   почти на пол-экрана, без перехода на страницу товара */
.catalog-products.is-large {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

/* в широкой карточке счётчик не тянется во всю ширину */
.catalog-products.is-large .product-buy {
	max-width: 340px;
}

@media (max-width: 900px) {
	.catalog-products.is-large {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 640px) {
	.catalog-products.is-large {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
}

/* Подгрузка и страницы ---------------------------------------- */

.catalog-more {
	display: grid;
	justify-items: center;
	gap: 18px;
	margin-top: 32px;
}

.catalog-more__btn[aria-busy="true"] {
	opacity: .6;
	pointer-events: none;
}

.catalog-pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
}

.catalog-pages a,
.catalog-pages span {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: var(--radius-md);
	color: var(--ink);
	font-size: 15px;
	text-decoration: none;
}

@media (hover: hover) {
	.catalog-pages a:hover {
		background: var(--surface-subtle);
		color: var(--brand);
	}
}

.catalog-pages .is-current {
	background: var(--brand-fill);
	color: var(--on-brand);
	font-weight: 600;
}

.catalog-pages .catalog-pages__gap {
	min-width: 24px;
	padding: 0;
	color: var(--muted);
}

/* Пустой раздел ----------------------------------------------- */

.catalog-empty {
	display: grid;
	justify-items: start;
	gap: 10px;
	padding: 32px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	color: var(--muted);
}

.catalog-empty .t-h3 {
	margin: 0;
	color: var(--ink);
}

.catalog-empty p {
	margin: 0;
}

.catalog-empty .btn {
	margin-top: 8px;
}

/* Поиск: «Товары» и «Помощник» -------------------------------- */

/*
 * Две вкладки — те же режимы, что под полем поиска в шапке. Панель
 * помощника — та же разметка search-ai из home.css, здесь только рамка
 * страницы вокруг неё.
 */
.search-tabs {
	display: flex;
	gap: 4px;
	margin-top: 24px;
	padding: 4px;
	width: fit-content;
	max-width: 100%;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
}

.search-tabs[hidden],
.search-ai--page[hidden],
.catalog-body[hidden] {
	display: none;
}

.search-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.search-tabs__tab svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
	color: var(--accent-text);
}

.search-tabs__tab[aria-selected="true"] {
	background: var(--brand-fill);
	color: var(--on-brand);
}

.search-tabs__tab[aria-selected="true"] svg {
	color: #E8C77E;
}

@media (hover: hover) {
	.search-tabs__tab[aria-selected="false"]:hover {
		background: var(--surface-subtle);
	}
}

.search-tabs__count {
	color: inherit;
	font-weight: 500;
	opacity: .7;
}

.search-ai--page {
	max-width: 880px;
	margin-top: 20px;
	padding: 16px 20px 6px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

/* на странице поле не липнет к низу окна, как в выпадашке шапки */
.search-ai--page .search-ai__foot {
	position: static;
}

.search-ai--page .search-ai__log {
	padding-top: 6px;
}

.search-ai__start {
	margin: 4px 0 8px;
}

.search-ai__start svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}

.search-empty .search-ai--page {
	margin-top: 24px;
}

/* Поиск без результатов --------------------------------------- */

.search-empty {
	max-width: 760px;
	margin-top: 12px;
}

.search-empty__form {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.search-empty__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}

.search-empty__form input[type="search"]:focus {
	outline: 0;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-soft);
}

.search-empty__ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-top: 24px;
	padding: 18px 20px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-md);
	background: var(--accent-soft);
}

.search-empty__ask p {
	flex: 1 1 280px;
	margin: 0;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}

.search-empty__ask b {
	display: block;
	font-weight: 600;
}

.search-empty__ask .btn svg {
	fill: currentColor;
	stroke: none;
}

.search-empty__call {
	margin-top: 20px;
	color: var(--muted);
	font-size: 15px;
}

.search-empty__call a {
	color: var(--brand);
	font-weight: 600;
	white-space: nowrap;
}

.search-empty__groups {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.search-empty__groups .catalog-subs {
	margin-top: 16px;
}

/* Список подборок --------------------------------------------- */

.tag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 32px;
}

.tag-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
	.tag-card:hover {
		border-color: var(--brand);
		box-shadow: var(--shadow-md);
		transform: translateY(-2px);
	}

	.tag-card:hover .tag-card__more svg {
		transform: translateX(3px);
	}
}

.tag-card__media {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background: var(--product-bg);
	border-bottom: 1px solid var(--border);
	overflow: hidden;
}

.tag-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* снимок товара снят на белом — вписываем целиком, как в карточке товара */
.tag-card--product .tag-card__media img {
	width: 78%;
	height: 82%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* без превью — спокойное поле с пиктограммой, а не пустой прямоугольник */
.tag-card--plain .tag-card__media {
	aspect-ratio: 16 / 7;
	background: var(--surface-subtle);
	color: var(--accent-text);
}

.tag-card--plain .tag-card__media svg {
	width: 44px;
	height: 44px;
	opacity: .7;
}

.tag-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}

.tag-card__title {
	font-family: var(--font-display, var(--font));
	font-size: 20px;
	line-height: 1.25;
}

.tag-card__text {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.tag-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--brand);
	font-size: 14px;
	font-weight: 600;
}

.tag-card__more svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .18s ease;
}

@media (max-width: 640px) {
	.tag-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-top: 22px;
	}

	.tag-card__body {
		padding: 12px;
	}

	.tag-card__title {
		font-size: 16px;
	}

	.tag-card__text {
		display: none;
	}
}

/* О разделе --------------------------------------------------- */

.catalog-about {
	max-width: 860px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.catalog-about summary {
	cursor: pointer;
	font-family: var(--font-display, inherit);
	font-size: 22px;
	line-height: 1.3;
	color: var(--ink);
}

.catalog-about__text {
	margin-top: 14px;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.6;
}

.catalog-about__text img {
	max-width: 100%;
	height: auto;
}

/* Телефон ----------------------------------------------------- */

@media (max-width: 640px) {
	.catalog-page {
		padding-top: 16px;
	}

	/* на телефоне подразделы — лентой вбок: у «Икон» их 13, и сеткой они
	   отодвигали товары на несколько экранов вниз */
	.catalog-subs {
		display: flex;
		gap: 8px;
		margin: 20px -16px 0;
		padding: 0 16px 4px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.catalog-subs::-webkit-scrollbar {
		display: none;
	}

	.catalog-sub {
		flex: 0 0 104px;
		padding: 10px 6px;
		font-size: 13px;
		scroll-snap-align: start;
	}

	.catalog-sub__img {
		width: 64px;
		height: 64px;
	}

	.catalog-sub__img--icon {
		padding: 16px;
	}

	.catalog-body {
		margin-top: 24px;
		padding-top: 16px;
	}

	/* на телефоне вся строка — одна лента вбок: категории, сортировка,
	   «Фильтры», характеристики. Нажатие на характеристику открывает
	   панель на ней; меню категорий и сортировки выезжают снизу. */
	.catalog-toolbar {
		flex-wrap: nowrap;
		margin: -8px -16px 10px;
		padding: 8px 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.catalog-toolbar::-webkit-scrollbar {
		display: none;
	}

	/* «Фильтры» — главная кнопка строки: на телефоне первой, а не за краем
	   экрана после длинного названия подраздела */
	.catalog-filter-toggle {
		order: -1;
	}

	.fpill__btn {
		flex: none;
	}

	.fpill__wide {
		display: none;
	}

	.fpill__narrow {
		display: inline;
	}

	.fpill__label {
		max-width: 160px;
	}

	.group-switch {
		margin-left: 0;
	}

	/* затемнение под выехавшим меню — часть summary, щелчок по нему
	   закрывает меню (fixed не обрезается лентой с прокруткой) */
	.sort-menu[open] > summary::before {
		content: "";
		position: fixed;
		z-index: 134;
		inset: 0;
		background: rgba(2, 12, 15, .5);
		cursor: default;
	}

	.sort-menu__list,
	.sort-menu__list--long {
		position: fixed;
		z-index: 135;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		min-width: 0;
		max-height: 70vh;
		overflow-y: auto;
		padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
	}

	.sort-menu__link {
		padding: 13px 14px;
		font-size: 16px;
	}

	/* длинное описание раздела не должно отодвигать товары на экран вниз:
	   три строки и «Читать полностью» (кнопку ставит catalog.js) */
	.catalog-lead[data-clamp]:not(.is-open) {
		max-height: 4.65em;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
		mask-image: linear-gradient(180deg, #000 55%, transparent);
	}

	.catalog-lead__more {
		margin-top: 4px;
		padding: 4px 0;
		border: 0;
		background: none;
		color: var(--brand);
		font: inherit;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
	}

	/* кнопка помощника не должна лежать на выехавшем меню */
	html:has(.sort-menu[open]) [data-site-assistant-root] {
		display: none;
	}


	.catalog-empty {
		padding: 22px;
	}
}

/* в полях цены стрелки-счётчики браузера не нужны: цену вводят числом */
[data-price-from],
[data-price-to] {
	-moz-appearance: textfield;
	appearance: textfield;
}

[data-price-from]::-webkit-inner-spin-button,
[data-price-from]::-webkit-outer-spin-button,
[data-price-to]::-webkit-inner-spin-button,
[data-price-to]::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
