/* =========================================================
   БЛОГ (/journal/) — стили подключаются только на страницах
   блога (см. флаг SPT_BLOG_PAGE в header.php), чтобы не грузить
   лишний CSS на остальном сайте.
   Цвета, шрифты и переменные повторяют styles.css основного сайта:
   текст #333333, акцент #9A7B5C, тёмная кнопка #2C2A28, фон #f6f6f6.
   ========================================================= */

.b-journal {
	margin: 50px;
}

.b-journal__title {
	margin-bottom: 20px;
}

.b-journal__intro {
	max-width: 640px;
	color: #666666;
	margin-bottom: 30px;
}

.b-journal__intro p {
	margin: 0;
}

/* --- фильтр-чипы категорий --- */
.b-journal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.b-journal__chip {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid #666666;
	border-radius: 30px;
	font-size: 14px;
	color: #2C2A28;
	transition: 0.3s;
	white-space: nowrap;
}

.b-journal__chip:hover {
	border-color: #9A7B5C;
	color: #9A7B5C;
}

.b-journal__chip_active {
	background: #2C2A28;
	border-color: #2C2A28;
	color: #ffffff;
}

.b-journal__chip_active:hover {
	color: #ffffff;
	border-color: #2C2A28;
}

/* --- сетка карточек --- */
.b-journal__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 4%;
}

.b-journal__card {
	display: flex;
	flex-direction: column;
	color: #333333;
}

.b-journal__card-visual {
	position: relative;
	height: 220px;
	background: #e9e6e1;
	overflow: hidden;
	margin-bottom: 16px;
}

.b-journal__card-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s;
}

.b-journal__card:hover .b-journal__card-visual img {
	transform: scale(1.05);
}

.b-journal__card-visual_empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.b-journal__placeholder-letter {
	font-family: "Noto Serif Display", serif;
	font-size: 60px;
	color: #c9c2b8;
}

.b-journal__card_featured .b-journal__card-visual {
	height: 260px;
}

.b-journal__card-cat {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9A7B5C;
	margin-bottom: 8px;
}

.b-journal__card-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.b-journal__card-text {
	color: #666666;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 12px;
}

.b-journal__card-meta {
	font-size: 13px;
	color: #999999;
	display: flex;
	gap: 6px;
	margin-top: auto;
}

.b-journal__empty {
	color: #666666;
}

.b-journal__more-place {
	text-align: center;
	margin-top: 50px;
}

/* --- детальная страница статьи --- */
.b-journal__breadcrumbs {
	font-size: 13px;
	color: #999999;
	margin-bottom: 24px;
}

.b-journal__breadcrumbs a {
	color: #999999;
}

.b-journal__breadcrumbs a:hover {
	color: #9A7B5C;
}

.b-journal_detail .b-journal__title {
	max-width: 780px;
}

.b-journal__meta {
	display: flex;
	gap: 8px;
	color: #999999;
	font-size: 14px;
	margin: 16px 0 30px;
}

.b-journal__cover {
	margin-bottom: 30px;
}

.b-journal__cover img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.b-journal__content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.7;
}

.b-journal__content h2 {
	font-size: 28px;
	margin: 40px 0 16px;
}

.b-journal__content h3 {
	font-size: 22px;
	margin: 30px 0 14px;
}

.b-journal__content p {
	margin: 0 0 18px;
}

.b-journal__content ul,
.b-journal__content ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.b-journal__content li {
	margin-bottom: 8px;
}

.b-journal__content img {
	max-width: 100%;
	height: auto;
}

/* --- теги --- */
.b-journal__tags {
	max-width: 760px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 30px;
}

.b-journal__tag {
	font-size: 13px;
	color: #9A7B5C;
	background: #f2ede6;
	padding: 5px 12px;
	border-radius: 20px;
}

/* --- CTA в конце статьи --- */
.b-journal__cta {
	max-width: 760px;
	margin: 10px 0 30px;
}

/* --- шеринг --- */
.b-journal__share {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 50px;
}

.b-journal__share-label {
	font-size: 14px;
	color: #666666;
}

.b-journal__share a {
	width: 26px;
	height: 26px;
	display: inline-block;
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.55;
	transition: 0.3s;
}

.b-journal__share a:hover {
	opacity: 1;
}

/* --- связанное портфолио / похожие статьи --- */
.b-journal__related-portfolio,
.b-journal__related {
	margin: 60px 0;
}

.b-journal__related-portfolio h2,
.b-journal__related h2 {
	margin-bottom: 30px;
}

.b-journal__cat-detail-text {
	max-width: 760px;
	margin-top: 50px;
	color: #666666;
	line-height: 1.7;
}

/* --- адаптив --- */
@media screen and (max-width: 992px) {
	.b-journal {
		margin: 30px 20px;
	}

	.b-journal__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px 4%;
	}
}

@media screen and (max-width: 576px) {
	.b-journal__grid {
		grid-template-columns: 1fr;
	}

	.b-journal__card-visual {
		height: 260px;
	}

	.b-journal__content {
		font-size: 16px;
	}
}
