/*
 * Блог (B3.3): листинг (home/archive/index), статия (single), CTA блокът [pb_cta_kalkulator].
 * Макет: makets/final/blog.html, makets/final/blog-statia.html (инвентар 2 → blog, blog-statia).
 * Хиро/breadcrumb/пагинация/.entry-content таблицата - base.css; тук само разликите.
 * Mobile: ≤1024px (двойките .pb-d/.pb-m от base.css).
 */

/* ================================================================ 1. Листинг */

.pb-blog__body {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 40px var(--pb-gutter) 64px;
}

.pb-blog__list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.pb-blog__list .pb-pagination {
	margin-top: 0;
}

/* ---------- Чипове (2а) ---------- */
.pb-blog-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pb-blog-chips__chip {
	flex: 0 0 auto;
	padding: 8px 16px;
	border: 1px solid var(--pb-green-border);
	border-radius: var(--pb-radius-pill);
	background: var(--pb-bg);
	color: var(--pb-green);
	font-family: var(--pb-font-head);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.pb-blog-chips__chip:hover {
	background: var(--pb-green-light);
	color: var(--pb-green-dark);
}

.pb-blog-chips__chip.is-active,
.pb-blog-chips__chip.is-active:hover {
	border-color: var(--pb-green);
	background: var(--pb-green);
	color: var(--pb-bg);
}

/* ---------- Препоръчана (2б) ---------- */
.pb-bfeat {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius-l);
	background: var(--pb-bg);
	color: var(--pb-ink);
}

.pb-bfeat:hover {
	color: var(--pb-ink);
}

.pb-bfeat__media {
	display: block;
}

.pb-bfeat__img {
	display: block;
	width: 100%;
	height: 420px;
	border-radius: calc(var(--pb-radius-l) - 1px) 0 0 calc(var(--pb-radius-l) - 1px);
	object-fit: cover;
}

.pb-bfeat__img--none,
.pb-bcard__img--none,
.pb-brow__img--none,
.pb-bside__img--none {
	object-fit: contain;
	background: var(--pb-bg-2);
}

.pb-bfeat__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 48px;
}

.pb-bfeat__cat,
.pb-bcard__cat {
	color: var(--pb-green);
	font-family: var(--pb-font-head);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pb-bfeat__title {
	color: var(--pb-ink);
	font-size: 36px;
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.pb-bfeat__text {
	color: var(--pb-text-2);
	font-size: 17px;
	line-height: 1.6;
}

.pb-bfeat__meta {
	color: var(--pb-muted-2);
	font-size: 14px;
}

.pb-bfeat__more {
	color: var(--pb-green);
	font-family: var(--pb-font-head);
	font-size: 16px;
	font-weight: 700;
}

.pb-bfeat:hover .pb-bfeat__title,
.pb-bfeat:hover .pb-bfeat__more {
	color: var(--pb-green-dark);
}

/* ---------- Карта (2в) - 3 колони ---------- */
.pb-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.pb-bcard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius);
	background: var(--pb-bg);
	color: var(--pb-ink);
}

.pb-bcard:hover {
	color: var(--pb-ink);
}

.pb-bcard__media {
	display: block;
}

.pb-bcard__img {
	display: block;
	width: 100%;
	height: 220px;
	border-radius: calc(var(--pb-radius) - 1px) calc(var(--pb-radius) - 1px) 0 0;
	object-fit: cover;
}

.pb-bcard__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 20px 22px;
}

.pb-bcard__title {
	color: var(--pb-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.pb-bcard:hover .pb-bcard__title {
	color: var(--pb-green-dark);
}

.pb-bcard__text {
	color: var(--pb-text-2);
	font-size: 15px;
	line-height: 1.55;
}

.pb-bcard__meta {
	color: var(--pb-muted-2);
	font-size: 13px;
}

/* ---------- Ред (mobile) ---------- */
.pb-blog__rows,
.pb-bmore__rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pb-brow {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	color: var(--pb-ink);
}

.pb-brow:hover {
	color: var(--pb-ink);
}

.pb-brow__img {
	display: block;
	width: 96px;
	height: 80px;
	border-radius: var(--pb-radius-s);
	object-fit: cover;
}

.pb-brow__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pb-brow__cat {
	color: var(--pb-green);
	font-family: var(--pb-font-head);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
}

.pb-brow__title {
	color: var(--pb-ink);
	font-family: var(--pb-font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.pb-brow:hover .pb-brow__title {
	color: var(--pb-green-dark);
}

.pb-brow__date {
	color: var(--pb-muted-2);
	font-size: 12px;
}

@media (max-width: 1200px) {
	.pb-bfeat__body {
		padding: 32px;
	}
}

@media (max-width: 1024px) {
	.pb-blog__body {
		gap: 20px;
		padding: 16px var(--pb-gutter) 32px;
	}

	.pb-blog__list {
		gap: 18px;
	}

	/* Хоризонтален скрол до десния ръб. */
	.pb-blog-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline-end: calc(var(--pb-gutter) * -1);
		padding-inline-end: var(--pb-gutter);
		scrollbar-width: none;
	}

	.pb-blog-chips::-webkit-scrollbar {
		display: none;
	}

	.pb-blog-chips__chip {
		padding: 9px 14px;
	}

	.pb-bfeat {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		border: 0;
		border-radius: 0;
	}

	.pb-bfeat__img {
		height: 220px;
		border-radius: var(--pb-radius);
	}

	.pb-bfeat__body {
		gap: 10px;
		padding: 0;
	}

	.pb-bfeat__cat {
		font-size: 11px;
		letter-spacing: 0;
	}

	.pb-bfeat__title {
		font-size: 22px;
		line-height: 1.2;
		letter-spacing: 0;
	}

	.pb-bfeat__meta {
		font-size: 13px;
	}

	.pb-blog__rows {
		padding-top: 16px;
		border-top: 1px solid var(--pb-line-2);
	}

	.pb-blog__more-btn {
		margin-top: 0;
	}
}

/* ================================================================ 2. Статия */

.pb-article__crumbs {
	padding: 28px var(--pb-gutter) 0;
}

.pb-article__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 1060px; /* инвентар 2, blog-statia → 2 (max-width 1060px) */
	padding: 24px var(--pb-gutter) 32px;
}

.pb-article__cat {
	align-self: flex-start;
	color: var(--pb-green);
	font-family: var(--pb-font-head);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pb-article__title {
	color: var(--pb-ink);
	font-size: 52px;
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.pb-article__meta {
	color: var(--pb-muted);
	font-size: 15px;
	line-height: 1.5;
}

.pb-article__hero {
	margin: 0;
	padding: 0 var(--pb-gutter);
}

.pb-article__hero-img {
	display: block;
	width: 100%;
	height: 520px;
	border-radius: var(--pb-radius);
	object-fit: cover;
}

.pb-article__layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
	align-items: start;
	gap: 80px;
	padding: 56px var(--pb-gutter) 72px;
}

.pb-article__body {
	min-width: 0;
}

/* Текст 18px/1.75 #3A3A3A; H2 800 28px с 12px отгоре над общия отстъп 20px. */
.pb-article__content {
	color: var(--pb-article-text, #3A3A3A);
	font-size: 18px;
	line-height: 1.75;
}

.pb-article__content > h2:not(:first-child) {
	margin-top: 32px;
}

/* ---------- CTA блок [pb_cta_kalkulator] (inc/shortcodes.php) ---------- */
.pb-cta-calc {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 28px;
	border-radius: var(--pb-radius-l);
	background: var(--pb-green-light);
}

.pb-cta-calc__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.entry-content .pb-cta-calc__title,
.pb-cta-calc__title {
	margin: 0;
	color: var(--pb-ink);
	font-family: var(--pb-font-head);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.entry-content .pb-cta-calc__sub,
.pb-cta-calc__sub {
	margin: 0;
	color: var(--pb-text-2);
	font-size: 15px;
	line-height: 1.5;
}

.pb-cta-calc__btn.pb-btn {
	flex: none;
	padding: 12.5px 22px;
	font-size: 15px;
	white-space: nowrap;
}

/* ---------- Страничен блок ---------- */
.pb-bside {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pb-bside__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--pb-line);
	border-radius: var(--pb-radius-l);
}

.pb-bside__title {
	color: var(--pb-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.pb-bside__prod {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	color: var(--pb-ink);
}

.pb-bside__prod:hover {
	color: var(--pb-ink);
}

.pb-bside__img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: var(--pb-radius-s);
	object-fit: cover;
}

.pb-bside__prod-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pb-bside__name {
	font-family: var(--pb-font-head);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.pb-bside__prod:hover .pb-bside__name {
	color: var(--pb-green-dark);
}

.pb-bside__price {
	color: var(--pb-ink);
	font-family: var(--pb-font-head);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
}

.pb-bside__price--sale {
	color: var(--pb-red);
}

.pb-bside__tip {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border-radius: var(--pb-radius-l);
	background: var(--pb-green);
	color: var(--pb-bg);
}

.pb-bside__tip-label {
	color: var(--pb-cta-sub);
	font-size: 15px;
	line-height: 1.4;
}

.pb-bside__phone,
.pb-bside__phone:hover {
	color: var(--pb-bg);
	font-family: var(--pb-font-head);
	font-size: 20px;
	font-weight: 900;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

/* ---------- Още статии ---------- */
.pb-bmore {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 64px var(--pb-gutter);
	background: var(--pb-bg-2);
}

.pb-bmore__title {
	color: var(--pb-ink);
	font-size: 32px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

@media (max-width: 1200px) {
	.pb-article__layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
		gap: 48px;
	}
}

@media (max-width: 1024px) {
	.pb-article__crumbs {
		padding: 12px var(--pb-gutter);
	}

	.pb-article__crumbs .pb-breadcrumb {
		font-size: 12px;
	}

	/* Mobile: „Начало / Блог" без категорията. */
	.pb-article__crumbs .pb-breadcrumb__item:last-child {
		display: none;
	}

	.pb-article__head {
		gap: 10px;
		padding: 4px var(--pb-gutter) 16px;
	}

	.pb-article__cat {
		font-size: 11px;
		letter-spacing: 0;
	}

	.pb-article__title {
		font-size: 28px;
		line-height: 1.1;
		letter-spacing: -0.02em;
	}

	.pb-article__meta {
		font-size: 13px;
	}

	.pb-article__hero {
		padding: 0;
	}

	.pb-article__hero-img {
		height: 230px;
		border-radius: 0;
	}

	.pb-article__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 24px var(--pb-gutter) 28px;
	}

	.pb-article__content {
		font-size: 16px;
	}

	.pb-article__content > h2:not(:first-child) {
		margin-top: 24px;
	}

	.pb-bside {
		display: none;
	}

	.pb-cta-calc {
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
	}

	.entry-content .pb-cta-calc__title,
	.pb-cta-calc__title {
		font-size: 17px;
	}

	.pb-cta-calc__btn.pb-btn {
		display: flex;
		width: 100%;
		white-space: normal;
	}

	.pb-bmore {
		gap: 14px;
		padding: 24px var(--pb-gutter) 32px;
	}

	.pb-bmore__title {
		font-size: 22px;
	}
}
