/**
 * Страница одной статьи блога (page-blog-post.php).
 *
 * Прежде статьи открывались попапом Tilda поверх ленты и своих стилей не имели.
 * Здесь колонка текста ограничена по ширине — длинную строку тяжело читать,
 * — а разметка внутри статьи (заголовки, списки, картинки, цитаты) приведена
 * к виду остальных страниц сайта.
 */

.wsn-blog-post-page { background: #fff; }

.wsn-post__wrap {
	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto;
	padding: 40px 20px 70px;
	font-family: 'Montserrat', Arial, sans-serif;
	color: #222937;
}

/* ---------- шапка статьи ---------- */

.wsn-post__crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	font-size: 13px;
	color: #8c8c8c;
}

.wsn-post__crumbs a { color: #1084d1; text-decoration: none; }
.wsn-post__crumbs a:hover { text-decoration: underline; }

.wsn-post__title {
	margin: 0;
	font-size: 38px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.5px;
}

.wsn-post__lead {
	margin: 16px 0 0;
	font-size: 18px;
	line-height: 1.5;
	color: #555c68;
}

.wsn-post__date {
	margin-top: 14px;
	font-size: 13px;
	color: #8c8c8c;
}

/* ---------- текст статьи ----------
   Разметка пришла из редактора Tilda: абзацы, заголовки, списки и figure с
   картинками. Своих классов у неё нет, поэтому правим по тегам внутри тела. */

.wsn-post__body {
	margin-top: 30px;
	font-size: 16px;
	line-height: 1.65;
}

.wsn-post__body > *:first-child { margin-top: 0; }

.wsn-post__body p { margin: 0 0 18px; }

.wsn-post__body h2,
.wsn-post__body h3,
.wsn-post__body h4 {
	margin: 34px 0 14px;
	font-weight: 600;
	line-height: 1.25;
}

.wsn-post__body h2 { font-size: 26px; }
.wsn-post__body h3 { font-size: 21px; }
.wsn-post__body h4 { font-size: 18px; }

.wsn-post__body ul,
.wsn-post__body ol { margin: 0 0 18px; padding-left: 22px; }
.wsn-post__body li { margin-bottom: 8px; }

.wsn-post__body a { color: #1084d1; }

.wsn-post__body strong,
.wsn-post__body b { font-weight: 600; }

/* картинки: во всю ширину колонки, со скруглением, подпись под ними */
.wsn-post__body figure { margin: 26px 0; }

.wsn-post__body img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.wsn-post__body figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: #8c8c8c;
	text-align: center;
}

.wsn-post__body blockquote {
	margin: 26px 0;
	padding: 16px 20px;
	border-left: 3px solid #1084d1;
	background: #f4f7fa;
	font-size: 16px;
}

/* видео из статьи вписываем в колонку */
.wsn-post__body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ---------- низ статьи ---------- */

.wsn-post__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e8ebf0;
}

.wsn-post__back { color: #1084d1; font-size: 15px; text-decoration: none; }
.wsn-post__back:hover { text-decoration: underline; }

.wsn-post__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 44px;
	padding: 0 30px;
	border-radius: 100px;
	background: #3d93ff;
	color: #fff !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s ease-in-out;
}

.wsn-post__btn:hover { background: #1084d1; }

@media (max-width: 600px) {
	.wsn-post__wrap { padding: 26px 16px 50px; }
	.wsn-post__title { font-size: 26px; }
	.wsn-post__lead { font-size: 16px; }
	.wsn-post__body { font-size: 15px; }
	.wsn-post__body h2 { font-size: 22px; }
	.wsn-post__body h3 { font-size: 18px; }

	/* кнопка и ссылка в столбик — в строку на узком экране они не помещаются */
	.wsn-post__foot { flex-direction: column; align-items: stretch; text-align: center; }
}
