

/* Start:/local/templates/.default/components/bitrix/news.list/rubric/style.css?179572611513309*/
/*
 * Рубрика блога /blog/category/{code}/ (шаблон rubric компонента bitrix:news.list).
 * Источник — docs/blog/mocups/blog-category.html, раздел
 * «===== Рубрика (/blog/category/{slug}/) — поверх стилей главной блога =====».
 *
 * Карточные/ленточные/пагинационные стили (.b-*, .bh-rubrics, .bh-feed,
 * .grid-3, .pager, демо-бейдж) — дубликат news.list/.default/style.css
 * (шаблон главной): CSS каждого шаблона компонента подключается независимо,
 * дублирование осознанное. Токены сайта уже есть в глобальном CSS — здесь
 * только var(--token, fallback-литерал). Без JS; контрольные ширины 320–1440.
 */

.cat {
	display: block;
}

/* Типографика блока (мокап: .h1/.h2/.lead) */
.cat .h1 {
	margin: 0;
	font-size: 48px;
	line-height: 62px;
	font-weight: 500;
	letter-spacing: -.01em;
	color: var(--Color-text-primary-default, #232A33);
	overflow-wrap: break-word;
	hyphens: auto;
}

.cat .h2 {
	margin: 0;
	font-size: 32px;
	line-height: 38px;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var(--Color-text-primary-default, #232A33);
}

.cat .lead {
	margin: 0;
	font-size: 20px;
	line-height: 30px;
	color: var(--Color-text-secondary-default, #404C5A);
}

/* --- Метка рубрики (дублирует news.list/.default/style.css) --- */
.b-rubric {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 12px;
	border-radius: var(--Radius-full, 999px);
	background: var(--Base-colors-blue-50, #EEF4FF);
	color: var(--Color-text-accent-default, #1756EC);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: none;
}

a.b-rubric:hover {
	background: var(--Base-colors-blue-100, #D7E6FF);
}

.b-rubric--plain {
	background: none;
	padding: 0;
	min-height: 0;
	font-size: 13px;
	line-height: 16px;
	letter-spacing: .02em;
	text-transform: uppercase;
}

/* --- Заглушка обложки демо-режима (.b-ph + палитра t-*) — дубликат главной --- */
.b-ph {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	width: 100%;
	border-radius: var(--Radius-16, 16px);
	overflow: hidden;
	background: linear-gradient(135deg, var(--tint-a, var(--Base-colors-blue-50, #EEF4FF)), var(--tint-b, var(--Base-colors-blue-100, #D7E6FF)));
	color: var(--Color-text-tertiary-default, #4E5C6C);
	font-size: 13px;
	line-height: 16px;
	text-align: center;
}

.b-ph::before {
	content: "";
	position: absolute;
	inset: auto -10% -40% auto;
	width: 60%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
}

.b-ph span {
	position: relative;
	padding: 4px 10px;
	border-radius: var(--Radius-full, 999px);
	background: rgba(255, 255, 255, .7);
}

.t-teal {
	--tint-a: var(--Base-colors-teal-50, #EDF6F8);
	--tint-b: var(--Base-colors-teal-100, #D6EBF0);
}

.t-violet {
	--tint-a: var(--Base-colors-violet-50, #F1F0FB);
	--tint-b: var(--Base-colors-violet-100, #E1DDF7);
}

.t-green {
	--tint-a: var(--Base-colors-green-50, #EDF7F3);
	--tint-b: var(--Base-colors-green-100, #D6EEE6);
}

.t-orange {
	--tint-a: var(--Base-colors-orange-50, #FFF4EA);
	--tint-b: var(--Base-colors-orange-100, #FEE4CF);
}

.t-yellow {
	--tint-a: var(--Base-colors-yellow-50, #FFF8E8);
	--tint-b: var(--Base-colors-yellow-100, #FDEDC8);
}

/* --- Карточка статьи — дубликат news.list/.default/style.css --- */
.b-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.b-card__media {
	border-radius: var(--Radius-16, 16px);
	overflow: hidden;
}

.b-card__media img {
	display: block;
	width: 100%;
	height: auto;
}

.b-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.b-card__title {
	margin: 0;
	font-size: 20px;
	line-height: 26px;
	font-weight: 500;
	overflow-wrap: break-word;
	hyphens: auto;
}

.b-card__title a {
	color: var(--Color-text-primary-default, #232A33);
	text-decoration: none;
}

.b-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--Radius-16, 16px);
}

.b-card:hover .b-card__title a {
	color: var(--Color-text-accent-default, #1756EC);
}

.b-card__title a:focus-visible {
	outline: none;
}

.b-card__title a:focus-visible::after {
	outline: 2px solid var(--Color-border-accent-default, #1756EC);
	outline-offset: 4px;
}

.b-card__excerpt {
	margin: 0;
	color: var(--Color-text-secondary-default, #404C5A);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.b-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	font-size: 14px;
	line-height: 20px;
	color: var(--Color-text-tertiary-default, #4E5C6C);
}

.b-meta > * + *::before {
	content: "·";
	margin-inline-end: 12px;
	color: var(--Color-text-placeholder-default, #9AA7B7);
}

.b-upd {
	color: var(--Color-text-success-default, #176B4F);
}

.b-card--noimg {
	padding: 24px;
	border-radius: var(--Radius-20, 20px);
	background: var(--Color-bg-secondary-neutral-default, #F2F4F7);
	justify-content: flex-start;
}

.b-card--noimg .b-card__title {
	font-size: 24px;
	line-height: 30px;
}

.b-card--noimg .b-card__body {
	flex: 1;
}

.b-card--noimg .b-meta {
	margin-top: auto;
	padding-top: 16px;
}

.b-card--noimg .b-card__excerpt {
	-webkit-line-clamp: 6;
}

/* --- Чипы рубрик — дубликат news.list/.default/style.css --- */
.bh-rubrics {
	margin-top: 40px;
	border-bottom: 1px solid var(--Color-border-primary-default, #E2E7ED);
}

.bh-rubrics ul {
	list-style: none;
	margin: 0;
	padding: 0 0 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bh-rubrics a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--Color-bg-secondary-neutral-default, #F2F4F7);
	color: var(--Color-text-primary-default, #232A33);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.bh-rubrics a:hover {
	background: var(--Color-bg-secondary-neutral-hover, #E2E7ED);
}

.bh-rubrics a[aria-current="page"] {
	background: var(--Color-button-primary-neutral-default, #232A33);
	color: #fff;
}

/* --- Лента — дубликат news.list/.default/style.css --- */
.bh-feed {
	margin-top: 72px;
}

.bh-feed__hd {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 28px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 24px;
}

/* --- Пагинация — дубликат news.list/.default/style.css --- */
.pager {
	margin-top: 56px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.pager ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.pager a,
.pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	color: var(--Color-text-primary-default, #232A33);
}

.pager a:hover {
	background: var(--Color-bg-primary-neutral-hover, #F2F4F7);
}

.pager [aria-current="page"] {
	background: var(--Color-button-primary-neutral-default, #232A33);
	color: #fff;
}

.pager .pager__step {
	box-shadow: inset 0 0 0 1px var(--Color-border-primary-default, #E2E7ED);
}

.pager .is-disabled {
	color: var(--Color-text-placeholder-default, #9AA7B7);
	box-shadow: inset 0 0 0 1px var(--Color-border-primary-default, #E2E7ED);
}

/* --- Демо-бейдж и пустое состояние — дубликат news.list/.default/style.css --- */
.bh-demo {
	margin-top: 24px;
	padding: 10px 16px;
	border-radius: var(--Radius-12, 12px);
	background: var(--Base-colors-yellow-50, #FFF8E8);
	border: 1px solid var(--Base-colors-yellow-100, #FDEDC8);
	color: var(--Base-colors-yellow-700, #7A5C12);
	font-size: 14px;
	line-height: 20px;
}

.bh-empty {
	margin-top: 40px;
	padding: 40px;
	border-radius: var(--Radius-20, 20px);
	background: var(--Color-bg-secondary-neutral-default, #F2F4F7);
}

/* ===== Рубрика (/blog/category/{slug}/) — мокап ===== */
.cat-head {
	padding-top: 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 48px;
	align-items: end;
}

.cat-head .lead {
	margin-top: 16px;
	max-width: 720px;
}

.cat-count {
	font-size: 16px;
	line-height: 24px;
	color: var(--Color-text-tertiary-default, #4E5C6C);
	white-space: nowrap;
}

/* Серия внутри рубрики (хаб тематического кластера); скрыт, если серий нет */
.cat-series {
	margin-top: 40px;
	padding: 28px;
	border-radius: var(--Radius-20, 20px);
	background: var(--Base-colors-blue-50, #EEF4FF);
}

.cat-series__hd {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	margin-bottom: 20px;
}

.cat-series__hd h2 {
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 500;
}

.cat-series__hd p {
	margin: 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--Color-text-secondary-default, #404C5A);
}

.cat-series ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	counter-reset: s;
}

.cat-series li {
	counter-increment: s;
}

.cat-series a {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	height: 100%;
	padding: 18px 20px;
	border-radius: var(--Radius-16, 16px);
	background: #fff;
	color: var(--Color-text-primary-default, #232A33);
	text-decoration: none;
	font-size: 17px;
	line-height: 24px;
	font-weight: 500;
}

.cat-series a::before {
	content: counter(s);
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--Color-button-primary-accent-default, #1756EC);
	color: #fff;
	font-size: 14px;
	line-height: 1;
}

.cat-series a:hover {
	color: var(--Color-text-accent-default, #1756EC);
}

/* Связанные разделы сайта (поле рубрики SERVICE_LINKS) */
.cat-links {
	margin-top: 72px;
}

.cat-links .h2 {
	margin-bottom: 20px;
}

.cat-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.cat-links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 72px;
	padding: 0 24px;
	border-radius: var(--Radius-16, 16px);
	border: 1px solid var(--Color-border-primary-default, #E2E7ED);
	color: var(--Color-text-primary-default, #232A33);
	text-decoration: none;
	font-size: 17px;
	line-height: 24px;
	font-weight: 500;
}

.cat-links a::after {
	content: "→";
	color: var(--Color-text-accent-default, #1756EC);
}

.cat-links a:hover {
	background: var(--Color-bg-primary-neutral-hover, #F2F4F7);
}

/* Развёрнутый текст о рубрике — после ленты (ТЗ 5.2), только page=1 */
.cat-about {
	margin-top: 72px;
	max-width: 800px;
}

.cat-about .h2 {
	margin-bottom: 16px;
}

.cat-about p {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 28px;
	color: var(--Color-text-secondary-default, #404C5A);
}

/* В рубрике метка рубрики в карточке не нужна — все статьи из неё */
.cat-feed .b-rubric--plain {
	display: none;
}

/* Видимый фокус (скоуп на блок, глобальный :focus-visible сайта не трогаем) */
.cat :focus-visible {
	outline: 2px solid var(--Color-border-accent-default, #1756EC);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Адаптив */
@media (max-width: 1199px) {
	.cat .h1 {
		font-size: 40px;
		line-height: 50px;
	}

	.grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cat-series ol,
	.cat-links ul {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.cat .h1 {
		font-size: 32px;
		line-height: 38px;
	}

	.cat .h2 {
		font-size: 24px;
		line-height: 30px;
	}

	.cat .lead {
		font-size: 18px;
		line-height: 26px;
	}

	.cat-head {
		grid-template-columns: 1fr;
	}

	.bh-rubrics {
		margin-inline: calc(var(--gutter, 20px) * -1);
		margin-top: 28px;
	}

	.bh-rubrics ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-inline: var(--gutter, 20px);
		scrollbar-width: none;
	}

	.bh-rubrics ul::-webkit-scrollbar {
		display: none;
	}

	.cat-series {
		padding: 20px;
		margin-top: 28px;
	}

	.grid-3 {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.bh-feed {
		margin-top: 48px;
	}

	.b-meta > * + *::before {
		display: none;
	}

	.b-meta {
		gap: 4px 16px;
	}

	/* Видимы только крайние и текущий номера + шаги (разметка полная) */
	.pager .pager__num:not([aria-current]):not(.pager__first):not(.pager__last) {
		display: none;
	}

	.pager__dots {
		display: none !important;
	}

	.cat-links,
	.cat-about {
		margin-top: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat * {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* End */
/* /local/templates/.default/components/bitrix/news.list/rubric/style.css?179572611513309 */
