/* moepravo.pro — дизайн 2026: общая шапка и подвал для всех страниц (главная + внутренние).
   Правила с префиксом body/.mp26-*, чтобы старая тема (Customizr/Bootstrap) их не перебивала. */
:root {
	--mpc-navy: #111d32; --mpc-navy-2: #0b1424; --mpc-blue: #293b67; --mpc-gold: #cbb181; --mpc-gold-2: #dec79f;
	--mpc-text: #e6eaf0; --mpc-soft: #c7cfda; --mpc-line: rgba(255,255,255,.14);
	--mpc-serif: 'Prata', Georgia, serif; --mpc-sans: 'Golos Text', Arial, sans-serif;
}

/* ---------- кнопки ---------- */
body .mp26-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 3px; font: 600 15px/1.2 var(--mpc-sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; text-transform: none; letter-spacing: 0; box-shadow: none; }
body .mp26-btn:hover { transform: translateY(-1px); }
body .mp26-btn-gold { background: var(--mpc-gold); border-color: var(--mpc-gold); color: #152034; }
body .mp26-btn-gold:hover { background: var(--mpc-gold-2); border-color: var(--mpc-gold-2); color: #152034; }

/* ---------- логотип ---------- */
body .mp26-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
body .mp26-logo-mark { width: 52px; height: auto; display: block; }
body .mp26-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
body .mp26-logo-name { font: 400 21px/1.1 var(--mpc-serif); color: #fff; letter-spacing: .06em; text-transform: uppercase; }
body .mp26-logo-desc { margin-top: 5px; font: 500 12px/1.2 var(--mpc-sans); color: var(--mpc-gold); letter-spacing: .08em; }

/* ---------- мессенджеры ---------- */
body .mp26-msg { display: inline-flex; gap: 8px; align-items: center; }
body .mp26-msg a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); color: #fff; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
body .mp26-msg a:hover { background: var(--mpc-gold); border-color: var(--mpc-gold); color: var(--mpc-navy); }
body .mp26-msg svg { width: 17px; height: 17px; }

/* ---------- верхняя строка ---------- */
body .mp26-topbar { background: var(--mpc-navy-2); color: var(--mpc-soft); font: 400 14px/1.4 var(--mpc-sans); border-bottom: 1px solid var(--mpc-line); }
body .mp26-topbar-in { display: flex; align-items: center; gap: 28px; padding: 6px 4.5%; min-height: 44px; }
body .mp26-topbar-mail { margin-left: auto; color: var(--mpc-soft) !important; text-decoration: none; }
body .mp26-topbar-mail:hover { color: var(--mpc-gold) !important; }
body .mp26-msg-top a { width: 30px; height: 30px; }

/* ---------- шапка ---------- */
body .mp26-header { position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 28px; min-height: 88px; padding: 0 4.5%; background: var(--mpc-navy); color: #fff; font-family: var(--mpc-sans); border-bottom: 1px solid var(--mpc-line); box-sizing: border-box; }
body.admin-bar .mp26-header { top: 32px; }
body .mp26-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
body .mp26-nav-item { position: relative; display: flex; align-items: center; }
body .mp26-nav-link { display: block; padding: 30px 12px; color: var(--mpc-text) !important; font: 500 16px/1.2 var(--mpc-sans); text-decoration: none !important; transition: color .2s; }
body .mp26-nav-link:hover, body .mp26-nav-link.is-current, body .mp26-nav-item:hover > .mp26-nav-link { color: var(--mpc-gold) !important; }
body .mp26-drop-toggle { width: 22px; height: 22px; margin-left: -8px; padding: 0; background: transparent; border: 0; cursor: pointer; position: relative; }
body .mp26-drop-toggle::after { content: ''; position: absolute; left: 6px; top: 5px; width: 7px; height: 7px; border: solid var(--mpc-gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
body .mp26-drop { position: absolute; top: 100%; left: 0; z-index: 950; display: none; flex-direction: column; min-width: 260px; padding: 12px 0; background: #fff; border-top: 2px solid var(--mpc-gold); box-shadow: 0 18px 40px rgba(10, 20, 40, .22); }
body .mp26-has-drop:hover > .mp26-drop, body .mp26-has-drop:focus-within > .mp26-drop, body .mp26-has-drop.is-open > .mp26-drop { display: flex; }
body .mp26-drop a { display: block; padding: 9px 22px; color: #192337 !important; font: 400 15px/1.35 var(--mpc-sans); text-decoration: none !important; }
body .mp26-drop a:hover { background: #f4f1ea; color: #8a6a3c !important; }
body .mp26-drop-mega { left: -40px; display: none; flex-direction: row; flex-wrap: wrap; width: 680px; padding: 22px 8px 12px; }
body .mp26-has-drop:hover > .mp26-drop-mega, body .mp26-has-drop:focus-within > .mp26-drop-mega, body .mp26-has-drop.is-open > .mp26-drop-mega { display: flex; }
body .mp26-drop-col { display: flex; flex-direction: column; width: 50%; }
body .mp26-drop a.mp26-drop-head { margin-bottom: 4px; color: #8a6a3c !important; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
body .mp26-drop-foot { display: flex; gap: 0; width: 100%; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e6e2d8; }
body .mp26-drop-foot a { font-weight: 600; }
body .mp26-header-phone { color: #fff !important; font: 500 19px/1.2 var(--mpc-sans); letter-spacing: .02em; text-decoration: none !important; white-space: nowrap; }
body .mp26-header-phone:hover { color: var(--mpc-gold) !important; }
body .mp26-header-call { display: none; }
body .mp26-menu-toggle { display: none; }
body .mp26-mobile-nav[hidden] { display: none !important; }

/* ---------- подвал ---------- */
body .mp26-footer { background: var(--mpc-navy); color: var(--mpc-soft); padding: 64px 4.5% 28px; font: 400 15px/1.55 var(--mpc-sans); }
body .mp26-footer a { color: var(--mpc-soft) !important; text-decoration: none !important; }
body .mp26-footer a:hover { color: var(--mpc-gold) !important; }
body .mp26-footer-top { display: grid; grid-template-columns: 1.15fr 1.2fr 1.2fr .9fr 1.15fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--mpc-line); }
body .mp26-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
body .mp26-footer .mp26-footer-logo .mp26-logo-name { color: #fff; }
body .mp26-footer .mp26-footer-logo .mp26-logo-desc { color: var(--mpc-gold); }
body .mp26-footer .mp26-msg a { color: #fff !important; }
body .mp26-footer .mp26-msg a:hover { color: var(--mpc-navy) !important; }
body .mp26-footer-col { display: flex; flex-direction: column; gap: 4px; }
body .mp26-footer-col > a { display: flex; align-items: center; min-height: 32px; line-height: 1.35; }
body .mp26-footer-label { margin: 0 0 8px; color: var(--mpc-gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; }
body .mp26-footer-label a { color: var(--mpc-gold) !important; }
body .mp26-footer-phone { color: #fff !important; font-size: 20px; font-weight: 500; }
body .mp26-footer-text { display: block; margin: 4px 0; color: var(--mpc-soft); font-size: 15px; line-height: 1.5; }
body .mp26-footer-more { color: var(--mpc-gold) !important; }
body .mp26-legal { margin: 24px 0; color: var(--mpc-soft); font-size: 14px; line-height: 1.7; max-width: 1100px; }
body .mp26-footer-bottom { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--mpc-line); font-size: 14px; color: var(--mpc-soft); }
body .mp26-footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }

/* ---------- адаптив ---------- */
@media (max-width: 1380px) {
	body .mp26-nav-link { padding-left: 9px; padding-right: 9px; }
	body .mp26-header { gap: 20px; }
	body .mp26-logo-name { font-size: 19px; }
}
@media (max-width: 1240px) {
	body .mp26-header-phone { display: none; }
	body .mp26-footer-top { grid-template-columns: repeat(3, 1fr); }
	body .mp26-footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 1080px) {
	body .mp26-topbar { display: none; }
	body .mp26-header { min-height: 72px; gap: 12px; padding: 0 20px; }
	body .mp26-nav { display: none; }
	body .mp26-header-cta { margin-left: auto; }
	body .mp26-header-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff !important; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
	body .mp26-header-call svg { width: 20px; height: 20px; }
	body .mp26-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; cursor: pointer; }
	body .mp26-menu-toggle span { display: block; height: 1.5px; background: #fff; }
	body .mp26-mobile-nav { position: sticky; top: 72px; z-index: 899; display: flex; flex-direction: column; max-height: calc(100vh - 72px); overflow-y: auto; background: var(--mpc-navy); padding: 6px 20px 24px; border-bottom: 1px solid var(--mpc-line); font-family: var(--mpc-sans); }
	body.admin-bar .mp26-mobile-nav { top: 118px; }
	body .mp26-mobile-nav > a, body .mp26-m-group > summary { display: flex; align-items: center; min-height: 48px; color: var(--mpc-text) !important; font-size: 17px; text-decoration: none !important; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; list-style: none; }
	body .mp26-m-group > summary::-webkit-details-marker { display: none; }
	body .mp26-m-group > summary::after { content: '+'; margin-left: auto; color: var(--mpc-gold); font-size: 22px; font-weight: 300; }
	body .mp26-m-group[open] > summary::after { content: '−'; }
	body .mp26-m-group a { display: flex; align-items: center; min-height: 44px; padding-left: 14px; color: var(--mpc-soft) !important; font-size: 15px; text-decoration: none !important; }
	body .mp26-m-group a.mp26-m-head { padding-left: 0; color: var(--mpc-gold) !important; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
	body .mp26-m-contacts { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; color: var(--mpc-soft); font-size: 15px; }
	body .mp26-m-phone { color: #fff !important; font-size: 22px; text-decoration: none !important; }
	body .mp26-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { body.admin-bar .mp26-header { top: 46px; } body.admin-bar .mp26-mobile-nav { top: 118px; } }
@media (max-width: 600px) {
	body.admin-bar .mp26-header { top: 0; }
	body .mp26-header { padding: 0 14px; }
	body .mp26-logo-mark { width: 40px; }
	body .mp26-logo-name { font-size: 16px; }
	body .mp26-logo-desc { font-size: 10px; letter-spacing: .05em; }
	body .mp26-header-cta { display: none; }
	body .mp26-header-call { margin-left: auto; }
	body .mp26-footer { padding: 48px 16px 24px; }
	body .mp26-footer-top { grid-template-columns: 1fr; gap: 28px; }
	body .mp26-footer-brand { flex-direction: column; align-items: flex-start; }
	body .mp26-footer-col > a { min-height: 44px; }
	body .mp26-footer-bottom { flex-direction: column; }
	body .mp26-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* старая тема на внутренних страницах сама оборачивает телефоны и почту во вторую <a> со своим цветом —
   вложенная ссылка должна брать цвет внешней (иначе телефон и почта в шапке «тусклые») */
body .mp26-topbar a a, body .mp26-header a a, body .mp26-footer a a, body .mp26-mobile-nav a a { color: inherit !important; text-decoration: none !important; font: inherit; }
body .mp26-footer .mp26-logo-name { font-size: 18px; white-space: nowrap; }
body .mp26-footer .mp26-logo-desc { white-space: nowrap; font-size: 11px; }
body .mp26-footer .mp26-logo-mark { width: 44px; }
