.articles-page,
.articles-page * {
	box-sizing: border-box;
}

.articles-page {
	margin-bottom: 20px;
	padding-top: 24px;
	color: #20242a;
	font-family: "Calibri", Arial, sans-serif;
}

.articles-page__header {
	margin-bottom: 24px;
}

.articles-page__title {
	margin: 0;
	color: #20242a;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.08;
	text-transform: none;
}

.articles-page__subtitle {
	margin: 10px 0 0;
	color: #6e747c;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
}

.articles-page__switch {
	display: flex;
	align-items: center;
	gap: 38px;
	margin-top: 20px;
	border-bottom: 1px solid #e1e3e6;
}

.articles-page__switch a {
	position: relative;
	display: block;
	padding: 0 0 12px;
	color: #20242a;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none;
}

.articles-page__switch a:hover,
.articles-page__switch a:focus,
.articles-page__switch a.is-active {
	color: #b40000;
	text-decoration: none;
}

.articles-page__switch a.is-active::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: #b40000;
	content: "";
}

.articles-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.articles-list-card {
	min-width: 0;
}

.articles-list-card__link {
	position: relative;
	display: flex;
	height: 440px;
	min-height: 440px;
	padding: 16px;
	flex-direction: column;
	overflow: hidden;
	color: #20242a;
	background: #f6f6f6;
	border: 0;
	border-radius: 16px;
	text-decoration: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.articles-list-card__link:hover,
.articles-list-card__link:focus {
	color: #20242a;
	background: #f6f6f6;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
	text-decoration: none;
	transform: translateY(-2px);
}

.articles-list-card__link:focus-visible {
	outline: 2px solid #b40000;
	outline-offset: 2px;
}

.articles-list-card__media {
	position: relative;
	display: flex;
	height: 185px;
	flex: 0 0 185px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
	border-radius: 4px;
}

.articles-list-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.publication-views {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 52px;
	height: 30px;
	padding: 3px 7px;
	color: #555d65;
	font: normal 14px/20px "Calibri", Arial, sans-serif;
	background: rgba(255, 255, 255, 0.94);
	border: 0;
	border-radius: 4px;
	box-shadow: none;
	pointer-events: none;
}

.publication-views svg {
	display: block;
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.publication-views svg path,
.publication-views svg circle {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.articles-list-card__link:hover img,
.articles-list-card__link:focus img {
	transform: none;
}

.articles-image-placeholder {
	color: #a2a7ad;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.articles-list-card__body {
	position: relative;
	display: flex;
	min-height: 0;
	padding: 16px 0 0;
	flex: 1 1 auto;
	flex-direction: column;
}

.articles-list-card__meta {
	display: flex;
	align-items: center;
	margin-top: auto;
	padding-top: 16px;
	min-height: 18px;
	color: #818790;
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
}

.articles-list-card__title {
	display: -webkit-box;
	height: 50px;
	min-height: 50px;
	max-height: 50px;
	margin: 0 0 10px;
	overflow: hidden;
	color: #20242a;
	font-size: 20px;
	font-weight: 600;
	line-height: 25px;
	text-transform: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.articles-list-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #41464c;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.publication-type {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	height: 23px;
	padding: 3px 7px;
	color: #fff;
	background: #111;
	border-radius: 4px;
	font: 400 13px/17px "Calibri", Arial, sans-serif;
	pointer-events: none;
}

.articles-page__empty {
	padding: 40px 25px;
	color: #737981;
	background: #f6f6f6;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	font-size: 16px;
	text-align: center;
}

.articles-page__pagination {
	margin-top: 34px;
	text-align: center;
}

@media (min-width: 992px) and (max-width: 1199px) {
	.articles-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.articles-page__title {
		font-size: 39px;
	}

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

@media (max-width: 767px) {
	.articles-page {
		margin-bottom: 45px;
	}

	.articles-page__title {
		font-size: 34px;
	}

	.articles-page__subtitle {
		font-size: 15px;
		line-height: 21px;
	}

	.articles-page__switch {
		gap: 25px;
		overflow-x: auto;
	}

	.articles-page__switch a {
		flex: 0 0 auto;
		font-size: 15px;
	}

	.articles-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.articles-list-card__link {
		height: auto;
		min-height: 460px;
	}

	.articles-list-card__media {
		height: 210px;
		flex-basis: 210px;
	}

	.articles-list-card__body {
		min-height: 218px;
		padding: 16px 0 0;
	}

	.articles-list-card__title {
		height: 44px;
		min-height: 44px;
		max-height: 44px;
		font-size: 18px;
		line-height: 22px;
	}
}
