/* Блог: список статей. Макет «в стиле сайта» (Playfair Display + Jost, розовый акцент).
   Тема перекрашивает ссылки при наведении, поэтому цвета у карточек заданы явно. */

/* крошки выводим сами, внутри блока — у темы свои, прячем, иначе две одинаковые строки */
.tsr-blog-page .dt-breadcrumbs {
	display: none;
}

.tsr-blog {
	background: #F1F1F1;
	color: #181818;
	font-family: 'Jost', sans-serif;
}

.tsr-blog__wrap {
	max-width: 1248px;
	margin: 0 auto;
	padding: 72px 24px 88px;
	box-sizing: border-box;
}

.tsr-blog__crumbs {
	/* у темы nav с белым фоном — на этой странице крошки должны быть просто текстом */
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.tsr-blog__crumbs,
.tsr-blog__crumbs a {
	font-size: 13px;
	color: rgba(24, 24, 24, .55);
	text-decoration: none;
}

.tsr-blog__crumbs a:hover {
	color: #B01167;
}

.tsr-blog__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 36px 0 16px;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #B01167;
}

.tsr-blog__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #E5197F;
}

.tsr-blog__h1 {
	margin: 36px 0 14px;
	font-family: 'Playfair Display', serif;
	font-weight: 500;
	font-size: 52px;
	line-height: 1.04;
	letter-spacing: -.015em;
	color: #181818;
	text-shadow: none;
}

.tsr-blog__lede {
	margin: 0;
	max-width: 34em;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(24, 24, 24, .75);
}

/* --- пилюли рубрик --- */

.tsr-blog__pills {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 32px 0 44px;
}

.tsr-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	height: 44px;
	padding: 0 22px;
	border-radius: 100px;
	border: 1px solid rgba(24, 24, 24, .14);
	background: #fff;
	color: #181818;
	font-family: 'Jost', sans-serif;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.tsr-pill:hover {
	border-color: rgba(24, 24, 24, .3);
	color: #181818;
}

.tsr-pill.is-active,
.tsr-pill.is-active:hover {
	background: #E5197F;
	border-color: #E5197F;
	color: #fff;
}

.tsr-pill__count {
	font-size: 12px;
	font-weight: 400;
	opacity: .6;
}

/* --- ведущая статья --- */

.tsr-lead {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: #181818;
	margin-bottom: 28px;
	transition: box-shadow .2s ease;
}

.tsr-lead:hover {
	color: #181818;
	box-shadow: 0 8px 24px rgba(24, 24, 24, .09);
}

/* без обложки ведущая занимает всю ширину — пустой колонки не остаётся */
.tsr-lead--nophoto {
	grid-template-columns: 1fr;
	border-top: 4px solid #E5197F;
}

.tsr-lead__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 380px;
	object-fit: cover;
	background-color: #E1E1E1;
}

.tsr-lead__body {
	padding: 48px 52px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tsr-lead__cat {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #B01167;
}

.tsr-lead__title {
	margin: 14px 0 16px;
	font-family: 'Playfair Display', serif;
	font-weight: 500;
	font-size: 36px;
	line-height: 1.14;
	letter-spacing: -.015em;
	color: #181818;
	text-shadow: none;
}

.tsr-lead__excerpt {
	margin: 0 0 26px;
	font-size: 16.5px;
	line-height: 1.65;
	color: rgba(24, 24, 24, .75);
}

.tsr-lead__foot {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.tsr-lead__btn {
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 24px;
	border-radius: 100px;
	background: #E5197F;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
}

.tsr-lead__meta {
	font-size: 13px;
	color: rgba(24, 24, 24, .55);
}

/* --- сетка карточек --- */

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

.tsr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: #181818;
	box-shadow: 0 1px 2px rgba(24, 24, 24, .06);
	transition: box-shadow .2s ease, transform .2s ease;
}

.tsr-card:hover {
	color: #181818;
	box-shadow: 0 10px 26px rgba(24, 24, 24, .1);
	transform: translateY(-2px);
}

.tsr-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background-color: #E1E1E1;
}

/* без обложки — розовая полоска сверху */
.tsr-card__stripe {
	height: 4px;
	background: #E5197F;
}

.tsr-card__body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tsr-card__cat {
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #B01167;
}

.tsr-card__title {
	margin: 10px 0;
	font-family: 'Playfair Display', serif;
	font-weight: 500;
	font-size: 24px;
	line-height: 1.18;
	letter-spacing: -.01em;
	color: #181818;
	text-shadow: none;
}

/* без обложки заголовку отдаём освободившееся место */
.tsr-card--nophoto .tsr-card__title {
	font-size: 30px;
}

.tsr-card__excerpt {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.62;
	color: rgba(24, 24, 24, .65);
}

.tsr-card__meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(24, 24, 24, .09);
	font-size: 13px;
	color: rgba(24, 24, 24, .55);
}

.tsr-blog__empty {
	margin: 0;
	font-size: 16px;
	color: rgba(24, 24, 24, .6);
}

/* --- планшет --- */

@media (max-width: 1100px) {
	.tsr-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.tsr-blog__h1 {
		font-size: 40px;
	}

	.tsr-lead__body {
		padding: 36px 34px;
	}

	.tsr-lead__title {
		font-size: 30px;
	}

	.tsr-lead__img {
		min-height: 300px;
	}
}

/* --- телефон: ведущая становится обычной карточкой, пилюли прокруткой --- */

@media (max-width: 767px) {
	.tsr-blog__wrap {
		padding: 28px 18px 40px;
	}

	.tsr-blog__crumbs {
		font-size: 12.5px;
	}

	.tsr-blog__eyebrow {
		margin: 22px 0 12px;
		font-size: 10.5px;
	}

	.tsr-blog__h1 {
		font-size: 28px;
		line-height: 1.15;
		margin: 22px 0 10px;
	}

	.tsr-blog__lede {
		font-size: 14.5px;
		line-height: 1.62;
	}

	.tsr-blog__pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		margin: 22px -18px 24px;
		padding: 0 18px;
		scrollbar-width: none;
	}

	.tsr-blog__pills::-webkit-scrollbar {
		display: none;
	}

	.tsr-pill {
		padding: 0 18px;
		font-size: 14px;
	}

	.tsr-lead,
	.tsr-lead--nophoto {
		display: block;
		border-radius: 16px;
		margin-bottom: 18px;
		box-shadow: 0 1px 2px rgba(24, 24, 24, .06);
	}

	.tsr-lead__img {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.tsr-lead__body {
		padding: 18px 18px 20px;
	}

	.tsr-lead__cat {
		font-size: 10px;
	}

	.tsr-lead__title {
		margin: 9px 0;
		font-size: 22px;
	}

	.tsr-lead--nophoto .tsr-lead__title {
		font-size: 26px;
	}

	.tsr-lead__excerpt {
		margin-bottom: 14px;
		font-size: 14.5px;
		line-height: 1.62;
	}

	.tsr-lead__btn {
		display: none;
	}

	.tsr-lead__meta {
		font-size: 12.5px;
	}

	.tsr-blog__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.tsr-card__img {
		aspect-ratio: 16 / 9;
	}

	.tsr-card__body {
		padding: 18px 18px 20px;
	}

	.tsr-card__cat {
		font-size: 10px;
	}

	.tsr-card__title {
		margin: 9px 0;
		font-size: 22px;
	}

	.tsr-card--nophoto .tsr-card__title {
		font-size: 26px;
	}

	.tsr-card__excerpt {
		margin-bottom: 14px;
		font-size: 14.5px;
	}

	.tsr-card__meta {
		padding-top: 0;
		border-top: 0;
		font-size: 12.5px;
	}
}
