/*
Theme Name: Содружество - Сервис
Theme URI: https://sodservice.ru/
Author: ООО «Содружество - Сервис»
Description: Тема «Одна улица» v1.5.2: Literata + Golos Text, книжно-журнальная палитра, авторская графика, без cookie и сторонних ресурсов, БВИ.
Version: 1.5.2
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sodservice
*/

/* ==========================================================================
   1. Локальные шрифты (Golos Text + Literata Display, SIL OFL 1.1)
   ========================================================================== */
@font-face {
	font-family: "Golos Text";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/golos-text-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos Text";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/golos-text-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/literata-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Literata";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/literata-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Палитра и токены «Одна улица» (WCAG 2.1 AA проверено)
   ========================================================================== */
:root {
	--f: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fd: "Literata", Georgia, "Times New Roman", serif;

	--bg: #f5efe4;     /* Бумага */
	--sf: #fffcf6;     /* Лист */
	--so: #ede4d3;     /* Тёплая плашка */
	--pos: #fffaf1;    /* Паспарту формы обратной связи */
	--pos-ln: #eadfcb;

	--fg: #1d2a33;     /* Чернила (12.8:1 на бумаге) */
	--mt: #5a626a;     /* Вторичный текст (5.4:1 на бумаге) */

	--ac: #154a6e;     /* Вечерняя Тура (8.2:1 на бумаге) */
	--ah: #0e3753;     /* Вечерняя Тура hover */
	--as: #e7eff4;     /* Мягкий голубой тинт */
	--al: #bfd1df;     /* Контур Туры */
	--af: #fffcf6;     /* Текст на синем */

	--hn: #8a5712;     /* Мёд текстовый (5.3:1 на бумаге) */
	--hn-b: #e9c46a;   /* Мёд декоративный */
	--bt: #f3dfb2;     /* Масло */
	--sg: #4e6b58;     /* Шалфей */
	--sg-s: #eaf1ec;   /* Мягкий шалфей */
	--sg-l: #c3d5c9;   /* Контур шалфея */

	--er: #a3241b;     /* Аварийный красный — ТОЛЬКО для АДС */
	--eh: #7f1a13;
	--es: #fdf2f0;
	--el: #e7c2bc;

	--ln: #e2d8c6;     /* Волосяная линия */
	--ls: #766e60;     /* Контур кнопок (≥ 4.5:1) */
	--fc: #9b5c00;     /* Кольцо фокуса */

	--bm-bg: #154a6e;  /* Фирменный знак «Шесть в кольце» */
	--bm-bd: #154a6e;
	--bm-fg: #fffcf6;
	--bm-ac: #e9c46a;

	--fb: #16293a;     /* Подвал «Ночь» */
	--fs: #1f3a52;
	--ff: #fffcf6;
	--fm: #b9c4ce;
	--fl: #2b4963;

	--s1: 0 1px 2px rgb(29 42 51 / .04), 0 4px 12px rgb(29 42 51 / .04);
	--s2: 0 4px 14px rgb(29 42 51 / .06), 0 14px 32px rgb(29 42 51 / .05);
	--s3: 0 14px 34px rgb(29 42 51 / .16), 0 2px 8px rgb(29 42 51 / .06);
}

/* ==========================================================================
   3. База, типографика и служебные классы
   ========================================================================== */
html {
	font-size: 106.25%;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 1rem/1.62 var(--f);
	text-align: start;
	overflow-wrap: break-word;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* box-sizing изолирован от содержимого внешней формы обратной связи */
.sod-ui,
.sod-ui :is(*, *::before, *::after),
.skip-link,
.site-main,
.home-top,
.wrap,
.pos-frame,
.pos-section {
	box-sizing: border-box;
}

.sod-ui {
	font-size-adjust: from-font;
	font-variant-numeric: tabular-nums;
}
.sod-ui img {
	max-width: 100%;
	height: auto;
}
:where(.sod-ui) a {
	color: var(--ac);
	text-underline-offset: .2em;
	text-decoration-thickness: 1px;
}
:where(.sod-ui) a:hover {
	color: var(--ah);
}
.sod-ui :focus-visible,
.skip-link:focus-visible {
	outline: 3px solid var(--fc);
	outline-offset: 2px;
}

.wrap {
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 16px;
}
.site-main {
	flex: 1 0 auto;
}
.print-head {
	display: none;
}

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1.02rem; height: 1.02rem; flex: none; }
.icon-xs { width: .88rem; height: .88rem; flex: none; }

.screen-reader-text,
.visually-hidden:where(:not(:focus-within, :active)) {
	position: absolute !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	max-width: calc(100vw - 24px);
	overflow-wrap: anywhere;
	transform: translateY(calc(-100% - 36px));
	z-index: 200;
	background: var(--ac);
	color: var(--af);
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: var(--s2);
}
.skip-link:focus {
	transform: none;
	color: var(--af);
}

.eyebrow {
	margin: 0 0 6px;
	font: 600 .72rem/1.3 var(--f);
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--hn);
}

.btn,
.back-to-top,
.hero-ads-main,
.hero-ads-reserve a,
.site-menu .menu-ads-reserve a,
.news-list-link,
.news-single-cta,
.page-toc-list a,
.toc-back,
.single-ads-note a,
.footer-ads-phone,
.footer-ads-reserve a,
.footer-nav-list a,
.page-slug-zhitelyam td:last-child a.tel-link,
.page-slug-kontakty .entry-content > h2:first-of-type + p a.tel-link,
.pagination .page-numbers,
.wp-block-file__button,
.wp-block-button__link,
.hrow-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.site-menu,
.month-items,
.news-list,
.dir-list,
.breadcrumbs ol,
.page-toc-list,
.post-list,
.footer-contact-list,
.footer-nav-list,
.hrow-meta {
	list-style: none;
	margin: 0;
	padding: 0;
}

.header-ads-label,
.header-ads-num,
.bvi-toggle,
.menu-toggle,
.mobile-ads-num,
.menu-ads-num,
.hero-ads-label span,
.hero-ads-main,
.hero-ads-reserve,
.tel-link,
.single-ads-note a {
	white-space: nowrap;
}

/* ==========================================================================
   4. Кнопки и тактильные круговые стрелки
   ========================================================================== */
.btn,
.back-to-top {
	justify-content: center;
	gap: 8px;
	font: 500 .88rem/1.25 var(--f);
	padding: 8px 16px;
	border: 1px solid var(--ls);
	border-radius: 10px;
	background: var(--sf);
	color: var(--fg);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .16s, border-color .16s, color .16s, transform .14s;
}
.btn-pill,
.back-to-top,
.header-ads,
.bvi-toggle,
.menu-toggle,
.month-today-pill,
.wp-block-file__button,
.wp-block-button__link,
.hrow-btn,
.pagination .page-numbers {
	border-radius: 999px;
}
.btn-pill,
.back-to-top {
	padding-inline: 18px;
}
.btn:hover {
	border-color: var(--ac);
	background: var(--as);
	color: var(--ac);
}
.btn-primary {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--af);
	font-weight: 600;
}
.btn-primary:hover {
	background: var(--ah);
	border-color: var(--ah);
	color: var(--af);
}
.btn-secondary,
.back-to-top {
	background: var(--sf);
	border-color: var(--ls);
	color: var(--ac);
	font-weight: 600;
}
.btn-secondary:hover,
.back-to-top:hover {
	background: var(--as);
	border-color: var(--ac);
	color: var(--ah);
}
.btn-icon {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
}

.circle-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ln);
	background: var(--bg);
	color: var(--ac);
	transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.circle-arrow--sm {
	width: 32px;
	height: 32px;
}
.circle-arrow svg {
	transition: transform .18s;
}

/* ==========================================================================
   5. Панель БВИ (версия для слабовидящих)
   ========================================================================== */
.bvi-panel {
	background: var(--so);
	border-bottom: 2px solid var(--fg);
	padding: 10px 0;
}
.bvi-bar,
.bvi-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
}
.bvi-group {
	gap: 6px;
}
.bvi-group > span {
	font-weight: 600;
	font-size: .92rem;
}
.bvi-panel button {
	font: inherit;
	font-weight: 600;
	min-width: 44px;
	min-height: 44px;
	padding: 6px 12px;
	cursor: pointer;
	border: 2px solid var(--fg);
	border-radius: 8px;
	background: var(--sf);
	color: var(--fg);
}
.bvi-panel button:not(.s-bw, .s-wb, .s-blue)[aria-pressed="true"] {
	background: var(--fg);
	color: var(--bg);
}
.bvi-panel .s-bw { background: #fff; color: #000; border-color: #000; }
.bvi-panel .s-wb { background: #000; color: #fff; border-color: #fff; }
.bvi-panel .s-blue { background: #9dd1ff; color: #063462; border-color: #063462; }
.bvi-panel :is(.s-bw, .s-wb, .s-blue)[aria-pressed="true"] {
	box-shadow: inset 0 0 0 4px currentColor;
	text-decoration: underline;
	text-decoration-thickness: 2px;
}
.bvi-off {
	margin-left: auto;
}

/* ==========================================================================
   6. Тихая шапка и адаптивное меню
   ========================================================================== */
.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--ln);
	position: relative;
	z-index: 20;
}
.is-measuring * {
	transition: none !important;
}
.header-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0 10px;
	padding: 7px 0;
}
.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: var(--fg);
	min-height: 44px;
	min-width: 0;
}
.brand:hover,
.brand:hover .brand-name {
	color: var(--ac);
}
.brand-mark {
	width: 34px;
	height: 34px;
	flex: none;
}
.brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.brand-name {
	font: 600 1.02rem/1.18 var(--fd);
	letter-spacing: -.015em;
	color: var(--fg);
}
.brand-sub {
	color: var(--mt);
	font-size: .74rem;
	margin-top: 2px;
}

.header-utility {
	display: flex;
	align-items: center;
	gap: 8px;
}
.header-ads {
	display: none;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 5px 14px;
	background: var(--es);
	border: 1px solid var(--el);
	color: var(--er);
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.header-ads:hover {
	border-color: var(--er);
	color: var(--eh);
}
.header-ads-icon {
	width: 1.02rem;
	height: 1.02rem;
	flex: none;
}
.header-ads-body {
	display: flex;
	flex-direction: column;
	line-height: 1.14;
}
.header-ads-label {
	font-size: .7rem;
	font-weight: 600;
	color: var(--er);
}
.header-ads-num {
	font-size: .92rem;
	font-weight: 700;
}
.bvi-toggle {
	min-width: 44px;
}
.menu-toggle {
	anchor-name: --menu-toggle;
}
.menu-toggle .menu-icon-close,
.menu-toggle.is-open .menu-icon-open {
	display: none;
}
.menu-toggle.is-open .menu-icon-close {
	display: block;
}

.mobile-ads-bar {
	background: var(--es);
	border-top: 1px solid var(--el);
}
.mobile-ads-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-height: 44px;
	padding: 6px 0;
	color: var(--er);
	text-decoration: none;
	font: .86rem/1.25 var(--f);
}
.mobile-ads-link:hover {
	color: var(--eh);
}
.mobile-ads-icon { width: 1rem; height: 1rem; flex: none; }
.mobile-ads-label { font-weight: 600; }
.mobile-ads-num { font-size: .98rem; font-weight: 700; text-decoration: underline; }

/* Выпадающее меню (mobile / узкое окно) */
.site-menu {
	margin: 8px 0 0;
	padding: 8px;
	position: fixed;
	inset: auto;
	top: 4.25rem;
	top: anchor(--menu-toggle bottom);
	right: 16px;
	width: min(calc(100dvw - 32px), 21rem);
	max-width: calc(100dvw - 32px);
	height: fit-content;
	max-height: calc(100dvh - 5.5rem);
	overflow: auto;
	background: var(--sf);
	color: var(--fg);
	border: 1px solid var(--ln);
	border-radius: 16px;
	box-shadow: var(--s3);
}
.site-menu::backdrop {
	background: rgb(29 42 51 / .24);
}
.site-menu[popover]:not(:popover-open) {
	display: none;
}
@supports not selector(:popover-open) {
	.site-menu:not(.is-open) { display: none; }
}
.site-menu.is-open {
	display: block;
}
.site-menu li {
	margin: 0;
}
.site-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 9px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--fg);
	font: 500 .94rem/1.3 var(--f);
	transition: background-color .15s, color .15s;
}
.site-menu a:hover {
	background: var(--bt);
	color: var(--fg);
}
.site-menu :is([aria-current], .current_page_item > a, .current-menu-item > a),
body:not(.error404) .site-menu .current_page_parent > a {
	background: var(--bt);
	color: var(--fg);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--hn);
}

.menu-item-ads {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--ln);
}
.menu-ads-box {
	display: flex;
	flex-direction: column;
	padding: 6px 12px;
	border-radius: 10px;
	background: var(--es);
	border: 1px solid var(--el);
	border-left: 4px solid var(--er);
}
.site-menu .menu-ads-link {
	gap: 10px;
	padding: 2px 0;
	border-radius: 0;
	background: none;
	color: var(--er);
}
.site-menu .menu-ads-link:hover {
	background: none;
	color: var(--eh);
}
.menu-ads-icon { width: 1.1rem; height: 1.1rem; flex: none; }
.menu-ads-body { display: flex; flex-direction: column; line-height: 1.2; }
.menu-ads-label { font: 600 .74rem/1.2 var(--f); color: var(--er); }
.menu-ads-num { font-size: 1.04rem; font-weight: 700; }
.menu-ads-reserve {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 4px;
	font: .78rem/1.25 var(--f);
	color: var(--mt);
	padding-left: 28px;
}
.site-menu .menu-ads-reserve a {
	padding: 0 4px;
	font-size: inherit;
	font-weight: 600;
	color: var(--fg);
	background: none;
	text-decoration: underline;
}
.site-menu .menu-ads-reserve a:hover {
	background: none;
	color: var(--er);
}

/* Широкая строка меню (специфичность .site-header.is-wide .header-grid > .bvi .header-grid) */
.site-header.is-wide .header-grid {
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 10px 0 0;
}
.is-wide .site-nav {
	grid-column: 1 / -1;
	min-width: 0;
	margin-top: 8px;
	border-top: 1px solid var(--ln);
	padding: 0;
}
.is-wide :is(.menu-toggle, .site-menu::backdrop, .menu-item-ads) {
	display: none;
}
.is-wide .site-menu {
	position: static;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 4px;
	width: 100%;
	max-width: none;
	height: auto;
	max-height: none;
	overflow: visible;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.is-wide .site-menu li {
	flex: none;
}
.is-wide .site-menu a {
	padding: 10px 4px;
	font-size: .8rem;
	white-space: nowrap;
	border-radius: 0;
	position: relative;
}
.is-wide .site-menu a:hover {
	background: none;
	color: var(--ac);
}
.is-wide .site-menu :is([aria-current], .current_page_item > a, .current-menu-item > a),
body:not(.error404) .is-wide .site-menu .current_page_parent > a {
	background: none;
	color: var(--fg);
	font-weight: 700;
	box-shadow: inset 0 -3px 0 var(--hn);
}

/* Резервируем широкую шапку на десктопе до запуска defer-скрипта (0 CLS при холодной загрузке) */
@media (min-width: 1220px) {
	html.js:not(.bvi) .site-header:not(.is-compact) .header-grid {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 10px 0 0;
	}
	html.js:not(.bvi) .site-header:not(.is-compact) .site-nav {
		grid-column: 1 / -1;
		min-width: 0;
		margin-top: 8px;
		border-top: 1px solid var(--ln);
		padding: 0;
	}
	html.js:not(.bvi) .site-header:not(.is-compact) :is(.menu-toggle, .site-menu::backdrop, .menu-item-ads) {
		display: none;
	}
	html.js:not(.bvi) .site-header:not(.is-compact) .site-menu,
	html.js:not(.bvi) .site-header:not(.is-compact) .site-menu[popover]:not(:popover-open) {
		position: static;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: nowrap;
		gap: 4px;
		width: 100%;
		max-width: none;
		height: auto;
		max-height: none;
		overflow: visible;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}
	html.js:not(.bvi) .site-header:not(.is-compact) .site-menu li {
		flex: none;
	}
	html.js:not(.bvi) .site-header:not(.is-compact) .site-menu a {
		padding: 10px 4px;
		font-size: .8rem;
		white-space: nowrap;
		border-radius: 0;
		position: relative;
	}
	html.js:not(.bvi) .site-header:not(.is-compact) .site-menu :is([aria-current], .current_page_item > a, .current-menu-item > a),
	body:not(.error404) html.js:not(.bvi) .site-header:not(.is-compact) .site-menu .current_page_parent > a {
		background: none;
		color: var(--fg);
		font-weight: 700;
		box-shadow: inset 0 -3px 0 var(--hn);
	}
}

/* ==========================================================================
   7. Главная: обложка «Одна улица», панорама 6 домов и паспарту формы ПОС
   ========================================================================== */
.home-top {
	background: var(--bg);
	padding: 6px 0 12px;
}
.hero {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 4px;
}
.hero-copy {
	min-width: 0;
}
.hero-eyebrow {
	margin: 0 0 2px;
	font-size: .74rem;
}
.hero-title {
	margin: 0;
	font: 600 clamp(1.18rem, .92rem + 1.55vw, 2.55rem)/1.12 var(--fd);
	letter-spacing: -.022em;
	color: var(--fg);
	text-wrap: balance;
}
.hero-lead {
	display: none;
	margin: 6px 0 0;
	font: 400 1.04rem/1.4 var(--f);
	color: var(--mt);
}

/* Аварийный билет АДС (единственный красный на странице) */
.hero-ads,
.not-found-ads {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--sf);
	border: 1px solid var(--el);
	border-left: 4px solid var(--er);
	border-radius: 14px;
	padding: 2px 12px;
	box-shadow: var(--s1);
}
.not-found-ads {
	background: var(--es);
	padding: 10px 16px;
	gap: 12px;
	box-shadow: none;
	margin-bottom: 22px;
}
.hero-ads-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--es);
	color: var(--er);
	--ic-fill: #f6c9c1;
}
.hero-ads-icon { width: 1.05rem; height: 1.05rem; }
.hero-ads-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.15;
}
.hero-ads-label {
	font: 600 .72rem/1.2 var(--f);
	color: var(--er);
	padding-top: 2px;
}
.hero-ads-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 12px;
}
.hero-ads-main {
	color: var(--er);
	font-weight: 700;
	font-size: 1.08rem;
	text-decoration: none;
}
.hero-ads-main:hover {
	color: var(--eh);
	text-decoration: underline;
}
.hero-ads-reserve {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 4px;
	font-size: .8rem;
	color: var(--mt);
}
.hero-ads-reserve a {
	padding: 0 2px;
	color: var(--fg);
	font-weight: 600;
	text-decoration: underline;
}
.hero-ads-reserve a:hover {
	color: var(--er);
}

/* Панорама шести домов на бумаге #F5EFE4 (явное резервирование высоты до загрузки, 0 CLS) */
.hero-pano {
	position: relative;
	margin: 2px 0 8px;
	text-align: center;
	line-height: 0;
	--pano-h: 62px;
	--pano-ratio: 3.10204;
	--pano-ar: 760 / 245;
}
.hero-pano-img {
	display: block;
	margin: 0 auto;
	width: min(100%, calc(var(--pano-h) * var(--pano-ratio)));
	max-width: 100%;
	height: auto;
	aspect-ratio: var(--pano-ar);
	object-fit: contain;
	mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.hero-pano-winter {
	display: none;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.season-winter .hero-pano-winter {
	display: block;
}
.hero-ground-line {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--fg);
	opacity: .72;
	margin-top: -1px;
}

/* Паспарту формы обратной связи Госуслуг (НЕ ставит overflow:hidden, НЕ касается внутренних стилей виджета) */
.pos-frame {
	position: relative;
}
.pos-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 0 14px;
	padding: 3px 12px;
	border-radius: 10px 10px 0 0;
	background: var(--pos);
	border: 1px solid var(--pos-ln);
	border-bottom: 0;
	font: 600 .76rem/1.3 var(--f);
	letter-spacing: .01em;
	color: var(--fg);
	position: relative;
	z-index: 2;
	bottom: -1px;
}
.pos-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ac);
	flex: none;
}
.pos-section {
	margin: 0;
	padding: 6px 8px;
	background: var(--pos);
	border: 1px solid var(--pos-ln);
	border-radius: 18px;
	box-shadow: var(--s1);
	scroll-margin-top: 20px;
}

/* ==========================================================================
   8. Главная: единый ритм секций на бумаге #F5EFE4
   ========================================================================== */
.home-body {
	background: var(--bg);
}
.home-section {
	padding: 30px 0;
}
.home-section + .home-section {
	border-top: 1px solid var(--ln);
}
.home-section--channels {
	padding-bottom: 44px;
}
.section-head {
	margin-bottom: 18px;
}
.section-head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
}
.section-title {
	margin: 0;
	font: 600 clamp(1.32rem, 1.12rem + .85vw, 1.92rem)/1.2 var(--fd);
	letter-spacing: -.018em;
	color: var(--fg);
	text-wrap: balance;
}

/* 8а. Быстрые действия — 4 плитки с крупными цифрами-героями (2×2 на мобильном) */
.quick-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.quick-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 16px;
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 18px;
	text-decoration: none;
	color: var(--fg);
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.quick-card:hover {
	border-color: var(--al);
	box-shadow: var(--s2);
	color: var(--fg);
}
.quick-card:hover .circle-arrow {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--af);
}
.quick-card:hover .circle-arrow svg {
	transform: translateX(2px);
}
.quick-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}
.quick-num {
	font: 600 clamp(1.75rem, 1.35rem + 1.5vw, 2.75rem)/1 var(--fd);
	letter-spacing: -.03em;
	color: var(--ac);
}
.quick-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.quick-card-title {
	font: 700 .96rem/1.28 var(--f);
	color: var(--fg);
}
.quick-card-desc {
	font: 400 .82rem/1.4 var(--f);
	color: var(--mt);
	text-wrap: pretty;
}

.quick-card--alert {
	background: var(--es);
	border-color: var(--el);
}
.quick-card--alert .quick-num {
	color: var(--er);
}
.quick-card--alert .circle-arrow {
	background: var(--sf);
	border-color: var(--el);
	color: var(--er);
}
.quick-card--alert:hover {
	border-color: var(--er);
}
.quick-card--alert:hover .circle-arrow {
	background: var(--er);
	border-color: var(--er);
	color: var(--af);
}

/* 8б. Месяц жителя — живая шкала 1..31 с серверной отметкой «Сегодня» */
.month-card {
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 22px;
	padding: 22px 20px;
}
.month-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 10px;
}
.month-status {
	margin: 0 0 16px;
	font: 500 .94rem/1.45 var(--f);
	color: var(--ac);
}
.month-today-pill {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 14px;
	background: var(--bt);
	color: var(--fg);
	font: 600 .82rem/1.3 var(--f);
}
.month-today-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hn);
	flex: none;
}

.month-track-wrap {
	margin: 4px 0 22px;
}
.month-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.month-row,
.month-scale-row {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 5px 14px;
}
.month-row-lbl {
	font: 600 .76rem/1.2 var(--f);
	color: var(--mt);
	white-space: nowrap;
}
.month-scale-row .month-row-lbl {
	display: none;
}
.month-track {
	position: relative;
	height: 12px;
	border-radius: 999px;
	background: var(--so);
	border: 1px solid var(--ln);
}
.month-seg {
	position: absolute;
	top: -1px;
	bottom: -1px;
	border-radius: 999px;
}
.month-seg--pay {
	left: 0;
	width: var(--pay-pct);
	background: var(--hn-b);
}
.month-seg--meter {
	left: var(--m-start);
	width: var(--m-width);
	background: var(--ac);
}
.month-today-pin {
	position: absolute;
	top: 50%;
	left: var(--today-pct);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--fg);
	border: 3px solid var(--sf);
	box-shadow: 0 0 0 2px var(--fg);
	transform: translate(-50%, -50%);
	z-index: 2;
}
.month-scale {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font: 600 .76rem/1.2 var(--f);
	color: var(--mt);
}
.month-scale-mark {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
}

.month-items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
.month-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--bg);
	border: 1px solid var(--ln);
	text-decoration: none;
	color: var(--fg);
	transition: border-color .18s, background-color .18s;
}
.month-item.is-active {
	background: var(--sf);
	border-color: var(--hn);
	box-shadow: var(--s1);
}
.month-item:hover {
	border-color: var(--al);
	background: var(--sf);
	color: var(--fg);
}
.month-item:hover .circle-arrow {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--af);
}
.month-item:hover .circle-arrow svg {
	transform: translateX(2px);
}
.month-swatch {
	width: 12px;
	height: 36px;
	border-radius: 999px;
	flex: none;
}
.month-swatch--pay { background: var(--hn-b); }
.month-swatch--meter { background: var(--ac); }
.month-item-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}
.month-item-title {
	font: 700 .95rem/1.3 var(--f);
	color: var(--fg);
}
.month-item-desc {
	font: 400 .84rem/1.4 var(--f);
	color: var(--mt);
}

/* 8в. Адаптивные объявления — «листок на доске» для 1 записи, список для 2+ */
.news-single-card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: center;
	padding: 24px 22px;
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 22px;
	box-shadow: var(--s1);
	transition: border-color .18s, box-shadow .18s;
}
.news-single-card:hover {
	border-color: var(--al);
	box-shadow: var(--s2);
}
.news-cal {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ln);
}
.news-cal-day {
	font: 600 2.5rem/1 var(--fd);
	letter-spacing: -.03em;
	color: var(--hn);
}
.news-cal-mon {
	font: 600 .78rem/1.2 var(--f);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mt);
}
.news-single-body {
	min-width: 0;
}
.news-single-title {
	margin: 0 0 6px;
	font: 600 clamp(1.18rem, 1.04rem + .5vw, 1.48rem)/1.25 var(--fd);
	letter-spacing: -.012em;
}
.news-single-title .news-list-link {
	min-height: 0;
	display: inline;
	font: inherit;
	color: var(--fg);
	text-decoration: none;
}
.news-single-link::after {
	content: "";
	position: absolute;
	inset: 0;
}
.news-single-card:hover .news-single-link {
	color: var(--ac);
	text-decoration: underline;
}
.news-single-excerpt {
	margin: 0;
	font: 400 .94rem/1.55 var(--f);
	color: var(--mt);
	max-width: 68ch;
}
.news-single-cta {
	justify-self: start;
	gap: 10px;
	font: 600 .9rem/1.2 var(--f);
	color: var(--ac);
	text-decoration: none;
}
.news-single-card:hover .news-single-cta .circle-arrow {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--af);
}
.news-single-card:hover .news-single-cta .circle-arrow svg {
	transform: translateX(2px);
}

.news-list-item {
	padding: 14px 0;
	border-top: 1px solid var(--ln);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.news-list-item:first-child {
	border-top: 0;
	padding-top: 4px;
}
.news-list-item:last-child {
	padding-bottom: 2px;
}
.date-label {
	font: 600 .76rem/1.3 var(--f);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hn);
	flex: none;
}
.news-list-link {
	font: 600 .98rem/1.38 var(--f);
	text-decoration: none;
	color: var(--fg);
}
.news-list-link:hover {
	color: var(--ac);
	text-decoration: underline;
}
.news-empty {
	margin: 8px 0 0;
	color: var(--mt);
}

/* 8г. Журнальный разворот: виньетка «Офис» + безрамочное оглавление 01–05 */
.front-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
}
.surface-card,
.content-sheet,
.post-card,
.not-found-card {
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 22px;
}
.surface-card {
	padding: 24px 22px;
}
.office-card {
	padding: 0;
	overflow: hidden;
}
.office-art {
	background: var(--sf);
	padding: 16px 16px 0;
}
.office-art img {
	display: block;
	width: 100%;
	max-height: 232px;
	object-fit: contain;
	object-position: center bottom;
}
.office-body {
	padding: 18px 22px 24px;
}
.office-body > h2:first-of-type {
	margin-top: 0;
	padding-bottom: 0;
	border-bottom: 0;
	font-family: var(--fd);
	font-weight: 600;
	font-size: clamp(1.24rem, 1.08rem + .45vw, 1.52rem);
}
.office-more {
	margin: 14px 0 0;
}

.front-directory {
	padding-top: 6px;
}
.front-directory .section-title {
	margin-bottom: 14px;
}
.dir-list {
	border-top: 1px solid var(--ln);
}
.dir-list li {
	border-bottom: 1px solid var(--ln);
}
.dir-link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 13px 10px;
	margin: 0 -10px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--fg);
	transition: background-color .16s;
}
.dir-link:hover {
	background: rgb(243 223 178 / .38);
	color: var(--fg);
}
.dir-num {
	font: 600 1.24rem/1 var(--fd);
	color: var(--hn);
	min-width: 2ch;
	white-space: nowrap;
	flex: none;
}
.dir-link-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}
.dir-link-title {
	font: 600 .98rem/1.3 var(--f);
	color: var(--fg);
}
.dir-link-desc {
	font: 400 .83rem/1.4 var(--f);
	color: var(--mt);
}
.dir-arrow {
	color: var(--mt);
	flex: none;
	transition: transform .16s, color .16s;
}
.dir-link:hover .dir-link-title,
.dir-link:hover .dir-arrow {
	color: var(--ac);
}
.dir-link:hover .dir-arrow {
	transform: translateX(3px);
}

/* 8д. «Как обратиться» — 4 колонки через тонкие делители без коробок */
.channels-grid {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--ln);
	border-bottom: 1px solid var(--ln);
}
.channel-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 0;
}
.channel-col + .channel-col {
	border-top: 1px solid var(--ln);
}
.channel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--so);
	color: var(--ac);
	--ic-fill: #dce6ee;
}
.channel-title {
	margin: 4px 0 0;
	font: 600 1.12rem/1.25 var(--fd);
	color: var(--fg);
}
.channel-text {
	margin: 0;
	font: 400 .9rem/1.5 var(--f);
	color: var(--fg);
}
.channel-text--phones {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.channel-lbl {
	color: var(--mt);
}
.channel-link {
	font-weight: 600;
	text-decoration: none;
}
.channel-link:hover {
	text-decoration: underline;
}
.channel-tel {
	white-space: nowrap;
}
.channel-meta {
	margin: auto 0 0;
	padding-top: 8px;
	font: 400 .82rem/1.45 var(--f);
	color: var(--mt);
}
.channel-btn {
	font-size: .82rem;
	padding: 6px 14px;
}

/* ==========================================================================
   9. Внутренние страницы: «Обложка главы», 2-колоночный макет, Реестр домов
   ========================================================================== */
.page-header {
	background: var(--bg);
	border-bottom: 1px solid var(--ln);
	padding: 20px 0 24px;
}
.breadcrumbs {
	margin-bottom: 10px;
}
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-size: .82rem;
	color: var(--mt);
}
.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.breadcrumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	margin: -10px -2px;
	color: var(--mt);
	text-decoration: none;
}
.breadcrumbs a:hover {
	color: var(--ac);
	text-decoration: underline;
}
.breadcrumbs-sep { width: .86rem; height: .86rem; color: var(--mt); flex: none; }
.breadcrumbs [aria-current="page"] { color: var(--fg); font-weight: 500; }

.page-title {
	margin: 0;
	font: 600 clamp(1.62rem, 1.24rem + 1.55vw, 2.55rem)/1.14 var(--fd);
	letter-spacing: -.022em;
	color: var(--fg);
	text-wrap: balance;
}
.page-lead {
	margin-top: 10px;
	max-width: 68ch;
	color: var(--mt);
	font-size: .98rem;
}
.page-lead p:last-child {
	margin-bottom: 0;
}

.page-body {
	padding: 26px 0 54px;
}
.page-body--open {
	padding-top: 24px;
}
.content-sheet {
	padding: 24px 18px;
}
.page-article--open {
	background: none;
	border: 0;
	padding: 0;
}

/* Текст внутренних страниц */
.entry-content > * {
	max-width: 72ch;
}
.entry-content > :is(.wp-block-table, .wp-block-columns, .wp-block-gallery, .wp-block-group, .reading-layout, .hregistry, .tyumen-map, .doma-jump, .office-map, .company-passport, .page-toc--compact) {
	max-width: none;
}
.entry-content h2 {
	font: 600 clamp(1.26rem, 1.1rem + .55vw, 1.56rem)/1.24 var(--fd);
	letter-spacing: -.015em;
	margin: 1.85em 0 .62em;
	padding-bottom: .35em;
	border-bottom: 1px solid var(--ln);
	scroll-margin-top: 20px;
	text-wrap: balance;
}
.entry-content h3 {
	font: 700 1.1rem/1.32 var(--f);
	margin: 1.4em 0 .45em;
	text-wrap: balance;
}
.entry-content h4 {
	font: 700 1rem/1.3 var(--f);
	margin: 1.2em 0 .4em;
}
.entry-content > :first-child {
	margin-top: 0;
}
.entry-content p {
	margin: 0 0 .95em;
	text-wrap: pretty;
}
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}
.entry-content li {
	margin-bottom: .42em;
}
.entry-content li::marker {
	color: var(--hn);
	font-weight: 600;
}
.entry-content strong {
	font-weight: 600;
}
.entry-content :is(hr, .wp-block-separator) {
	border: 0;
	border-top: 1px solid var(--ln);
	margin: 1.8em 0;
}
.entry-content :is(blockquote, .wp-block-quote) {
	margin: 1.4em 0;
	padding: 16px 20px;
	background: var(--bg);
	border-left: 4px solid var(--hn-b);
	border-radius: 0 14px 14px 0;
}
.entry-content blockquote p:last-of-type {
	margin-bottom: 0;
}
.entry-content :is(blockquote, .wp-block-quote) cite {
	display: block;
	margin-top: 8px;
	font-style: normal;
	font-size: .86rem;
	color: var(--mt);
}

figure.wp-block-image {
	margin: 1.5em 0;
}
figure.wp-block-image img {
	display: block;
	border-radius: 14px;
	border: 1px solid var(--ln);
}
.entry-content figcaption {
	margin-top: 8px;
	font-size: .84rem;
	color: var(--mt);
}

/* Рамка скана лицензии на /o-kompanii/ (ровно, без наклона — читаемо на экране и при печати) */
.page-slug-o-kompanii figure.wp-block-image img {
	padding: 10px;
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 10px;
	box-shadow: var(--s2);
}

/* Паспорт компании на /o-kompanii/ */
.company-passport {
	display: grid;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--ln);
	border-bottom: 1px solid var(--ln);
	margin: 0 0 24px;
}
.cp-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 0;
}
.cp-item--link {
	text-decoration: none;
	color: inherit;
	min-height: 44px;
	transition: background-color .16s;
}
.cp-item--link:hover .cp-num,
.cp-item--link:hover .cp-lbl {
	color: var(--ah);
}
.cp-item--link:hover .cp-lbl {
	text-decoration: underline;
}
.cp-item + .cp-item {
	border-top: 1px solid var(--ln);
}
.cp-num {
	font: 600 clamp(1.55rem, 1.25rem + .9vw, 2.05rem)/1.08 var(--fd);
	letter-spacing: -.025em;
	color: var(--ac);
}
.cp-lbl {
	font: 400 .84rem/1.38 var(--f);
	color: var(--mt);
}

/* Файлы и кнопки Gutenberg */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 1.2em 0;
	padding: 14px 18px;
	background: var(--bg);
	border: 1px solid var(--ln);
	border-radius: 14px;
}
.wp-block-file > a:first-child {
	font-weight: 600;
	color: var(--fg);
	text-decoration: none;
}
.wp-block-file > a:first-child:hover {
	color: var(--ac);
	text-decoration: underline;
}
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.2em 0;
}
.wp-block-file__button,
.wp-block-button__link {
	justify-content: center;
	padding: 9px 20px;
	background: var(--ac);
	color: var(--af);
	font: 600 .92rem/1.2 var(--f);
	text-decoration: none;
	border: 1px solid var(--ac);
}
.wp-block-file__button:hover,
.wp-block-button__link:hover {
	background: var(--ah);
	border-color: var(--ah);
	color: var(--af);
}
.is-style-outline > .wp-block-button__link {
	background: var(--sf);
	color: var(--ac);
	border: 1.5px solid var(--ac);
}
.is-style-outline > .wp-block-button__link:hover {
	background: var(--as);
	color: var(--ah);
}

/* Оглавление и двухколоночный макет длинных страниц */
.reading-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}
.reading-main {
	min-width: 0;
	counter-reset: reading-sec;
}
.reading-main > * {
	max-width: 72ch;
}
.reading-main > :is(.wp-block-table, .wp-block-columns, .wp-block-gallery, .wp-block-group) {
	max-width: none;
}
.reading-main > :first-child {
	margin-top: 0;
}
.reading-main > h2 {
	counter-increment: reading-sec;
	display: flex;
	align-items: baseline;
	gap: 12px;
}
.reading-main > h2::before {
	content: counter(reading-sec, decimal-leading-zero);
	font: 600 .88rem/1 var(--fd);
	color: var(--hn);
	flex: none;
}
.reading-main > h2.has-manual-num::before,
.page-slug-potrebitelyam .reading-main > h2::before {
	display: none;
}

.page-toc,
.sod-callout {
	padding: 16px 18px;
	background: var(--bg);
	border: 1px solid var(--ln);
	border-left: 4px solid var(--ac);
	border-radius: 14px;
}
.page-toc {
	margin: 0 0 1.6em;
	scroll-margin-top: 20px;
}
.reading-toc .page-toc {
	margin-bottom: 0;
}
.page-toc .page-toc-title {
	margin: 0 0 8px;
	font: 700 .82rem/1.3 var(--f);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hn);
}
.page-toc-summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: -6px 0;
	font: 700 .9rem/1.3 var(--f);
	color: var(--fg);
	cursor: pointer;
}
.page-toc-summary::-webkit-details-marker {
	display: none;
}
.page-toc-chevron {
	width: 1.05rem;
	height: 1.05rem;
	flex: none;
	color: var(--ac);
	transform: rotate(-90deg);
}
.page-toc-details[open] > .page-toc-summary .page-toc-chevron {
	transform: none;
}
.page-toc-details[open] > .page-toc-summary {
	margin-bottom: 4px;
}
.page-toc .page-toc-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
}
.page-toc .page-toc-list li {
	margin: 0;
}
.page-toc-list a {
	display: flex;
	width: 100%;
	padding: 6px 10px;
	border-radius: 8px;
	font: .9rem/1.35 var(--f);
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.page-toc-list a:hover,
.toc-back:hover {
	text-decoration: underline;
}
.page-toc-list a[aria-current="location"] {
	background: var(--bt);
	color: var(--fg);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--hn);
}
.page-toc--compact {
	padding: 12px 16px;
}
.page-toc--compact .page-toc-title {
	margin-bottom: 6px;
}
.page-toc--compact .page-toc-list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px 8px;
}
.page-toc--compact .page-toc-list a {
	width: auto;
	padding: 6px 12px;
	border: 1px solid var(--ln);
	border-radius: 999px;
	background: var(--sf);
	font-size: .84rem;
}
.page-toc--compact .page-toc-list a[aria-current="location"] {
	border-color: var(--hn);
	box-shadow: none;
}
.entry-content .toc-back-wrap,
.reading-main .toc-back-wrap {
	margin: .6em 0 0;
}
.toc-back {
	gap: 6px;
	font: 600 .84rem/1.3 var(--f);
	color: var(--mt);
	text-decoration: none;
}
.toc-back:hover {
	color: var(--ac);
}
.entry-content .back-to-top-wrap,
.reading-main .back-to-top-wrap {
	margin: 1.8em 0 0;
}

/* Классы цветов Gutenberg (theme.json) */
.has-accent-color { color: var(--ac); }
.has-alert-color { color: var(--er); }
.has-ink-color { color: var(--fg); }
.has-muted-color { color: var(--mt); }
.has-white-color { color: var(--sf); }
.has-warm-color { color: var(--hn); }
.has-soft-background-color { background: var(--so); }
.has-alert-soft-background-color { background: var(--es); }
.has-accent-background-color { background: var(--ac); color: var(--af); }
.has-white-background-color { background: var(--sf); }
.has-warm-soft-background-color { background: var(--bt); }
.has-background { padding: 16px 20px; border-radius: 14px; }

.sod-callout {
	margin: 1.4em 0;
	padding: 16px 20px;
}
.sod-callout--alert {
	background: var(--es);
	border-color: var(--el);
	border-left-color: var(--er);
}
.sod-callout > :first-child { margin-top: 0; padding-bottom: 0; border-bottom: 0; }
.sod-callout > :last-child { margin-bottom: 0; }

/* Таблицы (адаптивные с container queries) */
.wp-block-table {
	margin: 1.2em 0 1.5em;
	overflow-x: auto;
	max-width: 100%;
	container-type: inline-size;
	border-radius: 14px;
}
.wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	font-size: .92rem;
	border: 1px solid var(--ln);
	border-radius: 14px;
	overflow: hidden;
	background: var(--sf);
}
.wp-block-table .has-fixed-layout { table-layout: auto; }
.wp-block-table thead { border: 0; }
.wp-block-table :is(th, td) {
	padding: 12px 14px;
	text-align: start;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--ln);
	border-right: 1px solid var(--ln);
	overflow-wrap: normal;
	word-break: normal;
}
.wp-block-table :is(th, td):last-child { border-right: 0; }
.wp-block-table tbody tr:last-child :is(td, th) { border-bottom: 0; }
.wp-block-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--so);
	color: var(--fg);
	font: 700 .84rem/1.3 var(--f);
	text-wrap: balance;
	border-bottom: 2px solid var(--ln);
}
.wp-block-table tbody tr:nth-child(even) :is(th, td) { background: var(--bg); }
.wp-block-table :is(.is-kv-table, .is-cols-2) tbody :is(th, td):first-child {
	font-weight: 600;
	color: var(--mt);
	width: 34%;
}

/* Аварийная таблица на /zhitelyam/ и экстренный блок АДС на /kontakty/ */
.page-slug-zhitelyam table { border-top: 3px solid var(--er); }
.page-slug-zhitelyam .is-cols-2 tbody :is(th, td):first-child { width: auto; color: var(--fg); font-weight: 500; }
.page-slug-zhitelyam td:last-child { font-weight: 700; color: var(--fg); white-space: nowrap; }
.page-slug-zhitelyam td:last-child a.tel-link { min-width: 44px; justify-content: center; padding-inline: 6px; }
.page-slug-zhitelyam tbody tr:first-child :is(th, td) { background: var(--es); color: var(--er); font-weight: 700; }
.page-slug-zhitelyam tbody tr:first-child :is(th, td) a,
.page-slug-kontakty .entry-content > h2:first-of-type + p strong a {
	color: inherit;
	text-decoration: underline;
}
.page-slug-kontakty .entry-content > :is(h2:first-of-type, h2:first-of-type + p) {
	max-width: none;
	background: var(--es);
	border: 1px solid var(--el);
	border-left: 4px solid var(--er);
}
.page-slug-kontakty .entry-content > h2:first-of-type {
	font-family: var(--f);
	color: var(--er);
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	padding: 14px 18px 2px;
	margin: 0;
	font-size: .94rem;
}
.page-slug-kontakty .entry-content > h2:first-of-type + p {
	color: var(--fg);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	padding: 2px 18px 12px;
	margin: 0 0 1.4em;
}
.page-slug-kontakty .entry-content > h2:first-of-type + p strong {
	color: var(--er);
	font-size: 1.3rem;
	font-weight: 700;
}

/* ==========================================================================
   10. Реестр домов (/doma/) и схемы Тюмени / офиса (/kontakty/)
   ========================================================================== */
.doma-jump {
	margin: 1em 0 1.6em;
	padding: 14px 16px;
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 18px;
}
.doma-jump-title {
	margin: 0 0 8px;
	font: 700 .78rem/1.3 var(--f);
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--hn);
}
.doma-jump-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}
.doma-jump-list li { margin: 0; }
.doma-jump-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 12px;
	border: 1px solid var(--ln);
	background: var(--bg);
	color: var(--fg);
	text-decoration: none;
	font: 600 .9rem/1.3 var(--f);
}
.doma-jump-link:hover {
	border-color: var(--ac);
	background: var(--as);
	color: var(--ac);
}
.doma-jump-link--to {
	border-style: dashed;
	border-color: var(--hn);
	background: var(--pos);
}
.doma-jump-num {
	font: 600 .88rem/1 var(--fd);
	color: var(--hn);
	flex: none;
}
.doma-jump-addr {
	flex: 1 1 auto;
	min-width: 0;
}
.doma-jump-tag {
	font: 600 .72rem/1.2 var(--f);
	letter-spacing: .05em;
	color: var(--hn);
	padding: 2px 7px;
	border-radius: 999px;
	border: 1px solid var(--hn);
	flex: none;
}

.tyumen-map,
.office-map {
	margin: 1.2em 0 2em;
	padding: 16px 18px 18px;
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 20px;
}
.tyumen-map {
	display: none;
}
.office-map {
	margin-top: 1.4em;
}
.map-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 12px;
}
.map-head .eyebrow {
	margin: 0;
}
.map-sub {
	font: 500 .84rem/1.3 var(--f);
	color: var(--mt);
}
.map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font: 500 .78rem/1.3 var(--f);
	color: var(--mt);
}
.ml-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ml-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.ml-dot--mgmt { background: var(--ac); }
.ml-dot--to { background: var(--sf); border: 2px dashed var(--hn); }
.ml-dot--off { background: var(--hn-b); border: 1.5px solid var(--fg); border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; }

.map-svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--ln);
}
.map-pin {
	text-decoration: none;
}
.map-pin circle {
	transition: transform .16s ease, fill .16s ease;
	transform-box: fill-box;
	transform-origin: center;
}
.map-pin:hover circle {
	transform: scale(1.14);
}
.map-pin:hover text {
	text-decoration: underline;
}

.hregistry {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 1em 0 2em;
}
.hrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px 12px;
	align-items: start;
	padding: 18px 18px;
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 18px;
	scroll-margin-top: 24px;
	transition: border-color .18s, box-shadow .18s;
}
.hrow:hover {
	border-color: var(--al);
	box-shadow: var(--s1);
}
.hrow:target {
	border-color: var(--hn);
	box-shadow: 0 0 0 3px rgb(233 196 106 / .45);
}
.hrow--to {
	border-style: dashed;
	border-color: var(--hn);
	background: var(--pos);
}
.hrow-num {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	font: 600 .96rem/1 var(--fd);
	letter-spacing: -.01em;
	color: var(--hn);
	padding-top: 2px;
}
.hrow-pic {
	display: none;
}
.h-sil {
	display: block;
	width: 78px;
	height: 65px;
}
.hrow-head {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.hrow-status {
	align-self: flex-start;
	font: 600 .72rem/1.3 var(--f);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.hrow-status--mgmt { color: var(--sg); }
.hrow-status--to { color: var(--hn); }
.hrow .hrow-title {
	margin: 0;
	font: 600 1.16rem/1.25 var(--fd);
	color: var(--fg);
}
.hrow-city {
	font: 400 .84rem/1.3 var(--f);
	color: var(--mt);
	white-space: nowrap;
}
.hrow .hrow-meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 2px 0 0;
	padding: 0;
	font: 400 .88rem/1.45 var(--f);
	color: var(--mt);
}
.hrow .hrow-meta li {
	margin: 0;
}
.hrow .hrow-meta strong {
	color: var(--fg);
	font-weight: 600;
}
.hrow-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hrow-btn {
	gap: 6px;
	padding: 6px 15px;
	font: 600 .83rem/1.2 var(--f);
	text-decoration: none;
	border: 1px solid var(--ln);
	transition: background-color .15s, border-color .15s, color .15s;
}
.hrow-btn--gis {
	background: var(--as);
	border-color: var(--al);
	color: var(--ac);
}
.hrow-btn--gis:hover {
	background: var(--ac);
	border-color: var(--ac);
	color: var(--af);
}
.hrow-btn--max {
	background: var(--sg-s);
	border-color: var(--sg-l);
	color: var(--sg);
}
.hrow-btn--max:hover {
	background: var(--sg);
	border-color: var(--sg);
	color: var(--af);
}

/* Мета статьи, архив объявлений, запись, 404 */
.article-meta {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--ln);
}
.updated {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mt);
	font-size: .84rem;
	margin: 0;
}

.post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px 26px;
	gap: 10px;
	transition: border-color .18s, box-shadow .18s, transform .18s;
}
.post-card:hover {
	border-color: var(--al);
	box-shadow: var(--s2);
}
.post-card-title {
	margin: 0;
	font: 600 clamp(1.18rem, 1.06rem + .45vw, 1.44rem)/1.25 var(--fd);
	text-wrap: balance;
}
.post-card-link {
	color: var(--fg);
	text-decoration: none;
}
.post-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
}
.post-card:hover .post-card-link {
	color: var(--ac);
}
.post-card-excerpt {
	color: var(--mt);
	font-size: .94rem;
	max-width: 72ch;
}
.post-card-excerpt p {
	margin: 0;
}
.post-card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 600 .88rem/1.3 var(--f);
	color: var(--ac);
	margin-top: 4px;
}

.empty-state {
	background: var(--sf);
	border: 1px solid var(--ln);
	border-radius: 20px;
	padding: 36px 24px;
	text-align: center;
	max-width: 34rem;
	margin: 0 auto;
}
.empty-state-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--bt);
	color: var(--hn);
	margin-bottom: 12px;
}
.empty-state h2 { margin: 0 0 8px; font-family: var(--fd); font-size: 1.3rem; }
.empty-state p { margin: 0; color: var(--mt); }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
	justify-content: center;
	min-width: 44px;
	padding: 8px 14px;
	background: var(--sf);
	border: 1px solid var(--ls);
	text-decoration: none;
	color: var(--fg);
	font: 600 .9rem/1.2 var(--f);
}
.pagination a.page-numbers:hover { border-color: var(--ac); background: var(--as); color: var(--ac); }
.pagination .current { background: var(--ac); color: var(--af); border-color: var(--ac); }

.single-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--ln);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
}
.single-ads-note { margin: 0; font-size: .9rem; color: var(--mt); }
.single-ads-note a { color: var(--er); text-decoration: underline; }
.single-ads-note a:hover { color: var(--eh); }

/* 404 с тюменским наличником */
.not-found-card {
	padding: 28px 22px;
}
.not-found-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: center;
}
.not-found-num {
	margin: 0 0 6px;
	font: 600 clamp(2.8rem, 2.2rem + 2.6vw, 4.2rem)/1 var(--fd);
	letter-spacing: -.03em;
	color: var(--hn);
}
.not-found-lead {
	margin: 0 0 18px;
	font-size: 1.02rem;
	color: var(--mt);
	max-width: 46ch;
}
.not-found-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.art-404 {
	text-align: center;
}
.art-404 img {
	display: block;
	margin: 0 auto;
	max-height: 290px;
	width: auto;
	max-width: 100%;
}

/* ==========================================================================
   11. Вечерний подвал «Ночь» (#16293A) с силуэтом шести домов
   ========================================================================== */
.site-footer {
	background: var(--fb);
	color: var(--ff);
	font: .88rem/1.55 var(--f);
	--bm-bg: #1f3a52;
	--bm-bd: #2b4963;
	--bm-fg: #fffcf6;
	--bm-ac: #e9c46a;
}
.site-footer :focus-visible {
	outline-color: var(--hn-b);
}
.footer-sky {
	background: var(--bg);
	line-height: 0;
	overflow: hidden;
}
.footer-sky svg {
	display: block;
	width: 100%;
	height: 52px;
}
.footer-inner {
	padding-top: 34px;
	padding-bottom: 28px;
}
.site-footer a {
	color: var(--ff);
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--hn-b);
	text-decoration: underline;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.footer-mark { width: 38px; height: 38px; flex: none; }
.footer-brand-name { margin: 0; font: 600 1.04rem/1.22 var(--fd); }
.footer-brand-sub { margin: 2px 0 0; font: .78rem/1.3 var(--f); color: var(--fm); }
.footer-meta { display: flex; flex-direction: column; margin: 0; gap: 10px; }
.footer-meta dt { font-size: .74rem; color: var(--fm); margin: 0; }
.footer-meta dd { margin: 1px 0 0; color: var(--ff); }
.footer-heading {
	font: 600 .78rem/1.3 var(--f);
	letter-spacing: .09em;
	text-transform: uppercase;
	margin: 0 0 12px;
	color: var(--hn-b);
}
.footer-ads {
	display: flex;
	flex-direction: column;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--fl);
}
.footer-ads-label { font-size: .76rem; color: var(--fm); }
.footer-ads-phone {
	font: 600 1.45rem/1.2 var(--fd);
	color: var(--hn-b);
}
.footer-ads-phone:hover { color: var(--ff); }
.footer-ads-reserve { font-size: .82rem; color: var(--fm); }
.footer-ads-reserve a { text-decoration: underline; }
.footer-contact-list,
.footer-nav-list {
	display: flex;
	flex-direction: column;
}
.footer-contact-list { gap: 7px; }
.footer-contact-list span { color: var(--fm); }
.footer-nav-list a { gap: 6px; }
.ext-icon { width: .86rem; height: .86rem; flex: none; opacity: .82; }

.footer-bottom {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--fl);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}
.footer-note { margin: 0; color: var(--fm); font-size: .81rem; max-width: 78ch; }
.footer-coords {
	margin: 0;
	font: 500 .76rem/1.3 var(--f);
	letter-spacing: .06em;
	color: var(--fm);
	white-space: nowrap;
}

/* ==========================================================================
   12. Container query адаптивных таблиц (< 600px)
   ========================================================================== */
@container (width < 600px) {
	.is-mob,
	.is-mob :is(thead, tbody, tr, th, td) {
		display: block;
		width: 100%;
	}
	.is-mob { border: 0; border-radius: 0; background: none; overflow: visible; }
	.is-mob thead { display: none; }
	.is-mob tbody tr {
		background: var(--sf);
		border: 1px solid var(--ln);
		border-radius: 14px;
		margin-bottom: 12px;
		overflow: hidden;
	}
	.is-mob tbody tr:last-child { margin-bottom: 0; }
	.is-stackable tbody tr:nth-child(even) td:not(:first-child),
	.is-kv-table tbody tr:nth-child(even) :is(th, td) { background: none; }
	.is-mob :is(th, td) { border-right: 0; border-bottom: 1px solid var(--ln); padding: 10px 14px; }
	.is-mob tbody tr :is(th, td):last-child { border-bottom: 0; }
	.wp-block-table :is(.is-stackable, .is-cols-2) tbody tr :is(th, td):first-child {
		background: var(--so);
		color: var(--fg);
		font-weight: 700;
		width: 100%;
	}
	.is-stackable tbody td::before {
		display: block;
		font: 600 .76rem/1.3 var(--f);
		color: var(--mt);
		margin-bottom: 2px;
	}
	.is-stackable tbody td:nth-child(2)::before { content: var(--label-2); }
	.is-stackable tbody td:nth-child(3)::before { content: var(--label-3); }
	.is-stackable tbody td:nth-child(4)::before { content: var(--label-4); }
	.is-stackable tbody td:nth-child(5)::before { content: var(--label-5); }
	.wp-block-table .is-kv-table tbody :is(th, td):first-child {
		border-bottom: 0;
		padding-bottom: 2px;
		font-size: .8rem;
		color: var(--mt);
		width: 100%;
	}
	.is-kv-table tbody td:last-child { padding-top: 2px; font-weight: 600; }
	.page-slug-zhitelyam table { border-top: 0; }
	.page-slug-zhitelyam td:last-child { white-space: normal; font-size: 1.05rem; }
	.page-slug-zhitelyam tbody tr:first-child {
		border-color: var(--er);
		border-left: 4px solid var(--er);
		background: var(--es);
	}
	.page-slug-zhitelyam tbody tr:first-child :is(th, td):first-child { background: none; color: var(--er); }
	.bvi .wp-block-table :is(th, td) { overflow-wrap: anywhere; }
	.bvi .wp-block-table .tel-link { white-space: nowrap; }
}

/* ==========================================================================
   13. Анимации и кросс-документные переходы (только при отсутствии reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
	html {
		scroll-behavior: smooth;
	}
	.site-header:not(.is-measuring) .site-menu[popover] {
		opacity: 0;
		translate: 0 -6px;
		transition: opacity .16s, translate .16s, display .16s, overlay .16s;
		transition-behavior: allow-discrete;
	}
	.site-header:not(.is-measuring) .site-menu[popover]:popover-open {
		opacity: 1;
		translate: 0 0;
	}
	@starting-style {
		.site-header:not(.is-measuring) .site-menu[popover]:popover-open {
			opacity: 0;
			translate: 0 -6px;
		}
	}
	.quick-card:hover,
	.post-card:hover {
		transform: translateY(-2px);
	}
	.quick-card:active,
	.btn:active {
		transform: scale(.99);
	}
	.page-toc-chevron {
		transition: transform .18s;
	}
}

/* ==========================================================================
   14. Адаптивные брейкпоинты (mobile-first)
   ========================================================================== */
@media (min-width: 640px) {
	.wrap { padding: 0 20px; }
	.surface-card:not(.office-card) { padding: 28px 30px; }
	.office-body { padding: 20px 28px 28px; }
	.content-sheet { padding: 34px 38px; }
	.not-found-card { padding: 38px 36px; }
	.month-card { padding: 28px 30px; }
	.month-row,
	.month-scale-row { grid-template-columns: 128px minmax(0, 1fr); }
	.month-scale-row .month-row-lbl { display: block; }
	.month-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.channels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.channel-col { padding: 22px 20px; }
	.company-passport { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cp-item { padding: 16px 20px; }
	.cp-item:first-child { padding-left: 0; }
	.cp-item + .cp-item { border-top: 0; border-left: 1px solid var(--ln); }
}

@media (min-width: 640px) and (max-width: 959px) {
	.channel-col:nth-child(odd) { padding-left: 0; }
	.channel-col:nth-child(even) { border-left: 1px solid var(--ln); padding-right: 0; }
	.channel-col:nth-child(2) { border-top: 0; }
}

@media (min-width: 720px) {
	.header-ads { display: inline-flex; }
	.mobile-ads-bar { display: none; }
	.brand-mark { width: 40px; height: 40px; }
	.brand-name { font-size: 1.12rem; }
	.hero-lead { display: block; }
	.hero-pano { --pano-h: 175px; --pano-ratio: 2.94479; --pano-ar: 1440 / 489; }
	.pos-tab { margin-left: 20px; padding: 4px 14px; font-size: .78rem; }
	.pos-section { padding: 10px 12px; border-radius: 22px; }
	.news-single-card {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 24px;
		padding: 26px 30px;
	}
	.news-cal {
		flex-direction: column;
		align-items: center;
		gap: 2px;
		padding: 0 24px 0 0;
		border-bottom: 0;
		border-right: 1px solid var(--ln);
		min-width: 88px;
	}
	.news-list-item { flex-direction: row; align-items: center; gap: 16px; }
	.doma-jump { display: none; }
	.tyumen-map { display: block; }
	.footer-sky svg { height: 68px; }
}

@media (min-width: 760px) {
	.page-header { padding: 28px 0 32px; }
	.page-body { padding: 34px 0 64px; }
	.footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px 36px; }
	.not-found-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; }
}

@media (min-width: 860px) {
	.home-top { padding: 14px 0 22px; }
	.hero {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 24px;
		margin-bottom: 0;
	}
	.hero-eyebrow { font-size: .74rem; margin-bottom: 4px; }
	.hero-ads { flex: none; padding: 8px 16px; gap: 12px; }
	.hero-ads-icon-wrap { width: 40px; height: 40px; }
	.hero-ads-main { font-size: 1.2rem; }
	.hero-pano { margin: 2px 0 12px; --pano-h: 205px; }
	.pos-section { padding: 12px 14px; border-radius: 24px; }
	.home-section { padding: 44px 0; }
	.front-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; }
	.hrow {
		grid-template-columns: 48px 86px minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		gap: 4px 20px;
		align-items: center;
		padding: 20px 24px;
	}
	.hrow-num { grid-column: 1; grid-row: 1 / 3; justify-self: start; font-size: 2rem; letter-spacing: -.03em; padding-top: 0; }
	.hrow-pic { display: block; grid-column: 2; grid-row: 1 / 3; justify-self: center; }
	.hrow-head { grid-column: 3; grid-row: 1; }
	.hrow .hrow-meta { grid-column: 3; grid-row: 2; margin-top: 4px; }
	.hrow-actions { grid-column: 4; grid-row: 1 / 3; flex-direction: column; align-items: stretch; min-width: 144px; }
	.hrow-btn { justify-content: center; }
}

@media (min-width: 960px) {
	html { font-size: 112.5%; }
	.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.quick-card { padding: 22px 20px; gap: 20px; }
	.channels-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.channel-col { padding: 24px 22px; border-top: 0; }
	.channel-col:first-child { padding-left: 0; }
	.channel-col:last-child { padding-right: 0; }
	.channel-col + .channel-col { border-top: 0; border-left: 1px solid var(--ln); }
}

@media (min-width: 1100px) {
	.hero-pano { --pano-h: 245px; }
	.reading-layout {
		grid-template-columns: 248px minmax(0, 1fr);
		gap: 40px;
	}
	.reading-toc {
		position: sticky;
		top: 24px;
	}
	.reading-toc .page-toc {
		background: none;
		border: 0;
		border-right: 1px solid var(--ln);
		border-radius: 0;
		padding: 4px 16px 4px 0;
	}
	.reading-toc .page-toc-list a {
		font-size: .84rem;
		min-height: 44px;
		color: var(--mt);
	}
	.reading-toc .page-toc-list a:hover {
		color: var(--ac);
	}
	.reading-toc .page-toc-list a[aria-current="location"] {
		color: var(--fg);
	}
}

@media (min-width: 1200px) and (min-height: 900px) {
	.hero-pano { --pano-h: 270px; }
}

@media (max-width: 960px) {
	.bvi-toggle { padding: 8px 10px; }
	.bvi-toggle-text {
		position: absolute;
		clip-path: inset(50%);
		width: 1px;
		height: 1px;
		overflow: hidden;
		white-space: nowrap;
	}
}

@media (min-width: 720px) and (max-width: 960px) {
	.brand-sub { font-size: .7rem; }
}

@media (max-width: 719px) {
	.brand { gap: 8px; }
	.brand-sub { display: none; }
	.brand-mark { width: 32px; height: 32px; }
	.brand-name { font-size: .92rem; line-height: 1.15; }
	.menu-toggle { padding: 8px 12px; }
	/* На узкой главной не дублируем название в шапке прямо над H1 (и в обычном режиме, и в БВИ) */
	.is-home-header .brand-text {
		position: absolute;
		clip-path: inset(50%);
		width: 1px;
		height: 1px;
		overflow: hidden;
		white-space: nowrap;
	}
	.hero-ads-numbers { row-gap: 0; }
	.hero-ads-label { margin-bottom: -4px; }
	.pos-tab { margin-left: 10px; font-size: .75rem; padding: 3px 10px; white-space: nowrap; }
}

@media (max-width: 719px) and (min-height: 740px) {
	.hero-pano { --pano-h: 96px; }
}

@media (max-width: 420px) and (max-height: 680px) {
	.hero-pano { --pano-h: 60px; }
	.hero-ads-icon-wrap { width: 30px; height: 30px; }
	.pos-tab { margin-left: 10px; font-size: .74rem; padding: 2px 10px; white-space: nowrap; }
	.pos-section { padding: 4px 6px; border-radius: 14px; }
}

@media screen and (max-width: 719px) {
	.page-slug-zhitelyam .entry-content ul li a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ==========================================================================
   15. Версия для слабовидящих (БВИ — ГОСТ Р 52872)
   ========================================================================== */
.bvi-size-1 { font-size: 125%; }
.bvi-size-2 { font-size: 150%; }
.bvi-size-3 { font-size: 200%; }

.bvi-scheme-bw { --b: #fff; --c: #000; --o: #000; }
.bvi-scheme-wb { --b: #000; --c: #fff; --o: #ffdd00; }
.bvi-scheme-blue { --b: #9dd1ff; --c: #063462; --o: #063462; }

.bvi {
	--f: Arial, "Helvetica Neue", sans-serif;
	--fd: Arial, "Helvetica Neue", sans-serif;
	--bg: var(--b);
	--sf: var(--b);
	--so: var(--b);
	--pos: var(--b);
	--pos-ln: var(--c);
	--fg: var(--c);
	--mt: var(--c);
	--ac: var(--c);
	--ah: var(--c);
	--as: var(--b);
	--al: var(--c);
	--af: var(--b);
	--hn: var(--c);
	--hn-b: var(--c);
	--bt: var(--b);
	--sg: var(--c);
	--sg-s: var(--b);
	--sg-l: var(--c);
	--bm-bg: var(--b);
	--bm-bd: var(--c);
	--bm-fg: var(--c);
	--bm-ac: var(--c);
	--er: var(--c);
	--eh: var(--c);
	--es: var(--b);
	--el: var(--c);
	--ln: var(--c);
	--ls: var(--c);
	--fc: var(--o);
	--fb: var(--b);
	--fs: var(--b);
	--ff: var(--c);
	--fm: var(--c);
	--fl: var(--c);
	--s1: none;
	--s2: none;
	--s3: none;
}
.bvi .sod-ui {
	line-height: 1.65;
	letter-spacing: .03em;
	font-size-adjust: none;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.bvi .skip-link {
	max-width: calc(100vw - 24px);
	overflow-wrap: anywhere;
	hyphens: auto;
}
.bvi .sod-ui a { text-decoration: underline; }
.bvi .site-footer {
	--bm-bg: var(--b);
	--bm-bd: var(--c);
	--bm-fg: var(--c);
	--bm-ac: var(--c);
}
.bvi :is(.site-footer a, .footer-heading, .footer-ads-phone) { color: var(--c); }
.bvi :is(.hero-pano, .office-art, .art-404, .footer-sky, .footer-coords, .tyumen-map, .office-map, .hrow-pic, .month-track-wrap, .pos-dot, .brand-sub) {
	display: none;
}
.bvi .doma-jump { display: block; border: 1px solid var(--fg); }
.bvi .doma-jump-link { border: 1px solid var(--fg); }
.bvi .hero-lead { display: block; }
.bvi .site-menu { border: 2px solid var(--fg); background: var(--bg); }
.bvi .site-menu a { border: 1px solid var(--fg); margin-bottom: 4px; }
.bvi .is-wide .site-menu a { border: 0; margin-bottom: 0; }
html.bvi .site-menu :is([aria-current], .current_page_item > a, .current-menu-item > a),
html.bvi .page-toc-list a[aria-current="location"] {
	background: var(--fg);
	color: var(--bg);
	box-shadow: none;
}
.bvi .hero { flex-direction: column; align-items: stretch; }
.bvi :is(.front-grid, .quick-grid, .channels-grid, .footer-grid, .month-items, .news-single-card, .reading-layout, .hrow, .company-passport, .not-found-grid) {
	grid-template-columns: minmax(0, 1fr);
}
.bvi .hrow > * { grid-column: 1 / -1; grid-row: auto; }
.bvi .hrow-num { justify-self: start; font-size: 1.15rem; }
.bvi .reading-toc { position: static; }
.bvi .reading-toc .page-toc { border: 1px solid var(--fg); padding: 14px; }
.bvi .channel-col { border-left: 0; border-top: 1px solid var(--fg); padding: 14px 0; }
.bvi .cp-item { border-left: 0; border-top: 1px solid var(--fg); padding: 12px 0; }
.bvi :is(.quick-card, .month-card, .month-item, .news-single-card, .surface-card, .post-card, .content-sheet, .hrow, .hrow-btn, .circle-arrow, .month-today-pill, .pos-section, .pos-tab, .hero-ads-icon-wrap, .channel-icon) {
	border: 1px solid var(--fg);
}
.bvi .news-cal { border-right: 0; border-bottom: 1px solid var(--fg); padding: 0 0 10px; }
.bvi :is(.page-toc-list a, .site-menu a, .breadcrumbs li) { max-width: 100%; min-width: 0; }
.bvi .hero-ads-label span:first-child,
.bvi .page-slug-zhitelyam td:last-child { white-space: normal; }
.bvi .pos-tab { white-space: normal; margin-left: 0; max-width: 100%; }
:where(.bvi a[href^="tel:"]) { display: inline-block; max-width: 100%; }

@media (max-width: 719px) {
	.bvi .header-grid {
		grid-template-columns: auto auto;
		justify-content: space-between;
		gap: 8px 6px;
	}
	.bvi .brand { grid-column: 1 / -1; }
	.bvi .is-home-header .header-grid {
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 6px;
	}
	.bvi .is-home-header .brand { grid-column: auto; min-width: 44px; }
	.bvi .is-home-header .header-utility { justify-self: end; }
	.bvi :is(.hero-eyebrow, .hero-lead) { display: none; }
	.bvi .home-top { padding: 4px 0 8px; }
	.bvi .hero { gap: 4px; margin-bottom: 4px; }
	.bvi .hero-title { font-size: min(1.2rem, 6.4vw); line-height: 1.15; }
	.bvi .hero-ads { padding: 4px 10px; }
	.bvi .hero-ads-label { font-size: min(.72rem, 4.4vw); line-height: 1.22; margin-bottom: 0; padding-top: 0; }
	.bvi .hero-ads-numbers,
	.bvi .hero-ads-reserve {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		line-height: 1.2;
	}
	.bvi .hero-ads-reserve { font-size: min(.76rem, 4.4vw); }
	.bvi .pos-tab { font-size: min(.76rem, 4.6vw); line-height: 1.2; padding: 2px 10px; }
	.bvi .pos-section { padding: 4px 6px; }
	.bvi .bvi-toggle-text {
		position: static;
		clip-path: none;
		width: auto;
		height: auto;
		overflow: visible;
	}
	.bvi :is(.bvi-toggle, .menu-toggle) {
		white-space: nowrap;
		font-size: min(.76rem, 4.3vw);
		padding: 6px 8px;
		gap: 5px;
	}
	.bvi .hero-ads-icon-wrap { display: none; }
}
@media (max-width: 639px) {
	.bvi .wp-block-table :is(th, td) { overflow-wrap: anywhere; }
	.bvi :is(.hero-ads-main, .hero-ads-reserve a, .mobile-ads-num, .menu-ads-num, .tel-link, .single-ads-note a, .footer-ads-phone, .channel-tel) {
		display: inline-block;
		white-space: nowrap;
		letter-spacing: 0;
		font-size: min(1em, 5.8vw);
		max-width: 100%;
	}
	.bvi .page-slug-zhitelyam td:last-child a.tel-link {
		display: block;
		width: fit-content;
		padding-inline: 0;
	}
}
.bvi-noimg :is(.home-top, .home-body, .page-body) :is(img, picture, figure.wp-block-image, .office-art, .art-404, .tyumen-map, .office-map) {
	display: none;
}

/* ==========================================================================
   16. Forced Colors (Windows High Contrast)
   ========================================================================== */
@media (forced-colors: active) {
	.site-menu :is([aria-current], .current_page_item > a, .current-menu-item > a),
	.page-toc-list a[aria-current="location"] {
		border: 2px solid Highlight;
		box-shadow: none;
	}
	:is(.quick-card, .month-card, .month-item, .news-single-card, .surface-card, .post-card, .content-sheet, .hero-ads, .not-found-card, .page-toc, .sod-callout, .hrow, .hrow-btn, .circle-arrow, .month-today-pill, .pos-section, .pos-tab, .tyumen-map, .office-map, .doma-jump, .doma-jump-link) {
		border: 1px solid CanvasText;
		box-shadow: none;
	}
	.month-track { border: 1px solid CanvasText; background: Canvas; }
	.month-seg--pay { background: Highlight; border: 2px solid Highlight; }
	.month-seg--meter { background: CanvasText; border: 2px solid CanvasText; }
	.month-today-pin { background: Canvas; border: 3px solid CanvasText; box-shadow: none; }
	.month-item.is-active { border: 2px solid Highlight; }
	.btn-primary { border: 2px solid ButtonText; }
	.bvi-panel button[aria-pressed="true"] { border-width: 4px; text-decoration: underline; }
}

/* ==========================================================================
   17. Версия для печати (@media print)
   ========================================================================== */
@media print {
	.bvi { --b: #fff; --c: #000; --o: #000; }
	html.bvi:is(.bvi-size-1, .bvi-size-2, .bvi-size-3) { font-size: 106.25%; }
	.site-header .header-grid,
	.mobile-ads-bar,
	.site-nav,
	.header-utility,
	.bvi-panel,
	.pos-frame,
	.pos-section,
	.skip-link,
	.breadcrumbs,
	.page-toc,
	.reading-toc,
	.toc-back-wrap,
	.back-to-top-wrap,
	.news-all-btn,
	.office-more,
	.single-footer .btn,
	.not-found-actions,
	.site-footer,
	.hero-pano,
	.office-art,
	.art-404,
	.footer-sky,
	.month-track-wrap,
	.doma-jump,
	.tyumen-map,
	.office-map,
	.hrow-pic,
	.circle-arrow {
		display: none !important;
	}
	.site-header { border-bottom: 0 !important; }
	.print-head {
		display: block !important;
		border-bottom: 2px solid #000;
		padding-bottom: 8px;
		margin-bottom: 12px;
		font-size: 9.5pt;
		line-height: 1.4;
		color: #000;
	}
	.print-head p { margin: 0 0 2px; }
	.print-head-title { font-size: 11pt; }
	body,
	.site-header,
	.page-header,
	.home-top,
	.home-body,
	.quick-card,
	.month-card,
	.month-item,
	.news-single-card,
	.hrow {
		background: #fff !important;
		color: #000 !important;
		box-shadow: none;
		border-color: #888;
	}
	.content-sheet,
	.surface-card,
	.office-body {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
	.home-section,
	.page-body {
		padding: 8px 0;
		border: 0;
	}
	.page-header { padding: 8px 0 10px; }
	.reading-layout { grid-template-columns: 1fr; }
	.entry-content > *,
	.reading-main > * { max-width: none; }
	h1, h2, h3, h4 { break-after: avoid; }
	tr, blockquote, .wp-block-file, .sod-callout, figure, .quick-card, .month-item, .hrow, .channel-col {
		break-inside: avoid;
	}
	thead { display: table-header-group; }
	.wp-block-table { overflow: visible; container-type: normal; margin: .6em 0 .9em; }
	.wp-block-table table { border-collapse: collapse; border: 1px solid #555 !important; border-radius: 0; overflow: visible; }
	.wp-block-table :is(th, td) { padding: 6px 10px; border: 1px solid #555 !important; color: #000; background: #fff !important; }
	.entry-content h2 { margin: 1.05em 0 .4em; }
	.entry-content p { margin: 0 0 .6em; }
	.entry-content :is(ul, ol) { margin: 0 0 .75em; }
	.entry-content li { margin-bottom: .25em; }
	.page-slug-o-kompanii figure.wp-block-image { margin: 8px 0; }
	.page-slug-o-kompanii figure.wp-block-image img {
		transform: none !important;
		box-shadow: none !important;
		padding: 4px;
		max-height: 132mm;
		width: auto;
		margin: 0 auto;
	}
	.hregistry { gap: 6px; margin: 8px 0 10px; }
	.hrow { grid-template-columns: 28px 1fr; padding: 7px 10px; gap: 3px 10px; }
	.hrow-num { grid-column: 1; grid-row: 1 / 4; font-size: 11pt; justify-self: start; }
	.hrow-head { grid-column: 2; grid-row: 1; }
	.hrow .hrow-meta { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 9pt; }
	.hrow-actions { grid-column: 2; grid-row: 3; gap: 10px; }
	.hrow-btn { padding: 0; min-height: 0; border: 0; background: none; color: #000; font-size: 8.5pt; }
	.article-meta { margin-top: 8px; padding-top: 6px; break-before: avoid; }
	.entry-content a[href^="http"]:not(.is-url-link):not([href*="max.ru/join/"]):not([href*="dom.gosuslugi.ru/#!/"]):not([href*="/wp-content/uploads/"])::after {
		content: " (" attr(href) ")";
		font-size: 8.5pt;
		font-weight: 400;
		color: #333;
		word-break: break-all;
	}
	.entry-content figure.wp-block-image a::after {
		content: none !important;
	}
}
