/**
 * МалоМетров — общий хром сайта (навигация, подвал) и утилиты.
 * Подключается глобально на всех страницах с mm-хромом.
 * Источник дизайна: прототипы v1.26062026 (standalone).
 */

/* ---------- База ---------- */
.mm-body { margin: 0; background: #FBF8F2; color: #211C17; font-family: 'Onest', sans-serif; }
.mm-page { min-height: 40vh; }
.mm-body ::placeholder { color: #a89e8d; opacity: 1; }
.mm-body a { color: inherit; }
.mm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* GeneratePress может тянуть свой фон/контейнер — нейтрализуем для mm-страниц */
.mm-body .site,
.mm-body #page { max-width: none; margin: 0; padding: 0; }

/* ---------- Навигация ---------- */
.mm-nav {
	position: sticky; top: 0; z-index: 60;
	background: rgba(251,248,242,0.85);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(228,218,201,0.6);
}
.mm-nav-inner {
	max-width: 1180px; margin: 0 auto; padding: 14px 24px;
	display: flex; align-items: center; gap: 18px;
}
.mm-nav-inner--minimal { justify-content: center; }
.mm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mm-logo-word { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.mm-logo-dot { color: #E2895F; }
.mm-nav-links { display: flex; gap: 26px; margin-left: 24px; }
.mm-nav-links a { font-size: 15px; font-weight: 500; color: #211C17; text-decoration: none; transition: color .15s; }
.mm-nav-links a:hover { color: #C2603A; }
.mm-nav-cta {
	margin-left: auto; font-size: 14px; font-weight: 600;
	background: #C2603A; color: #FBF8F2 !important; padding: 11px 18px;
	border-radius: 9px; text-decoration: none; white-space: nowrap; transition: filter .15s;
}
.mm-nav-cta:hover { filter: brightness(0.94); }

/* ---------- Подвал ---------- */
.mm-footer { background: #211C17; color: rgba(251,248,242,0.6); border-top: 1px solid rgba(251,248,242,0.1); }
.mm-footer-inner { max-width: 1180px; margin: 0 auto; padding: 44px 24px; }
.mm-footer-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.mm-footer-logo { display: flex; align-items: center; gap: 10px; }
.mm-footer-logo .mm-logo-word { color: #FBF8F2; font-size: 17px; }
.mm-footer-desc { font-size: 13.5px; color: rgba(251,248,242,0.55); margin-top: 10px; max-width: 320px; line-height: 1.5; }
.mm-footer-menu { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }
.mm-footer-menu a { font-size: 14px; color: rgba(251,248,242,0.8); text-decoration: none; transition: color .15s; }
.mm-footer-menu a:hover { color: #E2895F; }
.mm-footer-social { display: flex; gap: 14px; margin-bottom: 24px; }
.mm-footer-social a {
	width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(251,248,242,0.18);
	display: inline-flex; align-items: center; justify-content: center;
	color: rgba(251,248,242,0.5); text-decoration: none; transition: color .15s, border-color .15s;
}
.mm-footer-social a:hover { color: #FBF8F2; border-color: rgba(251,248,242,0.4); }
.mm-footer-legal { border-top: 1px solid rgba(251,248,242,0.1); padding-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.mm-footer-legal a { font-size: 13px; color: rgba(251,248,242,0.6); text-decoration: none; transition: color .15s; }
.mm-footer-legal a:hover { color: #E2895F; }
.mm-footer-copy { font-size: 12px; color: rgba(251,248,242,0.4); margin-top: 16px; }
.mm-footer--minimal .mm-footer-inner--minimal {
	display: flex; gap: 18px 24px; flex-wrap: wrap; align-items: center; justify-content: center;
	padding: 28px 24px; text-align: center;
}
.mm-footer-inner--minimal a { font-size: 13px; color: rgba(251,248,242,0.65); text-decoration: none; }
.mm-footer-inner--minimal a:hover { color: #E2895F; }
.mm-footer-inner--minimal .mm-footer-copy { margin-top: 0; }

/* ---------- Общие утилиты прототипов ---------- */
.mm-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7A7163; margin-bottom: 12px; }
.mm-eyebrow--accent { color: #C2603A; }
.mm-mono { font-family: 'JetBrains Mono', monospace; }
.mm-muted { color: #7A7163; }
.mm-btn {
	display: inline-flex; align-items: center; justify-content: center;
	font-family: 'Onest', sans-serif; font-size: 16px; font-weight: 600;
	padding: 16px 28px; border-radius: 10px; text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; transition: filter .15s, background .15s, color .15s; white-space: nowrap;
}
.mm-btn--primary { background: #C2603A; color: #FBF8F2 !important; }
.mm-btn--primary:hover { filter: brightness(0.94); }
.mm-btn--ghost { background: transparent; color: #211C17; border-color: #211C17; }
.mm-btn--ghost:hover { background: #211C17; color: #FBF8F2 !important; }
.mm-btn--dark { background: #211C17; color: #FBF8F2 !important; border-color: #211C17; }
.mm-btn--dark:hover { filter: brightness(1.25); }
.mm-input {
	font-family: 'Onest', sans-serif; font-size: 16px; padding: 15px 18px;
	border-radius: 10px; border: 1px solid #E4DAC9; background: #fff; color: #211C17; width: 100%;
}
.mm-input:focus { outline: 2px solid rgba(194,96,58,0.4); outline-offset: 2px; }

/* Фокус-видимость как в прототипе */
.mm-body button:focus-visible,
.mm-body a:focus-visible,
.mm-body input:focus-visible { outline: 2px solid rgba(194,96,58,0.4); outline-offset: 2px; }

@media (max-width: 767px) {
	.mm-nav-links { display: none; }
	.mm-nav-cta { font-size: 13px; padding: 10px 14px; }
}

/* ---------- Карточка проекта (главная, похожие) ---------- */
.mm-pcard { display: flex; flex-direction: column; background: #FBF8F2; border: 1px solid #ece5d8; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform .16s, box-shadow .16s; }
.mm-pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(33,28,23,0.12); }
.mm-pcard-img { position: relative; height: 172px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #ece5d8; overflow: hidden; }
.mm-pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.mm-pcard-badge { position: absolute; top: 12px; left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.03em; padding: 5px 10px; border-radius: 6px; }
.mm-pcard-cap { position: absolute; bottom: 10px; right: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #7a6f5a; }
.mm-pcard-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.mm-pcard-series { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #C2603A; margin-bottom: 8px; }
.mm-pcard-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.mm-pcard-meta { font-size: 13px; color: #7A7163; margin-top: 5px; }
.mm-pcard-prices { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ece5d8; display: flex; flex-direction: column; gap: 5px; }
.mm-pcard-prices > div { display: flex; justify-content: space-between; font-size: 14px; }
.mm-pcard-prices > div span:first-child { color: #7A7163; }
.mm-pcard-prices > div span:last-child { font-weight: 600; }
.mm-pcard-cta { margin-top: 16px; font-size: 14px; font-weight: 600; color: #C2603A; }

/* ---------- Сетки секций ---------- */
.mm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mm-section { padding: 40px 0; }
.mm-h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 30px; }

@media (max-width: 1023px) {
	.mm-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.mm-grid-3, .mm-grid-2 { grid-template-columns: 1fr; }
	.mm-h2 { font-size: 28px; }
}

/* ---------- Документные страницы (Оферта, Политика и т.п.) ---------- */
.mm-doc-content h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 14px; }
.mm-doc-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.mm-doc-content p { margin: 0 0 16px; }
.mm-doc-content ul, .mm-doc-content ol { margin: 0 0 16px; padding-left: 22px; }
.mm-doc-content li { margin-bottom: 8px; }
.mm-doc-content a { color: #C2603A; text-decoration: underline; }
.mm-doc-content img { max-width: 100%; height: auto; border-radius: 10px; }
.mm-doc-content table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.mm-doc-content th, .mm-doc-content td { border: 1px solid #E4DAC9; padding: 10px 12px; text-align: left; font-size: 15px; }
