/* /news/ — медиацентр в стиле сайта */

body:has(.lx-news-page .company-header) .page-top .topic,
body:has(.lx-news-article) .page-top .topic {
	display: none;
}

body:has(.lx-news-page) section.page-top {
	padding-bottom: 24px;
}

body:has(.lx-news-article) section.page-top {
	padding-bottom: 0;
}

.lx-news-page {
	padding: 12px 0 100px;
	background: transparent;
	color: #fff;
}

/* Intro — вровень с крошками, с нормальным зазором сверху */
.lx-news-page .company-header {
	background: transparent;
}

.lx-news-page .company-header p {
	max-width: none;
}

.lx-news-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 32px;
	padding: 0 153px;
}

.lx-news-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lx-news-nav__link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.lx-news-nav__link.is-active {
	background: #1d49ff;
	border-color: #1d49ff;
	color: #fff;
}

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

.lx-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	isolation: isolate;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	background: #0b0d10;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 22px;
	transition: border-color 0.2s, transform 0.2s;
}

/* Нижняя полоска-вырез, как у «Выберите решение» */
.lx-news-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -20px;
	z-index: 3;
	width: min(62%, 160px);
	height: 40px;
	transform: translateX(-50%);
	background: #000;
	border-radius: 25px;
	pointer-events: none;
}

.lx-news-card:hover {
	border-color: rgba(255, 255, 255, 0.14);
	transform: translateY(-2px);
	color: inherit;
}

.lx-news-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, rgba(29, 73, 255, 0.35) 0%, #0b0d10 75%);
	overflow: hidden;
}

.lx-news-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.lx-news-card:hover .lx-news-card__img {
	transform: scale(1.03);
}

.lx-news-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 20px 28px;
	flex: 1;
}

.lx-news-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.lx-news-card__date,
.lx-news-card__section {
	font-size: 13px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.55);
}

.lx-news-card__section {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.78);
}

.lx-news-card__title {
	display: block;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.lx-news-card__preview {
	display: block;
	flex: 1;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.62);
}

.lx-news-card__more {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
}

.lx-news-card:hover .lx-news-card__more {
	color: #fff;
}

.lx-news-cards__nav {
	margin-top: 36px;
	text-align: center;
}

.lx-news-cards__nav .bx-pagination,
.lx-news-cards__nav .module-pagination {
	justify-content: center;
}

/* ===== Detail article ===== */
.lx-news-page:has(.lx-news-article) {
	margin-top: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
}

.lx-news-article {
	padding: 0 0 80px;
	margin-top: -20px;
}

.lx-news-article__shell.lx-home-bonuses__shell {
	background: #0b0d10;
	padding: 40px 0 48px;
}

.lx-news-detail-page {
	position: relative;
	z-index: 1;
	padding: 8px 0 8px;
	background: transparent;
	color: #fff;
	margin: 0 150px;
}

.lx-news-article__head {
	margin-bottom: 28px;
}

/* Заголовок деталки — как company-header у крошек */
.lx-news-article__head--out {
	margin: -70px 0 24px;
	padding: 0;
}

.lx-news-article__intro.company-header {
	background: transparent;
	max-width: none;
}

.lx-news-article__intro.company-header h2.lx-news-article__title,
.lx-news-article__intro.company-header .lx-news-article__title {
	width: 100%;
	max-width: 920px;
	margin: 0 0 16px;
	font-size: clamp(28px, 3.6vw, 32px);
	font-weight: 500;
	line-height: 1.2;
	background: linear-gradient(180deg, #ffffff, #6b778d);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.lx-news-article__back {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s;
}

.lx-news-article__back:hover {
	color: #fff;
}

.lx-news-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0;
}

.lx-news-article__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #1d49ff;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.lx-news-article__chip--sale {
	background: #fff;
	color: #0b0d10;
}

.lx-news-article__date,
.lx-news-article__read {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.55);
}

.lx-news-article__share {
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lx-news-article__share:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.lx-news-article__title {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 400;
	line-height: 1.2;
}

.lx-news-article__lead {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 18px;
	line-height: 1.55;
}

.lx-news-article__feature {
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(160deg, #1d49ff 0%, #0b0d10 70%);
}

.lx-news-article__feature-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 440px;
	object-fit: cover;
}

.lx-news-article__toc {
	margin: 0 0 32px;
	padding: 20px 22px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.lx-news-article__toc-title {
	margin: 0 0 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.lx-news-article__toc-list {
	margin: 0;
	padding: 0 0 0 1.2em;
	display: grid;
	gap: 8px;
}

.lx-news-article__toc-list a {
	color: #9db6ff !important;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
}

.lx-news-article__toc-list a:hover {
	color: #fff !important;
	text-decoration: underline;
}

/* Article body */
.lx-news-detail-page .services-detail__bottom-info,
.lx-news-detail-page .ordered-block {
	gap: 28px;
}

.lx-news-detail-page .ordered-block__title,
.lx-news-detail-page .switcher-title {
	display: none;
}

.lx-news-detail-page .content {
	font-size: 17px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
}

.lx-news-detail-page .content p,
.lx-news-detail-page .content li,
.lx-news-detail-page .content span,
.lx-news-detail-page .content td,
.lx-news-detail-page .content div {
	color: rgba(255, 255, 255, 0.82) !important;
}

.lx-news-detail-page .content h2,
.lx-news-detail-page .content h3,
.lx-news-detail-page .content h4 {
	margin: 36px 0 14px;
	color: #fff !important;
	background: none !important;
	-webkit-text-fill-color: #fff !important;
	font-weight: 500;
	line-height: 1.25;
	scroll-margin-top: 100px;
}

.lx-news-detail-page .content h2 {
	font-size: clamp(22px, 2.4vw, 28px);
}

.lx-news-detail-page .content h3 {
	font-size: clamp(18px, 2vw, 22px);
}

.lx-news-detail-page .content p {
	margin: 0 0 16px;
}

.lx-news-detail-page .content ul,
.lx-news-detail-page .content ol {
	margin: 0 0 18px;
	padding-left: 1.25em;
}

.lx-news-detail-page .content li {
	margin-bottom: 8px;
}

.lx-news-detail-page .content a {
	color: #9db6ff !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lx-news-detail-page .content a:hover {
	color: #fff !important;
}

.lx-news-detail-page .content img {
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.lx-news-detail-page .content blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	border-left: 3px solid #1d49ff;
	border-radius: 0 14px 14px 0;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.88);
}

.lx-news-article__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lx-news-article__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lx-news-article__btn--solid {
	background: #fff;
	color: #0b0d10;
	border: 1px solid #fff;
}

.lx-news-article__btn--solid:hover {
	background: rgba(255, 255, 255, 0.92);
	color: #0b0d10;
}

.lx-news-article__btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.lx-news-article__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.lx-news-detail-page .bottom-links-block {
	display: none;
}

@media (max-width: 1200px) {
	.lx-news-page .company-header,
	.lx-news-article__intro.company-header {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.lx-news-nav {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 1199px) {
	.lx-news-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.lx-news-page {
		padding: 0 0 72px;
	}

	.lx-news-nav {
		justify-content: flex-start;
	}

	.lx-news-cards {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
	}

	.lx-news-article__share {
		margin-left: 0;
	}

	.lx-news-article__title {
		font-size: 26px;
	}

	.lx-news-article__lead {
		font-size: 16px;
	}

	.lx-news-detail-page .content {
		font-size: 16px;
	}
}
