/**
 * Страница статьи блога — по макету.
 */

.sm-single-post-page {
	--sm-post-navy: #001f3f;
	--sm-post-accent: #4b7b9b;
	--sm-post-muted: #6b7280;
	--sm-post-bg: #fcfbfc;
	--sm-post-cat-bg: #e8f4fc;

	font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	background: var(--sm-post-bg);
	flex: 1;
	width: 100%;
	padding: 0.75rem 0 3rem;
}

@media (min-width: 768px) {
	.sm-single-post-page {
		padding: 1.25rem 0 3.5rem;
	}
}

body.sahalin-single-post {
	background-color: var(--sm-post-bg) !important;
}

.sm-single-post-page__shell {
	width: 100%;
	min-width: 0;
}

/* Крошки — те же классы и цвета, что на ленте блога (.sm-blog-page__breadcrumb) */
.sm-single-post-page__breadcrumb {
	margin-bottom: 1.25rem;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.sm-single-post-page__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem 2.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.sm-single-post-page__layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 2rem 2rem;
	}

	.sm-single-post-page__layout .sm-blog-sidebar {
		position: sticky;
		top: 1.25rem;
	}
}

/* Статья */
.sm-single-post {
	min-width: 0;
}

.sm-single-post__header {
	margin-bottom: 1.25rem;
}

.sm-single-post__topline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	margin-bottom: 0.5rem;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	font-size: 0.8125rem;
}

.sm-single-post__cat {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--sm-post-cat-bg);
	font-weight: 600;
	color: var(--sm-post-accent);
	line-height: 1.2;
}

.sm-single-post__date {
	color: var(--sm-post-muted);
	font-weight: 500;
}

.sm-single-post__title {
	margin: 0 0 0.75rem;
	font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--sm-post-navy);
}

.sm-single-post__lead {
	margin: 0 0 1rem;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.55;
	color: #4b5563;
}

.sm-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.25rem;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--sm-post-muted);
}

.sm-single-post__meta .sm-blog-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.sm-single-post__meta .sm-blog-card__meta-item svg {
	flex-shrink: 0;
	opacity: 0.85;
}

.sm-single-post__figure {
	margin: 0 0 1.75rem;
	overflow: hidden;
	border-radius: 0.625rem;
	background: #eef6fc;
}

.sm-single-post__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 28rem;
	object-fit: cover;
}

.sm-single-post__content {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
	color: #374151;
}

.sm-single-post__content > *:first-child {
	margin-top: 0;
}

.sm-single-post__content > *:last-child {
	margin-bottom: 0;
}

.sm-single-post__content p {
	margin: 0 0 1rem;
}

.sm-single-post__content h2 {
	margin: 1.75rem 0 0.85rem;
	font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--sm-post-navy);
}

.sm-single-post__content h2:first-child {
	margin-top: 0;
}

.sm-single-post__content h3 {
	margin: 1.25rem 0 0.5rem;
	font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--sm-post-navy);
}

.sm-single-post__content strong {
	font-weight: 700;
	color: #111827;
}

.sm-single-post__content ul {
	list-style: none;
	margin: 0 0 1.15rem;
	padding: 0;
}

.sm-single-post__content ul > li {
	position: relative;
	margin-bottom: 0.45rem;
	padding-left: 1.15rem;
}

.sm-single-post__content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #9ca3af;
}

.sm-single-post__content ol {
	list-style: none;
	counter-reset: sm-post-step;
	margin: 0 0 1.15rem;
	padding: 0;
}

.sm-single-post__content ol > li {
	position: relative;
	counter-increment: sm-post-step;
	margin-bottom: 0.5rem;
	padding-left: 1.75rem;
}

.sm-single-post__content ol > li::before {
	content: counter(sm-post-step);
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--sm-post-accent);
}

.sm-single-post__content a {
	color: #003459;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sm-single-post__content a:hover {
	color: #002a48;
}

.sm-single-post__content img {
	max-width: 100%;
	height: auto;
	margin: 1rem 0;
	border-radius: 0.625rem;
}

.sm-single-post__content blockquote {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--sm-post-accent);
	background: #f8fafb;
	font-size: 0.9375rem;
	color: #4b5563;
}

/* ——— Мобильная статья ——— */
@media (max-width: 767px) {
	.sm-single-post-page {
		padding-top: 0.5rem;
		padding-bottom: 2rem;
	}

	.sm-single-post-page__breadcrumb {
		margin-bottom: 0.75rem;
	}

	.sm-single-post-page__layout {
		gap: 1.5rem;
	}

	.sm-single-post__header {
		margin-bottom: 1rem;
	}

	.sm-single-post__title {
		font-size: 1.375rem;
		margin-bottom: 0.5rem;
	}

	.sm-single-post__content h2 {
		font-size: 1.125rem;
		margin-top: 1.25rem;
	}

	.sm-single-post__lead {
		font-size: 0.9375rem;
	}

	.sm-single-post__figure {
		margin-bottom: 1.25rem;
		border-radius: 0.5rem;
	}

	.sm-single-post__image {
		max-height: 14rem;
	}

	.sm-single-post__content h2 {
		font-size: 1.25rem;
	}

	.sm-single-post__content {
		font-size: 0.9375rem;
	}
}
