/* Блок «Подушки к ковру» и обратный «С какими коврами сочетается». Всё под
   .hbp — за пределы блока не течёт. Константы сайта: бургунди #992238,
   чернила #1a1a1a, линии #e1e1e1, Raleway. */

.hbp {
	--hbp-ink: #1a1a1a;
	--hbp-muted: #6b6461;
	--hbp-wine: #992238;
	--hbp-sand: #faf7f5;
	--hbp-line: #e1e1e1;
	clear: both;
	max-width: 1320px;
	margin: 40px auto;
	padding: 0;
	color: var(--hbp-ink);
	font-family: Raleway, system-ui, sans-serif;
	text-align: left;
}

.hbp *,
.hbp *::before,
.hbp *::after { box-sizing: border-box; }

.hbp-head { margin: 0 0 18px; }

.hbp .hbp-title {
	margin: 0 0 6px;
	font-family: Raleway, system-ui, sans-serif;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	line-height: 1.25 !important;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hbp-ink);
}

.hbp-lead { margin: 0; color: var(--hbp-muted); font-size: 15px; line-height: 1.6; }

.hbp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Тема даёт любому ul padding-left: 20px — сетка уезжала от заголовка. */
.hbp ul.hbp-grid { padding-left: 0 !important; }

.hbp-card { margin: 0; padding: 0; list-style: none; }

.hbp-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--hbp-ink);
	text-decoration: none;
}

.hbp-pic {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin: 0 0 10px;
	background: #fff;
	border: 1px solid var(--hbp-line);
	border-radius: 12px;
}

.hbp-pic img,
.hbp .hbp-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.hbp-card a:hover .hbp-img { transform: scale(1.04); }
.hbp-card a:focus-visible { outline: 3px solid var(--hbp-wine); outline-offset: 3px; border-radius: 12px; }

.hbp-why {
	align-self: flex-start;
	margin: 0 0 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--hbp-sand);
	color: var(--hbp-wine);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.hbp-name { font-size: 15px; font-weight: 500; line-height: 1.4; }
.hbp-card a:hover .hbp-name { text-decoration: underline; }

.hbp-price { margin-top: 6px; font-size: 16px; font-weight: 700; }
.hbp-price del { color: var(--hbp-muted); font-weight: 400; }
.hbp-price ins { text-decoration: none; }

.hbp-more {
	display: inline-block;
	margin-top: 18px;
	color: var(--hbp-wine);
	font-weight: 600;
	text-decoration: none;
}

.hbp-more:hover { text-decoration: underline; }

/* Главная: все подушки в один ряд, на телефоне — свайп-лента, чтобы блок
   не удлинял страницу на два экрана. */
.hbp[data-place="home"] { padding: 0 15px; }
.hbp[data-place="home"] .hbp-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

@media (max-width: 767px) {
	.hbp { margin: 28px 0; }
	.hbp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.hbp-name { font-size: 14px; }

	.hbp[data-place="home"] .hbp-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 15px;
		scrollbar-width: none;
		margin: 0 -15px;
		padding: 0 15px 4px;
	}
	.hbp[data-place="home"] ul.hbp-grid { padding-left: 15px !important; }
	.hbp[data-place="home"] .hbp-grid::-webkit-scrollbar { display: none; }
	.hbp[data-place="home"] .hbp-card { flex: 0 0 44%; scroll-snap-align: start; }
}

/* Корзина: «+ Додати в замовлення» под карточкой. */
.hbp-card { display: flex; flex-direction: column; }
.hbp-card > a:first-child { flex: 1; }
.hbp .hbp-add {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	height: auto;
	flex-direction: row;
	margin-top: 10px;
	padding: 0 12px;
	border: 1px solid var(--hbp-wine);
	border-radius: 2px;
	background: var(--hbp-wine);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.hbp .hbp-add:hover { background: #fff; color: var(--hbp-wine) !important; }

/* Полоса в сетке категорий ковров: на всю ширину ряда, float-сетку не ломает. */
.hbp-strip {
	clear: both;
	float: left;
	width: 100%;
	padding: 0 15px;
	margin: 6px 0 30px;
	font-family: Raleway, system-ui, sans-serif;
}
/* В сетке каталога (CSS grid) полоса — целый ряд, отступы даёт gap сетки. */
.hb-catalog-wide .products-grid > .hbp-strip {
	float: none;
	padding: 0;
	margin: 0;
}
.hbp-strip a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	overflow: hidden;
	border-radius: 10px;
	background: #300e1c;
	color: #f6f0e6 !important;
	text-decoration: none;
}
.hbp-strip-tx { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px 32px; }
.hbp-strip-tx em {
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: 2px;
	background: #992238;
	color: #fff;
	font-style: normal;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.hbp-strip-tx b { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; color: #f6f0e6; }
.hbp-strip-tx small { font-size: 14px; line-height: 1.5; color: #d9b591; }
.hbp-strip-tx i {
	align-self: flex-start;
	margin-top: 6px;
	padding: 10px 18px;
	border-radius: 2px;
	background: #f6f0e6;
	color: #300e1c;
	font-style: normal;
	font-size: 14px;
	font-weight: 600;
}
.hbp-strip-ph { display: block; min-height: 200px; }
.hbp-strip-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hbp-strip a:hover img { transform: scale(1.03); }

/* Страницы штор: карточки внутри секции раздела, кнопка к форме. */
.hbp-curt .hbp[data-place="curtains"] { margin: 0 auto; }
.hbp-curt-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.hbp-curt-cta .hbp-more { margin-top: 0; }
.hbp .hbp-btn {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 2px;
	background: var(--hbp-wine);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}
.hbp .hbp-btn:hover { background: #7d1b2d; }

@media (max-width: 767px) {
	.hbp-strip { margin: 0 0 22px; }
	.hbp-strip a { grid-template-columns: 1fr; }
	.hbp-strip-ph { order: -1; min-height: 0; aspect-ratio: 16 / 7; }
	.hbp-strip-tx { padding: 16px 16px 18px; gap: 6px; }
	.hbp-strip-tx small { font-size: 13px; }
	.hbp .hbp-add { font-size: 13px; min-height: 40px; }
}

/* Секции раздела штор подчёркивают и красят ссылки — карточкам это не нужно. */
.hbp-curt .hbp-card a { color: var(--hbp-ink) !important; text-decoration: none !important; }
.hbp-curt .hbp-card a .hbp-name,
.hbp-curt .hbp-card a .hbp-price { color: var(--hbp-ink); text-decoration: none; }
.hbp-curt .hbp-card a:hover .hbp-name { text-decoration: underline; }
.hbp-curt .hbp-more { text-decoration: none !important; }
