/* ═══════════════════════════════════════════════════════════════════════════
   Раздел 11 · Лента блога. Геометрия из макета: «Блог: лента — десктоп»
   4306:31195 и «— мобильный» 4312:23286.

   Рамка 1280 с полями 80 на десктопе, боковое поле 8 на телефоне.
   ═══════════════════════════════════════════════════════════════════════════ */

.sh-bl { padding: 8px 0 32px; }

.sh-bl-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 8px;
}

.blog .main-page-wrapper .container,
.category .main-page-wrapper .container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.blog .page-title,
.category .page-title,
.blog .wd-sidebar-opener,
.category .wd-sidebar-opener { display: none; }

@media (min-width: 768px) {
	.sh-bl { padding: 8px 0 48px; }
	.sh-bl-wrap { padding: 0 16px; }
}

@media (min-width: 1312px) {
	.sh-bl-wrap { padding: 0; }
}

/* ── Путь и шапка ─────────────────────────────────────────────────────────── */

.sh-bl-wrap .sh-vozvrat { margin: 8px 0 16px; }

.sh-bl-crumbs {
	display: none;
	margin: 16px 0 24px;
	font-size: 13px;
	color: #6e6e7a;
}

.sh-bl-crumbs a { color: #6e6e7a; }
.sh-bl-crumbs a:hover { color: #a73afd; }
.sh-bl-crumbs span { margin: 0 6px; }

@media (min-width: 768px) {
	.sh-bl-crumbs { display: block; }
}

.sh-bl-h1 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #1e1e1e;
}

.sh-bl-podpis {
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: #525256;
}

@media (min-width: 768px) {
	.sh-bl-h1 { font-size: 32px; }
	.sh-bl-podpis { margin-top: 24px; font-size: 16px; line-height: 1.45; }
}

/* ── Полоса рубрик ────────────────────────────────────────────────────────── */

/* На телефоне лента листается вбок и обрезается краем — так же, как полоса
   фильтров каталога: рубрик восемь, в 375 они не помещаются. */
.sh-bl-rubriki {
	display: flex;
	gap: 8px;
	margin: 16px -8px 0;
	padding: 0 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sh-bl-rubriki::-webkit-scrollbar { display: none; }

.sh-bl-rubrika {
	flex: none;
	padding: 9px 14px;
	border-radius: 999px;
	background: #f5f5f6;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #525256;
	white-space: nowrap;
}

/* Счётчик тем же цветом, что имя рубрики: отдельного тона в палитре нет,
   и в макете пилюля набрана одной переменной. */
.sh-bl-rubrika span { color: inherit; opacity: .65; }

.sh-bl-rubrika:hover { background: #ebebee; color: #525256; }

.sh-bl-rubrika.is-tekushchaya,
.sh-bl-rubrika.is-tekushchaya:hover {
	background: #a73afd;
	color: #ffffff;
}

.sh-bl-rubrika.is-tekushchaya span { color: inherit; opacity: .75; }

@media (min-width: 768px) {
	.sh-bl-rubriki {
		flex-wrap: wrap;
		gap: 10px;
		margin: 24px 0 0;
		padding: 0;
		overflow: visible;
	}

	.sh-bl-rubrika { padding: 11px 18px; }
}

/* ── Сетка статей ─────────────────────────────────────────────────────────── */

.sh-bl-setka {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-top: 16px;
}

.sh-bl-karta { min-width: 0; }

.sh-bl-oblozhka {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f6;
	aspect-ratio: 16 / 9;
}

.sh-bl-oblozhka img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s;
}

.sh-bl-karta:hover .sh-bl-oblozhka img { transform: scale(1.03); }

.sh-bl-rubrika-imya {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.35;
	color: #6e6e7a;
}

.sh-bl-rubrika-imya:hover { color: #a73afd; }

.sh-bl-imya {
	margin: 8px 0 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: #1e1e1e;
}

.sh-bl-imya a { color: inherit; }
.sh-bl-imya a:hover { color: #a73afd; }

.sh-bl-data {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.35;
	color: #6e6e7a;
}

@media (min-width: 768px) {
	.sh-bl-setka {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 32px;
		margin-top: 24px;
	}
}

@media (min-width: 1024px) {
	/* Три колонки: в макете карточка 405 при промежутке 32 — это ровно
	   треть рамки 1280. Колонки резиновые, чтобы сетка добирала ширину
	   на промежуточных экранах. */
	.sh-bl-setka { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sh-bl-imya { margin-top: 12px; font-size: 20px; }
	.sh-bl-rubrika-imya { margin-top: 12px; }
}

/* ── Показать ещё ─────────────────────────────────────────────────────────── */

.sh-bl-dalshe { margin-top: 24px; }

.sh-bl-dalshe a {
	display: block;
	padding: 14px 24px;
	border: 1px solid #eeeeee;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #a73afd;
	text-align: center;
}

.sh-bl-dalshe a:hover { background: #f8e7ff; color: #a73afd; }

.sh-bl-nazad { margin-top: 12px; text-align: center; }

.sh-bl-nazad a {
	font-size: 14px;
	line-height: 1.4;
	color: #6e6e7a;
}

.sh-bl-nazad a:hover { color: #a73afd; }

.sh-bl-pusto {
	margin-top: 24px;
	font-size: 16px;
	line-height: 1.45;
	color: #525256;
}

@media (min-width: 768px) {
	.sh-bl-dalshe { margin: 40px auto 0; max-width: 320px; }
}
