/* Лендинг круглых и овальных ковров. Всё под .hsr — за пределы страницы не течёт. */

.hsr {
	--hsr-ink: #2b2725;
	--hsr-muted: #6c625c;
	--hsr-wine: #792a3c;
	--hsr-wine-dark: #602031;
	--hsr-sand: #f7f3ee;
	--hsr-tint: #f1e9e4;
	--hsr-line: #e3dbd3;
	--hsr-radius: 14px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 8px 0 0;
	color: var(--hsr-ink);
	font-family: Raleway, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
}

.hsr *, .hsr *::before, .hsr *::after { box-sizing: border-box; }
.hsr img { display: block; max-width: 100%; height: auto; }
.hsr p { margin: 0 0 18px; }
.hsr a { color: var(--hsr-wine); }
.hsr a:focus-visible, .hsr summary:focus-visible, .hsr button:focus-visible {
	outline: 3px solid var(--hsr-wine);
	outline-offset: 4px;
}

.hsr h1, .hsr h2, .hsr h3 {
	font-family: Raleway, system-ui, sans-serif;
	color: var(--hsr-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 18px;
}

.hsr .hsr-h1 {
	font-size: clamp(32px, 4vw, 56px) !important;
	line-height: 1.16 !important;
	max-width: 14ch;
	text-wrap: balance;
}

.hsr h2 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.24 !important; text-wrap: balance; }
.hsr h3 { font-size: 19px; line-height: 1.35 !important; margin-bottom: 10px; }

.hsr .hsr-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hsr-wine);
	margin-bottom: 18px;
}

.hsr .hsr-lead { font-size: 18px; line-height: 1.75; max-width: 52ch; color: var(--hsr-muted); }

/* ---------------------------------------------------------------- герой */

.hsr-hero {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding: clamp(24px, 4vw, 56px) 0 clamp(32px, 5vw, 64px);
}

.hsr-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }

.hsr .hsr-btn {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding: 13px 26px;
	border: 1px solid var(--hsr-wine);
	border-radius: 999px;
	background: var(--hsr-wine);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}

.hsr .hsr-btn:hover { background: var(--hsr-wine-dark); border-color: var(--hsr-wine-dark); }
.hsr .hsr-btn--ghost { background: transparent; color: var(--hsr-wine) !important; }
.hsr .hsr-btn--ghost:hover { background: var(--hsr-tint); color: var(--hsr-wine-dark) !important; }

.hsr-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid var(--hsr-line);
}

.hsr-facts dt { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.hsr-facts dt .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.hsr-facts dd { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--hsr-muted); }

/* Мотив страницы: пересечение овала и круга — те самые две формы. */
.hsr-hero__art { position: relative; aspect-ratio: 1 / 1; min-height: 260px; }

.hsr-hero__oval, .hsr-hero__circle { position: absolute; display: block; }

.hsr-hero__oval {
	inset: 8% 14% 22% 0;
	border-radius: 50%;
	background: linear-gradient(150deg, var(--hsr-tint), var(--hsr-sand));
	border: 1px solid var(--hsr-line);
}

.hsr-hero__circle {
	right: 0;
	bottom: 4%;
	width: 52%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #8d3549, var(--hsr-wine) 70%);
	box-shadow: 0 18px 40px rgba(121, 42, 60, .22);
}

/* ------------------------------------------------------- панель витрины */

.hsr-controls {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
	padding: 14px 18px;
	margin-bottom: 12px;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	border: 1px solid var(--hsr-line);
	border-radius: var(--hsr-radius);
	scroll-margin-top: 90px;
}

.hsr-controls__group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hsr-controls__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hsr-muted);
}

.hsr .hsr-chip {
	appearance: none;
	padding: 8px 16px;
	border: 1px solid var(--hsr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--hsr-ink);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background .18s, border-color .18s, color .18s;
}

.hsr .hsr-chip:hover { border-color: var(--hsr-wine); color: var(--hsr-wine); }

.hsr .hsr-chip[aria-pressed="true"] {
	background: var(--hsr-ink);
	border-color: var(--hsr-ink);
	color: #fff;
}

.hsr-controls__count { margin: 0; font-size: 13px; color: var(--hsr-muted); }

/* ------------------------------------------------------------- секции */

.hsr-section { padding: clamp(40px, 5vw, 72px) 0; scroll-margin-top: 96px; }

.hsr-section--tint {
	background: var(--hsr-sand);
	border-radius: calc(var(--hsr-radius) * 2);
	padding-inline: clamp(20px, 3vw, 48px);
	margin: clamp(20px, 3vw, 40px) 0;
}

.hsr-section__head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 38px); }
.hsr-section__head p { color: var(--hsr-muted); margin-bottom: 0; }
.hsr-section__more { margin: 24px 0 0; font-size: 15px; font-weight: 600; }

/* -------------------------------------------------------------- сетка */

.hsr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: clamp(14px, 1.6vw, 24px);
}

.hsr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hsr-line);
	border-radius: var(--hsr-radius);
	overflow: hidden;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}

.hsr-card:hover {
	transform: translateY(-3px);
	border-color: #d2c6bc;
	box-shadow: 0 14px 30px rgba(43, 39, 37, .1);
}

.hsr-card[hidden] { display: none; }

.hsr-card__media { position: relative; display: block; background: var(--hsr-sand); }

.hsr-card__media .hsr-card__photo,
.hsr-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hsr-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px 5px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .93);
	color: var(--hsr-ink);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.hsr-glyph { width: 14px; height: 14px; fill: none; stroke: var(--hsr-wine); stroke-width: 1.6; }

.hsr-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }

.hsr-card__title { font-size: 15px; line-height: 1.4 !important; font-weight: 600; margin: 0 0 8px; }
.hsr-card__title a { color: var(--hsr-ink); text-decoration: none; }
.hsr-card__title a:hover { color: var(--hsr-wine); }

.hsr-card__facts { font-size: 12.5px; line-height: 1.55; color: var(--hsr-muted); margin: 0 0 14px; }

.hsr-card__price {
	margin: auto 0 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--hsr-ink);
}

.hsr-card__price .woocommerce-Price-amount { color: inherit; font-size: inherit; }
.hsr-card__price del { display: none; }

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

.hsr-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }

.hsr-size__card {
	background: #fff;
	border: 1px solid var(--hsr-line);
	border-radius: var(--hsr-radius);
	padding: 22px 22px 26px;
}

.hsr-size__card p { font-size: 14px; line-height: 1.65; color: var(--hsr-muted); margin: 0; }

.hsr-diagram { width: 100%; max-width: 190px; height: auto; margin-bottom: 18px; }
.hsr-diagram__rug { fill: var(--hsr-tint); stroke: var(--hsr-wine); stroke-width: 1.5; }
.hsr-diagram__item { fill: #fff; stroke: var(--hsr-ink); stroke-width: 1.5; }
.hsr-diagram__seat { fill: #fff; stroke: var(--hsr-muted); stroke-width: 1.3; }

/* ------------------------------------------------------- сравнение */

.hsr-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.hsr-compare > div { padding: 22px 0; border-top: 1px solid var(--hsr-line); }
.hsr-compare dt { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.hsr-compare dd { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--hsr-muted); }

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

.hsr-faq { max-width: 78ch; }
.hsr-faq__item { border-bottom: 1px solid var(--hsr-line); }
.hsr-faq__item:first-child { border-top: 1px solid var(--hsr-line); }

.hsr-faq summary {
	position: relative;
	display: block;
	padding: 19px 44px 19px 0;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.55;
	cursor: pointer;
	list-style: none;
}

.hsr-faq summary::-webkit-details-marker { display: none; }

.hsr-faq summary::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 11px;
	height: 11px;
	margin-top: -6px;
	border-right: 2px solid var(--hsr-wine);
	border-bottom: 2px solid var(--hsr-wine);
	transform: rotate(45deg);
	transition: transform .2s;
}

.hsr-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hsr-faq__answer { padding: 0 0 20px; }
.hsr-faq__answer p { font-size: 14.5px; line-height: 1.75; color: var(--hsr-muted); margin: 0; }

/* ---------------------------------------------------------- переходы */

.hsr-bridge {
	background: var(--hsr-tint);
	border-left: 4px solid var(--hsr-wine);
	border-radius: var(--hsr-radius);
	padding: clamp(24px, 3vw, 40px);
	margin: clamp(20px, 3vw, 40px) 0 48px;
}

.hsr-bridge h2 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 18px; }
.hsr-bridge__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

.hsr-bridge__list a {
	display: inline-block;
	padding: 9px 18px;
	border: 1px solid rgba(121, 42, 60, .35);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s, color .18s;
}

.hsr-bridge__list a:hover { background: var(--hsr-wine); color: #fff; }

/* ------------------------------------------------------- адаптивность */

@media (max-width: 1024px) {
	.hsr-hero { grid-template-columns: 1fr; }
	.hsr-hero__art { max-width: 420px; min-height: 220px; }
	.hsr-size { grid-template-columns: 1fr; }
	.hsr-compare { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	.hsr { padding-inline: 16px; }
	.hsr .hsr-h1 { font-size: clamp(30px, 8vw, 40px) !important; max-width: none; }
	.hsr .hsr-lead { font-size: 16px; }
	.hsr-hero { padding-top: 12px; gap: 26px; }
	.hsr-hero__art { display: none; }
	.hsr-facts { grid-template-columns: 1fr; gap: 14px; }
	.hsr-facts dt { font-size: 19px; }
	.hsr-controls { gap: 10px 16px; padding: 12px 14px; }
	.hsr-controls__label { width: 100%; }
	.hsr-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.hsr-card__body { padding: 12px 12px 14px; }
	.hsr-card__title { font-size: 14px; }
	.hsr-card__price { font-size: 15.5px; }
	.hsr-section--tint { padding-inline: 18px; border-radius: var(--hsr-radius); }
	.hsr .hsr-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.hsr *, .hsr *::before, .hsr *::after { transition: none !important; }
	.hsr { scroll-behavior: auto; }
}
