/*
 * ГдеЛом — основной стиль темы.
 *
 * Токены цвета приходят из Customizer (inc/customizer.php → spch_customizer_css):
 * --spch-bg, --spch-text, --spch-accent, --spch-accent-strong, --spch-warm,
 * --spch-font, --spch-logo-height, --spch-base-font-size.
 */

:root {
	--spch-bg: #f3f4f1;
	--spch-surface: #ffffff;
	--spch-surface-soft: #f7f8f5;
	--spch-surface-strong: #eaeee7;
	--spch-text: #15191c;
	--spch-ink: #15191c;
	--spch-muted: #5d6660;
	--spch-faint: #8a918c;
	--spch-line: #e1e5de;
	--spch-line-strong: #cfd5cc;
	--spch-accent: #18794e;
	--spch-accent-strong: #0f5c3a;
	--spch-accent-soft: #e6f3ec;
	--spch-warm: #c2622d;
	--spch-warm-soft: #fbeee6;
	--spch-graphite: #16191c;
	--spch-graphite-2: #20252a;
	--spch-on-dark: #f4f1ec;
	--spch-on-dark-muted: rgba(244, 241, 236, 0.72);
	--spch-radius-sm: 8px;
	--spch-radius: 14px;
	--spch-radius-lg: 20px;
	--spch-shadow-sm: 0 1px 2px rgba(21, 25, 28, 0.06);
	--spch-shadow: 0 1px 2px rgba(21, 25, 28, 0.05), 0 8px 24px rgba(21, 25, 28, 0.06);
	--spch-shadow-lg: 0 24px 60px rgba(10, 12, 14, 0.28);
	--spch-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--spch-base-font-size: 16px;
	--spch-logo-height: 44px;
	--spch-header-height: 72px;
	--spch-gutter: 20px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--spch-header-height) + 16px);
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--spch-bg);
	color: var(--spch-text);
	font-family: var(--spch-font);
	font-size: var(--spch-base-font-size);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.spch-nav-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 140ms ease;
}

a:hover {
	color: var(--spch-accent);
}

img,
iframe,
video {
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--spch-accent) 45%, transparent);
	outline-offset: 2px;
}

::selection {
	background: color-mix(in srgb, var(--spch-accent) 22%, transparent);
}

.spch-container {
	width: min(1200px, calc(100% - 2 * var(--spch-gutter)));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.spch-skip-link {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: var(--spch-radius-sm);
	background: var(--spch-ink);
	color: #fff;
	transform: translateY(-160%);
}

.spch-skip-link:focus {
	transform: none;
	color: #fff;
}

/* ---------- Кнопки и поля ---------- */

.spch-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--spch-accent);
	border-radius: 12px;
	background: var(--spch-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.spch-button:hover {
	border-color: var(--spch-accent-strong);
	background: var(--spch-accent-strong);
	color: #fff;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--spch-accent) 28%, transparent);
}

.spch-button:active {
	transform: translateY(1px);
}

.spch-button-secondary {
	border-color: var(--spch-line-strong);
	background: var(--spch-surface);
	color: var(--spch-ink);
}

.spch-button-secondary:hover {
	border-color: var(--spch-ink);
	background: var(--spch-surface);
	color: var(--spch-ink);
	box-shadow: none;
}

.spch-button-warm {
	border-color: var(--spch-warm);
	background: var(--spch-warm);
}

.spch-button-warm:hover {
	border-color: color-mix(in srgb, var(--spch-warm) 80%, #000);
	background: color-mix(in srgb, var(--spch-warm) 80%, #000);
}

.spch-button-small {
	min-height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 14px;
}

.spch-button svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.spch-link-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--spch-accent);
	font-weight: 700;
	white-space: nowrap;
}

.spch-link-more::after {
	content: "→";
	transition: transform 140ms ease;
}

.spch-link-more:hover::after {
	transform: translateX(3px);
}

.spch-picker {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
	margin: 0;
}

.spch-picker label {
	display: grid;
	gap: 6px;
	min-width: 0;
	color: var(--spch-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.spch-picker select,
.spch-picker input {
	width: 100%;
	min-width: 0;
	min-height: 50px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 12px;
	background-color: var(--spch-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6660' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	color: var(--spch-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.spch-picker select:hover {
	border-color: var(--spch-muted);
}

.spch-picker select:focus {
	border-color: var(--spch-accent);
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--spch-accent) 18%, transparent);
}

.spch-picker .spch-button {
	min-height: 50px;
}

.spch-picker-compact {
	max-width: 860px;
	margin-top: 24px;
}

.spch-picker-note {
	margin: 14px 0 0;
	color: var(--spch-muted);
	font-size: 14px;
}

/* ---------- Шапка ---------- */

.spch-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--spch-line);
	background: var(--spch-surface);
}

.admin-bar .spch-site-header {
	top: 32px;
}

.spch-site-header-glass {
	background: color-mix(in srgb, var(--spch-surface) 88%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}

.spch-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--spch-header-height);
}

.spch-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;
	min-width: 0;
	color: var(--spch-ink);
}

.spch-brand:hover {
	color: var(--spch-ink);
}

.spch-logo-img {
	display: block;
	width: auto;
	height: var(--spch-logo-height);
	object-fit: contain;
}

.spch-brand-text {
	display: grid;
	gap: 2px;
	line-height: 1.05;
}

.spch-brand-text strong {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.spch-brand-text small {
	color: var(--spch-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.spch-primary-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.spch-menu,
.spch-footer-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-menu {
	justify-content: center;
}

.spch-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--spch-ink);
	font-size: 15px;
	font-weight: 600;
}

.spch-menu a:hover,
.spch-menu .current-menu-item > a,
.spch-menu .current_page_item > a {
	background: var(--spch-surface-strong);
	color: var(--spch-ink);
}

.spch-menu .sub-menu {
	display: none;
}

.spch-header-actions {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 14px;
}

.spch-header-notice {
	max-width: 200px;
	color: var(--spch-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.spch-header-phone {
	display: grid;
	gap: 1px;
	text-align: right;
}

.spch-header-phone small {
	color: var(--spch-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.spch-header-phone strong {
	font-size: 15px;
	white-space: nowrap;
}

.spch-button.spch-button-header {
	min-height: 42px;
	padding: 0 16px;
	border-radius: 11px;
	font-size: 14px;
}

.spch-nav-toggle {
	display: none;
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--spch-line-strong);
	border-radius: 12px;
	background: var(--spch-surface);
	cursor: pointer;
}

.spch-nav-toggle span {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--spch-ink);
	transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.spch-nav-toggle span:nth-child(1) {
	top: 14px;
}

.spch-nav-toggle span:nth-child(2) {
	top: 21px;
}

.spch-nav-toggle span:nth-child(3) {
	top: 28px;
}

.spch-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	top: 21px;
	transform: rotate(45deg);
}

.spch-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.spch-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	top: 21px;
	transform: rotate(-45deg);
}

.spch-nav-mobile-extra {
	display: none;
}

/* ---------- Hero главной ---------- */

.spch-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 56px;
	background:
		radial-gradient(900px 480px at 88% -10%, color-mix(in srgb, var(--spch-warm) 38%, transparent), transparent 62%),
		radial-gradient(700px 420px at -5% 110%, color-mix(in srgb, var(--spch-accent) 34%, transparent), transparent 60%),
		linear-gradient(160deg, var(--spch-graphite-2), var(--spch-graphite) 60%);
	color: var(--spch-on-dark);
	isolation: isolate;
}

.spch-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
	mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.spch-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
	align-items: center;
	gap: 48px;
}

.spch-hero .spch-eyebrow {
	color: color-mix(in srgb, var(--spch-warm) 55%, #fff);
}

.spch-hero-copy h1 {
	max-width: 720px;
	margin: 14px 0 18px;
	font-size: clamp(34px, 5.2vw, 58px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.spch-hero-copy > p:not(.spch-eyebrow) {
	max-width: 600px;
	color: var(--spch-on-dark-muted);
	font-size: 18px;
}

.spch-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.spch-hero-stats li {
	display: grid;
	min-width: 132px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--spch-on-dark-muted);
	font-size: 13px;
	line-height: 1.3;
}

.spch-hero-stats strong {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.spch-hero-panel {
	padding: 28px;
	border-radius: var(--spch-radius-lg);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-lg);
	color: var(--spch-text);
}

.spch-hero-panel h2 {
	margin-bottom: 18px;
	font-size: 22px;
	font-weight: 800;
}

.spch-hero-panel .spch-picker {
	grid-template-columns: 1fr;
}

.spch-hero-panel .spch-picker .spch-button {
	width: 100%;
	min-height: 54px;
	font-size: 16px;
}

.spch-hero-panel [data-spch-results] {
	margin-top: 16px;
}

/* ---------- Внутренние hero ---------- */

.spch-page-hero {
	position: relative;
	padding: 36px 0 40px;
	border-bottom: 1px solid var(--spch-line);
	background:
		radial-gradient(640px 280px at 100% 0%, color-mix(in srgb, var(--spch-warm) 10%, transparent), transparent 70%),
		linear-gradient(180deg, var(--spch-surface), var(--spch-surface-soft));
}

.spch-page-hero h1 {
	max-width: 900px;
	margin: 10px 0 12px;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.spch-lead {
	max-width: 720px;
	color: var(--spch-muted);
	font-size: 17px;
}

.spch-lead p {
	margin: 0;
}

.spch-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.spch-hero-facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--spch-line);
	border-radius: 99px;
	background: var(--spch-surface);
	color: var(--spch-muted);
	font-size: 14px;
}

.spch-hero-facts strong {
	color: var(--spch-ink);
}

.spch-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--spch-faint);
	font-size: 13px;
}

.spch-breadcrumbs a {
	color: var(--spch-muted);
}

.spch-breadcrumbs a:hover {
	color: var(--spch-accent);
}

.spch-breadcrumbs > span:last-child {
	color: var(--spch-ink);
}

/* ---------- Секции ---------- */

.spch-main {
	display: block;
	min-height: 50vh;
}

.spch-section {
	padding: 56px 0;
}

.spch-section-tight {
	padding: 40px 0;
}

.spch-section-muted {
	border-block: 1px solid var(--spch-line);
	background: var(--spch-surface-soft);
}

.spch-section-dark {
	background: var(--spch-graphite);
	color: var(--spch-on-dark);
}

.spch-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.spch-section-head h2 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.spch-section-head p:not(.spch-eyebrow) {
	max-width: 640px;
	margin: 8px 0 0;
	color: var(--spch-muted);
}

.spch-section-head-secondary {
	margin-top: 40px;
}

.spch-eyebrow {
	margin: 0;
	color: var(--spch-warm);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.spch-muted {
	margin: 0;
	color: var(--spch-muted);
}

.spch-grid {
	display: grid;
	gap: 16px;
}

.spch-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spch-two-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.spch-empty-state {
	grid-column: 1 / -1;
	padding: 28px 24px;
	border: 1px dashed var(--spch-line-strong);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	color: var(--spch-muted);
	text-align: center;
}

.spch-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- Панели и карточки ---------- */

.spch-panel,
.spch-card,
.spch-feature,
.spch-org-card,
.spch-result-card,
.spch-best-card,
.spch-city-card {
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-sm);
}

.spch-panel {
	padding: 24px;
}

.spch-panel h2 {
	margin-bottom: 16px;
	font-size: 20px;
	font-weight: 800;
}

.spch-panel + .spch-panel {
	margin-top: 16px;
}

/* Лучшие цены по металлам */
.spch-best-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.spch-best-card {
	position: relative;
	display: grid;
	gap: 6px;
	padding: 18px 18px 16px;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.spch-best-card:hover {
	border-color: var(--spch-line-strong);
	box-shadow: var(--spch-shadow);
	transform: translateY(-2px);
	color: inherit;
}

.spch-best-card-metal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-weight: 800;
}

.spch-best-card-metal span {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 600;
}

.spch-best-card-price {
	color: var(--spch-ink);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.spch-best-card-org {
	overflow: hidden;
	color: var(--spch-muted);
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spch-best-card-org strong {
	color: var(--spch-ink);
	font-weight: 700;
}

.spch-best-card::before {
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: -1px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	content: "";
	background: var(--spch-warm);
}

/* Результаты подбора */
.spch-results-grid {
	display: grid;
	gap: 12px;
}

.spch-result-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 24px;
	padding: 18px 20px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.spch-result-card:hover {
	border-color: var(--spch-line-strong);
	box-shadow: var(--spch-shadow);
}

.spch-result-main,
.spch-org-card-main {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.spch-result-copy,
.spch-org-card-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.spch-result-copy h3,
.spch-org-card h3 {
	font-size: 18px;
	font-weight: 800;
}

.spch-result-copy .spch-muted,
.spch-org-card .spch-muted {
	font-size: 14px;
	line-height: 1.45;
}

.spch-result-copy .spch-muted a,
.spch-org-card .spch-muted a {
	color: var(--spch-ink);
	font-weight: 600;
}

.spch-result-price {
	display: grid;
	justify-items: end;
	gap: 4px;
	text-align: right;
}

.spch-result-price strong {
	color: var(--spch-ink);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.spch-result-price span {
	color: var(--spch-faint);
	font-size: 13px;
}

.spch-result-rank {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 2px 8px;
	border-radius: 99px;
	background: var(--spch-accent-soft);
	color: var(--spch-accent-strong);
	font-size: 12px;
	font-weight: 800;
}

/* Логотип организации */
.spch-org-logo {
	display: grid;
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	overflow: hidden;
	place-items: center;
	border: 1px solid var(--spch-line);
	border-radius: 14px;
	background: var(--spch-surface-soft);
}

.spch-org-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Картинка занимает плитку целиком, рамка рисуется поверх: у тёмных логотипов
   не остаётся светлой каймы между рамкой и изображением. */
.spch-org-logo:not(.spch-org-logo-fallback) {
	position: relative;
	border: 0;
	background: #fff;
}

.spch-org-logo:not(.spch-org-logo-fallback)::after {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(24, 26, 30, 0.1);
	border-radius: inherit;
	content: "";
	pointer-events: none;
}

/* Логотип-надпись: плитка 24:13, как у подготовленных логотипов базы. */
.spch-org-logo--wide {
	width: 96px;
}

.spch-org-logo-fallback {
	border-color: transparent;
	background: linear-gradient(145deg, var(--spch-graphite-2), var(--spch-graphite));
	color: #fff;
}

.spch-org-logo-fallback span {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* Карточки организаций */
.spch-org-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.spch-org-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.spch-org-card:hover {
	border-color: var(--spch-line-strong);
	box-shadow: var(--spch-shadow);
}

.spch-org-card-side {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	padding-top: 12px;
	border-top: 1px solid var(--spch-line);
}

.spch-org-card-side > span,
.spch-org-card-side > strong {
	color: var(--spch-muted);
	font-size: 13px;
	font-weight: 600;
}

.spch-org-card-side .spch-org-card-stamp {
	display: grid;
	gap: 1px;
	color: var(--spch-muted);
	font-size: 12px;
	line-height: 1.3;
}

.spch-org-card-side .spch-org-card-stamp strong {
	color: var(--spch-ink);
	font-size: 14px;
}

/* Города */
.spch-city-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.spch-city-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	min-height: 56px;
	overflow-wrap: break-word;
	padding: 12px 16px;
	font-weight: 700;
	transition: border-color 160ms ease, background 160ms ease;
}

.spch-city-card:hover {
	border-color: var(--spch-accent);
	background: var(--spch-accent-soft);
	color: var(--spch-ink);
}

.spch-city-card span {
	flex: 0 0 auto;
	min-width: 28px;
	padding: 2px 8px;
	border-radius: 99px;
	background: var(--spch-surface-strong);
	color: var(--spch-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

/* Чипы */
.spch-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.spch-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--spch-line);
	border-radius: 99px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	font-size: 14px;
	font-weight: 700;
	transition: border-color 140ms ease, background 140ms ease;
}

.spch-chip:hover {
	border-color: var(--spch-accent);
	background: var(--spch-accent-soft);
	color: var(--spch-ink);
}

.spch-chip small {
	color: var(--spch-faint);
	font-size: 12px;
}

/* Преимущества и шаги */
.spch-feature {
	padding: 24px;
}

.spch-feature strong {
	display: inline-grid;
	width: 40px;
	height: 40px;
	place-items: center;
	margin-bottom: 14px;
	border-radius: 12px;
	background: var(--spch-warm-soft);
	color: var(--spch-warm);
	font-size: 15px;
	font-weight: 800;
}

.spch-feature h3 {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 800;
}

.spch-feature p {
	margin: 0;
	color: var(--spch-muted);
}

.spch-steps {
	display: grid;
	gap: 10px;
	counter-reset: spch-step;
}

.spch-steps div {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	font-weight: 600;
}

.spch-steps span {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 12px;
	background: var(--spch-graphite);
	color: #fff;
	font-weight: 800;
}

/* ---------- Таблицы цен ---------- */

.spch-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	-webkit-overflow-scrolling: touch;
}

.spch-price-table,
.spch-summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.spch-price-table th,
.spch-summary-table th {
	padding: 12px 16px;
	border-bottom: 1px solid var(--spch-line);
	background: var(--spch-surface-soft);
	color: var(--spch-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.spch-price-table td,
.spch-summary-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--spch-line);
	vertical-align: middle;
}

.spch-price-table tr:last-child td,
.spch-summary-table tr:last-child td {
	border-bottom: 0;
}

.spch-price-table tbody tr:hover td,
.spch-summary-table tbody tr:hover td {
	background: var(--spch-surface-soft);
}

.spch-price-table td > * {
	margin: 0;
}

.spch-price-metal {
	font-weight: 700;
}

.spch-price-value,
.spch-summary-price {
	color: var(--spch-ink);
	font-weight: 800;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.spch-price-date {
	color: var(--spch-faint);
	font-size: 13px;
	white-space: nowrap;
}

.spch-price-group-row th {
	padding-top: 16px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.spch-price-group-row th a {
	color: inherit;
}

.spch-price-group-row th a:hover {
	color: var(--spch-accent);
}

.spch-price-group-row th span {
	margin-left: 6px;
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 600;
}

.spch-price-child .spch-price-metal {
	padding-left: 12px;
	font-weight: 600;
}

.spch-summary-table td:first-child a {
	font-weight: 800;
}

.spch-summary-org {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.spch-summary-org a {
	font-weight: 700;
}

.spch-summary-org small {
	color: var(--spch-faint);
	font-size: 13px;
}

.spch-price-note {
	display: block;
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 500;
}

.spch-update-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 99px;
	background: var(--spch-accent-soft);
	color: var(--spch-accent-strong);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.spch-update-badge::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	content: "";
	background: currentColor;
}

.spch-source-note {
	margin: 14px 0 0;
	color: var(--spch-faint);
	font-size: 13px;
}

.spch-source-note a {
	color: var(--spch-muted);
	text-decoration: underline;
	text-decoration-color: var(--spch-line-strong);
	text-underline-offset: 3px;
}

/* ---------- Страница организации ---------- */

.spch-org-hero-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-top: 16px;
}

.spch-org-hero-logo {
	width: 76px;
	height: 76px;
	border-radius: 18px;
}

.spch-org-hero-logo.spch-org-logo--wide {
	width: 140px;
}

.spch-org-hero-logo span {
	font-size: 24px;
}

.spch-org-hero-copy {
	min-width: 0;
}

.spch-org-hero-copy h1 {
	margin-top: 6px;
}

.spch-org-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.spch-org-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 20px;
}

.spch-org-main {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.spch-org-main > .spch-panel + .spch-panel {
	margin-top: 0;
}

.spch-org-sidebar {
	display: grid;
	gap: 16px;
	position: sticky;
	top: calc(var(--spch-header-height) + 16px);
	min-width: 0;
}

.admin-bar .spch-org-sidebar {
	top: calc(var(--spch-header-height) + 48px);
}

.spch-org-sidebar .spch-panel + .spch-panel {
	margin-top: 0;
}

.spch-details {
	display: grid;
	gap: 12px;
	margin: 0;
}

.spch-details div {
	display: grid;
	gap: 2px;
}

.spch-details dt {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.spch-details dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.spch-details dd a {
	color: var(--spch-accent);
}

.spch-org-panel-head {
	display: grid;
	gap: 2px;
	margin-bottom: 14px;
}

.spch-org-panel-head h2 {
	margin: 0;
}

.spch-org-panel-kicker {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spch-org-metal-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.spch-org-metal-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--spch-line);
	border-radius: 99px;
	background: var(--spch-surface-soft);
	font-size: 14px;
	font-weight: 700;
}

.spch-org-metal-pill:hover {
	border-color: var(--spch-accent);
	color: var(--spch-ink);
}

.spch-org-metal-mark,
.spch-org-metal-copy small {
	display: none;
}

.spch-org-metal-price {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 600;
}

.spch-panel.spch-map-panel {
	padding: 0;
	overflow: hidden;
}

.spch-map-panel h2 {
	margin: 0;
	padding: 18px 20px 12px;
}

.spch-map {
	display: block;
	width: 100%;
	height: 280px;
	border: 0;
}

.spch-history-list {
	display: grid;
	gap: 0;
}

.spch-history-list div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--spch-line);
	font-size: 14px;
}

.spch-history-list div:last-child {
	border-bottom: 0;
}

.spch-history-list span {
	color: var(--spch-faint);
}

.spch-mobile-actions {
	display: none;
}

/* ---------- Контент (SEO-тексты, статьи) ---------- */

.spch-content {
	max-width: 820px;
	font-size: 17px;
	line-height: 1.75;
}

.spch-content > * + * {
	margin-top: 1em;
}

.spch-content h2 {
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 800;
}

.spch-content h3 {
	margin-top: 1.4em;
	margin-bottom: 0.3em;
	font-size: 20px;
	font-weight: 800;
}

.spch-content h2:first-child,
.spch-content h3:first-child {
	margin-top: 0;
}

.spch-content p {
	margin: 0 0 1em;
}

.spch-content ul,
.spch-content ol {
	padding-left: 1.3em;
}

.spch-content li + li {
	margin-top: 0.35em;
}

.spch-content a {
	color: var(--spch-accent);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--spch-accent) 35%, transparent);
	text-underline-offset: 3px;
}

.spch-content a:hover {
	text-decoration-color: currentColor;
}

.spch-content blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--spch-warm);
	color: var(--spch-muted);
	font-size: 18px;
}

.spch-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 15px;
}

.spch-content th,
.spch-content td {
	padding: 10px 12px;
	border: 1px solid var(--spch-line);
	text-align: left;
}

.spch-content th {
	background: var(--spch-surface-soft);
}

.spch-content figure {
	margin: 1.4em 0;
}

.spch-content .alignleft {
	float: left;
	margin: 0.4em 1.4em 1em 0;
}

.spch-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.4em;
}

.spch-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.spch-content figcaption,
.spch-content .wp-caption-text {
	margin-top: 8px;
	color: var(--spch-muted);
	font-size: 14px;
	line-height: 1.4;
}

.spch-content img,
.spch-content video,
.spch-content embed,
.spch-content object {
	max-width: 100%;
	height: auto;
	border-radius: var(--spch-radius-sm);
}

.spch-panel.spch-content {
	max-width: none;
	padding: 28px 32px;
}

/* ---------- Блог ---------- */

.spch-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: 28px;
}

.spch-content-layout-single {
	grid-template-columns: minmax(0, 1fr);
}

.spch-content-primary {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.spch-content-layout-single .spch-article-shell {
	max-width: 860px;
}

.spch-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.spch-content-layout:not(.spch-content-layout-single) .spch-post-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spch-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-sm);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.spch-card-hover-enabled .spch-post-card:hover {
	border-color: var(--spch-line-strong);
	box-shadow: var(--spch-shadow);
	transform: translateY(-2px);
}

.spch-post-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--spch-surface-strong);
}

.spch-post-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.spch-card-hover-enabled .spch-post-card:hover .spch-post-card-media img {
	transform: scale(1.03);
}

.spch-post-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
}

.spch-post-card h2 {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}

.spch-post-card h2 a:hover {
	color: var(--spch-accent);
}

.spch-post-card p {
	margin: 0;
	color: var(--spch-muted);
	font-size: 15px;
}

.spch-post-card .spch-link-more {
	margin-top: auto;
	padding-top: 4px;
	font-size: 14px;
}

.spch-post-meta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.spch-post-meta-chip {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 99px;
	background: var(--spch-surface-soft);
	color: var(--spch-muted);
	font-size: 12px;
	line-height: 1.4;
}

.spch-post-meta-chip strong {
	color: var(--spch-ink);
	font-weight: 700;
}

.spch-article-hero-meta {
	margin-top: 14px;
}

.spch-article-hero-meta .spch-post-meta-chip {
	border: 1px solid var(--spch-line);
	background: var(--spch-surface);
}

.spch-term-badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.spch-article-hero-badges,
.spch-archive-term-badges {
	margin-top: 14px;
}

.spch-term-badge {
	--spch-badge: #2f6f8f;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 26px;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 99px;
	background: color-mix(in srgb, var(--spch-badge) 12%, #fff);
	color: color-mix(in srgb, var(--spch-badge) 82%, #000);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: background 140ms ease, border-color 140ms ease;
}

.spch-term-badge:hover {
	background: color-mix(in srgb, var(--spch-badge) 20%, #fff);
	color: color-mix(in srgb, var(--spch-badge) 90%, #000);
}

.spch-term-badge-prefix {
	opacity: 0.7;
	font-weight: 600;
}

.spch-term-badge-tone-1 { --spch-badge: #18794e; }
.spch-term-badge-tone-2 { --spch-badge: #c2622d; }
.spch-term-badge-tone-3 { --spch-badge: #2f6f8f; }
.spch-term-badge-tone-4 { --spch-badge: #7a5bb5; }
.spch-term-badge-tone-5 { --spch-badge: #a8841a; }
.spch-term-badge-tone-6 { --spch-badge: #b23b54; }

.spch-term-badge-style-outline {
	border-color: color-mix(in srgb, var(--spch-badge) 45%, #fff);
	background: transparent;
}

.spch-term-badge-style-solid {
	background: var(--spch-badge);
	color: #fff;
}

.spch-term-badge-style-solid:hover {
	background: color-mix(in srgb, var(--spch-badge) 85%, #000);
	color: #fff;
}

.spch-article-shell {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.spch-article-cover {
	overflow: hidden;
	border-radius: var(--spch-radius-lg);
	background: var(--spch-surface-strong);
}

.spch-article-cover img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.spch-topic-panel {
	display: grid;
	gap: 14px;
	padding: 20px 24px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface-soft);
}

.spch-topic-panel-kicker {
	display: block;
	color: var(--spch-warm);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.spch-topic-panel strong {
	display: block;
	font-size: 17px;
}

.spch-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.spch-post-nav-link {
	display: grid;
	gap: 4px;
	padding: 16px 20px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
}

.spch-post-nav-link:last-child:not(:first-child) {
	text-align: right;
}

.spch-post-nav-link small {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.spch-post-nav-link strong {
	font-size: 16px;
	line-height: 1.35;
}

.spch-home-post-grid .spch-post-card h2 {
	font-size: 18px;
}

/* Пагинация */
.spch-pagination {
	margin-top: 28px;
}

.spch-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-pagination a.page-numbers,
.spch-pagination span.page-numbers {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid var(--spch-line);
	border-radius: 11px;
	background: var(--spch-surface);
	font-weight: 700;
}

.spch-pagination a.page-numbers:hover {
	border-color: var(--spch-accent);
	color: var(--spch-accent);
}

.spch-pagination .page-numbers.current {
	border-color: var(--spch-ink);
	background: var(--spch-ink);
	color: #fff;
}

.spch-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* Виджеты */
.spch-widget-area {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.spch-sidebar-widgets {
	position: sticky;
	top: calc(var(--spch-header-height) + 16px);
}

.admin-bar .spch-sidebar-widgets {
	top: calc(var(--spch-header-height) + 48px);
}

.spch-widget {
	padding: 20px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	font-size: 15px;
}

.spch-widget-title,
.spch-widget h2,
.spch-widget h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
}

.spch-widget ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-widget a:hover {
	color: var(--spch-accent);
}

.spch-widget select,
.spch-widget input[type="search"],
.spch-widget input[type="text"] {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 10px;
	background: var(--spch-surface);
	font: inherit;
}

.spch-widget .search-form {
	display: flex;
	gap: 8px;
}

.spch-widget .search-submit,
.spch-widget .wp-block-search__button {
	min-height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--spch-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.spch-widget .wp-calendar-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.spch-widget .wp-calendar-table td,
.spch-widget .wp-calendar-table th {
	padding: 4px;
	text-align: center;
}

.spch-widget .wp-block-tag-cloud,
.spch-widget .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.spch-widget .wp-block-tag-cloud a,
.spch-widget .tagcloud a {
	padding: 4px 10px;
	border-radius: 99px;
	background: var(--spch-surface-soft);
	font-size: 13px !important;
}

/* ---------- Подвал ---------- */

.spch-site-footer {
	margin-top: 0;
	padding: 56px 0 28px;
	background: var(--spch-graphite);
	color: var(--spch-on-dark-muted);
	font-size: 15px;
}

.spch-site-footer a {
	color: var(--spch-on-dark);
}

.spch-site-footer a:hover {
	color: #fff;
}

.spch-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.spch-footer-about p {
	max-width: 380px;
	margin-top: 16px;
}

.spch-brand-footer {
	color: #fff;
}

.spch-brand-footer:hover {
	color: #fff;
}

.spch-brand-footer .spch-logo-img {
	filter: brightness(0) invert(1);
	opacity: 0.92;
}

.spch-brand-footer .spch-brand-text small {
	color: var(--spch-on-dark-muted);
}

.spch-footer-col h2 {
	margin-bottom: 14px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.spch-footer-links,
.spch-footer-menu {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-footer-menu {
	justify-content: start;
}

.spch-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
}

.spch-footer-disclaimer {
	max-width: 760px;
	margin: 0;
}

.spch-footer-widgets {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 32px;
}

.spch-footer-widget {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: var(--spch-on-dark-muted);
}

.spch-footer-widget .spch-widget-title {
	color: #fff;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
	.spch-best-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.spch-city-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.spch-header-notice {
		display: none;
	}
}

@media (max-width: 1024px) {
	:root {
		--spch-header-height: 64px;
	}

	.spch-nav-toggle {
		display: block;
	}

	/* backdrop-filter делает шапку containing block для position: fixed — меню обрезалось бы по её высоте. */
	.spch-site-header-glass {
		background: var(--spch-surface);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.spch-header-inner {
		gap: 12px;
	}

	.spch-primary-nav {
		position: fixed;
		top: var(--spch-header-height);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 60;
		display: flex;
		flex-direction: column;
		gap: 20px;
		overflow-y: auto;
		padding: 16px var(--spch-gutter) 32px;
		border-top: 1px solid var(--spch-line);
		background: var(--spch-surface);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
	}

	.admin-bar .spch-primary-nav {
		top: calc(var(--spch-header-height) + 46px);
	}

	.spch-primary-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.spch-menu {
		display: grid;
		gap: 2px;
		justify-content: stretch;
	}

	.spch-menu a {
		min-height: 52px;
		padding: 0 14px;
		font-size: 18px;
	}

	.spch-menu .sub-menu {
		display: grid;
		margin: 0 0 6px 14px;
		padding: 0;
		list-style: none;
	}

	.spch-nav-mobile-extra {
		display: grid;
		gap: 10px;
		padding-top: 16px;
		border-top: 1px solid var(--spch-line);
	}

	.spch-nav-mobile-extra .spch-button {
		width: 100%;
		min-height: 52px;
	}

	.spch-nav-mobile-extra .spch-header-phone {
		text-align: left;
	}

	.spch-header-actions {
		display: none;
	}

	.spch-hero-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.spch-hero {
		padding: 48px 0 40px;
	}

	.spch-org-layout,
	.spch-content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.spch-org-sidebar,
	.spch-sidebar-widgets {
		position: static;
	}

	.spch-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spch-post-grid,
	.spch-content-layout:not(.spch-content-layout-single) .spch-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .spch-site-header {
		top: 46px;
	}
}

@media (max-width: 760px) {
	:root {
		--spch-gutter: 16px;
	}

	body {
		font-size: 16px;
	}

	.spch-section {
		padding: 40px 0;
	}

	.spch-section-tight {
		padding: 28px 0;
	}

	.spch-brand-text small {
		display: none;
	}

	.spch-logo-img {
		height: min(var(--spch-logo-height), 38px);
	}

	.spch-hero {
		padding: 32px 0 28px;
	}

	.spch-hero-copy > p:not(.spch-eyebrow) {
		font-size: 16px;
	}

	.spch-hero-stats {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 20px;
	}

	.spch-hero-stats li {
		min-width: 0;
		padding: 10px 12px;
		font-size: 12px;
	}

	.spch-hero-stats strong {
		font-size: 20px;
	}

	.spch-hero-panel {
		padding: 20px;
		border-radius: var(--spch-radius);
	}

	.spch-page-hero {
		padding: 24px 0 28px;
	}

	.spch-lead {
		font-size: 16px;
	}

	.spch-picker,
	.spch-picker-compact {
		grid-template-columns: 1fr;
	}

	.spch-picker .spch-button {
		width: 100%;
	}

	.spch-best-grid,
	.spch-city-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.spch-best-card {
		padding: 14px 14px 12px;
	}

	.spch-best-card-price {
		font-size: 21px;
	}

	.spch-grid-3,
	.spch-two-columns,
	.spch-org-list,
	.spch-post-grid,
	.spch-content-layout:not(.spch-content-layout-single) .spch-post-grid,
	.spch-post-nav {
		grid-template-columns: 1fr;
	}

	.spch-two-columns {
		gap: 32px;
	}

	.spch-result-card {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 16px;
	}

	.spch-result-price {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 6px 12px;
		padding-top: 12px;
		border-top: 1px solid var(--spch-line);
		text-align: left;
	}

	.spch-result-price strong {
		font-size: 22px;
	}

	.spch-result-price .spch-button {
		margin-left: auto;
	}

	.spch-org-logo {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.spch-org-logo--wide {
		width: 81px;
	}

	.spch-org-hero-logo {
		width: 56px;
		height: 56px;
	}

	.spch-org-hero-logo.spch-org-logo--wide {
		width: 103px;
	}

	.spch-org-hero-inner {
		gap: 14px;
	}

	/* На телефоне звонок и маршрут — в нижней панели, сайт — в контактах. */
	.spch-has-mobile-actions .spch-org-actions {
		display: none;
	}

	.spch-org-actions .spch-button {
		flex: 1 1 auto;
	}

	/* Дата одна на весь прайс (бейдж «Обновлено»), в каждой строке она лишняя. */
	.spch-price-table td:nth-child(3) {
		display: none;
	}

	.spch-price-table td:nth-child(2) {
		grid-row: auto;
	}

	.spch-panel {
		padding: 18px;
	}

	.spch-panel.spch-content {
		padding: 20px;
	}

	.spch-price-table thead,
	.spch-summary-table thead {
		display: none;
	}

	.spch-price-table,
	.spch-price-table tbody,
	.spch-price-table tr,
	.spch-summary-table,
	.spch-summary-table tbody,
	.spch-summary-table tr {
		display: block;
	}

	.spch-price-table tr,
	.spch-summary-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 2px 12px;
		padding: 12px 14px;
		border-bottom: 1px solid var(--spch-line);
	}

	.spch-price-table tbody tr:last-child,
	.spch-summary-table tbody tr:last-child {
		border-bottom: 0;
	}

	.spch-price-table td,
	.spch-summary-table td {
		display: block;
		padding: 0;
		border: 0;
	}

	.spch-price-table tbody tr:hover td,
	.spch-summary-table tbody tr:hover td {
		background: transparent;
	}

	.spch-price-table td:nth-child(2),
	.spch-summary-table td:nth-child(2) {
		grid-row: 1 / span 2;
		grid-column: 2;
		text-align: right;
	}

	.spch-price-table td:nth-child(3),
	.spch-summary-table td:nth-child(3) {
		grid-column: 1;
	}

	/* Число предложений на телефоне лишнее: название металла и так ведёт на подборку. */
	.spch-summary-table td:nth-child(4) {
		display: none;
	}

	.spch-summary-table td:nth-child(2) {
		grid-row: 1 / span 2;
		align-self: center;
	}

	.spch-price-group-row {
		padding: 14px 14px 6px !important;
		border-bottom: 0 !important;
		background: var(--spch-surface-soft);
	}

	.spch-price-group-row th {
		display: block;
		grid-column: 1 / -1;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.spch-price-child .spch-price-metal {
		padding-left: 0;
	}

	.spch-mobile-actions {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		display: flex;
		gap: 8px;
		padding: 10px var(--spch-gutter) calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--spch-line);
		background: color-mix(in srgb, var(--spch-surface) 94%, transparent);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	.spch-mobile-actions .spch-button {
		flex: 1 1 0;
		min-height: 48px;
	}

	.spch-has-mobile-actions .spch-site-footer {
		padding-bottom: 96px;
	}

	.spch-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
	}

	.spch-footer-about {
		grid-column: 1 / -1;
	}

	.spch-footer-widgets {
		grid-template-columns: 1fr;
	}

	.spch-content {
		font-size: 16px;
	}

	.spch-content .alignleft,
	.spch-content .alignright {
		float: none;
		display: block;
		margin: 16px auto;
	}

	.spch-mobile-dense-enabled .spch-post-card {
		flex-direction: row;
		align-items: stretch;
	}

	.spch-mobile-dense-enabled .spch-post-card-media {
		flex: 0 0 34%;
		aspect-ratio: auto;
		min-height: 100%;
	}

	.spch-mobile-dense-enabled .spch-post-card-body {
		padding: 14px 16px;
	}

	.spch-mobile-dense-enabled .spch-post-card p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.spch-mobile-dense-enabled .spch-post-card h2 {
		font-size: 17px;
	}
}

@media (max-width: 420px) {
	.spch-best-grid {
		grid-template-columns: 1fr;
	}

	.spch-city-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* На узком экране счётчик пунктов отнимает место и «Екатеринбург» рвётся посреди слова. */
	.spch-city-card {
		min-height: 48px;
		padding: 10px 12px;
		font-size: 15px;
	}

	.spch-city-card span {
		display: none;
	}

	.spch-hero-stats li {
		padding: 9px 10px;
	}

	.spch-hero-stats strong {
		font-size: 18px;
	}

	.spch-section-head {
		align-items: flex-start;
	}

	.spch-mobile-dense-enabled .spch-post-card-media {
		flex-basis: 30%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.spch-site-header,
	.spch-site-footer,
	.spch-mobile-actions,
	.spch-picker {
		display: none !important;
	}

	body {
		background: #fff;
	}
}

/* Цена в прайсе и сводных таблицах — по правому краю, чтобы разряды стояли столбиком. */
@media (min-width: 761px) {
	.spch-price-table th:nth-child(2),
	.spch-price-table td:nth-child(2),
	.spch-summary-table th:nth-child(2),
	.spch-summary-table td:nth-child(2) {
		text-align: right;
	}

	.spch-summary-table th:nth-child(3),
	.spch-summary-table td:nth-child(3) {
		padding-left: 32px;
	}
}

/* =====================================================================
 * 1.4: иконки, город посетителя, страницы «металл + город», блог,
 * системные страницы, FAQ, cookie.
 * ===================================================================== */

[hidden] {
	display: none !important;
}

.spch-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.spch-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

.spch-eyebrow {
	display: flex;
	align-items: center;
	gap: 6px;
}

.spch-eyebrow .spch-icon {
	width: 15px;
	height: 15px;
}

.spch-illustration {
	display: block;
	width: 100%;
	height: auto;
}

.spch-button-ghost {
	border-color: var(--spch-line-strong);
	background: transparent;
	color: var(--spch-ink);
}

.spch-button-ghost:hover {
	border-color: var(--spch-ink);
	background: transparent;
	color: var(--spch-ink);
	box-shadow: none;
}

/* ---------- Иконки металлов ---------- */

.spch-metal-icon {
	display: inline-grid;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 12px;
	background: var(--spch-surface-soft);
	box-shadow: inset 0 0 0 1px var(--spch-line);
}

.spch-metal-icon svg {
	display: block;
	width: 78%;
	height: 78%;
}

.spch-metal-icon-med,
.spch-metal-icon-bronza,
.spch-metal-icon-kabel,
.spch-metal-icon-elektrodvigateli { background: #fbeee6; }
.spch-metal-icon-latun { background: #fbf4dc; }
.spch-metal-icon-alyuminiy,
.spch-metal-icon-nerzhaveyka,
.spch-metal-icon-tsink,
.spch-metal-icon-magniy { background: #eef2f6; }
.spch-metal-icon-chernyy-metall { background: #f1ebe7; }
.spch-metal-icon-akb,
.spch-metal-icon-elektronnyy-lom { background: #e6f3ec; }

/* ---------- Переключатель города ---------- */

.spch-city-switch {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 6px;
	min-width: 0;
	max-width: 220px;
	min-height: 40px;
	padding: 0 12px 0 10px;
	border: 1px solid var(--spch-line);
	border-radius: 99px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 140ms ease, background 140ms ease;
}

.spch-city-switch:hover {
	border-color: var(--spch-accent);
	background: var(--spch-accent-soft);
}

.spch-city-switch .spch-icon {
	width: 18px;
	height: 18px;
	color: var(--spch-warm);
}

.spch-city-switch-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spch-city-switch .spch-city-switch-caret {
	width: 14px;
	height: 14px;
	color: var(--spch-faint);
}

.spch-city-switch:not(.is-set) .spch-city-switch-label {
	color: var(--spch-muted);
}

/* ---------- «Ваш город — X?» ---------- */

.spch-city-popover {
	position: fixed;
	top: calc(var(--spch-header-height) + 10px);
	left: max(var(--spch-gutter), calc((100vw - 1200px) / 2 + 150px));
	z-index: 70;
	width: min(340px, calc(100vw - 2 * var(--spch-gutter)));
	padding: 18px 18px 16px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-lg);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.admin-bar .spch-city-popover {
	top: calc(var(--spch-header-height) + 42px);
}

.spch-city-popover.is-visible {
	opacity: 1;
	transform: none;
}

.spch-city-popover::before {
	position: absolute;
	top: -7px;
	left: var(--spch-arrow, 28px);
	width: 12px;
	height: 12px;
	border-top: 1px solid var(--spch-line);
	border-left: 1px solid var(--spch-line);
	background: var(--spch-surface);
	content: "";
	transform: rotate(45deg);
}

.spch-city-popover-close,
.spch-city-modal-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--spch-faint);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.spch-city-popover-close:hover,
.spch-city-modal-close:hover {
	background: var(--spch-surface-strong);
	color: var(--spch-ink);
}

.spch-city-popover-title {
	margin: 0 28px 6px 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.spch-city-popover-note {
	margin: 0 0 4px;
	color: var(--spch-muted);
	font-size: 14px;
	line-height: 1.45;
}

.spch-city-popover-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.spch-city-popover-actions .spch-button {
	flex: 1 1 auto;
	min-height: 42px;
	padding: 0 14px;
	font-size: 14px;
}

/* ---------- Окно выбора города ---------- */

body.spch-modal-open {
	overflow: hidden;
}

.spch-city-modal {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: grid;
	place-items: center;
	padding: 24px var(--spch-gutter);
}

.spch-city-modal[hidden] {
	display: none;
}

.spch-city-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 20, 0.55);
	opacity: 0;
	transition: opacity 180ms ease;
}

.spch-city-modal.is-visible .spch-city-modal-backdrop {
	opacity: 1;
}

.spch-city-modal-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(760px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	max-height: min(760px, calc(100dvh - 48px));
	overflow: hidden;
	border-radius: var(--spch-radius-lg);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-lg);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.spch-city-modal.is-visible .spch-city-modal-dialog {
	opacity: 1;
	transform: none;
}

.spch-city-modal-head {
	position: relative;
	padding: 22px 56px 0 24px;
}

.spch-city-modal-head h2 {
	font-size: 24px;
	font-weight: 800;
}

.spch-city-modal-close {
	top: 16px;
	right: 16px;
}

.spch-city-modal-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 24px 0;
}

.spch-city-search {
	flex: 1 1 280px;
}

.spch-city-search input {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 12px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	font: inherit;
	font-size: 16px;
}

.spch-city-search input:focus {
	border-color: var(--spch-accent);
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--spch-accent) 20%, transparent);
}

.spch-city-detect {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 12px;
	background: var(--spch-surface-soft);
	color: var(--spch-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.spch-city-detect .spch-icon {
	width: 18px;
	height: 18px;
}

.spch-city-detect:hover {
	border-color: var(--spch-accent);
}

.spch-city-modal-status {
	margin: 12px 24px 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--spch-accent-soft);
	color: var(--spch-accent-strong);
	font-size: 14px;
	font-weight: 600;
}

.spch-city-popular {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 16px 24px 0;
}

.spch-city-popular:empty {
	display: none;
}

.spch-city-chip {
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--spch-line);
	border-radius: 99px;
	background: var(--spch-surface-soft);
	color: var(--spch-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.spch-city-chip:hover,
.spch-city-chip.is-current {
	border-color: var(--spch-accent);
	background: var(--spch-accent-soft);
}

.spch-city-list {
	flex: 1 1 auto;
	min-height: 120px;
	overflow-y: auto;
	margin-top: 16px;
	padding: 4px 24px 8px;
	border-top: 1px solid var(--spch-line);
	columns: 3 200px;
	column-gap: 24px;
	overscroll-behavior: contain;
}

.spch-city-group {
	break-inside: avoid;
	padding-top: 10px;
}

.spch-city-letter {
	display: block;
	margin-bottom: 2px;
	color: var(--spch-warm);
	font-size: 13px;
	font-weight: 800;
}

.spch-city-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-city-group button {
	display: grid;
	width: calc(100% + 8px);
	margin-left: -8px;
	padding: 5px 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--spch-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.spch-city-group button small {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 500;
}

.spch-city-group button:hover {
	background: var(--spch-accent-soft);
}

.spch-city-group button.is-current {
	color: var(--spch-accent);
}

.spch-city-empty,
.spch-city-loading {
	column-span: all;
	margin: 16px 0;
	color: var(--spch-muted);
}

.spch-city-modal-foot {
	margin: 0;
	padding: 14px 24px 18px;
	border-top: 1px solid var(--spch-line);
	background: var(--spch-surface-soft);
	color: var(--spch-muted);
	font-size: 13px;
}

.spch-city-modal-foot a {
	color: var(--spch-accent);
	font-weight: 700;
}

/* ---------- Главная: мой город, металлы, как это работает, ссылки ---------- */

.spch-local {
	padding-bottom: 8px;
}

.spch-local[hidden] {
	display: none;
}

.spch-local-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

.spch-best-card {
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
}

.spch-best-card > :not(.spch-metal-icon) {
	grid-column: 2;
}

.spch-best-card .spch-best-card-icon {
	grid-row: 1 / span 3;
	align-self: start;
	width: 44px;
	height: 44px;
}

.spch-city-card {
	justify-content: flex-start;
}

.spch-city-card > span {
	margin-left: auto;
}

.spch-city-card small {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 600;
}

.spch-city-card .spch-city-card-icon {
	width: 18px;
	height: 18px;
	color: var(--spch-warm);
	opacity: 0.85;
}

.spch-metal-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 10px;
}

.spch-metal-tile span {
	min-width: 0;
	overflow-wrap: anywhere;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.spch-metal-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 10px 14px 10px 10px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-sm);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.spch-metal-tile:hover {
	border-color: var(--spch-accent);
	color: var(--spch-ink);
	box-shadow: var(--spch-shadow);
	transform: translateY(-2px);
}

.spch-metal-tile .spch-metal-icon {
	width: 44px;
	height: 44px;
}

.spch-how {
	border-block: 1px solid var(--spch-line);
	background:
		radial-gradient(520px 260px at 0% 100%, color-mix(in srgb, var(--spch-accent) 10%, transparent), transparent 70%),
		var(--spch-surface);
}

.spch-how-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}

.spch-how-art {
	max-width: 560px;
}

.spch-how h2 {
	margin: 10px 0 22px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.spch-how-steps {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: spch-how;
}

.spch-how-steps li {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	font-weight: 600;
	counter-increment: spch-how;
}

.spch-how-icon {
	position: relative;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 14px;
	background: var(--spch-graphite);
	color: #fff;
}

.spch-how-icon::after {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border: 2px solid var(--spch-surface);
	border-radius: 50%;
	background: var(--spch-warm);
	color: #fff;
	content: counter(spch-how);
	font-size: 11px;
	font-weight: 800;
}

.spch-feature-icon {
	display: inline-grid;
	width: 48px;
	height: 48px;
	place-items: center;
	margin-bottom: 14px;
	border-radius: 14px;
	background: var(--spch-warm-soft);
	color: var(--spch-warm);
}

.spch-feature-icon .spch-icon {
	width: 24px;
	height: 24px;
}

.spch-pair-index {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 28px;
}

.spch-pair-index-city h3 {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 800;
}

.spch-pair-index-city ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.spch-pair-index-city a {
	color: var(--spch-muted);
}

.spch-pair-index-city a:hover {
	color: var(--spch-accent);
}

/* ---------- Страницы с иллюстрацией в шапке ---------- */

.spch-city-hero-grid,
.spch-blog-hero-grid,
.spch-about-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
	align-items: center;
	gap: 40px;
}

.spch-city-hero-art,
.spch-blog-hero-art,
.spch-about-hero-art {
	width: 100%;
	max-width: 380px;
	justify-self: end;
}

.spch-city-hero .spch-picker {
	max-width: 560px;
	margin-top: 22px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.spch-summary-metal {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
}

.spch-summary-metal:hover {
	color: var(--spch-accent);
}

.spch-summary-metal .spch-summary-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

.spch-summary-metal .spch-price-note {
	display: block;
}

.spch-city-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.spch-city-info > * {
	max-width: 880px;
}

.spch-faq-title {
	margin: 8px 0 18px;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

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

.spch-faq {
	display: grid;
	gap: 10px;
}

.spch-faq-item {
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.spch-faq-item[open] {
	border-color: var(--spch-line-strong);
	box-shadow: var(--spch-shadow-sm);
}

.spch-faq-item summary {
	position: relative;
	padding: 16px 52px 16px 18px;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

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

.spch-faq-item summary::after {
	position: absolute;
	top: 50%;
	right: 16px;
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	margin-top: -13px;
	border-radius: 50%;
	background: var(--spch-surface-strong);
	color: var(--spch-ink);
	content: "+";
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	transition: transform 160ms ease, background 160ms ease;
}

.spch-faq-item[open] summary::after {
	background: var(--spch-accent);
	color: #fff;
	transform: rotate(45deg);
}

.spch-faq-answer {
	padding: 0 18px 16px;
	color: var(--spch-muted);
}

.spch-faq-answer p {
	margin: 0 0 0.6em;
}

/* ---------- Страница «металл + город» ---------- */

.spch-pair-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 10px;
}

.spch-pair-head h1 {
	margin: 4px 0 0;
}

.spch-pair-head .spch-pair-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
}

.spch-pair-hero .spch-lead {
	margin-top: 14px;
}

.spch-pair-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 920px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.spch-pair-facts li {
	display: grid;
	gap: 2px;
	padding: 12px 16px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
}

.spch-pair-facts span {
	color: var(--spch-faint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.spch-pair-facts strong {
	font-size: 18px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.spch-pair-facts li:first-child {
	border-color: color-mix(in srgb, var(--spch-accent) 35%, transparent);
	background: var(--spch-accent-soft);
}

.spch-pair-facts li:first-child strong {
	color: var(--spch-accent-strong);
	font-size: 22px;
}

.spch-pair-layout,
.spch-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	gap: 32px;
}

.spch-pair-main {
	min-width: 0;
}

.spch-section-head-spaced {
	margin-top: 44px;
}

.spch-pair-text {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--spch-line);
}

.spch-pair-aside,
.spch-article-aside {
	position: sticky;
	top: calc(var(--spch-header-height) + 20px);
	display: grid;
	gap: 16px;
}

.admin-bar .spch-pair-aside,
.admin-bar .spch-article-aside {
	top: calc(var(--spch-header-height) + 52px);
}

.spch-side-card {
	padding: 20px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-sm);
}

.spch-side-card h2 {
	margin-bottom: 12px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.spch-side-card p {
	color: var(--spch-muted);
	font-size: 14px;
}

.spch-side-card-accent {
	border-color: transparent;
	background:
		radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--spch-warm) 35%, transparent), transparent 70%),
		var(--spch-graphite);
	color: var(--spch-on-dark);
}

.spch-side-card-accent p {
	color: var(--spch-on-dark-muted);
}

.spch-side-card-accent .spch-picker {
	grid-template-columns: 1fr;
	margin-top: 14px;
}

.spch-side-card-accent .spch-picker label span {
	color: var(--spch-on-dark-muted);
}

.spch-side-card-accent .spch-button {
	width: 100%;
	margin-top: 4px;
}

.spch-side-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-side-list li + li {
	border-top: 1px solid var(--spch-line);
}

.spch-side-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 600;
}

.spch-side-list a > span:not(.spch-metal-icon) {
	flex: 1 1 auto;
	min-width: 0;
}

.spch-side-list small {
	color: var(--spch-faint);
	font-weight: 500;
}

.spch-side-list strong {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.spch-side-list .spch-side-icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
}

.spch-results-grid-single {
	grid-template-columns: minmax(0, 1fr);
}

/* ---------- Блог ---------- */

.spch-rubric-nav {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-bottom: 24px;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.spch-rubric-tab {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--spch-line);
	border-radius: 99px;
	background: var(--spch-surface);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: border-color 140ms ease, background 140ms ease;
}

.spch-rubric-tab .spch-icon {
	width: 18px;
	height: 18px;
	color: var(--spch-rubric, var(--spch-accent));
}

.spch-rubric-tab span {
	color: var(--spch-faint);
	font-size: 12px;
}

.spch-rubric-tab:hover {
	border-color: var(--spch-rubric, var(--spch-accent));
	color: var(--spch-ink);
}

.spch-rubric-tab.is-active {
	border-color: var(--spch-graphite);
	background: var(--spch-graphite);
	color: #fff;
}

.spch-rubric-tab.is-active .spch-icon,
.spch-rubric-tab.is-active span {
	color: rgba(255, 255, 255, 0.75);
}

.spch-rubric-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	padding: 3px 10px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 14%, transparent);
	color: color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 80%, #000);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.spch-rubric-badge:hover {
	background: var(--spch-rubric, var(--spch-accent));
	color: #fff;
}

.spch-post-card-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.spch-post-card-date {
	color: var(--spch-faint);
	font-size: 13px;
}

.spch-post-cover {
	position: relative;
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 180px;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 55%, #fff), transparent 60%),
		linear-gradient(145deg, var(--spch-rubric, var(--spch-accent)), color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 55%, #0b0d0e));
	color: #fff;
}

.spch-post-cover .spch-cover-pattern {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.spch-post-cover .spch-post-cover-icon {
	position: relative;
	width: clamp(44px, 30%, 96px);
	height: auto;
	aspect-ratio: 1;
	padding: clamp(10px, 2.2vw, 18px);
	border-radius: 28%;
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
	color: #fff;
}

.spch-post-cover-label {
	position: absolute;
	bottom: 14px;
	left: 16px;
	padding: 3px 10px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.22);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.spch-article-cover .spch-post-cover {
	aspect-ratio: 21 / 8;
}

.spch-blog-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spch-post-card-featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.spch-post-card-featured .spch-post-card-media {
	aspect-ratio: auto;
	min-height: 300px;
}

.spch-post-card-featured .spch-post-card-body {
	justify-content: center;
	padding: 32px;
}

.spch-post-card-featured h2 {
	font-size: clamp(22px, 2.6vw, 30px);
	letter-spacing: -0.02em;
}

.spch-post-card-featured p {
	font-size: 16px;
}

.spch-rubric-hero {
	background:
		radial-gradient(640px 280px at 100% 0%, color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 16%, transparent), transparent 70%),
		linear-gradient(180deg, var(--spch-surface), var(--spch-surface-soft));
}

.spch-rubric-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 10px;
}

.spch-rubric-head h1 {
	margin: 4px 0 0;
}

.spch-rubric-icon {
	display: grid;
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	place-items: center;
	border-radius: 18px;
	background: var(--spch-rubric, var(--spch-accent));
	color: #fff;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 30%, transparent);
}

.spch-rubric-icon .spch-icon {
	width: 30px;
	height: 30px;
}

.spch-rubric-hero .spch-lead {
	margin-top: 14px;
}

.spch-rubric-count {
	margin: 12px 0 0;
	color: var(--spch-faint);
	font-size: 14px;
	font-weight: 600;
}

/* Статья */
.spch-article-hero {
	background:
		radial-gradient(640px 280px at 100% 0%, color-mix(in srgb, var(--spch-rubric, var(--spch-accent)) 12%, transparent), transparent 70%),
		linear-gradient(180deg, var(--spch-surface), var(--spch-surface-soft));
}

.spch-article-hero .spch-rubric-badge {
	margin-top: 14px;
}

.spch-article-hero h1 {
	max-width: 860px;
}

.spch-article-meta {
	margin: 10px 0 0;
	color: var(--spch-faint);
	font-size: 14px;
}

.spch-article {
	display: grid;
	gap: 24px;
	min-width: 0;
}

.spch-article-content {
	font-size: 17px;
	line-height: 1.7;
}

.spch-toc {
	padding: 18px 20px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
}

.spch-toc-title {
	margin: 0 0 8px;
	color: var(--spch-faint);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spch-toc ol {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-toc li a {
	display: block;
	margin-left: -8px;
	padding: 5px 8px;
	border-radius: 8px;
	color: var(--spch-muted);
	font-size: 14px;
	line-height: 1.4;
}

.spch-toc li a:hover {
	background: var(--spch-surface-soft);
	color: var(--spch-accent);
}

.spch-toc .spch-toc-level-3 a {
	padding-left: 22px;
	font-size: 13px;
}

.spch-toc-inline {
	display: none;
}

.spch-article-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid var(--spch-line);
}

.spch-share {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--spch-muted);
	font-size: 14px;
	font-weight: 600;
}

.spch-share-link {
	position: relative;
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--spch-line);
	border-radius: 12px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	cursor: pointer;
	transition: border-color 140ms ease, color 140ms ease;
}

.spch-share-link:hover {
	border-color: var(--spch-accent);
	color: var(--spch-accent);
}

.spch-share-link.is-copied {
	border-color: var(--spch-accent);
	background: var(--spch-accent);
	color: #fff;
}

/* Призыв к подбору */
.spch-cta-band {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	overflow: hidden;
	padding: 36px 40px;
	border-radius: var(--spch-radius-lg);
	background:
		radial-gradient(520px 300px at 100% 0%, color-mix(in srgb, var(--spch-warm) 40%, transparent), transparent 65%),
		radial-gradient(420px 260px at 0% 100%, color-mix(in srgb, var(--spch-accent) 38%, transparent), transparent 65%),
		var(--spch-graphite);
	color: var(--spch-on-dark);
}

.spch-cta-band h2 {
	margin: 8px 0 10px;
	font-size: clamp(22px, 2.8vw, 30px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.spch-cta-band-copy > p:not(.spch-eyebrow) {
	color: var(--spch-on-dark-muted);
}

.spch-cta-band .spch-eyebrow {
	color: color-mix(in srgb, var(--spch-warm) 55%, #fff);
}

.spch-cta-band .spch-picker {
	margin-top: 18px;
}

.spch-cta-band .spch-picker label span {
	color: var(--spch-on-dark-muted);
}

/* ---------- О проекте ---------- */

.spch-about-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.spch-about-stats li {
	display: grid;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
}

.spch-about-stats strong {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.spch-about-stats span {
	color: var(--spch-muted);
	font-size: 13px;
	line-height: 1.3;
}

.spch-process {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: spch-process;
}

.spch-process li {
	position: relative;
	padding: 24px 22px 22px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-sm);
	counter-increment: spch-process;
}

.spch-process li::before {
	position: absolute;
	top: 20px;
	right: 20px;
	color: var(--spch-line-strong);
	content: "0" counter(spch-process);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.spch-process .spch-process-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	padding: 12px;
	border-radius: 14px;
	background: var(--spch-accent-soft);
	color: var(--spch-accent);
}

.spch-process h3 {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 800;
}

.spch-process p {
	margin: 0;
	color: var(--spch-muted);
	font-size: 15px;
}

.spch-about-company {
	align-self: start;
	padding: 28px;
}

.spch-about-company h2 {
	font-size: 22px;
}

.spch-about-company .spch-about-company-icon {
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--spch-on-dark);
}

.spch-about-company .spch-button {
	width: auto;
	margin-top: 8px;
}

.spch-content-narrow {
	max-width: 820px;
}

/* ---------- Контакты ---------- */

.spch-contacts-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 32px;
}

.spch-contact-cards {
	display: grid;
	gap: 12px;
}

.spch-contact-card {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-sm);
	transition: border-color 140ms ease;
}

a.spch-contact-card:hover {
	border-color: var(--spch-accent);
	color: var(--spch-ink);
}

.spch-contact-card .spch-contact-card-icon {
	grid-row: 1 / span 2;
	width: 48px;
	height: 48px;
	padding: 12px;
	border-radius: 14px;
	background: var(--spch-accent-soft);
	color: var(--spch-accent);
}

.spch-contact-card span {
	color: var(--spch-faint);
	font-size: 13px;
	font-weight: 700;
}

.spch-contact-card strong {
	font-size: 17px;
	overflow-wrap: anywhere;
}

.spch-contact-card p {
	margin: 0;
	color: var(--spch-muted);
	font-size: 14px;
}

.spch-contact-card-note {
	border-color: color-mix(in srgb, var(--spch-warm) 25%, transparent);
	background: var(--spch-warm-soft);
	box-shadow: none;
}

.spch-contact-card-note .spch-contact-card-icon {
	background: #fff;
	color: var(--spch-warm);
}

.spch-contact-form-wrap {
	padding: 28px;
	border: 1px solid var(--spch-line);
	border-radius: var(--spch-radius-lg);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow);
	scroll-margin-top: calc(var(--spch-header-height) + 16px);
}

.spch-contact-form-wrap h2 {
	margin-bottom: 18px;
	font-size: 24px;
	font-weight: 800;
}

.spch-contact-form {
	display: grid;
	gap: 14px;
}

.spch-contact-form label {
	display: grid;
	gap: 6px;
}

.spch-contact-form label > span {
	color: var(--spch-muted);
	font-size: 13px;
	font-weight: 700;
}

.spch-contact-form input[type="text"],
.spch-contact-form input[type="url"],
.spch-contact-form input[type="email"],
.spch-contact-form select,
.spch-contact-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 12px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	font: inherit;
	font-size: 16px;
}

.spch-contact-form textarea {
	min-height: 130px;
	resize: vertical;
}

.spch-contact-form input:focus,
.spch-contact-form select:focus,
.spch-contact-form textarea:focus {
	border-color: var(--spch-accent);
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--spch-accent) 20%, transparent);
}

.spch-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.spch-contact-form .spch-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.spch-consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--spch-accent);
}

.spch-contact-form .spch-consent span {
	color: var(--spch-muted);
	font-size: 14px;
	font-weight: 500;
}

.spch-consent a {
	color: var(--spch-accent);
	text-decoration: underline;
}

.spch-contact-form .spch-button {
	justify-self: start;
	min-width: 200px;
}

.spch-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.spch-notice {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 600;
}

.spch-notice-success {
	background: var(--spch-accent-soft);
	color: var(--spch-accent-strong);
}

.spch-notice-error {
	background: #fdecea;
	color: #a2281c;
}

/* ---------- Все города ---------- */

.spch-cities-filter {
	position: relative;
	display: block;
	max-width: 520px;
	margin-top: 22px;
}

.spch-cities-filter .spch-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	color: var(--spch-faint);
	transform: translateY(-50%);
}

.spch-cities-filter input {
	width: 100%;
	min-height: 52px;
	padding: 0 16px 0 44px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 14px;
	background: var(--spch-surface);
	font: inherit;
	font-size: 16px;
}

.spch-cities-filter input:focus {
	border-color: var(--spch-accent);
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--spch-accent) 20%, transparent);
}

.spch-cities-subtitle {
	margin-bottom: 16px;
	font-size: 22px;
	font-weight: 800;
}

.spch-cities-index {
	columns: 4 220px;
	column-gap: 28px;
}

.spch-cities-group {
	break-inside: avoid;
	margin-bottom: 20px;
}

.spch-cities-group[hidden] {
	display: none;
}

.spch-cities-letter {
	margin: 0 0 6px;
	color: var(--spch-warm);
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

.spch-cities-group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spch-cities-group li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 8px;
	padding: 5px 0;
	border-bottom: 1px solid var(--spch-line);
}

.spch-cities-group li[hidden] {
	display: none;
}

.spch-cities-group li a {
	font-weight: 700;
}

.spch-cities-group li small {
	grid-column: 1;
	color: var(--spch-faint);
	font-size: 12px;
	line-height: 1.3;
}

.spch-cities-group li span {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	min-width: 26px;
	padding: 1px 7px;
	border-radius: 99px;
	background: var(--spch-surface-strong);
	color: var(--spch-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

/* ---------- Cookie ---------- */

.spch-cookie {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 440px;
	padding: 14px 16px;
	border-radius: var(--spch-radius);
	background: var(--spch-graphite);
	box-shadow: var(--spch-shadow-lg);
	color: var(--spch-on-dark);
	font-size: 14px;
	line-height: 1.45;
}

.spch-cookie[hidden] {
	display: none;
}

.spch-cookie p {
	margin: 0;
}

.spch-cookie a {
	color: #fff;
	text-decoration: underline;
}

.spch-cookie .spch-button {
	flex: 0 0 auto;
}

.spch-has-mobile-actions .spch-cookie {
	bottom: 84px;
}

/* ---------- 404 ---------- */

.spch-not-found {
	display: grid;
	grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
}

.spch-not-found h1 {
	margin: 8px 0 12px;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
}

.spch-not-found .spch-picker {
	margin-top: 20px;
}

/* ---------- Карточка организации 1.4 ---------- */

.spch-hero-facts .spch-icon {
	width: 16px;
	height: 16px;
	color: var(--spch-accent);
}

.spch-org-facts {
	margin-top: 14px;
}

.spch-org-services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.spch-org-services li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid var(--spch-line);
	border-radius: 12px;
	background: var(--spch-surface-soft);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.spch-org-services .spch-icon {
	width: 32px;
	height: 32px;
	padding: 6px;
	border-radius: 9px;
	background: var(--spch-accent-soft);
	color: var(--spch-accent);
}

.spch-org-terms-list {
	margin: 0;
}

.spch-org-metal-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.spch-org-metal-pill .spch-org-metal-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
}

@media (max-width: 760px) {
	.spch-org-services {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Адаптив 1.4 ---------- */

@media (max-width: 1360px) {
	/* С переключателем города подпись в шапке не помещается: меню переносилось на вторую строку. */
	.spch-header-notice {
		display: none;
	}
}

@media (min-width: 1025px) and (max-width: 1240px) {
	.spch-header-inner {
		gap: 14px;
	}

	.spch-menu a {
		padding: 0 9px;
		font-size: 14px;
	}

	.spch-header-phone {
		display: none;
	}
}

@media (max-width: 1100px) {
	.spch-pair-index {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.spch-process {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spch-pair-layout,
	.spch-article-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

@media (max-width: 1024px) {
	.spch-city-switch {
		margin-left: auto;
		max-width: 180px;
	}

	.spch-city-switch + .spch-nav-toggle {
		margin-left: 0;
	}

	.spch-city-popover {
		right: var(--spch-gutter);
		left: auto;
	}

	.spch-pair-layout,
	.spch-article-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.spch-pair-aside,
	.spch-article-aside {
		position: static;
	}

	.spch-article-aside .spch-toc-sticky {
		display: none;
	}

	.spch-toc-inline {
		display: block;
	}

	.spch-how-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.spch-how-art {
		max-width: 480px;
	}

	.spch-city-info,
	.spch-contacts-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.spch-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.spch-city-hero-grid,
	.spch-blog-hero-grid,
	.spch-about-hero-grid,
	.spch-not-found {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.spch-city-hero-art,
	.spch-blog-hero-art,
	.spch-about-hero-art {
		display: none;
	}

	.spch-not-found > :first-child {
		max-width: 220px;
	}

	.spch-pair-facts,
	.spch-about-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spch-pair-index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spch-cta-band {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 28px 22px;
	}

	.spch-cta-band-art {
		max-width: 220px;
	}

	.spch-post-card-featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.spch-post-card-featured .spch-post-card-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.spch-post-card-featured .spch-post-card-body {
		padding: 20px;
	}
}

@media (max-width: 760px) {
	.spch-city-switch {
		max-width: 150px;
		padding: 0 10px 0 8px;
		font-size: 13px;
	}

	.spch-city-switch .spch-city-switch-caret {
		display: none;
	}

	.spch-city-popover {
		top: auto;
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		padding: 20px 18px 16px;
		border-radius: var(--spch-radius-lg);
		transform: translateY(12px);
	}

	.admin-bar .spch-city-popover {
		top: auto;
	}

	.spch-city-popover::before {
		display: none;
	}

	.spch-city-popover-actions .spch-button {
		flex-basis: 100%;
		min-height: 48px;
	}

	.spch-city-modal {
		align-items: end;
		padding: 0;
	}

	.spch-city-modal-dialog {
		width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
		transform: translateY(40px);
	}

	.spch-city-modal-head {
		padding: 18px 56px 0 18px;
	}

	.spch-city-modal-head h2 {
		font-size: 21px;
	}

	.spch-city-modal-tools,
	.spch-city-popular {
		padding-inline: 18px;
	}

	.spch-city-detect {
		justify-content: center;
		width: 100%;
	}

	.spch-city-modal-status {
		margin-inline: 18px;
	}

	.spch-city-list {
		padding-inline: 18px;
		columns: 1;
	}

	.spch-city-group button {
		padding: 8px;
		font-size: 16px;
	}

	.spch-city-modal-foot {
		padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
	}

	.spch-best-card .spch-best-card-icon {
		width: 40px;
		height: 40px;
	}

	.spch-metal-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spch-metal-tile {
		gap: 10px;
		min-height: 58px;
		padding: 8px 10px 8px 8px;
		font-size: 14px;
	}

	.spch-metal-tile .spch-metal-icon {
		width: 40px;
		height: 40px;
	}

	.spch-pair-head {
		align-items: flex-start;
		gap: 12px;
	}

	.spch-pair-head .spch-pair-icon,
	.spch-rubric-icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.spch-rubric-icon .spch-icon {
		width: 24px;
		height: 24px;
	}

	.spch-pair-facts li {
		padding: 10px 12px;
	}

	.spch-pair-facts strong {
		font-size: 16px;
	}

	.spch-pair-facts li:first-child strong {
		font-size: 19px;
	}

	.spch-summary-metal .spch-summary-icon {
		width: 30px;
		height: 30px;
	}

	.spch-blog-grid,
	.spch-process {
		grid-template-columns: minmax(0, 1fr);
	}

	.spch-pair-index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 14px;
	}

	.spch-pair-index-city ul {
		font-size: 13px;
		line-height: 1.35;
	}

	.spch-form-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.spch-contact-form-wrap {
		padding: 20px 16px;
	}

	.spch-contact-form .spch-button {
		width: 100%;
	}

	.spch-cookie {
		right: 12px;
		bottom: 12px;
		left: 12px;
		flex-wrap: wrap;
		max-width: none;
	}

	.spch-cookie .spch-button {
		width: 100%;
	}

	.spch-article-content {
		font-size: 16px;
	}

	.spch-article-cover .spch-post-cover {
		aspect-ratio: 16 / 9;
	}

	.spch-how-steps li {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
		padding: 12px 14px;
		font-size: 15px;
	}

	.spch-how-icon {
		width: 44px;
		height: 44px;
	}

	.spch-cities-index {
		columns: 1;
	}
}

@media (max-width: 420px) {
	.spch-brand-text small {
		display: none;
	}

	.spch-city-switch {
		max-width: 128px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spch-city-popover,
	.spch-city-modal-dialog,
	.spch-city-modal-backdrop,
	.spch-metal-tile,
	.spch-best-card {
		transition: none;
	}
}

/* ---------- Список выбора формы подбора ---------- */

.spch-select {
	position: relative;
	min-width: 0;
}

.spch-select-native {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

.spch-select-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	padding: 0 14px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 12px;
	background: var(--spch-surface);
	color: var(--spch-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}

.spch-select-button::after {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6660' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 140ms ease;
}

.spch-select.is-open .spch-select-button::after {
	transform: rotate(180deg);
}

.spch-select-button:hover {
	border-color: var(--spch-muted);
}

.spch-select-button:focus-visible,
.spch-select.is-open .spch-select-button {
	border-color: var(--spch-accent);
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--spch-accent) 18%, transparent);
}

.spch-select-value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spch-select-button.is-placeholder .spch-select-value {
	color: var(--spch-muted);
	font-weight: 500;
}

.spch-select-pop {
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 6px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 14px;
	background: var(--spch-surface);
	box-shadow: 0 18px 44px rgba(15, 20, 18, 0.22);
	text-transform: none;
	letter-spacing: 0;
}

.spch-select-pop[hidden] {
	display: none;
}

.spch-select .spch-select-search {
	flex: 0 0 auto;
	width: 100%;
	min-height: 42px;
	margin: 0 0 6px;
	padding: 0 12px;
	border: 1px solid var(--spch-line-strong);
	border-radius: 10px;
	background: var(--spch-surface-strong);
	background-image: none;
	color: var(--spch-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}

.spch-select .spch-select-search:focus {
	border-color: var(--spch-accent);
	outline: none;
}

.spch-select-list {
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.spch-select-option {
	margin: 0;
	padding: 10px 12px;
	border-radius: 9px;
	color: var(--spch-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	cursor: pointer;
}

.spch-select-option[hidden] {
	display: none;
}

.spch-select-option.is-empty {
	color: var(--spch-muted);
}

.spch-select-option.is-active {
	background: var(--spch-surface-strong);
}

.spch-select-option.is-selected {
	color: var(--spch-accent-strong);
	font-weight: 700;
}

.spch-select-option.is-selected::after {
	content: "✓";
	float: right;
	margin-left: 10px;
}

@media (max-width: 760px) {
	.spch-select-option {
		padding: 13px 12px;
	}
}

/* ---------- Шапка: меню в одну строку ---------- */

@media (min-width: 1025px) {
	.spch-menu {
		flex-wrap: nowrap;
	}

	.spch-menu a {
		white-space: nowrap;
	}
}

@media (min-width: 1025px) and (max-width: 1240px) {
	.spch-menu a {
		padding: 0 8px;
		font-size: 14px;
	}

	.spch-header-phone small {
		display: none;
	}
}

.spch-pair-all {
	margin: 12px 0 0;
}

.spch-price-disclaimer {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-left: 4px solid var(--spch-warm);
	border-radius: 0 12px 12px 0;
	background: color-mix(in srgb, var(--spch-warm) 9%, var(--spch-surface));
	color: var(--spch-ink);
	font-size: 14px;
	line-height: 1.5;
}

.spch-price-disclaimer strong {
	font-weight: 800;
}

.spch-page-hero .spch-price-disclaimer {
	max-width: 760px;
}

/* ---------- Контакты под кнопкой «Показать» ---------- */

.spch-reveal {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: inherit;
	cursor: pointer;
}

.spch-reveal-mask {
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.spch-reveal-hint {
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.spch-reveal.is-loading {
	opacity: 0.6;
	cursor: progress;
}

.spch-reveal-inline {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--spch-ink);
	font-weight: 600;
	text-align: left;
}

.spch-reveal-inline .spch-reveal-hint {
	background: color-mix(in srgb, var(--spch-accent) 14%, transparent);
	color: var(--spch-accent-strong);
}

.spch-reveal-inline:hover .spch-reveal-hint {
	background: var(--spch-accent);
	color: #fff;
}

.spch-mobile-actions .spch-reveal {
	justify-content: center;
}

.spch-mobile-actions .spch-reveal-hint {
	display: none;
}

/* Подписи полей на тёмных блоках красят все span внутри label — значение списка остаётся тёмным. */
.spch-picker label .spch-select-button .spch-select-value {
	color: var(--spch-ink);
	text-transform: none;
}

.spch-picker label .spch-select-button.is-placeholder .spch-select-value {
	color: var(--spch-muted);
}

.spch-hero-map-link {
	margin: 14px 0 0;
}

.spch-hero-map-link .spch-button {
	gap: 8px;
}

.spch-hero-map-link .spch-icon {
	width: 18px;
	height: 18px;
}

.spch-city-map {
	overflow: hidden;
	border: 1px solid var(--spch-line-strong);
	border-radius: var(--spch-radius-lg);
	background: var(--spch-surface);
	box-shadow: var(--spch-shadow-lg);
}

.spch-city-map-frame {
	display: block;
	width: 100%;
	height: 540px;
	border: 0;
}

@media (max-width: 760px) {
	.spch-city-map-frame {
		height: 420px;
	}
}

#map {
	scroll-margin-top: calc(var(--spch-header-height, 72px) + 12px);
}
