/* ============================================================
   Single News post — Figma «новости» (node 505:878)
   ============================================================ */

.news-single-main {
	/* top offset comes from the global fixed-header rule in main.css */
	padding-bottom: clamp(3rem, 6vw, 5rem);
	background: var(--color-bg, #f5faff);
}

.news-single {
	display: block;
}

/* --- Top meta row: category + date ------------------------ */
.news-single__topmeta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.news-cat-badge {
	display: inline-flex;
	align-items: center;
	background: rgba(0, 184, 219, 0.12);
	color: var(--color-accent-dark, #155dfc);
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 6px 16px;
	border-radius: 20px;
	transition: background .25s ease, color .25s ease;
}
.news-cat-badge:hover {
	background: var(--color-accent-dark, #155dfc);
	color: #fff;
}

.news-single__date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-text-muted, #6b7a99);
	font-size: 1rem;
}
.news-single__date svg { flex-shrink: 0; }

/* --- Title ------------------------------------------------ */
.news-single__title {
	font-family: 'Golos Text', var(--font-base, sans-serif);
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.18;
	color: var(--color-primary, #001a56);
	margin: 0 0 28px;
	max-width: 1100px;
}

/* --- Cover ------------------------------------------------ */
.news-single__cover {
	margin: 0 0 32px;
	border-radius: 40px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 26, 86, 0.12);
	aspect-ratio: 1276 / 546;
}
.news-single__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* --- Body: content card + gallery ------------------------- */
.news-single__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 526px);
	gap: 32px;
	align-items: start;
}
.news-single__body--full {
	grid-template-columns: minmax(0, 1fr);
}
.news-single__body--full .news-single__content {
	max-width: 860px;
}

/* Content card */
.news-single__content {
	background: #fff;
	border-radius: 32px;
	padding: clamp(24px, 3vw, 40px);
	box-shadow: var(--shadow-card, 0 4px 24px rgba(0, 26, 86, 0.08));
	line-height: 1.75;
	color: var(--color-text, #1a2340);
	font-size: 1rem;
}
.news-single__content > *:first-child { margin-top: 0; }
.news-single__content > *:last-child { margin-bottom: 0; }
.news-single__content p { margin: 0 0 1.25rem; }
.news-single__content h2,
.news-single__content h3,
.news-single__content h4 {
	font-family: 'Golos Text', var(--font-base, sans-serif);
	color: var(--color-primary, #001a56);
	line-height: 1.3;
	margin: 2rem 0 0.75rem;
}
.news-single__content a { color: var(--color-accent-dark, #155dfc); text-decoration: underline; }
.news-single__content ul,
.news-single__content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.news-single__content ul { list-style: disc; }
.news-single__content ol { list-style: decimal; }
.news-single__content img { border-radius: 16px; height: auto; }
.news-single__content blockquote {
	border-left: 4px solid var(--color-accent, #00b8db);
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	color: var(--color-text-muted, #6b7a99);
	font-style: italic;
}

/* --- Gallery (right column) ------------------------------- */
.news-single__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.news-gallery-item {
	display: block;
	aspect-ratio: 251 / 211;
	border-radius: 23px;
	overflow: hidden;
	background: #8a60c4;
	box-shadow: 0 4px 16px rgba(0, 26, 86, 0.08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.news-gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 26, 86, 0.16);
}
.news-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.news-gallery-item:hover img { transform: scale(1.05); }

/* --- Tags ------------------------------------------------- */
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 1.5rem;
}
.tag-link {
	background: rgba(0, 26, 86, 0.06);
	color: var(--color-primary, #001a56);
	font-size: 0.8125rem;
	padding: 4px 12px;
	border-radius: 20px;
	transition: background .25s ease;
}
.tag-link:hover { background: rgba(0, 26, 86, 0.12); }

/* --- Related news ----------------------------------------- */
.related-news {
	margin-top: clamp(3rem, 6vw, 5rem);
}
.related-news__title {
	font-family: 'Golos Text', var(--font-base, sans-serif);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	color: var(--color-primary, #001a56);
	margin-bottom: 1.75rem;
}
.related-news__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 410px));
	gap: 24px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.news-single__body {
		grid-template-columns: minmax(0, 1fr);
	}
	.news-single__gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.news-single__cover { border-radius: 24px; }
	.news-single__content { border-radius: 24px; }
	.related-news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.news-single__gallery { grid-template-columns: 1fr 1fr; }
}
