/*
Theme Name: Мечелстрой
Theme URI: https://mechelstroy.com
Description: Дочерняя тема для сайта УК «Мечелстрой». Стиль «Официальный»: спокойный синий, крупный текст, много воздуха.
Author: lakweb.pro
Author URI: https://lakweb.pro
Template: hello-elementor
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mechelstroy
*/

/* ---------- Шрифт Golos Text (локально, без Google) ---------- */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/golos-text-cyrillic-400-normal.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: 500; font-display: swap; src: url(assets/fonts/golos-text-cyrillic-500-normal.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: 600; font-display: swap; src: url(assets/fonts/golos-text-cyrillic-600-normal.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; font-display: swap; src: url(assets/fonts/golos-text-latin-400-normal.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: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/golos-text-latin-500-normal.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: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/golos-text-latin-600-normal.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; }

/* ---------- Переменные стиля «Официальный» ---------- */
:root {
	--c-primary: #1D3F6E;
	--c-accent: #2563C9;
	--c-accent-hover: #1E52A8;
	--c-danger: #C62828;
	--c-danger-bg: #FBEAEA;
	--c-text: #1A2433;
	--c-muted: #5A6678;
	--c-lead: #3D4A5C;
	--c-sky: #EEF3F9;
	--c-line: #D6DFEA;
	--c-white: #FFFFFF;
	--c-footer-muted: #C8D4E6;

	--font: 'Golos Text', 'Segoe UI', Arial, sans-serif;
	--fs-h1: 44px;
	--fs-h2: 30px;
	--fs-h3: 20px;
	--fs-body: 18px;
	--fs-lead: 19px;
	--fs-small: 15px;
	--fs-phone: 28px;

	--radius-btn: 8px;
	--radius-card: 12px;
	--container: 1200px;
	--gutter: 24px;
}

@media (max-width: 767px) {
	:root {
		--fs-h1: 32px;
		--fs-h2: 24px;
		--fs-h3: 19px;
		--fs-body: 17px;
		--fs-lead: 17px;
		--fs-small: 14px;
		--fs-phone: 24px;
	}
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; margin: 0; }
p { margin: 0; }
.mh-icon { display: block; flex: none; }

.mh-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.mh-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--c-white); color: var(--c-primary); padding: 10px 16px; border-radius: var(--radius-btn); font-weight: 600; }
.mh-skip:focus { left: 8px; }

.mh-h2 { font-size: var(--fs-h2); line-height: 1.2; color: var(--c-primary); }
.mh-h3 { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-text); }

/* ---------- Кнопки ---------- */
.mh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn);
	font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.mh-btn--primary { background: var(--c-accent); color: var(--c-white); border: 0; }
.mh-btn--primary:hover, .mh-btn--primary:focus-visible { background: var(--c-accent-hover); color: var(--c-white); }
.mh-btn--secondary { background: transparent; color: var(--c-accent); border: 2px solid var(--c-accent); }
.mh-btn--secondary:hover { background: var(--c-sky); color: var(--c-primary); }
.mh-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.mh-link-arrow:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.mh-header { background: var(--c-white); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 100; }
/* Шапка закреплена при прокрутке; у вошедших не заезжает под админ-панель WordPress. */
.admin-bar .mh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mh-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mh-header { top: 0; } }
.mh-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.mh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mh-logo__mark { display: block; flex: none; }
.mh-logo__text { display: flex; flex-direction: column; gap: 2px; }
.mh-logo__name { font-weight: 600; font-size: 20px; line-height: 1.1; color: var(--c-primary); }
.mh-logo__sub { font-size: 13px; line-height: 1.3; color: var(--c-muted); }
.mh-header__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.mh-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.mh-nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-btn);
	font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; color: var(--c-text);
}
.mh-nav__list a:hover { color: var(--c-primary); background: var(--c-sky); }
.mh-nav__list .current-menu-item > a,
.mh-nav__list .current_page_item > a,
.mh-nav__list a[aria-current="page"] { background: var(--c-sky); color: var(--c-primary); }
.mh-burger {
	display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--c-line); border-radius: var(--radius-btn); background: var(--c-white);
	color: var(--c-primary); font-family: var(--font); font-size: 16px; font-weight: 600; cursor: pointer;
}

@media (max-width: 1000px) {
	.mh-burger { display: inline-flex; }
	.mh-header__nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 8px; }
	.mh-header.is-open .mh-header__nav { display: flex; }
	.mh-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.mh-nav__list a { display: flex; width: 100%; font-size: 17px; min-height: 48px; }
	.mh-header__lk { width: 100%; }
}
/* Узкий телефон: логотип и кнопка «Меню» в одну строку. */
@media (max-width: 480px) {
	.mh-header__inner { column-gap: 12px; padding-top: 12px; padding-bottom: 12px; }
	.mh-logo { gap: 10px; min-width: 0; }
	.mh-logo .mh-logo__mark { width: 36px; height: 36px; }
	.mh-logo__name { font-size: 18px; }
	.mh-logo__sub { font-size: 12px; white-space: nowrap; }
	.mh-burger { padding: 0 12px; gap: 6px; }
}

/* ---------- Первый экран ---------- */
.mh-hero { background: var(--c-sky); }
.mh-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.mh-hero__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.mh-badge { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--c-white); border: 1px solid var(--c-line); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--c-primary); }
.mh-hero__title { font-size: var(--fs-h1); line-height: 1.15; color: var(--c-primary); text-wrap: balance; }
.mh-hero__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-lead); max-width: 560px; }
.mh-hero__side { display: flex; flex-direction: column; gap: 16px; }
.mh-hero__office { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 16px; color: var(--c-text); }
.mh-hero__office .mh-icon { color: var(--c-accent); }

@media (max-width: 767px) {
	.mh-hero__grid { gap: 32px; padding-top: 40px; padding-bottom: 48px; }
	.mh-hero__text .mh-btn { width: 100%; }
}

/* ---------- Плитки телефонов ---------- */
.mh-phones { display: flex; flex-direction: column; gap: 16px; }
.mh-phone { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-card); }
.mh-phone__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--c-sky); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.mh-phone__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-phone__label { font-size: var(--fs-small); line-height: 1.5; color: var(--c-muted); }
.mh-phone__number { font-size: var(--fs-phone); line-height: 1.2; font-weight: 600; color: var(--c-text); text-decoration: none; white-space: nowrap; }
.mh-phone__number:hover { color: var(--c-primary); text-decoration: underline; }
.mh-phone--danger .mh-phone__icon { background: var(--c-danger-bg); color: var(--c-danger); }
.mh-phone--danger .mh-phone__number, .mh-phone--danger .mh-phone__number:hover { color: var(--c-danger); }
@media (max-width: 400px) { .mh-phone { padding: 16px; gap: 12px; } }

/* ---------- Секции ---------- */
.mh-section { padding-top: 72px; padding-bottom: 88px; }
.mh-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.mh-section__meta { font-size: 16px; color: var(--c-muted); }
@media (max-width: 767px) { .mh-section { padding-top: 48px; padding-bottom: 64px; } }

/* ---------- Сетка домов ---------- */
.mh-houses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.mh-house {
	display: flex; flex-direction: column; background: var(--c-white); border: 1px solid var(--c-line);
	border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--c-text);
	transition: border-color .15s, box-shadow .15s;
}
.mh-house:hover, .mh-house:focus-visible { border-color: var(--c-accent); color: var(--c-text); }
.mh-house__photo { display: block; height: 150px; background: var(--c-sky); overflow: hidden; }
.mh-house__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-house__photo--empty { padding: 14px 20px 0; }
.mh-house__photo--empty svg { display: block; width: 100%; height: 100%; }
.mh-house__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 18px; }
.mh-house__title { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--c-text); }
.mh-house__more { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-accent); }
.mh-house:hover .mh-house__more { text-decoration: underline; }
@media (max-width: 560px) { .mh-houses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mh-house__photo { height: 110px; } .mh-house__body { padding: 12px 14px 14px; } .mh-house__title { font-size: 16px; } }
@media (max-width: 360px) { .mh-houses { grid-template-columns: 1fr; } .mh-house__photo { height: 150px; } }

/* ---------- Шапка внутренних страниц ---------- */
.mh-pagehead { background: var(--c-sky); border-bottom: 1px solid var(--c-line); }
.mh-pagehead .mh-container { display: flex; flex-direction: column; gap: 12px; padding-top: 36px; padding-bottom: 40px; }
.mh-pagehead__title { font-size: var(--fs-h1); line-height: 1.15; color: var(--c-primary); text-wrap: balance; }
.mh-pagehead__lead { font-size: var(--fs-lead); color: var(--c-lead); max-width: 760px; }
.mh-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--c-muted); }
.mh-crumbs a { color: var(--c-accent); font-weight: 600; }

/* ---------- Страница дома ---------- */
.mh-section--house { padding-top: 40px; }
.mh-house-layout { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); column-gap: 48px; align-items: start; }
.mh-house-layout__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mh-house-layout__main { min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.mh-house-docs { display: flex; flex-direction: column; gap: 32px; }
.mh-house-photo { margin: 0; position: relative; aspect-ratio: 4 / 3; background: var(--c-sky); border: 1px solid var(--c-line); border-radius: var(--radius-card); overflow: hidden; }
.mh-house-photo a, .mh-house-photo img { display: block; width: 100%; height: 100%; }
.mh-house-photo img { object-fit: cover; }
.mh-house-photo--empty { padding: 24px 28px 0; }
.mh-house-photo--empty svg { display: block; width: 100%; height: 100%; }
.mh-ask { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) { .mh-house-layout { display: flex; flex-direction: column; gap: 40px; } .mh-house-layout > * { width: 100%; } }

/* ---------- Документы ---------- */
.mh-docgroup { display: flex; flex-direction: column; gap: 6px; }
.mh-docgroup__title { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-text); }
.mh-doclist { list-style: none; margin: 0; padding: 0; }
.mh-doc { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.mh-doc:first-child { border-top: 0; }
.mh-doc__icon { flex: none; width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--c-sky); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.mh-doc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mh-doc__title { color: var(--c-text); font-weight: 600; font-size: 16px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.mh-doc__title:hover { color: var(--c-accent); text-decoration: underline; }
.mh-doc__meta { font-size: 13px; color: var(--c-muted); }
.mh-doc__btn {
	flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--c-line); border-radius: var(--radius-btn); background: var(--c-white);
	color: var(--c-accent); font-weight: 600; font-size: 14px; text-decoration: none;
}
.mh-doc__btn:hover { border-color: var(--c-accent); background: var(--c-sky); color: var(--c-primary); }
@media (max-width: 520px) {
	.mh-doc { gap: 12px; }
	.mh-doc__btn { padding: 0 12px; }
	.mh-doc__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.mh-company-docs { display: flex; flex-direction: column; gap: 40px; }
.mh-company-docs .mh-docgroup__title { font-size: var(--fs-h2); color: var(--c-primary); line-height: 1.2; margin-bottom: 6px; }
.mh-empty { color: var(--c-muted); font-size: 17px; }

/* ---------- Контакты ---------- */
.mh-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 40px; align-items: start; }
.mh-contacts__info { display: flex; flex-direction: column; gap: 28px; }
.mh-contact { display: flex; gap: 16px; align-items: flex-start; }
.mh-contact__icon { flex: none; width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--c-sky); color: var(--c-accent); display: flex; align-items: center; justify-content: center; }
.mh-contact__title, .mh-content .mh-contact__title { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-text); margin: 0 0 4px; }
.mh-contact p + p { margin-top: 2px; }

/* ---------- Текстовые страницы (блоки WordPress) ---------- */
.mh-content { max-width: 800px; }
.mh-content--wide { max-width: none; }
.mh-content > * + * { margin-top: 1em; }
.mh-content h2 { font-size: var(--fs-h2); line-height: 1.2; color: var(--c-primary); margin-top: 1.6em; }
.mh-content h3 { font-size: var(--fs-h3); line-height: 1.3; margin-top: 1.4em; }
.mh-content h2:first-child, .mh-content h3:first-child { margin-top: 0; }
.mh-content .mh-lead { font-size: var(--fs-lead); color: var(--c-lead); }
.mh-content ul, .mh-content ol { padding-left: 1.3em; }
.mh-content li + li { margin-top: .45em; }
.mh-content ul li::marker { color: var(--c-accent); }

/* ---------- Объявления ---------- */
.mh-section--notices { padding-bottom: 0; }
.mh-notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.mh-notices--n1 { grid-template-columns: minmax(0, 860px); }
.mh-notices--stack, .mh-notices--list { grid-template-columns: 1fr; gap: 16px; }
.mh-notices--list { max-width: 860px; }
.mh-notice { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 22px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-card); }
.mh-notice--important { border-left: 4px solid var(--c-danger); padding-left: 21px; }
.mh-notice__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--fs-small); line-height: 1.5; color: var(--c-muted); }
.mh-notice__flag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--c-danger-bg); color: var(--c-danger); font-weight: 600; }
.mh-notice__houses { color: var(--c-primary); font-weight: 500; }
.mh-notice__title { font-size: var(--fs-h3); line-height: 1.3; }
.mh-notice__title a { color: var(--c-text); text-decoration: none; }
.mh-notice__title a:hover { color: var(--c-accent); text-decoration: underline; }
.mh-notice__text { font-size: 17px; color: var(--c-lead); }
.mh-notices__all { margin-top: 20px; }
.mh-house-notices { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 860px; }
.mh-notice__meta--head { font-size: 16px; }
.mh-notice__meta--head .mh-notice__houses a { font-weight: 600; }
.mh-back { margin-top: 40px; }
.mh-pagination { margin-top: 32px; }
.mh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-line); border-radius: var(--radius-btn); font-weight: 600; font-size: 16px; text-decoration: none; }
.mh-pagination .page-numbers.current { background: var(--c-sky); color: var(--c-primary); border-color: var(--c-sky); }
.mh-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .mh-notice { padding: 16px 18px 18px; } .mh-notice--important { padding-left: 15px; } }

/* ---------- Сведения о доме ---------- */
.mh-about { display: flex; flex-direction: column; gap: 20px; }
.mh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mh-fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: var(--radius-card); background: var(--c-white); }
.mh-fact__value { font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--c-primary); white-space: nowrap; }
.mh-fact__value small { font-size: 15px; font-weight: 500; color: var(--c-muted); margin-left: 2px; }
.mh-fact__label { font-size: var(--fs-small); line-height: 1.4; color: var(--c-muted); }
.mh-props { margin: 0; }
.mh-props__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.mh-props__row:last-child { border-bottom: 1px solid var(--c-line); }
.mh-props dt { font-size: 16px; line-height: 1.45; color: var(--c-muted); }
.mh-props dd { margin: 0; font-size: 17px; line-height: 1.4; color: var(--c-text); overflow-wrap: anywhere; }
.mh-about__note { font-size: var(--fs-small); color: var(--c-muted); }
@media (max-width: 600px) {
	.mh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mh-fact { padding: 12px 14px; }
	.mh-fact__value { font-size: 22px; }
	.mh-props__row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
}

/* ---------- Карта ---------- */
.mh-section--before-map { padding-bottom: 56px; }
.mh-section--map { padding-top: 0; }
.mh-section--extra { padding-top: 0; }
.mh-section--extra .mh-content > :is(p, h2, h3, ul, ol) { max-width: 800px; }
.mh-map { position: relative; isolation: isolate; height: 460px; background: var(--c-sky); border: 1px solid var(--c-line); border-radius: var(--radius-card); overflow: hidden; }
.mh-map--office { height: 400px; }
.mh-map__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.mh-map__placeholder a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 2px solid var(--c-accent); border-radius: var(--radius-btn); background: var(--c-white); font-weight: 600; font-size: 16px; text-decoration: none; }
.mh-map [class*="ymaps-2"][class*="-balloon__content"] { font-family: var(--font); font-size: 16px; line-height: 1.45; }
.mh-map [class*="ymaps-2"][class*="-balloon__content"] a { font-weight: 600; }
@media (max-width: 767px) { .mh-map { height: 340px; } .mh-map--office { height: 300px; } .mh-section--before-map { padding-bottom: 40px; } }

/* ---------- Плашка cookie ---------- */
.mh-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 880px; margin: 0 auto; padding: 18px 22px; background: var(--c-primary); color: var(--c-white); border-radius: var(--radius-card); }
.mh-cookie[hidden] { display: none !important; }
.mh-cookie__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.mh-cookie__text { flex: 1 1 360px; font-size: 16px; line-height: 1.5; }
.mh-cookie__text a { color: var(--c-white); font-weight: 600; }
.mh-cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-cookie .mh-btn { min-height: 44px; padding: 0 20px; }
.mh-cookie .mh-btn--secondary { color: var(--c-white); border-color: rgba(255, 255, 255, .7); }
.mh-cookie .mh-btn--secondary:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }
@media (max-width: 520px) { .mh-cookie { left: 8px; right: 8px; bottom: 8px; padding: 16px; } .mh-cookie__actions, .mh-cookie .mh-btn { width: 100%; } }

/* ---------- Страницы Elementor ---------- */
.mh-narrow, .mh-content .e-con.mh-narrow { --width: min(100%, 800px); max-width: min(100%, 800px); }
.mh-content--elementor .elementor-heading-title { margin: 0; }
.mh-content--elementor .elementor-widget-heading h2.elementor-heading-title { font-size: var(--fs-h2); line-height: 1.2; font-weight: 600; color: var(--c-primary); }
.mh-content--elementor .elementor-widget-heading h3.elementor-heading-title { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; color: var(--c-text); }
.mh-content--elementor .elementor-widget-heading:not(:first-child) { margin-top: 20px; }
.mh-content--elementor .elementor-widget-text-editor { font-size: var(--fs-body); line-height: 1.55; color: var(--c-text); }
.mh-content--elementor .elementor-widget-text-editor p { margin: 0; }
.mh-content--elementor .elementor-widget-text-editor > * + *, .mh-content--elementor .elementor-widget-text-editor p + p { margin-top: 1em; }
.mh-content--elementor .elementor-widget-text-editor ul, .mh-content--elementor .elementor-widget-text-editor ol { margin: 0; padding-left: 1.3em; }
.mh-content--elementor .elementor-widget-text-editor li + li { margin-top: .45em; }
.mh-content--elementor .elementor-widget-text-editor ul li::marker { color: var(--c-accent); }

/* ---------- Подвал ---------- */
.mh-footer { background: var(--c-primary); color: var(--c-white); }
.mh-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.mh-footer__col { display: flex; flex-direction: column; gap: 12px; }
.mh-footer__col p { font-size: 16px; line-height: 1.6; }
.mh-footer__lines { display: flex; flex-direction: column; gap: 2px; }
.mh-footer__title { font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-footer-muted); }
.mh-footer a { color: var(--c-white); text-decoration: none; }
.mh-footer a:hover { text-decoration: underline; color: var(--c-white); }
.mh-footer .mh-logo__name { color: var(--c-white); }
.mh-footer .mh-logo__sub, .mh-footer__company { color: var(--c-footer-muted); }
.mh-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: var(--c-footer-muted); }
.mh-footer__dev { margin-left: auto; }
@media (max-width: 782px) { .mh-footer__bottom { flex-direction: column; } .mh-footer__dev { margin-left: 0; } }

/* ---------- 404 ---------- */
.mh-404 { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
