/* Compact inner pages; homepage and paid listing cards keep their layout. */
body.olekma-inner .grid_btn_map {display:flex;flex-wrap:wrap;gap:12px;max-width:100%}
body.olekma-inner .grid_btn_map > div {min-width:0;max-width:100%}
body.olekma-inner .grid_btn_map > div:first-child a,
body.olekma-inner .grid_btn_map > div:first-child button {display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;max-width:100%;padding:10px 16px!important;border:1px solid #c9dce9!important;border-radius:12px!important;background:#f0f7fd!important;color:#24658e!important;font-family:inherit;font-weight:600;font-size:15px;line-height:1.35;box-shadow:none!important;white-space:normal;text-decoration:none}
body.olekma-inner .grid_btn_map > div:first-child img,
body.olekma-inner .grid_btn_map > div:first-child svg {width:22px!important;height:22px!important;object-fit:contain;flex-shrink:0}
body.olekma-inner .grid_btn_map > div:first-child a:hover {background:#e1effa!important}
@media(max-width:760px){
 body.olekma-inner .om-page.om-inner {position:sticky!important;top:0;z-index:100;background:#fff;overflow:visible!important}
 body.olekma-inner .om-page.om-inner > .om-top,
 body.olekma-inner .om-page.om-inner > .om-hero {display:none!important}
 body.olekma-inner .om-page.om-inner .om-section-navigation {margin-top:0!important;background:#fff}
 body.olekma-inner .om-page.om-inner .om-resident-invite {display:none!important}
 body.olekma-inner .om-page.om-inner > .om-wrap {padding-top:0;padding-bottom:0}
 body.olekma-inner .cat-children .om-empty-category {display:none!important}
 body.olekma-inner :is(.vip_catalog,.vip_service,.vip_auto,.vip_realty,.vip_work,.vip_afisha) {display:none!important}
 body.olekma-inner .grid_razdel_title {min-width:0;max-width:100%}
 body.olekma-inner .grid_razdel_title .right {min-width:0;max-width:100%}
}

/* Mobile inner pages finish at content; bottom application navigation stays. */
@media(max-width:760px){
 body.olekma-inner .om-footer{display:none!important}
 body.olekma-inner :is(.oc-other,.other_service,.other_ads,.other_realty,.other_auto,.other_work,.other_afisha,.other_news,.other_poisk,.other_blog,.other_dost){display:none!important}
 body.olekma-inner .os-related:not(.os-related-vip){display:none!important}
 body.olekma-inner .moduletable:has(.grid_other_company),
 body.olekma-inner .grid_other_company{display:none!important}
}
/* Compact service listing cards on phones: native rules must not stretch rows. */
@media(max-width:760px){
 body.olekma-inner .om-service-category .category_items{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;align-items:start!important}
 body.olekma-inner .om-service-card{height:auto!important;min-height:0!important;border:1px solid #dfe8ef!important;border-radius:16px!important;box-shadow:0 3px 14px #17365208}
 body.olekma-inner .om-service-card .grid_item{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;gap:0!important;justify-content:flex-start!important}
 body.olekma-inner .om-service-card .item_info{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:10px!important;padding:14px!important;height:auto!important;min-height:0!important;flex:none!important}
 body.olekma-inner .om-service-card .item_title{margin:0!important;padding:0!important;font-size:20px!important;line-height:1.3!important}
 body.olekma-inner .om-service-card .grid_block_mini_phone{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:12px!important;margin:0!important;padding:0!important;height:auto!important;min-height:0!important}
 body.olekma-inner .om-service-card .grid_block_mini_phone>div:first-child{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:8px!important;height:auto!important;min-height:0!important}
 body.olekma-inner .om-service-card .mini_icons{margin:0!important;padding:0!important;gap:12px!important;font-size:12px!important}
 body.olekma-inner .om-service-card .item_address{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.45!important}
 body.olekma-inner .om-service-card .grid_item_rating_rezhim{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:2px 0 0!important;padding:0!important;min-height:0!important;height:auto!important}
 body.olekma-inner .om-service-card .mini_avatar{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;font-size:12px!important;min-height:0!important}
 body.olekma-inner .om-service-card .mini_img_avatar{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;flex:none!important}
 body.olekma-inner .om-service-card .mini_avatar img{width:36px!important;height:36px!important;object-fit:contain!important;border-radius:10px!important}
 body.olekma-inner .om-service-card .mini_avatar_user{margin:0!important;padding:0!important;font-size:12px!important;line-height:1.4!important}
 body.olekma-inner .om-service-card .item_category{margin:0!important;padding:0!important;font-size:12px!important;line-height:1.5!important}
 body.olekma-inner .om-service-card .item_tags{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;margin:0!important;padding:0!important;min-height:0!important}
 body.olekma-inner .om-service-card .item_tags:has(>div:empty):not(:has(a,button)){display:none!important}
 body.olekma-inner .om-service-card .item_tags ul{display:flex;flex-wrap:wrap;gap:6px;margin:0!important;padding:0!important;list-style:none}
 body.olekma-inner .om-service-card .item_tags li{margin:0!important;font-size:12px!important}
 body.olekma-inner .om-service-card .grid_block_mini_phone>.right{margin:0!important;padding:10px 0 0!important;gap:8px 12px!important;min-height:0!important;justify-content:flex-start!important}
 body.olekma-inner .om-service-card .price_item,body.olekma-inner .om-service-card .dogovor_price_item{font-size:18px!important;line-height:1.35!important;margin:0!important;padding:0!important}
 body.olekma-inner .om-service-card .item_phone{display:inline-flex;align-items:center;min-height:44px}
}
