:root {
	--news-shell: var(--shell);
	--news-ink: #102a5d;
	--news-blue: #0c4f9f;
	--news-line: rgba(18, 27, 55, 0.12);
}

.news-page {
	padding-top: 94px;
	background:
		radial-gradient(circle at 22% 10%, rgba(11, 87, 164, 0.05), transparent 24%),
		linear-gradient(180deg, rgba(244, 247, 252, 0.75) 0%, rgba(255, 255, 255, 0.2) 16%, #fff 34%);
}

.news-shell,
.news-breadcrumb {
	width: var(--news-shell);
	margin: 0 auto;
}

.news-breadcrumb {
	padding: 20px 0 18px;
	border-bottom: 1px solid rgba(16, 42, 93, 0.08);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: rgba(16, 42, 93, 0.74);
	opacity: 0;
	transform: translateY(14px);
	animation: newsBreadcrumbReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.news-breadcrumb a {
	color: inherit;
}

.news-breadcrumb span {
	margin: 0 16px;
	color: rgba(16, 42, 93, 0.42);
}

.news-hero {
	padding: 42px 0 72px;
}

.news-hero__copy {
	overflow: hidden;
	clip-path: inset(0 0 100% 0);
	transform: translateY(42px);
	animation: newsTitleReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.news-hero__title {
	margin: 0;
	font-size: 40px;
	font-family: var(--font-en);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--news-ink);
}

.news-hero__subtitle {
	margin: 18px 0 0;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--news-ink);
}

.news-page__list {
	padding-top: 0;
	padding-bottom: 88px;
	opacity: 0;
	transform: translateY(28px);
	animation: newsSectionReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.74s forwards;
}

.news-page__list.section-block::before {
	display: none;
}

.news-page .news-list {
	margin-top: 0;
}

.news-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 44px;
}

.news-filter__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 132px;
	padding: 14px 28px;
	border-radius: 999px;
	background: #f5f7fb;
	background-image: linear-gradient(#214f8d, #214f8d);
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 100% 0;
	color: var(--news-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-size 0.3s ease, color 0.25s ease, transform 0.25s ease;
}

.news-filter__chip:hover,
.news-filter__chip:focus-visible {
	background-size: 100% 100%;
	color: #fff;
	transform: translateY(-1px);
}

.news-filter__chip.is-active {
	background-size: 100% 100%;
	color: #fff;
}

.news-page .news-item:first-child {
	border-top: 0;
}

.news-page__empty {
	margin: 0;
	padding: 32px 0;
	color: rgba(16, 42, 93, 0.7);
}

.news-page .news-item__category {
	font-size: 13px;
	padding: 6px 12px;
}

.news-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 32px;
	min-height: 88px;
	margin-top: 54px;
}

.news-pagination__numbers {
	grid-column: 2;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	justify-self: center;
	font-family: var(--font-en);
	font-size: 20px;
	font-weight: 400;
	color: rgba(16, 42, 93, 0.28);
}

.news-pagination__number {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.news-pagination__number:hover,
.news-pagination__number:focus-visible {
	color: var(--news-ink);
}

.news-pagination__number.is-current {
	color: var(--news-ink);
}

.news-pagination__nav {
	grid-column: 1;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 18px;
	width: fit-content;
	padding: 0 0 18px;
	border-bottom: 1px solid rgba(16, 42, 93, 0.16);
	color: rgba(16, 42, 93, 0.46);
	text-decoration: none;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.news-pagination__nav::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 1px;
	background: #214f8d;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.news-pagination__nav:hover,
.news-pagination__nav:focus-visible {
	color: var(--news-ink);
	border-color: rgba(16, 42, 93, 0.28);
}

.news-pagination__nav:hover::after,
.news-pagination__nav:focus-visible::after {
	transform: scaleX(1);
}

.news-pagination__nav--next {
	grid-column: 3;
	justify-self: end;
}

.news-pagination__nav--prev::after {
	transform-origin: right center;
}

.news-pagination__nav-label {
	font-family: var(--font-en);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.news-pagination__nav-arrow {
	font-size: 20px;
	line-height: 1;
	display: inline-block;
	will-change: transform, opacity;
}

.news-pagination__nav.is-disabled {
	pointer-events: none;
	opacity: 0.45;
}

.news-pagination__nav:hover .news-pagination__nav-arrow,
.news-pagination__nav:focus-visible .news-pagination__nav-arrow {
	animation: news-pagination-arrow-pulse 0.55s ease;
}

@keyframes news-pagination-arrow-pulse {
	0% {
		opacity: 1;
		transform: translateX(0);
	}
	35% {
		opacity: 0;
		transform: translateX(10px);
	}
	36% {
		opacity: 0;
		transform: translateX(-10px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes newsTitleReveal {
	from {
		clip-path: inset(0 0 100% 0);
		transform: translateY(42px);
	}
	to {
		clip-path: inset(0 0 0 0);
		transform: translateY(0);
	}
}

@keyframes newsBreadcrumbReveal {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes newsSectionReveal {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.news-shell,
	.news-breadcrumb {
		width: min(calc(100% - 80px), 100%);
	}

	.news-page {
		padding-top: 38px;
	}

	.news-breadcrumb {
		padding: 16px 0 14px;
		font-size: 0.72rem;
	}

	.news-breadcrumb span {
		margin: 0 10px;
	}

	.news-hero {
		padding: 34px 0 52px;
	}

	.news-hero__title {
		font-size: 30px;
		line-height: 1.15;
	}

	.news-hero__subtitle {
		font-size: 13px;
	}

	.news-page__list {
		padding-bottom: 64px;
	}

	.news-filter {
		flex-wrap: nowrap;
		gap: 12px;
		margin-bottom: 32px;
		overflow-x: auto;
		padding-bottom: 6px;
	}

	.news-filter__chip {
		min-width: max-content;
		padding: 14px 24px;
		font-size: 13px;
		white-space: nowrap;
	}

	.news-page .news-item__link {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"date date"
			"category category"
			"title arrow";
		align-items: start;
		column-gap: 16px;
		row-gap: 10px;
		padding: 24px 0 28px;
	}

	.news-page .news-item__date {
		grid-area: date;
		font-size: 13px;
	}

	.news-page .news-item__category {
		grid-area: category;
		font-size: 13px;
		padding: 5px 10px;
	}

	.news-page .news-item__link > p:last-of-type {
		grid-area: title;
		min-width: 0;
		font-size: 14px !important;
		line-height: 1.7;
	}

	.news-page .news-item__arrow {
		grid-area: arrow;
		align-self: start;
		padding-top: 2px;
		text-align: right;
		justify-self: end;
	}

	.news-pagination {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		min-height: auto;
		margin-top: 32px;
		padding-top: 8px;
	}

	.news-pagination__numbers {
		order: 2;
		width: 100%;
		justify-content: center;
		font-size: 17px;
	}

	.news-pagination__nav {
		padding-bottom: 14px;
	}

	.news-pagination__nav--next {
		margin-left: auto;
	}

	.news-pagination__nav-label {
		font-size: 16px;
	}
}
