/* ==========================================================================
   news-post.css — страница одной новости /news/{слаг}/.

   ИСТОЧНИК: html_flat/starco_news_article_concept.html.

   Подключается вместе с album.css (см. шапку post.tpl): инлайновые
   галереи в тексте новости рисует gallery.tpl той же .photo-grid.

   ЧЕГО ЗДЕСЬ НЕТ И ПОЧЕМУ:

   .gallery-links / .gallery-link.stadium / .studio / .gallery-count —
   две большие плитки «163 фото / 121 фото» со ссылками во «ВКонтакте».
   Это содержимое ровно одной новости концепта: у s_blog нет ни поля под
   такие ссылки, ни счётчика. Менеджер верстает это в TinyMCE, поэтому
   правила под класс, которого никто не поставит, не переносим.

   .article-note — цитата с красной чертой слева. Тоже кусок текста, а
   значит место ему в TinyMCE; чтобы он не остался неоформленным,
   стилизован тег <blockquote> внутри .article-body.

   ПОСТРАНИЧНЫЕ РАСХОЖДЕНИЯ С base.css (migrate/page_css_diff.php):
   .breadcrumbs, .eyebrow, .eyebrow:before. Перекрыты ниже точечно, в
   пределах своих секций, а не глобально: страница грузится после
   base.css и глобальное переопределение задело бы крошки всей темы.
   Расхождение .eyebrow:before (border-radius 999px против 99px в base)
   не переносится — на полоске 34×3 обе величины дают одну и ту же форму.
   ========================================================================== */

/* Узкая колонка под длинный текст. Токен --reading живёт в base.css,
   а сам класс — только здесь: больше он нигде в теме не нужен. */
.reading { width: var(--reading); margin: 0 auto; }

/* ------------------------------------------------------- шапка новости -- */
.page-head {
	position: relative;
	overflow: hidden;
	padding: 145px 0 58px;
	color: #fff;
	background:
		radial-gradient(circle at 84% 18%, rgba(230, 192, 76, .11), transparent 18%),
		radial-gradient(circle at 13% 82%, rgba(217, 8, 18, .11), transparent 23%),
		linear-gradient(128deg, var(--navy2), var(--navy) 52%, #0a518f);
}
.page-head:before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(118deg, transparent 0 88px, rgba(255, 255, 255, .025) 89px 90px);
}

/* «Призрак» даты. В концепте это :after с content:"13.05"; здесь дата
   приходит из базы, поэтому она — обычный span из шаблона. */
.hero-ghost {
	position: absolute;
	right: 2%;
	bottom: -68px;
	font-size: clamp(150px, 18vw, 300px);
	font-weight: 950;
	line-height: 1;
	letter-spacing: -.08em;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 255, 255, .05);
	pointer-events: none;
	user-select: none;
}

/* z-index обязателен: без него штриховка :before накрывает крошки и
   ссылки в них перестают нажиматься. Отступ 27px — из концепта. */
.page-head .reading { position: relative; z-index: 2; }
.page-head .breadcrumbs { margin-bottom: 27px; }

.article-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.article-date {
	border-radius: 999px;
	background: var(--red);
	padding: 9px 13px;
	font-size: 11px;
	font-weight: 950;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.article-type {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #cce6ff;
}

.page-head h1 {
	margin: 0;
	max-width: 1220px;
	font-size: clamp(36px, 4.2vw, 60px);
	line-height: .94;
	letter-spacing: -.055em;
	font-weight: 950;
	text-transform: uppercase;
	text-wrap: balance;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.article-lead {
	margin: 22px 0 0;
	max-width: 800px;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .7);
}

/* -------------------------------------------------------------- статья -- */
.article-main {
	padding: 52px 0 105px;
	background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.cover {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 30px;
	box-shadow: var(--shadow);
	background: #0b457d;
}
.cover img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 2.15;
	object-fit: cover;
}
.cover-caption {
	position: absolute;
	left: 20px;
	bottom: 20px;
	border-radius: 999px;
	background: rgba(4, 29, 61, .88);
	backdrop-filter: blur(8px);
	color: #fff;
	padding: 10px 14px;
	font-size: 11px;
	font-weight: 900;
}

.article-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 70px;
	align-items: start;
	margin-top: 58px;
}

/* min-width:0 обязателен: без него длинная строка кода или широкая
   таблица из TinyMCE распирает колонку и ломает сетку. */
.article-body { min-width: 0; }

/* Ниже — оформление содержимого TinyMCE. Селекторы по тегам, а не по
   классам: разметку внутри текста делает менеджер, классов он не ставит. */
.article-body p {
	margin: 0 0 24px;
	font-size: 19px;
	line-height: 1.82;
	color: #45576b;
}
.article-body > p:first-child {
	font-size: 24px;
	line-height: 1.55;
	letter-spacing: -.02em;
	font-weight: 800;
	color: var(--navy);
}
.article-body h2 {
	margin: 58px 0 24px;
	font-size: clamp(34px, 4vw, 54px);
	line-height: .98;
	letter-spacing: -.045em;
	text-transform: uppercase;
	text-wrap: balance;
	word-break: normal;
	hyphens: none;
}
.article-body h3 {
	margin: 40px 0 16px;
	font-size: 26px;
	line-height: 1.1;
	letter-spacing: -.03em;
	text-wrap: balance;
}
.article-body a { color: var(--blue2); text-decoration: underline; }
.article-body ul, .article-body ol {
	margin: 0 0 24px;
	padding-left: 22px;
	font-size: 19px;
	line-height: 1.82;
	color: #45576b;
}
.article-body li { margin-bottom: 8px; }
.article-body img { height: auto; border-radius: 18px; }
.article-body blockquote {
	margin: 30px 0;
	border-left: 4px solid var(--red);
	padding: 4px 0 4px 21px;
	color: #536176;
	font-size: 15px;
	line-height: 1.65;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 0;
	color: var(--blue);
	font-size: 13px;
	font-weight: 900;
}
.back-link:hover { color: var(--red); }

/* ------------------------------------------------------------- сайдбар -- */
.sidebar { position: sticky; top: 105px; }

.info-card {
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 25px;
	background: #fff;
	margin-bottom: 14px;
}
.info-card.dark { background: var(--navy); border-color: var(--navy); color: #fff; }

.info-label {
	margin-bottom: 14px;
	font-size: 10px;
	font-weight: 950;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--muted);
}
.dark .info-label { color: #b7dcff; }

.info-row {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	padding: 13px 0;
	border-top: 1px solid var(--line);
	font-size: 13px;
}
.dark .info-row { border-color: rgba(255, 255, 255, .12); }
.info-row:first-of-type { border-top: 0; }
.info-row span { color: var(--muted); }
.dark .info-row span { color: rgba(255, 255, 255, .58); }
.info-row b { text-align: right; }

/* Ссылка на соседнюю новость: та же строка, что .info-row, но заголовок
   переносится, поэтому колонкой. */
.info-link {
	display: block;
	padding: 13px 0;
	border-top: 1px solid var(--line);
	font-size: 13px;
}
.info-link:first-of-type { border-top: 0; }
.info-link span { display: block; margin-bottom: 4px; color: var(--muted); }
.info-link b { font-weight: 800; line-height: 1.3; }
.info-link:hover b { color: var(--blue); }

/* ------------------------------------------------------- читайте также -- */
.related { padding: 96px 0; background: var(--navy2); color: #fff; }

/* Расхождение с base.css: там .eyebrow синий, для тёмной полосы нужен
   светлый. Перекрыто только внутри .related. */
.related .eyebrow { color: #cce6ff; }

.related-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 30px;
	margin-bottom: 36px;
}
.related-title {
	margin: 13px 0 0;
	font-size: clamp(38px, 4.8vw, 66px);
	line-height: .94;
	letter-spacing: -.055em;
	text-transform: uppercase;
	text-wrap: balance;
}

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.related-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 350px;
	overflow: hidden;
	border-radius: 24px;
	background: #0c3255;
	isolation: isolate;
	transition: .3s;
}
.related-card:hover { transform: translateY(-5px); }

.related-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .45s;
	z-index: -2;
}
.related-card:hover .related-image { transform: scale(1.035); }

.related-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 32%, rgba(4, 29, 61, .95));
	z-index: -1;
}

.related-body { padding: 23px; }
.related-date {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: #cce6ff;
}
.related-body h3 {
	margin: 9px 0 0;
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
	word-break: normal;
	hyphens: none;
}

/* --------------------------------------------------------- брейкпоинты -- */
@media (max-width: 1180px) {
	.article-grid { grid-template-columns: 1fr; }
	.sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
	.info-card { margin-bottom: 0; }
}

@media (max-width: 820px) {
	.page-head { padding: 135px 0 56px; }
	.page-head h1 { font-size: 54px; }
	.article-main { padding-top: 35px; }
	.cover { border-radius: 22px; }
	.article-grid { margin-top: 42px; gap: 42px; }
	.related { padding: 70px 0; }
	.related-grid { grid-template-columns: 1fr; }
	.related-card { min-height: 320px; }
}

@media (max-width: 560px) {
	/* base.css на 560px сужает только --container; --reading остаётся с
	   полями по 24px, а концепт здесь ужимает обе колонки одинаково. */
	:root { --reading: calc(100vw - 24px); }

	.page-head { padding: 124px 0 48px; }
	.page-head h1 { font-size: 42px; }
	.article-lead { font-size: 16px; }
	.cover img { aspect-ratio: 1.15; }
	.article-body > p:first-child { font-size: 21px; }
	.article-body p, .article-body ul, .article-body ol { font-size: 17px; }
	.sidebar { grid-template-columns: 1fr; }
	.related-head { flex-direction: column; align-items: start; }
}
