/* CMP: «Личный кабинет» / «Оплата» в шапке + баннер установки приложения. 2026-09-29 v2 */
header .wrap .user .cmp-hdr-link{display:inline-flex;align-items:center;gap:6px;margin-right:14px;font-size:13px;line-height:1;text-decoration:none;white-space:nowrap;font-family:'Montserrat-Medium',Arial,sans-serif;box-sizing:border-box;vertical-align:middle}
header .wrap .user .cmp-hdr-lk{color:#3a3345;padding:0;border:0;background:none}
header .wrap .user .cmp-hdr-lk:hover{color:#1f9d55;text-decoration:underline}
header .wrap .user .cmp-hdr-pay{height:32px;padding:0 12px;border-radius:6px;background:#1f9d55;color:#fff;border:0;font-family:'Montserrat-SemiBold',Arial,sans-serif}
header .wrap .user .cmp-hdr-pay:hover{background:#18834a;color:#fff}
header .wrap .user .cmp-hdr-link svg{flex:0 0 auto}
@media(max-width:1280px){header .wrap .user .cmp-hdr-lk{display:none}}
@media(max-width:760px){header .wrap .user .cmp-hdr-pay{width:32px;height:32px;padding:0;justify-content:center;margin-right:8px}header .wrap .user .cmp-hdr-pay span{display:none}}
.menu-popup > span.cmp-menu-pay{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:18px;margin:0 0 15px!important;padding:0 0 20px!important}
.menu-popup .cmp-menu-pay a{font-size:16px;text-decoration:none;margin:0!important}
.menu-popup .cmp-menu-pay a.cmp-menu-lk{color:#333!important;text-decoration:underline}
.menu-popup .cmp-menu-pay a.cmp-menu-pay-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:6px;background:#1f9d55;color:#fff!important;font-size:15px}
/* компактный нижний баннер «установить приложение» */
.cmp-pwa{position:fixed;left:8px;right:8px;bottom:8px;z-index:2147483000;display:flex;align-items:center;gap:8px;height:56px;box-sizing:border-box;background:#fff;color:#29222d;border:1px solid #e4e2e7;border-radius:12px;padding:0 6px 0 10px;box-shadow:0 4px 18px rgba(0,0,0,.14);font:13px/1.25 Arial,sans-serif;max-width:480px;margin:0 auto}
.cmp-pwa img{width:34px;height:34px;border-radius:8px;flex:0 0 auto;display:block}
.cmp-pwa-t{flex:1 1 auto;min-width:0;overflow:hidden}
.cmp-pwa-t b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp-pwa-t small{display:block;font-size:11px;color:#716a71;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmp-pwa-go{flex:0 0 auto;border:0;border-radius:6px;background:#29222d;color:#fff;font-weight:700;font-size:12px;height:30px;padding:0 9px;cursor:pointer}
.cmp-pwa-x{flex:0 0 auto;border:0;background:none;color:#9a94a0;font-size:16px;line-height:1;width:24px;height:24px;cursor:pointer;padding:0}

/* ===== v3 2026-09-30: ровная шапка, «Оплата» в верхней строке, кликабельные блоки ===== */
/* правая часть шапки: одна строка, высота 40px, шаг 12px, радиус 8px */
header .wrap .user{display:flex!important;align-items:center;gap:12px;flex-wrap:nowrap}
header .wrap .user>a,header .wrap .user>.menu{margin:0!important;flex:0 0 auto}
header .wrap .user>script{display:none}
header .wrap .user .lk{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;box-sizing:border-box}
header .wrap .user .lk img{display:block;width:40px;height:40px}
header .wrap .user .popup__request_call{display:inline-flex;align-items:center;height:40px!important;line-height:1!important;padding:0 16px!important;border-radius:8px!important;box-sizing:border-box;font-size:13px!important}
header .wrap .user .cmp-hdr-lk{height:40px;padding:0 2px;font-size:13px;color:#3a3345}
header .wrap .user .cmp-hdr-pay{height:40px;padding:0 16px;border-radius:8px;gap:8px;font-size:13px}
header .wrap .user .lang{display:inline-flex!important;align-items:center;justify-content:center;height:40px!important;min-width:40px;line-height:1!important;padding:0 12px!important;border-radius:8px!important;box-sizing:border-box;font-size:13px!important}
header .wrap .user .cmp-hdr-link svg,header .menu-popup .cmp-menu-pay-btn svg{display:block}
@media(max-width:1024px){
 header .wrap .user{gap:10px}
 header .wrap .user .lk,header .wrap .user .popup__request_call{display:none!important}
 header .wrap .user .cmp-hdr-pay{width:40px;height:40px;padding:0;justify-content:center}
 header .wrap .user .cmp-hdr-pay span{display:none}
 header .wrap .user .lang{height:40px!important;min-width:40px;padding:0 10px!important}
 header .wrap .user .menu{display:block;width:40px;height:40px}
 header .wrap .user .menu-triger{width:40px!important;height:40px!important;box-sizing:border-box;border:1px solid #DB000B;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 60 48'%3E%3Cpath fill='%23DB000B' d='M0 0h60v2.5H0zM0 10h60v5H0zM0 22.5h60v7.5H0zM0 37.5h60v10H0z'/%3E%3C/svg%3E") no-repeat center!important}
}
/* верхняя строка: «Оплата» рядом с «Выберите город» */
section.top_part>a.cmp-top-pay{display:inline-flex;align-items:center;gap:6px;margin:0 0 0 18px!important;padding:0!important;background:none!important;color:#1f9d55!important;text-decoration:none;white-space:nowrap;flex:0 0 auto}
.cmp-root-home section.top_part>a.cmp-top-pay{margin-left:2px!important}
section.top_part>a.cmp-top-pay:hover{color:#18834a!important;text-decoration:underline}
section.top_part>a.cmp-top-pay svg{display:block;flex:0 0 auto}
/* три блока «С 2007 года / Россия и зарубежье / Открытая история» — ссылки в стиле карточек направлений выше */
.cmp-corp-proof{align-items:stretch;gap:18px!important}
.cmp-corp-proof>a.cmp-proof-link{display:flex;flex-direction:column;box-sizing:border-box;height:100%;min-width:0;padding:29px;border:1px solid #e4e2e7;border-radius:13px;background:#fff;color:#292631;text-decoration:none!important;transition:border-color .18s,background-color .18s}
.cmp-corp-proof>a.cmp-proof-link strong{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.cmp-corp-proof>a.cmp-proof-link strong:after{content:"→";flex:0 0 auto;font-size:18px;font-weight:400;color:#b3adb8;transition:transform .18s,color .18s}
.cmp-corp-proof>a.cmp-proof-link:hover{border-color:#bf8d88;background:#fdfaf9}
.cmp-corp-proof>a.cmp-proof-link:hover strong:after{color:#ed291f;transform:translateX(4px)}
.cmp-corp-proof>a.cmp-proof-link:focus-visible{outline:2px solid #1f9d55;outline-offset:2px}
@media(max-width:1100px){.cmp-corp-proof>a.cmp-proof-link{padding:23px}}
@media(max-width:760px){.cmp-corp-proof{gap:12px!important}.cmp-corp-proof>a.cmp-proof-link{padding:20px}}
/* внутренние страницы 1025–1360px: шапка и верхняя строка не прилипают к краям */
@media(min-width:1025px) and (max-width:1360px){body:not(.cmp-root-home) section.top_part,body:not(.cmp-root-home) header.logo_part>.wrap{box-sizing:border-box;padding-left:20px!important;padding-right:20px!important}}
/* десктоп: верхняя строка и шапка всегда в одну линию */
@media(min-width:1025px){
 section.top_part{flex-wrap:nowrap!important}
 section.top_part a{white-space:nowrap}
 section.top_part>ul,section.top_part>a,section.top_part>div:not(.header__search){flex-shrink:0}
 section.top_part>.header__search{flex:1 1 0;min-width:0}
 header.logo_part>.wrap{flex-wrap:nowrap!important}
 header.logo_part>.wrap>ul>li>a,header .wrap .user a{white-space:nowrap}
}
@media(min-width:1501px){body:not(.cmp-root-home) header.logo_part>.wrap>ul>li{margin:0 14px}}
/* CMP SEO 2026-10-04: footer logo fits the screen on phones (no change of look) */
footer img[src*="logo-cmp-realty-2026"]{max-width:100%;height:auto}
