/* ===== Collections page (sections 1–5) ===== */

/* Section 1: Hero */
.c-hero {
	position: relative;
	padding: 40px 0 20px;
}
.page-title {
	font-family: 'ClockerySerif', serif;
	margin: 8px 0 10px;
}
.c-hero-lede {
	color: var(--muted);
}

.c-hero-grid {
	display: grid;
	gap: 24px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.c-hero-mosaic {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
	.c-hero-grid {
		grid-template-columns: 1fr;
	}
	.c-hero-mosaic {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.c-hero-mosaic {
		display: none;
	} /* мобильная экономия */
}

.c-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.c-filter .chip {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 999px;
	padding: 8px 12px;
	cursor: pointer;
}
.c-filter .chip.is-active,
.c-filter .chip[aria-selected='true'] {
	background: #fff7e6;
	border-color: #ffd9a8;
}

/* Section 2: Grid */
.c-grid-sec {
	padding: 26px 0 34px;
}
.c-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.c-grid .tile {
	transition: transform var(--speed), box-shadow var(--speed),
		opacity var(--speed), filter var(--speed);
}
.c-grid .tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}
.c-grid .tile.is-dim {
	opacity: 0.32;
	filter: grayscale(0.6);
}

@media (max-width: 980px) {
	.c-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.c-grid {
		grid-template-columns: 1fr;
	}
}

/* Section 3: Compare */
.c-compare {
	padding: 34px 0;
}
.c-compare-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.2fr 0.8fr;
}
.c-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	margin-top: 8px;
}
.c-table th,
.c-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
.c-table thead th {
	background: #fff7e6;
	font-weight: 700;
}
@media (max-width: 980px) {
	.c-compare-grid {
		grid-template-columns: 1fr;
	}
}

/* Section 4: Finish Ladder */
.c-finish {
	padding: 34px 0;
}
.c-finish-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: auto 1fr 0.9fr;
}
.ladder {
	display: grid;
	gap: 10px;
}
.rung {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 12px;
	padding: 10px 14px;
	cursor: pointer;
	transition: transform var(--speed), background var(--speed),
		border-color var(--speed);
}
.rung:hover {
	transform: translateY(-2px);
}
.rung.is-on,
.rung:focus-visible {
	background: #fff7e6;
	border-color: #ffd9a8;
	outline: none;
}

.c-check {
	list-style: none;
	padding: 0;
	margin: 8px 0 0;
	display: grid;
	gap: 6px;
}
@media (max-width: 980px) {
	.c-finish-grid {
		grid-template-columns: 1fr;
	}
}

/* Section 5: Sound Profiles */
.c-sound {
	padding: 34px 0;
}
.c-sound-grid {
	display: grid;
	gap: 14px;
	align-items: start;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px;
	box-shadow: var(--shadow);
}
.wave-sm {
	height: 46px;
	display: grid;
	grid-auto-flow: column;
	gap: 4px;
	align-items: end;
	margin-top: 8px;
}
.wave-sm i {
	width: 6px;
	height: 14px;
	background: linear-gradient(180deg, var(--brand), var(--brand-2));
	border-radius: 3px;
	animation: wpulse 2.2s ease-in-out infinite;
	transform-origin: bottom;
}
.wave-sm i:nth-child(odd) {
	animation-delay: 0.2s;
}
.wave-sm i:nth-child(3n) {
	animation-delay: 0.4s;
}
.wave-sm.loud i {
	animation-duration: 1.6s;
}
@keyframes wpulse {
	50% {
		height: 38px;
	}
}

@media (max-width: 980px) {
	.c-sound-grid {
		grid-template-columns: 1fr;
	}
}
/* Finish preview with tint ring tied to selected finish */
.c-finish-fig {
	position: relative;
	--tint: #ffd9a8;
}
.c-finish-fig::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
	pointer-events: none;
	box-shadow: inset 0 0 0 4px var(--tint);
	transition: box-shadow var(--speed);
}
/* Маркер у списка тоже под цвет выбранной отделки */
.c-finish .c-check li::marker {
	color: var(--tint);
}

/* Палитра по классам на секции */
.c-finish.t-ash .c-finish-fig {
	--tint: #caa97a;
}
.c-finish.t-teak .c-finish-fig {
	--tint: #a06b3c;
}
.c-finish.t-oak .c-finish-fig {
	--tint: #b88b56;
}
.c-finish.t-steel .c-finish-fig {
	--tint: #8aa0ad;
}
.c-finish.t-copper .c-finish-fig {
	--tint: #c4764e;
}
/* ===== Section 6: Curator’s Picks ===== */
.picks {
	padding: 34px 0;
}
.picks-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pick-card {
	display: grid;
	gap: 10px;
}
.pick-media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
}
.pick-media img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}
.save-btn {
	position: absolute;
	top: 10px;
	left: 10px;
	border: 1px solid var(--line);
	background: #fff;
	color: #111;
	border-radius: 999px;
	padding: 6px 10px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: transform var(--speed), background var(--speed),
		border-color var(--speed);
}
.save-btn:hover {
	transform: translateY(-2px);
}
.save-btn[aria-pressed='true'] {
	background: #fff7e6;
	border-color: #ffd9a8;
}
.pick-copy h3 {
	margin: 0 0 6px;
}
.meter {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	height: 24px;
	overflow: hidden;
	display: grid;
	align-items: center;
}
.meter span {
	--v: 50%;
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--v);
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	transition: width 420ms ease;
}
.meter em {
	padding-left: 10px;
	font-style: normal;
	font-weight: 700;
	position: relative;
	z-index: 2;
}

@media (max-width: 980px) {
	.picks-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.picks-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 7: Bundles ===== */
.bundles {
	padding: 34px 0;
}
.bundles-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.bundle-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	margin-top: 8px;
}
.bundle-table th,
.bundle-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
.bundle-table tbody tr {
	cursor: pointer;
	transition: background var(--speed);
}
.bundle-table tbody tr:hover {
	background: #fff9ec;
}
.bundle-table .is-active {
	background: #fff7e6;
}
.bundles-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}
@media (max-width: 980px) {
	.bundles-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 8: Numeral Library ===== */
.nums {
	padding: 34px 0;
}
.nums-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.num-card {
	overflow: hidden;
}
.num-card img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	transform: scale(1.02);
	transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.num-card:hover img {
	transform: scale(1.12);
}
@media (max-width: 980px) {
	.nums-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.nums-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 9: Mounting ===== */
.mount {
	padding: 34px 0;
}
.mount-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.mount-points {
	list-style: disc;
	margin: 8px 0 0 18px;
	color: var(--muted);
}
.mount-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
	.mount-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.mount-figs {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 10: Monsoon Care ===== */
.monsoon {
	padding: 34px 0;
}
.monsoon-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.monsoon-steps {
	margin: 8px 0 0 18px;
}
.monsoon-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
	.monsoon-grid {
		grid-template-columns: 1fr;
	}
	.monsoon-figs {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.monsoon-figs {
		grid-template-columns: 1fr;
	}
}
/* ===== Section 11: Palette Composer ===== */
.palette {
	padding: 34px 0;
}
.palette-grid {
	display: grid;
	gap: 20px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.composer .palette-rail {
	margin: 10px 0 12px;
}
.comp-dial {
	--d: 220px;
	--accent: #caa970; /* brass by default */
	--ink: #222;
	width: var(--d);
	height: var(--d);
	border-radius: 50%;
	background: radial-gradient(70% 60% at 50% 45%, #fff, #fff2d9);
	border: 2px solid var(--line);
	margin: 6px 0 8px;
	position: relative;
	box-shadow: var(--shadow);
}
.comp-dial .ring {
	position: absolute;
	inset: 12px;
	border-radius: 50%;
	border: 3px solid var(--accent);
}
.comp-dial .marks {
	position: absolute;
	inset: 8px;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
}
.comp-dial .marks i {
	height: 6px;
	width: 2px;
	background: var(--ink);
	justify-self: center;
	border-radius: 2px;
}
.comp-dial .hands .h {
	position: absolute;
	left: 50%;
	top: 50%;
	transform-origin: 50% 100%;
	width: 3px;
	background: var(--ink);
	border-radius: 3px;
}
.comp-dial .h-hour {
	height: calc(var(--d) * 0.23);
	transform: translate(-50%, -100%) rotate(40deg);
}
.comp-dial .h-min {
	height: calc(var(--d) * 0.33);
	transform: translate(-50%, -100%) rotate(120deg);
}
.comp-dial .h-sec {
	height: calc(var(--d) * 0.36);
	transform: translate(-50%, -100%);
	background: var(--accent);
	animation: sweep 6s linear infinite;
}
.accent-label {
	color: var(--muted);
}

.palette-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
	.palette-grid {
		grid-template-columns: 1fr;
	}
	.palette-figs {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.palette-figs {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 12: Paper Templates ===== */
.tpl {
	padding: 34px 0;
}
.tpl-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.tpl-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.tpl-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}
.tpl-table tbody tr {
	cursor: pointer;
	transition: background var(--speed);
}
.tpl-table tbody tr:hover {
	background: #fff9ec;
}
.tpl-table tbody .is-active {
	background: #fff7e6;
}
@media (max-width: 980px) {
	.tpl-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.tpl-figs {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 13: Movement Modules ===== */
.mods {
	padding: 34px 0;
}
.mods-grid {
	display: grid;
	gap: 14px;
	align-items: start;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mov-card {
	position: relative;
	perspective: 900px;
	height: 180px;
	overflow: hidden;
}
.mov-card .mov-face,
.mov-card .mov-back {
	position: absolute;
	inset: 0;
	padding: 12px;
	display: grid;
	align-content: start;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backface-visibility: hidden;
	transform-style: preserve-3d;
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mov-card .mov-back {
	transform: rotateY(180deg);
}
.mov-card.is-flipped .mov-face {
	transform: rotateY(180deg);
}
.mov-card.is-flipped .mov-back {
	transform: rotateY(360deg);
}
.mods-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
	.mods-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 14: Edge Details ===== */
.edges {
	padding: 34px 0;
}
.edges-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.edges-points {
	list-style: disc;
	margin: 8px 0 0 18px;
	color: var(--muted);
}
.edges-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
	.edges-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.edges-figs {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 15: Sustainability Stats ===== */
.sus {
	padding: 34px 0;
}
.sus-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.sus-cards {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sus-card h3 {
	margin: 0 0 6px;
}
.badge {
	margin-top: 8px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	background: radial-gradient(60% 60% at 50% 40%, #fff, #fff2d9);
	border: 2px solid var(--line);
	box-shadow: var(--shadow);
}
.sus-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 1080px) {
	.sus-cards {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
@media (max-width: 980px) {
	.sus-grid {
		grid-template-columns: 1fr;
	}
	.sus-cards {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
@media (max-width: 640px) {
	.sus-cards {
		grid-template-columns: 1fr;
	}
	.sus-figs {
		grid-template-columns: 1fr;
	}
}
/* ========= Tiny Buttons: chips & pills (Collections) ========= */

/* Общий стиль для маленьких кнопок */
.chip,
.pill {
	--bg: #fff;
	--bd: var(--line);
	--txt: var(--ink);
	background: var(--bg);
	color: var(--txt);
	border: 1px solid var(--bd);
	border-radius: 999px;
	padding: 8px 12px;
	font-weight: 600;
	letter-spacing: 0.2px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transform: translateZ(0);
	transition: background var(--speed), color var(--speed),
		border-color var(--speed), transform var(--speed), box-shadow var(--speed);
}

.chip:hover,
.pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}
.chip:active,
.pill:active {
	transform: translateY(0);
}

.chip:focus-visible,
.pill:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(251, 133, 0, 0.22), 0 6px 18px rgba(0, 0, 0, 0.1);
	border-color: #ffd9a8;
}

/* Активное состояние (aria-selected или служебный класс) */
.chip[aria-selected='true'],
.chip.is-active,
.pill[aria-selected='true'],
.pill.is-active {
	--bg: #fff7e6;
	--bd: #ffd9a8;
}

/* --- Палитра акцентов для Palette Composer (по data-accent) --- */
.palette-rail .chip[aria-selected='true'][data-accent='brass'] {
	--bg: #fff8ec;
	--bd: #e8d4a6;
}
.palette-rail .chip[aria-selected='true'][data-accent='copper'] {
	--bg: #fff1ea;
	--bd: #e4b199;
}
.palette-rail .chip[aria-selected='true'][data-accent='steel'] {
	--bg: #eef4f8;
	--bd: #c1ced6;
}
.palette-rail .chip[aria-selected='true'][data-accent='sage'] {
	--bg: #edf4ef;
	--bd: #b8d0c4;
}
.palette-rail .chip[aria-selected='true'][data-accent='ink'] {
	--bg: #f1f1f1;
	--bd: #cfcfcf;
}

/* Группы кнопок — ровные промежутки и перенос */
.palette-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tpl-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Компактнее на узких экранах */
@media (max-width: 420px) {
	.chip,
	.pill {
		padding: 7px 10px;
		font-weight: 600;
	}
}
/* ===== Section 16: Price Bands ===== */
.price {
	padding: 34px 0;
}
.price-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.price-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}
.price-table tbody tr {
	cursor: pointer;
	transition: background var(--speed);
}
.price-table tbody tr:hover {
	background: #fff9ec;
}
.price-table .is-active {
	background: #fff7e6;
}

@media (max-width: 980px) {
	.price-grid {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 17: Outlet / Seconds ===== */
.outlet {
	padding: 34px 0;
}
.outlet-grid {
	display: grid;
	gap: 18px;
}
.outlet-cards {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.out-card h3 {
	margin: 0 0 6px;
}
.out-points {
	list-style: disc;
	margin: 6px 0 0 18px;
	color: var(--muted);
}
.out-note {
	margin-top: 8px;
}
.outlet-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
	.outlet-cards {
		grid-template-columns: 1fr;
	}
	.outlet-figs {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.outlet-figs {
		grid-template-columns: 1fr;
	}
}

/* ===== Section 18: Gallery Wall Planner ===== */
.planner {
	padding: 34px 0;
}
.planner-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: 1.1fr 0.9fr;
}
.plan-demo {
	--gap: 14px;
	--size: 14px;
	display: grid;
	grid-template-columns: repeat(3, var(--size));
	gap: var(--gap);
	margin-top: 10px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: max-content;
}
.plan-demo i {
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	background: radial-gradient(60% 60% at 50% 40%, #fff, #ffeac4);
	border: 1px solid #f2d2a4;
	transition: transform 260ms ease, opacity 260ms ease;
}
.planner.t-eclectic .plan-demo {
	grid-template-columns: repeat(4, var(--size));
}
.planner.t-eclectic .plan-demo i:nth-child(2) {
	transform: translateY(6px);
}
.planner.t-eclectic .plan-demo i:nth-child(4) {
	transform: translateY(-6px);
}
.planner.t-linear .plan-demo {
	grid-template-columns: repeat(9, var(--size));
}
.planner.t-linear .plan-demo i {
	opacity: 0.9;
}

.plan-figs {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
	.planner-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.plan-figs {
		grid-template-columns: 1fr;
	}
}
/* ==== Responsive: Section 3 — Line Comparison Matrix ==== */

/* 1) До планшета — просто разрешаем горизонтальный скролл таблицы */
@media (max-width: 780px) {
	.c-compare {
		padding: 24px 0;
	}
	.c-compare-grid {
		gap: 14px;
	}

	/* сам <table> становится блочным контейнером со скроллом */
	.c-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap; /* не переносим заголовки */
	}
	.c-table thead th,
	.c-table tbody td {
		white-space: nowrap;
	}
}

/* 2) Узкие телефоны — превращаем каждую строку в карточку со своими лейблами */
@media (max-width: 520px) {
	/* прячем заголовок таблицы */
	.c-table thead {
		display: none;
	}

	/* делаем «карточку-строку» */
	.c-table {
		display: block;
		overflow: visible; /* уже не нужен горизонтальный скролл */
		white-space: normal;
		border: 0;
		box-shadow: none;
	}
	.c-table tbody {
		display: grid;
		gap: 10px;
	}
	.c-table tbody tr {
		display: block;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		overflow: hidden;
	}
	.c-table tbody td {
		display: grid;
		grid-template-columns: 110px 1fr; /* колонка «лейбл | значение» */
		gap: 8px;
		padding: 10px 12px;
		border-bottom: 1px solid var(--line);
	}
	.c-table tbody td:last-child {
		border-bottom: 0;
	}

	/* подписи к ячейкам через псевдоэлементы */
	.c-table tbody td:nth-child(1)::before {
		content: 'Line';
		font-weight: 700;
		color: var(--muted);
	}
	.c-table tbody td:nth-child(2)::before {
		content: 'Dial';
		font-weight: 700;
		color: var(--muted);
	}
	.c-table tbody td:nth-child(3)::before {
		content: 'Lens';
		font-weight: 700;
		color: var(--muted);
	}
	.c-table tbody td:nth-child(4)::before {
		content: 'Sound';
		font-weight: 700;
		color: var(--muted);
	}
	.c-table tbody td:nth-child(5)::before {
		content: 'Sizes';
		font-weight: 700;
		color: var(--muted);
	}

	/* картинка под таблицей и по центру */
	.c-compare-fig {
		justify-self: center;
		max-width: 350px;
	}
}
/* ==== Responsive: Section 13 — Movement Modules ==== */

/* Умное масштабирование высоты карточек (для flip-анимации) */
.mov-card {
	height: clamp(
		160px,
		34vw,
		220px
	); /* растёт на планшете, компактно на мобилке */
}

/* Центруем картинки, не даём им становиться «палочками» */
.mods-figs .tile {
	justify-self: center;
	max-width: 350px;
}
.mods-figs img {
	width: 100%;
	max-width: 350px; /* общий лимит проекта */
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Планшет: секция складывается в одну колонку, изображения — по 2 в ряд */
@media (max-width: 980px) {
	.mods-grid {
		grid-template-columns: 1fr;
	} /* карточки одна под другой */
	.mods-figs {
		grid-template-columns: 1fr 1fr;
	}
}

/* Телефоны: изображения — по одной в ряд, чуть меньше отступы */
@media (max-width: 560px) {
	.mods-figs {
		grid-template-columns: 1fr;
	}
	.mods-grid {
		gap: 12px;
	}
}

/* Если пользователь просит меньше анимаций — убираем флип */
@media (prefers-reduced-motion: reduce) {
	.mov-card .mov-face,
	.mov-card .mov-back {
		transition: none;
	}
}
/* ===== Section 19: Care & Warranty Handbook ===== */
.handbook {
	padding: 40px 0;
}
.hand-grid {
	display: grid;
	gap: 18px;
	align-items: start;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hand-col h3 {
	margin: 0 0 6px;
}
.hand-col p {
	margin: 8px 0;
}
.hand-col .small {
	color: var(--muted);
	font-size: 0.95rem;
}

/* списки с «тиками» без изображений */
.tick-list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 6px;
}
.tick-list li {
	position: relative;
	padding-left: 22px;
}
.tick-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px #ffd9a8;
	background: radial-gradient(60% 60% at 50% 40%, #fff, #fff2d9);
}

/* термины */
.hand-terms {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 6px 10px;
	margin: 8px 0;
}
.hand-terms dt {
	font-weight: 700;
	color: var(--ink);
}
.hand-terms dd {
	margin: 0;
	color: var(--muted);
}

/* FAQ */
.hand-faq {
	margin-top: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 10px;
}
.hand-faq summary {
	cursor: pointer;
	font-weight: 700;
}

/* таймлайн */
.hand-timeline {
	counter-reset: step;
	margin: 8px 0 10px 0;
	padding-left: 0;
	list-style: none;
}
.hand-timeline li {
	position: relative;
	padding-left: 18px;
	margin: 6px 0;
}
.hand-timeline li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	box-shadow: 0 0 0 2px #ffe7c5;
}

/* мини-таблица */
.hand-battery {
	margin-top: 8px;
}

/* адаптив */
@media (max-width: 1080px) {
	.hand-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 640px) {
	.hand-grid {
		grid-template-columns: 1fr;
	}
}
/* ==== Responsive: Section 16 — Price Bands ==== */

/* Чипы — в строку с переносом */
.price .chip-rail {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Планшет: оставляем таблицу, даём горизонтальный скролл */
@media (max-width: 780px) {
	.price-grid {
		gap: 14px;
	}
	.price .c-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
	.price .c-table thead th,
	.price .c-table tbody td {
		white-space: nowrap;
	}
}

/* Телефоны: таблица превращается в карточки-строки с подписями */
@media (max-width: 560px) {
	.price-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	/* карточный вид */
	.price .c-table thead {
		display: none;
	}
	.price .c-table {
		display: block;
		overflow: visible;
		white-space: normal;
		border: 0;
		box-shadow: none;
		background: transparent;
	}
	.price .c-table tbody {
		display: grid;
		gap: 10px;
	}
	.price .c-table tbody tr {
		display: block;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	.price .c-table tbody td {
		display: grid;
		grid-template-columns: 110px 1fr;
		gap: 8px;
		padding: 10px 12px;
		border-top: 1px solid var(--line);
	}
	.price .c-table tbody td:first-child {
		border-top: 0;
	}

	/* подписи к ячейкам */
	.price .c-table tbody td:nth-child(1)::before {
		content: 'Band';
		font-weight: 700;
		color: var(--muted);
	}
	.price .c-table tbody td:nth-child(2)::before {
		content: 'Finish';
		font-weight: 700;
		color: var(--muted);
	}
	.price .c-table tbody td:nth-child(3)::before {
		content: 'Lens';
		font-weight: 700;
		color: var(--muted);
	}
	.price .c-table tbody td:nth-child(4)::before {
		content: 'Dial work';
		font-weight: 700;
		color: var(--muted);
	}

	/* картинка по центру, не шире 350 px */
	.price-figs .tile {
		justify-self: center;
		max-width: 350px;
	}
	.price-figs img {
		width: 100%;
		max-width: 350px;
		aspect-ratio: 4/3;
		object-fit: cover;
	}
}
/* === Hotfix: Price Bands table overflow (560–780px) === */
@media (min-width: 560px) and (max-width: 780px) {
	/* не даём секции раздувать страницу по X */
	.price {
		overflow-x: hidden;
	}

	/* таблица скроллится внутри себя и не «выпирает» */
	.price .c-table {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		table-layout: fixed; /* фиксируем расчёт колонок */
		white-space: normal; /* разрешаем перенос текста */
	}

	/* заголовки можно оставить без переноса,
     но содержимое строк переносим, чтобы не тянуло ширину */
	.price .c-table thead th {
		white-space: nowrap;
	}
	.price .c-table tbody td {
		white-space: normal;
		word-break: break-word;
	}
}
/* === Hotfix: Compare Lines table overflow (560–780px) === */
@media (min-width: 560px) and (max-width: 780px) {
	/* не даём секции раздувать страницу по X */
	.c-compare {
		overflow-x: hidden;
	}

	/* таблица заполняет контейнер и не тянет ширину страницы */
	.c-compare .c-table {
		display: block;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;

		/* если колонок много — внутренняя прокрутка,
       но текст в ячейках можно переносить */
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;

		table-layout: fixed; /* фиксируем расчёт ширины колонок */
		white-space: normal; /* разрешаем перенос строк */
	}

	/* заголовки можно оставить без переноса */
	.c-compare .c-table thead th {
		white-space: nowrap;
	}

	/* содержимое переносим, чтобы не раздвигало таблицу */
	.c-compare .c-table tbody td {
		white-space: normal;
		word-break: break-word;
	}
}

/* на всякий случай — центрируем картинку под таблицей и ограничиваем её ширину */
.c-compare-fig .tile {
	justify-self: center;
	max-width: 350px;
}
.c-compare-fig img {
	width: 100%;
	max-width: 350px;
	aspect-ratio: 4/3;
	object-fit: cover;
}
/* ==== Fix: force card layout up to 570px (Compare Lines + Price Bands) ==== */
@media (max-width: 570px) {
	/* -- Compare Lines (Section: c-compare) -- */
	.c-compare .c-table thead {
		display: none;
	}
	.c-compare .c-table {
		display: block;
		overflow: visible;
		white-space: normal;
		border: 0;
		box-shadow: none;
		background: transparent;
	}
	.c-compare .c-table tbody {
		display: grid;
		gap: 10px;
	}
	.c-compare .c-table tbody tr {
		display: block;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	.c-compare .c-table tbody td {
		display: grid;
		grid-template-columns: 110px 1fr;
		gap: 8px;
		padding: 10px 12px;
		border-top: 1px solid var(--line);
		word-break: break-word;
	}
	.c-compare .c-table tbody td:first-child {
		border-top: 0;
	}
	/* подписи */
	.c-compare .c-table tbody td:nth-child(1)::before {
		content: 'Line';
		font-weight: 700;
		color: var(--muted);
	}
	.c-compare .c-table tbody td:nth-child(2)::before {
		content: 'Dial';
		font-weight: 700;
		color: var(--muted);
	}
	.c-compare .c-table tbody td:nth-child(3)::before {
		content: 'Lens';
		font-weight: 700;
		color: var(--muted);
	}
	.c-compare .c-table tbody td:nth-child(4)::before {
		content: 'Sound';
		font-weight: 700;
		color: var(--muted);
	}
	.c-compare .c-table tbody td:nth-child(5)::before {
		content: 'Sizes';
		font-weight: 700;
		color: var(--muted);
	}
	/* изображение под таблицей */
	.c-compare-fig .tile {
		justify-self: center;
		max-width: 350px;
	}
	.c-compare-fig img {
		width: 100%;
		max-width: 350px;
		aspect-ratio: 4/3;
		object-fit: cover;
	}

	/* -- Price Bands (Section: price) — расширяем карточный режим до 570px -- */
	.price .c-table thead {
		display: none;
	}
	.price .c-table {
		display: block;
		overflow: visible;
		white-space: normal;
		border: 0;
		box-shadow: none;
		background: transparent;
	}
	.price .c-table tbody {
		display: grid;
		gap: 10px;
	}
	.price .c-table tbody tr {
		display: block;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	.price .c-table tbody td {
		display: grid;
		grid-template-columns: 110px 1fr;
		gap: 8px;
		padding: 10px 12px;
		border-top: 1px solid var(--line);
		word-break: break-word;
	}
	.price .c-table tbody td:first-child {
		border-top: 0;
	}
	.price .c-table tbody td:nth-child(1)::before {
		content: 'Band';
		font-weight: 700;
		color: var(--muted);
	}
	.price .c-table tbody td:nth-child(2)::before {
		content: 'Finish';
		font-weight: 700;
		color: var(--muted);
	}
	.price .c-table tbody td:nth-child(3)::before {
		content: 'Lens';
		font-weight: 700;
		color: var(--muted);
	}
	.price .c-table tbody td:nth-child(4)::before {
		content: 'Dial work';
		font-weight: 700;
		color: var(--muted);
	}
	.price-figs .tile {
		justify-self: center;
		max-width: 350px;
	}
	.price-figs img {
		width: 100%;
		max-width: 350px;
		aspect-ratio: 4/3;
		object-fit: cover;
	}
}
/* Meter bar without inline styles */
.meter {
	--h: 6px;
	background: #f3f3f3;
	border-radius: 999px;
	padding: 3px;
	box-shadow: inset 0 0 0 1px var(--line);
}
.meter span {
	display: block;
	height: var(--h);
	width: 0; /* default, потом задаём через класс */
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	transition: width 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.meter em {
	display: block;
	margin-top: 6px;
	font-style: normal;
	color: var(--muted);
	font-size: 0.9rem;
}

/* значения (без инлайна) */
.meter.v-78 span {
	width: 78%;
}
.meter.v-84 span {
	width: 84%;
}
.meter.v-71 span {
	width: 71%;
}

/* уважение системных настроек по анимациям */
@media (prefers-reduced-motion: reduce) {
	.meter span {
		transition: none;
	}
}
