@charset "utf-8";
/*
 * Стили страницы статьи блога (templates/article.php).
 * Сознательно НЕ в bundle-core.min.css — по тому же принципу, что и
 * price.css: подключается только там, где реально используется
 * (см. tools/build_css.php). Не путать со старым css/article.css —
 * тот использует IE-эры вёрстку и переопределяет глобальные h2/h3/section p,
 * поэтому подключать его вместе с этим файлом нельзя (конфликт каскада).
 */

/* ---------- Hero ---------- */
.article-hero { position: relative; overflow: hidden; }
.article-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%);
	pointer-events: none;
}
.article-hero .mainpictext { z-index: 2; }
.article-hero .art-back {
	display: inline-block;
	margin-top: 8px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	opacity: .85;
}
.article-hero .art-back:hover { text-decoration: underline; opacity: 1; }
@media screen and (max-width: 899px) {
	.article-hero { background-attachment: scroll !important; }
}

/* ---------- Intro / outro ---------- */
.art-prose {
	width: 90%;
	max-width: 720px;
	margin: 48px auto;
}
.art-prose p:first-child {
	font-family: 'PT Serif Caption', serif;
	font-size: 20px;
	color: #4B1E00;
	line-height: 1.5;
}
.art-prose p {
	color: #917552;
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 16px;
}
.art-outro { text-align: center; }
.art-outro h2 {
	font-family: 'PT Serif Caption', serif;
	color: #4B1E00;
	font-size: 26px;
	margin: 0 0 16px;
}

/* ---------- Item cards ---------- */
.art-items { width: 100%; padding: 0 0 24px; }
.art-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0 auto 56px;
	width: 92%;
	max-width: 1100px;
}
@media screen and (min-width: 900px) {
	.art-item {
		grid-template-columns: 1.15fr 1fr;
		gap: 48px;
		align-items: center;
	}
	.art-item.is-even .art-item__media { order: 2; }
}

.art-item__media { position: relative; }
.art-item__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: var(--art-pos, 50% 50%);
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
	display: block;
}

.art-ph {
	aspect-ratio: 4 / 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background:
		repeating-linear-gradient(45deg,
			rgba(75,30,0,.05) 0 12px,
			rgba(151,126,72,.07) 12px 24px);
	border: 1px dashed rgba(75,30,0,.3);
	color: #4B1E00;
}
.art-ph svg { width: 40px; height: 40px; stroke: #4B1E00; fill: none; opacity: .55; }
.art-ph span {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .75;
}

.art-item__num {
	font-family: 'PT Serif Caption', serif;
	font-size: 42px;
	line-height: 1;
	color: #4B1E00;
	opacity: .22;
	margin: 0 0 4px;
}
.art-item__body h2 {
	font-family: 'PT Serif Caption', serif;
	font-size: 25px;
	color: #4B1E00;
	margin: 0 0 12px;
	background: none;
	padding: 0;
	text-align: left;
}
.art-item__body p {
	color: #917552;
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 12px;
}
.art-item__facts {
	border-top: 1px solid rgba(75,30,0,.15);
	margin-top: 14px;
	padding-top: 10px;
	font-size: 14px;
	color: #917552;
}
.art-item__facts div { display: flex; gap: 10px; padding: 4px 0; }
.art-item__facts b { color: #4B1E00; font-weight: 600; min-width: 120px; flex-shrink: 0; }

@media screen and (max-width: 500px) {
	.art-prose p:first-child { font-size: 18px; }
	.art-item__body h2 { font-size: 21px; }
	.art-item__num { font-size: 34px; }
}

/* ---------- Листинг блога (templates/blog.php) ---------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.blog-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.18); transform: translateY(-2px); }
.blog-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__media .art-ph { aspect-ratio: auto; height: 100%; border: none; }
.blog-card__body { padding: 18px 20px 22px; }
.blog-card__body h3 {
	font-family: 'PT Serif Caption', serif;
	color: #4B1E00;
	font-size: 20px;
	margin: 0 0 8px;
	background: none;
	padding: 0;
	text-align: left;
}
.blog-card__body p { color: #917552; font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.blog-card__more { color: #4B1E00; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
