/* Блоки премиальных категорий (шерсть, шёлк, ручная работа). Всё под .hpr
   и .hpr-row — за пределы блока не течёт. Константы сайта: бургунди #992238,
   чернила #1a1a1a, линии #e1e1e1, Raleway 400/500/600/700. */

.hpr {
	--hpr-ink: #1a1a1a;
	--hpr-muted: #6b6461;
	--hpr-wine: #992238;
	--hpr-sand: #faf7f5;
	--hpr-tint: #f3ece9;
	--hpr-line: #e1e1e1;
	--hpr-radius: 14px;
	max-width: 1320px;
	margin: 44px auto 0;
	padding: 0;
	color: var(--hpr-ink);
	font-family: Raleway, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
}

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

.hpr p { margin: 0 0 16px; }
.hpr a { color: var(--hpr-wine); text-decoration: none; }
.hpr a:hover { text-decoration: underline; }
.hpr a:focus-visible,
.hpr summary:focus-visible,
.hpr-row a:focus-visible { outline: 3px solid var(--hpr-wine); outline-offset: 3px; }

.hpr h2,
.hpr h3 {
	font-family: Raleway, system-ui, sans-serif;
	color: var(--hpr-ink);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	white-space: normal;
	overflow-wrap: break-word;
	height: auto;
	max-height: none;
	margin: 0 0 14px;
}

.hpr h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25 !important; }
.hpr h3 { font-size: 18px; line-height: 1.35 !important; margin-bottom: 8px; }

.hpr-sec { margin: 0 0 40px; }
.hpr-lead { max-width: 80ch; color: var(--hpr-muted); }
.hpr-prose p { max-width: 88ch; }

/* --- группы -------------------------------------------------------------- */

.hpr-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 20px;
	margin-top: 22px;
}

.hpr-card {
	border: 1px solid var(--hpr-line);
	border-radius: var(--hpr-radius);
	padding: 22px 22px 16px;
	background: #fff;
}

.hpr-card:nth-child(even) { background: var(--hpr-sand); }

.hpr-facts { font-size: 14px; color: var(--hpr-muted); margin-bottom: 12px !important; }
.hpr-facts b { color: var(--hpr-ink); font-weight: 700; }

.hpr-picks {
	list-style: none;
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--hpr-line);
}

.hpr-picks li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 4px 0;
	font-size: 15px;
}

.hpr-price { color: var(--hpr-muted); white-space: nowrap; font-size: 14px; }
.hpr-more { margin: 10px 0 0 !important; font-size: 15px; font-weight: 600; }

/* --- таблица ------------------------------------------------------------- */

.hpr-tablewrap { overflow-x: auto; }

.hpr-table {
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
	font-size: 15px;
}

.hpr-table th,
.hpr-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--hpr-line);
	text-align: left;
	vertical-align: top;
}

.hpr-table thead th {
	background: var(--hpr-tint);
	font-weight: 600;
	border-bottom: 2px solid var(--hpr-line);
}

.hpr-table tbody th { font-weight: 600; width: 22%; }

/* Тема выравнивает последнюю ячейку строки вправо — возвращаем влево. */
.hpr .hpr-table th:last-child,
.hpr .hpr-table td:last-child { text-align: left !important; }

/* --- размеры ------------------------------------------------------------- */

.hpr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hpr-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--hpr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--hpr-ink);
	font-size: 15px;
}

.hpr-chip span {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--hpr-tint);
	color: var(--hpr-muted);
	font-size: 12px;
	font-weight: 500;
}

.hpr a.hpr-chip { color: var(--hpr-ink); }
.hpr a.hpr-chip:hover { border-color: var(--hpr-wine); color: var(--hpr-wine); text-decoration: none; }

/* --- уход ---------------------------------------------------------------- */

.hpr-care {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 18px 28px;
}

.hpr-care li { display: flex; gap: 14px; align-items: flex-start; }
.hpr-care p { font-size: 15px; color: var(--hpr-muted); margin: 0; }

.hpr-num {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--hpr-wine);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 30px;
	text-align: center;
}

/* --- FAQ ----------------------------------------------------------------- */

.hpr-faq { border-top: 1px solid var(--hpr-line); margin-top: 18px; }
.hpr-faq__item { border-bottom: 1px solid var(--hpr-line); }

.hpr-faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 40px 16px 0;
	position: relative;
	font-size: 17px;
	font-weight: 600;
}

.hpr-faq__item summary::-webkit-details-marker { display: none; }

.hpr-faq__item summary::after {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--hpr-wine);
	border-bottom: 2px solid var(--hpr-wine);
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.hpr-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hpr-faq__body { padding: 0 0 18px; }
.hpr-faq__body p { color: var(--hpr-muted); margin: 0; max-width: 88ch; }

/* --- дальше и строка соседей ---------------------------------------------- */

.hpr-next,
.hpr-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hpr-next a,
.hpr-row a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid #e1e1e1;
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a;
	font-family: Raleway, system-ui, sans-serif;
	font-size: 15px;
	text-decoration: none;
}

.hpr-next a:hover,
.hpr-row a:hover { border-color: #992238; color: #992238; text-decoration: none; }

.hpr-row {
	align-items: center;
	max-width: 1320px;
	margin: 36px auto 8px;
}

.hpr-row span {
	margin-right: 4px;
	color: #6b6461;
	font-family: Raleway, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
}

/* --- телефон ------------------------------------------------------------- */

@media (max-width: 767px) {
	.hpr { margin-top: 32px; font-size: 15px; }
	.hpr-sec { margin-bottom: 32px; }
	.hpr-card { padding: 18px 16px 12px; }

	.hpr-table thead { position: absolute; left: -9999px; }
	.hpr-table,
	.hpr-table tbody,
	.hpr-table tr,
	.hpr-table th,
	.hpr-table td { display: block; width: auto; }

	.hpr-table tr {
		border: 1px solid var(--hpr-line);
		border-radius: var(--hpr-radius);
		margin-bottom: 14px;
		padding: 6px 14px 10px;
	}

	.hpr-table tbody th {
		width: auto;
		padding: 10px 0 6px;
		border-bottom: 1px solid var(--hpr-line);
		font-size: 16px;
	}

	.hpr-table td { padding: 8px 0; border: 0; }

	.hpr-table td::before {
		content: attr(data-label);
		display: block;
		font-size: 12px;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: var(--hpr-muted);
	}

	.hpr-row { margin-top: 28px; }
}
