/* Страница статьи (шаблон «Валаам и Кижи» v5) */

.st-article {
	--art-pine: #06652e;
	--art-pine-dark: #064923;
	--art-leaf: #bfe66c;
	--art-lime: #e7f99c;
	--art-blue: #eaf3f6;
	--art-mist: #f3f7f3;
	--art-ink: #15241b;
	--art-muted: #68756c;
	--art-line: #dce4dd;
	--art-radius: 24px;
	--art-control: 15px;
	--art-shadow: 0 22px 60px rgba(10, 50, 31, 0.13);
	--art-shadow-soft: 0 12px 34px rgba(10, 50, 31, 0.09);
	--art-shell: min(1340px, calc(100vw - 64px));
	/* Текст идёт во всю ширину контейнера — как в утверждённой версии макета */
	--art-width: var(--art-shell);

	color: var(--art-ink);
	background: #fff;
	/* Шапка темы — position: fixed, отступ тот же, что у .page_content на остальных страницах */
	padding-top: 70px;
}

@media (min-width: 1200px) {
	.st-article {
		padding-top: 200px;
	}
}

.st-article img {
	display: block;
	max-width: 100%;
}

.st-article .st-article-width {
	width: var(--art-width);
	margin-inline: auto;
}

/* Хлебные крошки */

.st-article .st-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	padding-top: 32px;
	color: #7a867f;
	font-size: 12px;
}

.st-article .st-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.st-article .st-breadcrumbs a:hover {
	color: var(--art-pine);
}

.st-article .st-breadcrumbs i {
	width: 4px;
	height: 4px;
	flex: none;
	border-radius: 50%;
	background: #b5c0b8;
}

/* Шапка статьи */

.st-article .st-article-hero {
	padding: 42px 0 34px;
}

.st-article .st-article-hero h1 {
	max-width: none;
	margin: 0;
	color: var(--art-ink);
	font-size: clamp(54px, 6vw, 82px);
	font-weight: 760;
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.st-article .st-article-lead {
	max-width: none;
	margin: 28px 0 0;
	color: #415148;
	font-size: 21px;
	line-height: 1.55;
}

/* Плашки — тот же текст и дизайн, что на карточке статьи в блоге */
.st-article .st-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: 28px;
}

.st-article .st-article-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 31px;
	padding: 0 10px;
	border: 1px solid #d5e8d9;
	border-radius: 12px;
	background: #edf6ee;
	color: #0d6d34;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.15;
}

.st-article .st-article-meta .blog-fact--clock {
	border-color: #dfe9e1;
	background: #f5f8f5;
	color: #526359;
}

.st-article .st-article-meta svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Фотографии: одиночная и галерея с листанием */

.st-article figure {
	margin: 0;
}

.st-article .st-figure img {
	width: 100%;
	border-radius: var(--art-radius);
	box-shadow: var(--art-shadow-soft);
	object-fit: cover;
}

.st-article .st-hero-figure img {
	height: min(60vw, 570px);
}

.st-article .st-body-figure {
	margin-top: 40px;
}

.st-article .st-body-figure img {
	height: min(55vw, 520px);
}

.st-article figcaption {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 11px;
	color: #7b887f;
	font-size: 11px;
	line-height: 1.45;
}

.st-article figcaption span {
	white-space: normal;
}

.st-article .st-gallery {
	position: relative;
	border-radius: var(--art-radius);
	box-shadow: var(--art-shadow-soft);
}

/* Скругление и тень держит контейнер, иначе они дублируются на каждом слайде */
.st-article .st-gallery .swiper {
	border-radius: inherit;
}

.st-article .st-gallery img {
	border-radius: 0;
	box-shadow: none;
}

.st-article .st-gallery-controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	padding: 0 16px;
	transform: translateY(-50%);
	pointer-events: none;
}

.st-article .st-gallery-btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--art-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--art-pine);
	font-size: 19px;
	cursor: pointer;
	pointer-events: auto;
	backdrop-filter: blur(6px);
	transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}

.st-article .st-gallery-btn:hover:not(:disabled) {
	border-color: var(--art-pine);
	background: var(--art-pine);
	color: #fff;
}

.st-article .st-gallery-btn:disabled {
	opacity: 0.32;
	cursor: default;
}

.st-article .st-gallery-counter {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
	padding: 0 11px;
	border-radius: 999px;
	background: rgba(5, 57, 34, 0.76);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	backdrop-filter: blur(8px);
}

/* Тело статьи */

.st-article .st-article-body {
	padding: 36px 0 96px;
}

.st-article .st-prose {
	font-size: 18px;
	line-height: 1.72;
}

.st-article .st-prose p {
	margin: 0 0 24px;
}

.st-article .st-prose p:last-child {
	margin-bottom: 0;
}

.st-article .st-prose a {
	color: var(--art-pine);
	text-decoration: underline;
}

.st-article .st-prose ul,
.st-article .st-prose ol {
	margin: 0 0 24px;
	padding-left: 22px;
}

.st-article .st-prose ul {
	list-style: disc;
}

.st-article .st-prose ol {
	list-style: decimal;
}

.st-article .st-prose li {
	margin-bottom: 8px;
}

/* Фотографии в тексте старых статей: редактор зашивал ширину инлайновым
   стилем, поэтому перебиваем его и тянем на всю ширину колонки. */
.st-article .st-prose figure {
	/* .aligncenter/.is-resized из редактора делают figure display:table,
	   из-за чего она ужимается под картинку вместо ширины колонки */
	display: block;
	width: 100%;
	margin: 40px 0;
}

.st-article .st-prose figure img,
.st-article .st-prose > img {
	width: 100% !important;
	/* Высота как у блока «Фотографии» в шаблоне, иначе вертикальные кадры
	   растягивают страницу на всю высоту экрана. */
	height: min(55vw, 520px);
	border-radius: var(--art-radius);
	box-shadow: var(--art-shadow-soft);
	object-fit: cover;
}

.st-article .st-prose figcaption {
	margin-top: 11px;
	color: #7b887f;
	font-size: 11px;
	line-height: 1.45;
}

/* Текст на цветной подложке */

.st-article .st-text-block {
	margin-top: 32px;
	padding: 28px 30px;
	border-radius: 22px;
}

.st-article .st-text-block--blue {
	border: 1px solid rgba(6, 101, 46, 0.12);
	background: var(--art-blue);
}

.st-article .st-text-block--blue,
.st-article .st-text-block--blue .st-prose,
.st-article .st-text-block--blue .st-prose * {
	color: #000;
}

.st-article .st-text-block--green {
	background: var(--art-pine-dark);
	box-shadow: var(--art-shadow);
}

.st-article .st-text-block--green,
.st-article .st-text-block--green .st-prose,
.st-article .st-text-block--green .st-prose * {
	color: #fff;
}

.st-article .st-text-block .st-prose h2,
.st-article .st-text-block .st-prose h3 {
	margin: 0 0 14px;
}

/* Заголовки, цитаты и выравнивание внутри текстового блока —
   их расставляет редактор прямо в тексте. */

.st-article .st-prose h2 {
	max-width: none;
	margin: 78px 0 30px;
	color: var(--art-ink);
	font-size: clamp(38px, 4.5vw, 58px);
	font-weight: 740;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.st-article .st-prose h3 {
	margin: 38px 0 13px;
	color: var(--art-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.022em;
}

/* Отступ сверху обнуляем только там, где он лишний: внутри цветной подложки
   и у самого первого блока статьи. В остальных случаях заголовок и цитата
   сохраняют собственный отступ, иначе блоки слипаются. */
.st-article .st-text-block .st-prose > :first-child,
.st-article .st-article-body > .st-prose:first-child > :first-child {
	margin-top: 0;
}

.st-article .st-prose blockquote {
	display: grid;
	grid-template-columns: 6px 1fr;
	gap: 24px;
	margin: 46px 0;
	padding: 0;
	border: 0;
}

.st-article .st-prose blockquote:before {
	content: "";
	border-radius: 9px;
	background: var(--art-pine-dark);
}

.st-article .st-prose blockquote p {
	margin: 0 0 12px;
	font-size: 27px;
	font-weight: 600;
	line-height: 1.38;
	letter-spacing: -0.025em;
}

.st-article .st-prose blockquote p:last-child {
	margin-bottom: 0;
}

/* Текст на зелёной подложке: полоса цитаты должна остаться видимой */
.st-article .st-text-block--green .st-prose blockquote:before {
	background: var(--art-leaf);
}

.st-article .st-prose .has-text-align-center {
	text-align: center;
}

.st-article .st-prose .has-text-align-left {
	text-align: left;
}

.st-article .st-section {
	margin-top: 78px;
	scroll-margin-top: 24px;
}

.st-article .st-section-heading {
	margin-bottom: 30px;
}

.st-article .st-section-heading h2 {
	max-width: none;
	margin: 0;
	color: var(--art-ink);
	font-size: clamp(38px, 4.5vw, 58px);
	font-weight: 740;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.st-article .st-section-intro {
	max-width: none;
	margin: 18px 0 0;
	color: #506057;
	font-size: 18px;
	line-height: 1.65;
}

.st-article .st-subsection {
	margin-top: 38px;
}

.st-article .st-subsection h3 {
	margin: 0 0 13px;
	color: var(--art-ink);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.022em;
}

.st-article .st-subsection p {
	margin: 0 0 16px;
	color: #34463c;
	font-size: 17px;
	line-height: 1.7;
}

.st-article .st-subsection p:last-child {
	margin-bottom: 0;
}

/* Выноска */

.st-article .st-callout {
	margin-top: 32px;
	padding: 28px 30px;
	border: 1px solid rgba(6, 101, 46, 0.12);
	border-radius: 22px;
	background: var(--art-blue);
}

.st-article .st-callout-title {
	margin: 0 0 14px;
	color: var(--art-pine-dark);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.st-article .st-callout-copy {
	color: #32453a;
	font-size: 16px;
	line-height: 1.72;
}

.st-article .st-callout-copy p {
	margin: 0 0 13px;
}

.st-article .st-callout-copy p:last-child {
	margin-bottom: 0;
}

.st-article .st-callout-copy strong {
	color: #193925;
	font-weight: 650;
}

/* Крупная выноска по центру */
.st-article .st-callout--highlight {
	padding: 40px 46px;
	text-align: center;
}

.st-article .st-callout--highlight .st-callout-title {
	margin-bottom: 18px;
	font-size: 27px;
	line-height: 1.22;
}

.st-article .st-callout--highlight .st-callout-copy {
	max-width: 760px;
	margin-inline: auto;
	font-size: 19px;
	line-height: 1.65;
}

.st-article .st-callout--highlight .st-callout-copy p {
	margin-bottom: 16px;
}

/* Цитата */

.st-article .st-pullquote {
	display: grid;
	grid-template-columns: 6px 1fr;
	gap: 24px;
	margin: 46px 0;
	border: 0;
}

.st-article .st-pullquote:before {
	content: "";
	border-radius: 9px;
	background: var(--art-pine-dark);
}

.st-article .st-pullquote p {
	margin: 0;
	font-size: 27px;
	font-weight: 600;
	line-height: 1.38;
	letter-spacing: -0.025em;
}

/* Призыв */

.st-article .st-cta {
	margin-top: 54px;
	padding: 34px;
	border-radius: var(--art-radius);
	background: var(--art-pine-dark);
	color: #fff;
	box-shadow: var(--art-shadow);
}

.st-article .st-cta h3 {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.st-article .st-cta p {
	max-width: 570px;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.55;
}

.st-article .st-cta .st-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 22px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--art-control);
	background: var(--art-leaf);
	color: var(--art-pine-dark);
	font-size: 13px;
	font-weight: 780;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.st-article .st-cta .st-button:hover {
	background: var(--art-lime);
	transform: translateY(-1px);
}

/* «Читайте также» — та же лента, что и на главной */

.st-article-related.blog-section {
	padding: 68px 0 78px;
}

@media (max-width: 980px) {
	.st-article {
		--art-shell: calc(100vw - 36px);
	}
}

@media (max-width: 680px) {
	.st-article {
		--art-shell: calc(100vw - 28px);
		--art-radius: 20px;
		--art-control: 14px;
	}

	.st-article .st-breadcrumbs {
		padding-top: 18px;
		font-size: 10px;
		white-space: nowrap;
		overflow: hidden;
	}

	.st-article .st-breadcrumbs span {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.st-article .st-article-hero {
		padding: 29px 0 24px;
	}

	.st-article .st-article-hero h1 {
		font-size: clamp(40px, 12.4vw, 55px);
		line-height: 1.01;
	}

	.st-article .st-article-lead {
		margin-top: 20px;
		font-size: 16px;
		line-height: 1.55;
	}

	.st-article .st-article-meta {
		gap: 6px;
		margin-top: 20px;
	}

	.st-article .st-article-meta span {
		min-height: 29px;
		padding: 0 9px;
		font-size: 9px;
	}

	.st-article .st-hero-figure img,
	.st-article .st-body-figure img,
	.st-article .st-prose figure img,
	.st-article .st-prose > img {
		height: 72vw;
		max-height: 420px;
	}

	.st-article figcaption {
		font-size: 9px;
	}

	.st-article .st-gallery-controls {
		padding: 0 10px;
	}

	.st-article .st-gallery-btn {
		width: 40px;
		height: 40px;
		font-size: 17px;
	}

	.st-article .st-article-body {
		padding: 22px 0 62px;
	}

	.st-article .st-prose {
		font-size: 16px;
		line-height: 1.68;
	}

	.st-article .st-prose p {
		margin-bottom: 20px;
	}

	.st-article .st-section {
		margin-top: 56px;
	}

	.st-article .st-section-heading {
		margin-bottom: 23px;
	}

	.st-article .st-section-heading h2 {
		font-size: 38px;
	}

	.st-article .st-section-intro {
		margin-top: 14px;
		font-size: 16px;
		line-height: 1.58;
	}

	.st-article .st-subsection {
		margin-top: 30px;
	}

	.st-article .st-subsection h3 {
		font-size: 21px;
	}

	.st-article .st-subsection p {
		font-size: 15px;
		line-height: 1.65;
	}

	.st-article .st-text-block {
		margin-top: 25px;
		padding: 20px;
		border-radius: 20px;
	}

	.st-article .st-prose figure {
		margin: 30px 0;
	}

	.st-article .st-callout {
		margin-top: 25px;
		padding: 20px;
		border-radius: 20px;
	}

	.st-article .st-callout-title {
		margin-bottom: 12px;
		font-size: 20px;
	}

	.st-article .st-callout-copy {
		font-size: 16px;
		line-height: 1.65;
	}

	.st-article .st-callout--highlight {
		padding: 28px 20px;
	}

	.st-article .st-callout--highlight .st-callout-title {
		margin-bottom: 14px;
		font-size: 23px;
		line-height: 1.24;
	}

	.st-article .st-callout--highlight .st-callout-copy {
		font-size: 17px;
		line-height: 1.6;
	}

	.st-article .st-prose h2 {
		margin: 56px 0 23px;
		font-size: 38px;
	}

	.st-article .st-prose h3 {
		margin: 30px 0 11px;
		font-size: 21px;
	}

	.st-article .st-prose blockquote {
		gap: 16px;
		margin: 34px 0;
	}

	.st-article .st-prose blockquote p {
		font-size: 22px;
	}

	.st-article .st-pullquote {
		gap: 16px;
		margin: 34px 0;
	}

	.st-article .st-pullquote p {
		font-size: 22px;
	}

	.st-article .st-body-figure {
		margin-top: 30px;
	}

	.st-article .st-cta {
		margin-top: 38px;
		padding: 23px;
	}

	.st-article .st-cta h3 {
		font-size: 25px;
	}

	.st-article .st-cta .st-button {
		width: 100%;
	}

	.st-article-related.blog-section {
		padding: 46px 0 54px;
	}
}
