/* CMP design quick fixes 2026-10-04. Scoped by classes on <html> set in local/cmp-brand/design-20261004.php:
   cmpd-h-c = cmprealty.com, cmpd-h-g = gjacip.ru; cmpd-city / cmpd-catalog / cmpd-card / cmpd-home = page type. */

/* 7. Fonts: Montserrat-Regular family had no @font-face -> serif fallback. Reuse the already loaded Medium file. */
/* 2026-10-04 step 2: WOFF2 subsets (Latin+Cyrillic, ~35 KB instead of ~178 KB WOFF). Declared after template CSS, so these faces win. */
@font-face{font-family:"Montserrat-Regular";src:url(/local/cmp-brand/fonts/montserrat-regular-2026.woff2) format("woff2"),url(/fonts/Montserrat-Regular.woff) format("woff");font-display:swap}
@font-face{font-family:"Montserrat-Medium";src:url(/local/cmp-brand/fonts/montserrat-medium-2026.woff2) format("woff2"),url(/fonts/Montserrat-Medium.woff) format("woff");font-display:swap}
@font-face{font-family:"Montserrat-SemiBold";src:url(/local/cmp-brand/fonts/montserrat-semibold-2026.woff2) format("woff2"),url(/fonts/Montserrat-SemiBold.woff) format("woff");font-display:swap}
@font-face{font-family:"Montserrat-Bold";src:url(/local/cmp-brand/fonts/montserrat-bold-2026.woff2) format("woff2"),url(/fonts/Montserrat-Bold.woff) format("woff");font-display:swap}


/* 1. cmprealty city pages: hide broken legacy blocks, keep category links and offers */
.cmpd-h-c.cmpd-city .about_main h2,.cmpd-h-c.cmpd-city .about_main p,.cmpd-h-c.cmpd-city .about_main .prem,
.cmpd-h-c.cmpd-city section.intro,.cmpd-h-c.cmpd-city section.prem_company,.cmpd-h-c.cmpd-city section.investition{display:none!important}
.cmpd-h-c.cmpd-city section.about_main{max-width:1170px;margin:0 auto!important;padding:8px 15px 0!important;min-height:0!important;background:none!important;box-sizing:border-box}
.cmpd-h-c.cmpd-city .about_main a{display:inline-flex;align-items:center;margin:0 8px 8px 0;padding:9px 16px;border:1px solid #d9d9de;border-radius:999px;background:#fff;color:#25252b;font:600 15px/1.2 Arial,sans-serif;text-decoration:none}
.cmpd-h-c.cmpd-city .about_main a:hover{border-color:#c9231d;color:#c9231d}

/* 1. cmprealty catalog: hide the duplicated legacy search (wrong city list), keep "Find a property" */
.cmpd-h-c.cmpd-catalog body>.filter-container:has(~.filter-container){display:none!important}
.cmpd-h-c.cmpd-catalog .filter-container{background-image:none!important;background-color:#2b2d33!important}

/* 3. cmprealty property card */
.cmpd-h-c.cmpd-card .object-tab-links,.cmpd-h-c.cmpd-card .bank-b,
.cmpd-h-c.cmpd-card .object-links1 .twitter,.cmpd-h-c.cmpd-card .object-links1 .ok{display:none!important}

/* 8. no horizontal scroll on cmprealty legacy pages */
.cmpd-h-c body{overflow-x:clip}
@media (max-width:991px){
 .cmpd-h-c.cmpd-card .row{margin-left:0!important;margin-right:0!important}
 .cmpd-h-c.cmpd-card .column-desc{margin-left:0!important;margin-right:0!important;max-width:100%}
}

/* 8. gjacip header on narrow phones (iPhone SE) */
@media (max-width:400px){
 .cmpd-h-g header.logo_part .wrap{gap:10px!important;padding-left:12px!important;padding-right:12px!important}
 .cmpd-h-g header.logo_part .cmp-brand-identity{min-width:0;flex:0 1 auto}
 .cmpd-h-g header.logo_part .cmp-brand-identity img{max-width:100%;height:auto}
 .cmpd-h-g header.logo_part .user{flex:0 0 auto}
}

/* 6. grey stripes before H1 and top pagination (bottom pagination stays) */
.cmpd-h-g section.about>h1,.cmpd-h-c section.about>h1{background-image:none!important}
.cmpd-catalog section.about>.page-count,.cmpd-catalog section.about>.content-news__pagination,
.cmpd-en.cmpd-catalog body>.page-count,.cmpd-en.cmpd-catalog body>.content-news__pagination{display:none!important}

/* 11. gjacip: one primary CTA colour; green stays for WhatsApp only */
.cmpd-h-g .request_zayavka_custom{background:#c9231d!important;border-color:#c9231d!important;color:#fff!important}
.cmpd-h-g .request_zayavka_custom:hover{background:#a50c21!important;border-color:#a50c21!important}

/* 1. EN template: property cards in catalog (same rules as /local/cmp-contact/style.css, which the EN template does not load) */
.cmpd-en .cmp-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0;font:15px/1.5 Arial,sans-serif}
@media(max-width:991px){.cmpd-en .cmp-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cmpd-en .cmp-card-grid{grid-template-columns:1fr;gap:18px}}
.cmpd-en .cmp-simple-card{min-width:0;border:1px solid #e7e4e8;border-radius:14px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.cmpd-en .cmp-simple-card>a{display:block;position:relative}
.cmpd-en .cmp-simple-card img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:#f6f5f6}
.cmpd-en .cmp-simple-card .cmp-card-body{padding:20px;display:flex;flex-direction:column;flex:1;gap:10px}
.cmpd-en .cmp-simple-card h2{margin:0;font:600 20px/1.35 Arial,sans-serif}
.cmpd-en .cmp-simple-card h2 a{color:#302e37;text-decoration:none}
.cmpd-en .cmp-simple-card p{margin:0;font:15px/1.5 Arial,sans-serif}
.cmpd-en .cmp-simple-card .cmp-card-location{color:#6d6771}
.cmpd-en .cmp-simple-card .cmp-card-price{font:700 23px/1.3 Arial,sans-serif;color:#302e37;margin-top:auto}
.cmpd-en .cmp-simple-card .cmp-card-open{display:block;padding:12px;border:1px solid #d8d5dc;border-radius:8px;text-align:center;text-decoration:none;color:#302e37;font-weight:600;min-height:44px;box-sizing:border-box}
.cmpd-en .cmp-simple-card .cmp-card-open:hover{border-color:#c9231d;color:#a91c17}

/* 3. cmprealty card: H1 not glued to the fixed mobile header */
@media (max-width:991px){.cmpd-en.cmpd-card h1{padding-top:14px!important;line-height:1.25!important}}

/* 2. cmprealty header: phone + WhatsApp text link (green only as a small WhatsApp mark) */
.cmpd-h-c a.cmpd-wa{display:inline-flex;align-items:center;gap:6px;margin-left:10px;font-size:13px;text-transform:none;color:#25252b!important;text-decoration:none;white-space:nowrap}
.cmpd-h-c a.cmpd-wa:before{content:"";width:9px;height:9px;border-radius:50%;background:#25d366}

/* 4. gjacip home: franchise entry below the first screen */
.cmpd-h-g .cmp-home-franchise-entry.cmpd-franchise-below{max-width:1170px;margin:24px auto;box-sizing:border-box}

/* ===== design2 2026-10-04 ===== */
/* Neutral "Оплата" button (outline instead of green) */
header .wrap .user .cmp-hdr-pay,.menu-popup .cmp-menu-pay a.cmp-menu-pay-btn{background:#fff!important;color:#3a3345!important;border:1px solid #cfccd4!important;box-shadow:none!important}
header .wrap .user .cmp-hdr-pay:hover,.menu-popup .cmp-menu-pay a.cmp-menu-pay-btn:hover{background:#f4f3f6!important;color:#29222d!important;border-color:#9d97a3!important}
section.top_part>a.cmp-top-pay{color:#5f5866!important}
section.top_part>a.cmp-top-pay:hover{color:#29222d!important}
/* EN template: same round CMP REALTY logo in all sections */
.cmpd-en a.logo.logo-develop,.cmpd-en a.logo.logo-hotsale{background-image:url(/bitrix/templates/gja_new_en/images/logo_en_2.png)!important;background-size:180px auto!important;background-repeat:no-repeat!important}
/* Home: city chooser chips */
.cmpd-cities{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;max-width:760px}
.cmpd-cities a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid #d9d6dd;border-radius:999px;background:#fff;color:#29222d!important;font:600 15px/1 Arial,sans-serif;text-decoration:none!important;white-space:nowrap;box-sizing:border-box}
.cmpd-cities a:hover,.cmpd-cities a:focus-visible{border-color:#c9231d;color:#c9231d!important}
@media(max-width:600px){.cmpd-cities{gap:6px}.cmpd-cities a{min-height:38px;padding:0 13px;font-size:14px}}
/* EN filter: hide the duplicated legacy search wherever both are present; room labels fit */
.cmpd-en body>.filter-container:has(~.filter-container){display:none!important}
.cmpd-en .filter-container input[type=checkbox]+label{width:auto!important;min-width:40px;padding-left:10px!important;padding-right:10px!important;box-sizing:border-box;white-space:nowrap}

/* 2026-10-04: no payment on cmprealty.com (host class from design-20261004.php) */
html.cmpd-h-c a[href^="/pay/"],html.cmpd-h-c a[href^="/en/pay/"],html.cmpd-h-c a[href*="//www.cmprealty.com/pay/"],html.cmpd-h-c a[href*="//www.cmprealty.com/en/pay/"],html.cmpd-h-c .cmp-hdr-pay,html.cmpd-h-c .cmp-menu-pay-btn,html.cmpd-h-c .cmp-top-pay{display:none!important}
