/* ==========================================================
   CSS Cable — отдельная новость
   ========================================================== */

.news-article {
	--news-dark: var(--c-dark, #0e192b);
	--news-navy: #07162a;
	--news-accent: var(--c-accent, #c04852);
	--news-text: #4f5c70;
	--news-muted: #7b8798;
	--news-line: #dfe3e9;
	--news-light: #f4f5f7;

	background: #fff;
	color: var(--news-dark);
	font-family: var(--font, "Onest", system-ui, sans-serif);
}

.news-article *,
.news-article *::before,
.news-article *::after {
	box-sizing: border-box;
}

.news-article__container,
.news-article__cover-container,
.news-article__main,
.news-article__navigation-inner,
.news-related__container {
	width: min(1240px, calc(100% - 40px));
	margin-inline: auto;
}

/* Hero */

.news-article__hero {
	position: relative;
	overflow: hidden;
	padding: 70px 0 110px;
	background:
		radial-gradient(
			circle at 88% 12%,
			rgba(192, 72, 82, 0.22),
			transparent 30%
		),
		linear-gradient(135deg, #0e192b, #07162a);
	color: #fff;
}

.news-article__hero::before {
	content: "";
	position: absolute;
	right: -190px;
	bottom: -280px;
	width: 620px;
	height: 620px;
	border: 90px solid rgba(255, 255, 255, 0.025);
	border-radius: 50%;
	pointer-events: none;
}

.news-article__container {
	position: relative;
	z-index: 1;
}

.news-article__breadcrumbs {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 65px;
	color: rgba(255, 255, 255, 0.52);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.news-article__breadcrumbs a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.news-article__breadcrumbs a:hover {
	color: #fff;
}

.news-article__heading {
	display: grid;
	grid-template-columns: 185px minmax(0, 930px);
	gap: 70px;
	align-items: start;
}

.news-article__meta {
	padding-top: 6px;
}

.news-article__category {
	display: inline-flex;
	margin-bottom: 30px;
	padding: 8px 13px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.news-article__date {
	display: flex;
	flex-direction: column;
}

.news-article__date strong {
	color: #fff;
	font-size: 70px;
	font-weight: 800;
	line-height: 0.85;
	letter-spacing: -0.07em;
}

.news-article__date span {
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 13px;
	font-weight: 600;
	text-transform: lowercase;
}

.news-article__eyebrow,
.news-related__eyebrow {
	margin: 0 0 20px;
	color: #ed7c86;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.news-article__title {
	max-width: 1000px;
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: clamp(38px, 4.8vw, 68px);
	font-weight: 750;
	line-height: 1.05;
	letter-spacing: -0.045em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.news-article__excerpt {
	max-width: 800px;
	margin: 30px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 19px;
	line-height: 1.65;
}

/* Обложка */

.news-article__cover-container {
	position: relative;
	z-index: 2;
	margin-top: -55px;
}

.news-article__cover {
	height: min(65vw, 700px);
	min-height: 480px;
	margin: 0;
	overflow: hidden;
	border-radius: 26px;
	background: #dfe3e9;
	box-shadow: 0 28px 75px rgba(7, 22, 42, 0.2);
}

.news-article__cover-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Основной текст */

.news-article__main {
	display: grid;
	grid-template-columns: 185px minmax(0, 760px);
	gap: 70px;
	justify-content: center;
	padding: 95px 0 115px;
}

.news-article__aside {
	position: sticky;
	top: 110px;
	align-self: start;
}

.news-article__share-label {
	display: block;
	margin-bottom: 15px;
	color: var(--news-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.news-article__share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.news-article__share a {
	display: grid;
	width: 43px;
	height: 43px;
	place-items: center;
	border: 1px solid var(--news-line);
	border-radius: 50%;
	color: var(--news-dark);
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
	transition:
		color 0.25s ease,
		border-color 0.25s ease,
		background-color 0.25s ease;
}

.news-article__share a:hover {
	border-color: var(--news-accent);
	background: var(--news-accent);
	color: #fff;
}

.news-article__content {
	min-width: 0;
	color: var(--news-text);
	font-size: 18px;
	line-height: 1.85;
}

/* Убираем ограничения контейнера Elementor внутри записи */

.news-article__content > .elementor > .e-con {
	padding: 0;
}

.news-article__content > .elementor > .e-con > .e-con-inner {
	width: 100%;
	max-width: none;
	padding: 0;
}

.news-article__content
	.elementor-widget-text-editor
	> .elementor-widget-container {
	color: inherit;
	font: inherit;
}

/* Типографика */

.news-article__content p {
	margin: 0 0 28px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.news-article__content p:first-of-type {
	color: var(--news-dark);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.7;
}

.news-article__content h2,
.news-article__content h3,
.news-article__content h4 {
	color: var(--news-dark);
	font-family: inherit;
	font-weight: 750;
	letter-spacing: -0.025em;
}

.news-article__content h2 {
	margin: 60px 0 25px;
	font-size: clamp(31px, 4vw, 44px);
	line-height: 1.15;
}

.news-article__content h3 {
	margin: 48px 0 20px;
	font-size: 28px;
	line-height: 1.25;
}

.news-article__content ul,
.news-article__content ol {
	margin: 30px 0;
	padding-left: 24px;
}

.news-article__content li {
	margin-bottom: 12px;
	padding-left: 6px;
}

.news-article__content a {
	color: var(--news-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.news-article__content strong {
	color: var(--news-dark);
	font-weight: 750;
}

.news-article__content blockquote {
	margin: 50px 0;
	padding: 34px 38px;
	border: 0;
	border-left: 4px solid var(--news-accent);
	border-radius: 0 18px 18px 0;
	background: var(--news-light);
	color: var(--news-dark);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.55;
}

.news-article__content blockquote p:last-child {
	margin-bottom: 0;
}

.news-article__content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 45px 0;
	border-radius: 18px;
}

/* Навигация между публикациями */

.news-article__navigation {
	border-top: 1px solid var(--news-line);
	border-bottom: 1px solid var(--news-line);
	background: #fff;
}

.news-article__navigation-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-article__navigation-link,
.news-article__navigation-empty {
	min-height: 180px;
}

.news-article__navigation-link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 35px 50px;
	color: var(--news-dark);
	text-decoration: none;
	transition: background-color 0.25s ease;
}

.news-article__navigation-link:nth-child(2) {
	border-left: 1px solid var(--news-line);
}

.news-article__navigation-link--next {
	text-align: right;
}

.news-article__navigation-label {
	margin-bottom: 13px;
	color: var(--news-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.news-article__navigation-link strong {
	font-size: 18px;
	font-weight: 650;
	line-height: 1.45;
}

.news-article__navigation-link:hover {
	background: var(--news-light);
}

/* Другие новости */

.news-related {
	padding: 110px 0 130px;
	background: var(--news-light);
}

.news-related__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 45px;
}

.news-related__eyebrow {
	color: var(--news-accent);
}

.news-related__header h2 {
	margin: 0;
	color: var(--news-dark);
	font-family: inherit;
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 750;
	line-height: 1;
	letter-spacing: -0.045em;
}

.news-related__all {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--news-dark);
	color: var(--news-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.news-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.news-related__card {
	overflow: hidden;
	border: 1px solid rgba(7, 22, 42, 0.05);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(7, 22, 42, 0.07);
}

.news-related__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #d9dde3;
}

.news-related__media img,
.news-related__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-related__placeholder {
	background:
		radial-gradient(
			circle at 80% 20%,
			rgba(192, 72, 82, 0.35),
			transparent 35%
		),
		var(--news-dark);
}

.news-related__card:hover .news-related__media img {
	transform: scale(1.045);
}

.news-related__date {
	position: absolute;
	top: 18px;
	left: 18px;
	display: flex;
	min-width: 78px;
	flex-direction: column;
	padding: 13px 15px;
	border-radius: 12px;
	background: #fff;
	color: var(--news-dark);
	box-shadow: 0 8px 28px rgba(7, 22, 42, 0.14);
}

.news-related__date strong {
	font-size: 25px;
	line-height: 1;
}

.news-related__date span {
	margin-top: 5px;
	color: var(--news-muted);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.news-related__body {
	display: flex;
	min-height: 220px;
	flex-direction: column;
	padding: 28px;
}

.news-related__body h3 {
	margin: 0 0 30px;
	color: var(--news-dark);
	font-family: inherit;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.42;
}

.news-related__body h3 a {
	color: inherit;
	text-decoration: none;
}

.news-related__more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--news-line);
	color: var(--news-accent);
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

/* Планшет */

@media (max-width: 1024px) {
	.news-article__heading {
		grid-template-columns: 145px minmax(0, 1fr);
		gap: 40px;
	}

	.news-article__main {
		grid-template-columns: 120px minmax(0, 700px);
		gap: 40px;
	}

	.news-article__date strong {
		font-size: 56px;
	}

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

	.news-related__card:last-child {
		display: none;
	}
}

/* Телефон */

@media (max-width: 767px) {
	.news-article__container,
	.news-article__cover-container,
	.news-article__main,
	.news-article__navigation-inner,
	.news-related__container {
		width: min(1240px, calc(100% - 28px));
	}

	.news-article__hero {
		padding: 42px 0 78px;
	}

	.news-article__breadcrumbs {
		margin-bottom: 38px;
		font-size: 10px;
	}

	.news-article__heading {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.news-article__meta {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		padding: 0;
	}

	.news-article__category {
		margin: 0;
	}

	.news-article__date {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
	}

	.news-article__date strong {
		font-size: 36px;
	}

	.news-article__date span {
		margin: 0;
	}

	.news-article__title {
		font-size: clamp(33px, 10vw, 48px);
		line-height: 1.08;
	}

	.news-article__excerpt {
		margin-top: 22px;
		font-size: 17px;
	}

	.news-article__cover-container {
		margin-top: -34px;
	}

	.news-article__cover {
		height: 72vw;
		min-height: 300px;
		border-radius: 16px;
	}

	.news-article__main {
		display: flex;
		flex-direction: column-reverse;
		gap: 45px;
		padding: 60px 0 75px;
	}

	.news-article__aside {
		position: static;
		padding-top: 30px;
		border-top: 1px solid var(--news-line);
	}

	.news-article__content {
		font-size: 17px;
		line-height: 1.75;
	}

	.news-article__content p:first-of-type {
		font-size: 19px;
	}

	.news-article__content blockquote {
		margin: 38px 0;
		padding: 25px;
		font-size: 20px;
	}

	.news-article__navigation-inner {
		display: block;
	}

	.news-article__navigation-empty {
		display: none;
	}

	.news-article__navigation-link {
		min-height: 135px;
		padding: 28px 6px;
	}

	.news-article__navigation-link:nth-child(2) {
		border-top: 1px solid var(--news-line);
		border-left: 0;
	}

	.news-article__navigation-link--next {
		text-align: left;
	}

	.news-related {
		padding: 75px 0 90px;
	}

	.news-related__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.news-related__grid {
		grid-template-columns: 1fr;
	}

	.news-related__card:last-child {
		display: block;
	}
}
