/* Новости — listing и single, в гамме сайта #3254ff / #355fee */

.news-page-main {
	display: block;
	width: 100%;
	max-width: none;
	padding: 0;
	overflow: visible;
	background: #f6f7fb;
}

#news-page.news-page,
.news-single {
	--nw-ink: #1a1f36;
	--nw-muted: #5a6270;
	--nw-line: #e6e9ef;
	--nw-blue: #3254ff;
	--nw-blue-mid: #355fee;
	--nw-soft: #f3f4f8;
	--nw-paper: #f6f7fb;
	--nw-radius: 14px;
	-webkit-font-smoothing: antialiased;
}

#news-page.news-page *,
#news-page.news-page *::before,
#news-page.news-page *::after,
.news-single *,
.news-single *::before,
.news-single *::after {
	box-sizing: border-box;
}

#news-page.news-page {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 1280px;
	min-width: 0;
	margin: 0 auto;
	padding: 28px 24px 112px;
	line-height: normal;
	overflow: hidden;
}

#news-page.news-page .news-page__intro {
	display: block;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
}

#news-page.news-page h1.news-page__title {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: clamp(1.7rem, 3vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--nw-ink);
	text-align: left;
}

.news-page__lead {
	display: block;
	margin: 0;
	max-width: 38em;
	font-size: 16px;
	line-height: 1.5;
	color: var(--nw-muted);
}

#news-page.news-page .news-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}

#news-page.news-page .news-tag {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--nw-soft);
	color: var(--nw-ink);
	font-size: 14px;
	line-height: 1.2;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

#news-page.news-page .news-tag:hover,
#news-page.news-page .news-tag:focus {
	background: #e8eaf2;
	color: var(--nw-ink);
}

#news-page.news-page .news-tag.is-active {
	background: var(--nw-blue);
	color: #fff;
}

#news-page.news-page .news-tag.is-active:hover,
#news-page.news-page .news-tag.is-active:focus {
	background: var(--nw-blue-mid);
	color: #fff;
}

#news-page.news-page .news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 20px;
	width: 100%;
	margin: 0;
	color: var(--nw-ink);
}

.news-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	background: #fff;
	border: 1px solid rgba(26, 31, 54, 0.07);
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(26, 31, 54, 0.05);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.news-card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	color: inherit;
	text-decoration: none;
}

.news-card__link:focus {
	outline: none;
}

.news-card:has(.news-card__link:focus-visible) {
	outline: 2px solid var(--nw-blue);
	outline-offset: 3px;
}

#news-page.news-page .news-card:hover,
#news-page.news-page .news-card:focus-within {
	transform: translateY(-5px);
	border-color: rgba(50, 84, 255, 0.22);
	box-shadow:
		0 18px 40px rgba(50, 84, 255, 0.14),
		0 2px 0 rgba(50, 84, 255, 0.18);
}

.news-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 8%, #ffffff 0%, #f5f7fc 58%, #e9eef8 100%);
}

.news-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s ease;
}

.news-card__media--empty {
	background: var(--nw-soft);
}

.news-card__date {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--nw-blue);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 4px 14px rgba(26, 31, 54, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.news-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 31, 54, 0) 42%, rgba(26, 31, 54, 0.28) 100%);
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.news-card__more {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) translateY(10px);
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--nw-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 10px 24px rgba(50, 84, 255, 0.32);
	transition: opacity 0.28s ease, transform 0.28s ease;
	white-space: nowrap;
}

#news-page.news-page .news-card:hover .news-card__media img,
#news-page.news-page .news-card:focus-within .news-card__media img {
	transform: scale(1.045);
}

#news-page.news-page .news-card:hover .news-card__media::after,
#news-page.news-page .news-card:focus-within .news-card__media::after {
	opacity: 1;
}

#news-page.news-page .news-card:hover .news-card__more,
#news-page.news-page .news-card:focus-within .news-card__more {
	opacity: 1;
	transform: translate(-50%, -50%) translateY(0);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 20px;
	flex: 1 1 auto;
}

.news-card__tags {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--nw-blue);
	line-height: 1.3;
}

.news-card__title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.3;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--nw-ink);
}

#news-page.news-page .news-card:hover .news-card__title,
#news-page.news-page .news-card:focus-within .news-card__title {
	color: var(--nw-blue);
}

.news-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--nw-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--nw-blue);
}

.news-card__cta-arrow {
	transition: transform 0.2s ease;
}

#news-page.news-page .news-card:hover .news-card__cta-arrow,
#news-page.news-page .news-card:focus-within .news-card__cta-arrow {
	transform: translateX(4px);
}

#news-page.news-page .news-grid--empty {
	display: block;
}

.news-empty {
	max-width: 560px;
	margin: 8px 0 0;
	padding: 36px 28px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(26, 31, 54, 0.08);
	box-shadow: 0 10px 28px rgba(26, 31, 54, 0.05);
	color: var(--nw-muted);
	text-align: left;
}

.news-empty__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nw-ink);
}

.news-empty__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.news-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.news-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	background: var(--nw-blue);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
}

.news-empty__btn:hover,
.news-empty__btn:focus {
	background: var(--nw-blue-mid);
	color: #fff;
}

.news-empty__btn--ghost {
	background: #fff;
	color: var(--nw-ink);
	border: 1px solid rgba(26, 31, 54, 0.12);
}

.news-empty__btn--ghost:hover,
.news-empty__btn--ghost:focus {
	background: var(--nw-soft);
	color: var(--nw-ink);
}

.news-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 36px 0 0;
}

.news-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	background: var(--nw-soft);
	color: var(--nw-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.news-pager .page-numbers.current,
.news-pager a.page-numbers:hover,
.news-pager a.page-numbers:focus {
	background: var(--nw-blue);
	color: #fff;
}

.news-single.news-article {
	display: block;
	max-width: 1440px;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 48px 30px 80px;
	background: #fff;
	overflow: visible;
}

.news-article__header {
	margin: 0 0 28px;
}

.news-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 16px;
}

.news-article__back {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.2;
	color: var(--nw-muted);
	text-decoration: none;
	font-weight: 600;
}

.news-article__back:hover,
.news-article__back:focus {
	color: var(--nw-blue);
}

.news-article__date {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(50, 84, 255, 0.1);
	color: var(--nw-blue);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.news-single.news-article h1.news-article__title {
	display: block;
	margin: 0 0 14px;
	padding: 0;
	font-size: clamp(2rem, 4vw, 2.8rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 700;
	color: var(--nw-ink);
	text-align: left;
}

.news-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.news-article__tag {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--nw-soft);
	color: var(--nw-ink);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.news-article__tag:hover,
.news-article__tag:focus {
	background: var(--nw-blue);
	color: #fff;
}

.news-article__lead {
	margin: 0;
	max-width: none;
	font-size: 1.12rem;
	line-height: 1.6;
	color: #4a5263;
}

body.single-news .wrapper,
body.single-news #content,
body.single-news #primary,
body.single-news .news-page-main,
body.single-news .news-single,
body.single-news .news-article__layout {
	overflow: visible !important;
	transform: none !important;
	filter: none !important;
	perspective: none !important;
}

.news-article__layout.has-rail {
	display: grid;
	grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
	gap: 32px 40px;
	align-items: stretch;
}

.news-article__rail {
	position: relative !important;
	align-self: stretch;
}

.news-article__rail-inner {
	position: relative;
	width: 100%;
	z-index: 2;
}

.news-article__rail-inner.is-fixed {
	margin: 0;
}

.news-article__rail .news-article__photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-width: none;
}

.news-article__rail .news-article__photos[data-count="1"] {
	grid-template-columns: minmax(0, 1fr);
}

.news-article__rail .news-article__photo {
	aspect-ratio: 1 / 1;
	border-radius: 12px;
}

.news-article__stream {
	min-width: 0;
}

.news-article__layout.has-rail .news-article__richtext,
.news-article__layout.has-rail .news-article__block-text {
	max-width: none;
}

.news-article__hero {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--nw-paper);
}

.news-article__hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
}

.news-article__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 36px;
}

.news-article__nav-item {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(26, 31, 54, 0.08);
	background: var(--nw-soft);
	color: var(--nw-ink);
	text-decoration: none;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.news-article__nav-item:hover,
.news-article__nav-item:focus,
.news-article__nav-item.is-active {
	background: var(--nw-blue);
	color: #fff;
	border-color: var(--nw-blue);
}

.news-article__blocks {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.news-article__block {
	scroll-margin-top: 24px;
}

.news-single.news-article h2.news-article__block-title {
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--nw-ink);
}

.news-article__block-text {
	margin: 0 0 18px;
	max-width: 42em;
	font-size: 1.02rem;
	line-height: 1.5;
	color: var(--nw-muted);
}

.news-article__photos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

.news-article__photo {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 16px;
	background: var(--nw-paper);
	border: 1px solid rgba(26, 31, 54, 0.06);
	text-decoration: none;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-single.news-article .news-article__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	display: block;
}

.news-article__photo:hover,
.news-article__photo:focus {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(50, 84, 255, 0.12);
}

.news-article__figure {
	margin: 0;
}

.news-article__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.news-article__figure figcaption {
	margin: 10px 0 0;
	font-size: 0.92rem;
	color: var(--nw-muted);
}

.news-article__richtext {
	max-width: 42em;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--nw-ink);
}

.news-article__richtext p {
	margin: 0 0 0.8em;
}

.news-article__richtext p:last-child {
	margin-bottom: 0;
}

.news-article__split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 28px;
	align-items: center;
}

.news-article__split.is-image-left {
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.news-article__split.is-image-left .news-article__split-media {
	order: -1;
}

.news-article__split-media {
	overflow: hidden;
	border-radius: 16px;
	background: var(--nw-paper);
	border: 1px solid rgba(26, 31, 54, 0.06);
}

.news-article__split-media img {
	display: block;
	width: 100%;
	height: auto;
}

.news-article__quote {
	margin: 0;
	padding: 24px 28px;
	border-radius: 16px;
	background: var(--nw-soft);
	border-left: 4px solid var(--nw-blue);
}

.news-article__quote p {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.45;
	font-weight: 600;
	color: var(--nw-ink);
}

.news-article__quote footer {
	margin: 12px 0 0;
	font-size: 0.92rem;
	color: var(--nw-muted);
}

.news-article__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.news-article__product {
	display: flex;
	flex-direction: column;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	border-radius: 16px;
	border: 1px solid rgba(26, 31, 54, 0.06);
	overflow: hidden;
	background: #fff;
}

.news-article__product-media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--nw-paper);
}

.news-article__product-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
}

.news-article__product-title {
	display: block;
	padding: 12px 14px 14px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.news-article__product:hover .news-article__product-title {
	color: var(--nw-blue);
}

.news-article__video {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
}

.news-article__video iframe,
.news-article__video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.news-article__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 48px 0 0;
	padding: 22px 24px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(50, 84, 255, 0.08), rgba(106, 193, 14, 0.08));
	border: 1px solid rgba(50, 84, 255, 0.12);
}

.news-article__cta-title {
	margin: 0 0 4px;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--nw-ink);
	letter-spacing: -0.02em;
}

.news-article__cta-text {
	margin: 0;
	color: var(--nw-muted);
	font-size: 0.98rem;
	line-height: 1.45;
}

.news-article__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.news-article__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--nw-blue);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 10px 22px rgba(50, 84, 255, 0.22);
}

.news-article__cta-btn:hover,
.news-article__cta-btn:focus {
	background: var(--nw-blue-mid);
	color: #fff;
}

.news-article__cta-btn--ghost {
	background: #fff;
	color: var(--nw-ink);
	box-shadow: none;
	border: 1px solid rgba(26, 31, 54, 0.12);
}

.news-article__cta-btn--ghost:hover,
.news-article__cta-btn--ghost:focus {
	background: var(--nw-soft);
	color: var(--nw-ink);
}

.news-related {
	margin: 48px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--nw-line);
}

.news-related__title {
	margin: 0 0 18px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--nw-ink);
}

.news-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.news-related__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.news-related__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 14px;
	background: var(--nw-paper);
}

.news-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.news-related__card time {
	font-size: 12px;
	font-weight: 600;
	color: var(--nw-blue);
}

.news-related__name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nw-ink);
}

.news-related__card:hover .news-related__name {
	color: var(--nw-blue);
}

@media (max-width: 900px) {
	.news-article__layout.has-rail {
		grid-template-columns: minmax(0, 1fr);
	}

	.news-article__rail {
		position: static;
		min-height: 0;
	}

	.news-article__rail-inner {
		position: static;
	}

	.news-article__rail .news-article__photos {
		max-width: 420px;
	}
}

@media (max-width: 1100px) {
	#news-page.news-page {
		padding: 24px 16px 112px;
	}

	.news-single.news-article {
		padding: 32px 20px 64px;
	}

	#news-page.news-page .news-grid,
	.news-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.news-article__photos,
	.news-article__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.news-article__split,
	.news-article__split.is-image-left {
		grid-template-columns: minmax(0, 1fr);
	}

	.news-article__split.is-image-left .news-article__split-media {
		order: 0;
	}
}

@media (max-width: 700px) {
	#news-page.news-page {
		padding: 20px 16px 112px;
	}

	.news-single.news-article {
		padding: 24px 16px 72px;
	}

	#news-page.news-page .news-grid,
	.news-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.news-article__cta {
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
	}

	.news-article__cta-btn {
		justify-content: center;
	}

	.news-article__cta-actions {
		flex-direction: column;
	}
}

@media (max-width: 479px) {
	.news-article__photos,
	.news-article__products {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.news-card,
	.news-card__media img,
	.news-card__more,
	.news-article__photo,
	.news-card__cta-arrow {
		transition: none;
	}

	#news-page.news-page .news-card:hover,
	#news-page.news-page .news-card:focus-within {
		transform: none;
	}

	#news-page.news-page .news-card:hover .news-card__media img,
	#news-page.news-page .news-card:focus-within .news-card__media img {
		transform: none;
	}
}
