/**
 * Блог — значения с боевого (/blog и страница статьи).
 */

/* ---------- Левая колонка: категории ---------- */
.pos-side__title {
	color: #4eab10;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
}
.pos-side__menu--cats li::before { background-image: url("../images/header/chekbox-check.jpg"); }
.pos-side__menu--cats .current-cat > a { color: #9bde00; font-weight: 700; }

/* ---------- Список статей ---------- */
.pos-blog-h1 {
	margin: 0 0 25px;
	color: #809f24;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}
.pos-bcards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0 -20px;
}
.pos-bcard { padding: 20px; }
.pos-bcard__img {
	display: block;
	height: 350px;
	overflow: hidden;
	background: #dfdcdc;
}
.pos-bcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pos-bcard__img img.is-empty { width: 100px; height: 100px; margin: 125px auto; object-fit: contain; }
.pos-bcard__body {
	position: relative;
	margin-top: -60px;
	padding: 20px;
	border-bottom: 1px solid #4eab10;
}
.pos-bcard__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	background: #fff;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
}
.pos-bcard__title { color: #f80d34; text-transform: uppercase; }
.pos-bcard__title:hover { color: #c40a29; }
.pos-bcard__head time { align-self: flex-end; color: #9a988c; font-size: 16px; }
.pos-bcard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 25px;
	font-family: var(--pos-font-head);
	font-weight: 700;
	text-transform: uppercase;
}
.pos-bcard__more {
	flex: none;
	padding: 10px;
	border: 2px solid #4eab10;
	border-radius: 5px;
	background: #4eab10;
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
}
.pos-bcard__more:hover { background: #fff; color: #4eab10; }
.pos-bcard__cat { color: #4eab10; font-size: 14px; text-align: right; }

/* ---------- Пагинация ---------- */
.pos-pager { margin: 30px 0 0; }
.pos-pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.pos-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #e6e6e6;
	border-radius: 20px;
	color: #2f2620;
	font-family: var(--pos-font-body);
	font-weight: 500;
	font-size: 16px;
}
.pos-pager .page-numbers.current,
.pos-pager a.page-numbers:hover { border-color: #4fad10; background: #4fad10; color: #fff; }
.pos-pager .page-numbers.dots { border: 0; }

/* ---------- Статья ---------- */
.pos-post {
	padding: 30px 0 30px;
	border: 1px solid #ebebeb;
	box-shadow: 0 0 24px -2px #ebebeb;
	color: #2f2620;
	font-family: var(--pos-font-head);
}
.pos-post__meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 70px;
	font-weight: 700;
}
.pos-post__cat { color: #4eab10; text-transform: uppercase; }
.pos-post__meta time { color: #9a988c; }
.pos-post__title {
	margin: 30px 0 20px;
	padding: 0 70px;
	color: #f80d34;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	text-transform: uppercase;
}
.pos-post__img { padding: 0 70px; }
.pos-post__img img { display: block; width: 100%; height: auto; }
.pos-post__content {
	padding: 30px 70px 0;
	font-size: 16px;
	line-height: 1.5;
}
.pos-post__content h2,
.pos-post__content h3,
.pos-post__content h4,
.pos-post__content h5 {
	margin: 0 0 15px;
	color: #4eab10;
	font-family: var(--pos-font-head);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	text-transform: uppercase;
}
.pos-post__content p { margin: 0 0 30px; }
.pos-post__content a { color: #337ab7; }
.pos-post__content img { max-width: 100%; height: auto; }
.pos-post__content table { width: 100%; margin-bottom: 30px; border-collapse: collapse; }
.pos-post__content td { padding: 3px 20px; border: 1px solid #ebebeb; }
.pos-post__content iframe { width: 100%; height: 450px; }
.pos-post__content figure { margin: 0 0 30px; }

@media (max-width: 1120px) {
	.pos-bcard__img { height: 300px; }
}

@media (max-width: 767px) {
	.pos-bcards { grid-template-columns: 1fr; margin: 0; }
	.pos-bcard { padding: 10px 0; }
	.pos-bcard__img { height: 250px; }
	.pos-bcard__head { padding: 12px; font-size: 15px; }
	.pos-bcard__body { padding: 12px; }
	.pos-post__meta,
	.pos-post__title,
	.pos-post__img { padding-left: 20px; padding-right: 20px; }
	.pos-post__content { padding: 20px 20px 0; }
	.pos-post__content iframe { height: 220px; }
	.pos-post__content table { display: block; overflow-x: auto; }
}
