@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; }
}

/* ---------- Ширина — как у шапки и подвала ----------
 * Шапка (nav .middle) и подвал — 1200px по центру, текст логотипа и первой
 * колонки подвала начинается с отступа 10px. Все блоки статьи и листинга
 * блога выравниваются по тем же краям (владелец, 2026-09-11). */
.art-prose,
.art-item,
.art-related {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	padding-left: 10px;
	padding-right: 10px;
}

/* ---------- Intro / outro ---------- */
.art-prose {
	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__btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

/* ---------- «Читайте также» (meta['related']) ---------- */
.art-related {
	margin: 8px auto 64px;
}
.art-related h2 {
	font-family: 'PT Serif Caption', serif;
	color: #4B1E00;
	font-size: 26px;
	text-align: center;
	margin: 0 0 24px;
	background: none;
	padding: 0;
}
.art-related .blog-grid {
	grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
	justify-content: 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;
}
@media screen and (min-width: 900px) {
	.art-item {
		grid-template-columns: 1.15fr 1fr;
		gap: 48px;
		align-items: center;
	}
	/* Фото чётной карточки уходит вправо — колонки меняются местами вместе с
	 * ним, иначе фото попадало в узкую колонку и было меньше, чем у соседних. */
	.art-item.is-even { grid-template-columns: 1fr 1.15fr; }
	.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;
}

/* Увеличение фото по клику: в карточке кадр обрезан до 4:3, в окне — целиком. */
.art-zoomable { cursor: zoom-in; }
.art-zoomable:focus-visible { outline: 2px solid #4B1E00; outline-offset: 3px; }
.art-lightbox {
	position: fixed;
	inset: 0;
	/* выше шапки (до 1022) и cookie-баннера (1000) */
	z-index: 2000;
	background: rgba(20,12,4,.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 56px;
	box-sizing: border-box;
}
/* hidden должен побеждать display:flex выше */
.art-lightbox[hidden] { display: none !important; }
.art-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.art-lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	display: block;
	box-shadow: 0 4px 24px rgba(0,0,0,.5);
	cursor: zoom-out;
}
.art-lightbox figcaption {
	color: #eadfce;
	font-size: 14px;
	line-height: 1.4;
	margin-top: 12px;
	text-align: center;
	max-width: 70ch;
}
.art-lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	opacity: .8;
	line-height: 1;
	padding: 8px;
}
.art-lightbox button:hover, .art-lightbox button:focus-visible { opacity: 1; }
.art-lightbox__close { top: 10px; right: 14px; font-size: 34px; }
.art-lightbox__prev, .art-lightbox__next { top: 50%; transform: translateY(-50%); font-size: 44px; }
.art-lightbox__prev { left: 6px; }
.art-lightbox__next { right: 6px; }
@media screen and (max-width: 600px) {
	.art-lightbox { padding: 48px 8px; }
	.art-lightbox__prev, .art-lightbox__next { top: auto; bottom: 8px; transform: none; }
}

.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) ---------- */
/* Заголовок листинга. Высоту и фон секции #articlespic раньше давал price.css,
   а он на этой странице не подключается — секция схлопывалась в ноль, заголовок
   уезжал за верхний край экрана, и сверху оставалась пустая полоса. */
#articlespic {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 46px auto 0;
	padding: 0 10px;
}
#articlespic .mainpictext {
	position: static;
	align-items: flex-start;
}
#articlespic h1 {
	text-shadow: none;
	color: #4B1E00;
	font-size: 30px;
	text-align: left;
}
#articlespic .mainpictext h2 {
	text-shadow: none;
	color: #917552;
	text-align: left;
	font-size: 15px;
	padding: 6px 0 0;
}
.blog-lead {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 14px auto 0;
	padding: 0 10px;
	color: #917552;
	font-family: 'Roboto', sans-serif;
	font-size: 17px;
	line-height: 1.6;
}
@media screen and (max-width: 500px) {
	#articlespic { margin-top: 30px; }
	#articlespic h1 { font-size: 25px; }
	.blog-lead { font-size: 16px; }
}
.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; }

/* Ссылки внутри текста статьи: общий a{color:black;text-decoration:none}
   из main.css делал их неотличимыми от обычного текста. */
.art-prose p a, .art-item__body p a { color: #4B1E00; text-decoration: underline; }
.art-prose p a:hover, .art-item__body p a:hover { color: #6B2C00; }

/* Вступление статьи-оффера: три абзаца подряд одинаковым текстом читались как стена.
   Боль клиента — цитатой с полосой, обещание — карточкой, опыт — мелкой строкой с чипами. */
.art-intro__p--pain {
	border-left: 3px solid #4B1E00;
	padding: 2px 0 2px 20px;
}
.art-prose .art-intro__p--usp {
	background: #faf7f2;
	border: 1px solid rgba(75,30,0,.14);
	padding: 22px 24px;
	font-family: 'PT Serif Caption', Georgia, 'Times New Roman', serif;
	font-size: 19px;
	line-height: 1.5;
	color: #2b2016;
	margin: 26px 0;
}
.art-prose .art-intro__p--usp b { font-weight: 400; }
.art-prose .art-intro__p--cred {
	font-size: 15px;
	color: #8a7157;
	line-height: 1.6;
}
.art-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.art-fact {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	border: 1px solid rgba(75,30,0,.14);
	background: #fff;
	padding: 9px 14px;
	font-size: 13.5px;
	color: #6f5a44;
}
.art-fact b {
	font-family: 'PT Serif Caption', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: 18px;
	color: #4B1E00;
}
@media (max-width: 600px) {
	.art-prose .art-intro__p--usp { padding: 18px 16px; font-size: 17px; }
	.art-intro__p--pain { padding-left: 14px; }
}

/* Вопросы в конце статьи (необязательный блок $t['faq']). Раскрывающиеся,
   первый открыт: текст ответа виден и в HTML, и поисковику — он же идёт в FAQPage. */
.art-faq h2 {
	font-family: 'PT Serif Caption', Georgia, serif;
	color: #4B1E00;
	font-size: 26px;
	margin: 0 0 18px;
}
.art-faq details {
	border-top: 1px solid rgba(75, 30, 0, .16);
	padding: 14px 0;
}
.art-faq details:last-child { border-bottom: 1px solid rgba(75, 30, 0, .16); }
.art-faq summary {
	cursor: pointer;
	list-style: none;
	font-family: 'PT Serif Caption', Georgia, serif;
	font-size: 19px;
	color: #4B1E00;
	position: relative;
	padding-right: 28px;
}
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: -2px;
	font-size: 22px;
	line-height: 1;
	color: #917552;
}
.art-faq details[open] summary::after { content: '–'; }
.art-faq details p {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.65;
}
@media (max-width: 600px) {
	.art-faq h2 { font-size: 22px; }
	.art-faq summary { font-size: 17px; }
}
