/* Explicit colours prevent the legacy theme sheet from making text white on white. */
body .om-section-navigation{margin:16px auto 0;padding:16px;border:1px solid #c6ddee;border-radius:16px;background:#edf6fd;box-shadow:0 3px 12px #183f5c0a;max-width:100%;box-sizing:border-box;color:#193d57}
body .om-sections-heading{font:700 15px/1.4 Arial,sans-serif;color:#193d57;margin-bottom:12px}
body nav.om-sections-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;padding:0;margin:0;overflow:visible}
body nav.om-sections-grid>a{display:flex;align-items:center;gap:8px;min-height:48px;padding:10px 12px;border:1px solid #d4e3ef;border-radius:10px;background:#fff;color:#234b68!important;text-decoration:none;font:600 13px/1.3 Arial,sans-serif;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
body nav.om-sections-grid>a>svg{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:#227bb6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body nav.om-sections-grid>a[aria-current=page]{background:#087ee9;border-color:#087ee9;color:#fff!important}body nav.om-sections-grid>a[aria-current=page]>svg{stroke:#fff}
body nav.om-sections-grid>a:hover{border-color:#1382cf;box-shadow:0 2px 8px #087ee920}body nav.om-sections-grid>a:focus-visible,body .om-invite-add:focus-visible{outline:3px solid #e9a52c;outline-offset:3px}
body .om-resident-invite{margin:12px 0 20px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid #c8e1f3;border-left:4px solid #0784e7;border-radius:14px;color:#21475f;box-sizing:border-box}
body .om-resident-invite strong{display:block;font:700 17px/1.4 Arial,sans-serif;color:#193e59}body .om-resident-invite p{font:13px/1.6 Arial,sans-serif;margin:6px 0 0;color:#516e83}
body .om-invite-add{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:46px;padding:11px 18px;border-radius:11px;background:#0784e7;color:#fff!important;text-decoration:none;font:700 14px/1.4 Arial,sans-serif;box-sizing:border-box;text-align:center}
/* Scope to the real service listings; promoted modules keep their existing layout. */
body .om-service-category .om-service-card{background:#fff!important;color:#1c3f58!important;border-color:#d6e3ed!important;min-width:0}
body .om-service-category .om-service-card .item_info{background:#fff!important;color:#1c3f58!important}
body .om-service-category .om-service-card .item_title,body .om-service-category .om-service-card .item_title>a{color:#193e59!important;opacity:1!important;visibility:visible!important;-webkit-text-fill-color:#193e59!important;font-size:20px!important;line-height:1.4!important}
body .om-service-category .om-service-card :is(.price_item,.price_item span,.dogovor_price_item,.item_phone,.grid_item_phone,.grid_item_phone span){color:#195d87!important;-webkit-text-fill-color:#195d87!important}
body .om-service-category .om-service-card :is(.item_category,.item_category a,.item_tags,.mini_avatar,.mini_avatar a,.item_address,.item_address span,.mini_icon,.mini_icon span,.item_tip_price){color:#526f83!important;-webkit-text-fill-color:#526f83!important}
body .om-service-category .om-service-card :is(.grid_item,.item_info,.grid_block_mini_phone){height:auto!important;min-height:0!important}
body .om-service-category .om-service-card .item_info{justify-content:flex-start!important;gap:12px!important}
body .om-service-category .om-service-card .grid_block_mini_phone>.right{background:transparent!important;min-height:0!important;margin-top:0!important}
:is(html,body).dark-theme .om-section-navigation{background:#1a3041;border-color:#3b586d;color:#e8f1f8}:is(html,body).dark-theme .om-sections-heading{color:#e8f1f8}
:is(html,body).dark-theme nav.om-sections-grid>a{background:#223e52;border-color:#476276;color:#e6f2fb!important}:is(html,body).dark-theme nav.om-sections-grid>a>svg{stroke:#96d5ff}
:is(html,body).dark-theme nav.om-sections-grid>a[aria-current=page]{background:#087ee9;border-color:#087ee9;color:#fff!important}
:is(html,body).dark-theme .om-resident-invite{background:#1b3245;border-color:#3d5f77}:is(html,body).dark-theme .om-resident-invite strong{color:#e9f4fc}:is(html,body).dark-theme .om-resident-invite p{color:#bed1e0}
/* The listing itself follows the selected dark theme, including all text layers. */
:is(html,body).dark-theme .om-service-category .om-service-card,:is(html,body).dark-theme .om-service-category .om-service-card .item_info{background:#1b3041!important;border-color:#405a6e!important;color:#e7f0f8!important}
:is(html,body).dark-theme .om-service-category .om-service-card .item_title,:is(html,body).dark-theme .om-service-category .om-service-card .item_title>a{color:#edf6ff!important;-webkit-text-fill-color:#edf6ff!important}
:is(html,body).dark-theme .om-service-category .om-service-card :is(.price_item,.price_item span,.dogovor_price_item,.item_phone,.grid_item_phone,.grid_item_phone span){color:#a4ddff!important;-webkit-text-fill-color:#a4ddff!important}
:is(html,body).dark-theme .om-service-category .om-service-card :is(.item_category,.item_category a,.item_tags,.mini_avatar,.mini_avatar a,.item_address,.item_address span,.mini_icon,.mini_icon span,.item_tip_price){color:#c0d1df!important;-webkit-text-fill-color:#c0d1df!important}
@media(max-width:760px){body .om-section-navigation{padding:12px;margin-top:12px;border-radius:12px}body nav.om-sections-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}body nav.om-sections-grid>a{min-height:58px;padding:8px 5px;flex-direction:column;justify-content:center;gap:5px;text-align:center;font-size:11px}body nav.om-sections-grid>a>svg{width:19px;height:19px;flex-basis:19px}body .om-resident-invite{padding:14px;display:block}body .om-resident-invite strong{font-size:16px}body .om-invite-add{display:flex;width:100%;margin-top:12px}body nav.om-unified-bottom>a.om-bottom-add{display:flex!important;flex-direction:column!important;gap:0;width:64px!important;height:52px!important;font:10px/1.2 Arial,sans-serif!important;padding:3px!important;border-radius:12px!important}body nav.om-unified-bottom>a.om-bottom-add>.om-add-icon{font:29px/28px Arial,sans-serif!important;margin:0!important;color:#fff!important}body nav.om-unified-bottom>a.om-bottom-add>.om-add-caption{font:600 10px/1.2 Arial,sans-serif!important;margin:0!important;color:#fff!important}}
body .om-service-category h1{color:#193e59!important;-webkit-text-fill-color:#193e59!important}body .om-service-category .grid_razdel_title,body .om-service-category .om-service-intro{background:#f0f7fb!important}body .om-service-category .grid_btn_map .top_add_button{background:#087ee9!important;color:#fff!important;border-color:#087ee9!important}body .om-service-category .grid_btn_map .top_add_button span{color:#fff!important;-webkit-text-fill-color:#fff!important}
:is(html,body).dark-theme .om-service-category .grid_razdel_title,:is(html,body).dark-theme .om-service-category .om-service-intro{background:#1b3041!important}:is(html,body).dark-theme .om-service-category h1{color:#edf6ff!important;-webkit-text-fill-color:#edf6ff!important}:is(html,body).dark-theme .om-service-category .om-service-intro{color:#bed1df!important}:is(html,body).dark-theme .om-service-category .cat-title{background:#233d50;border-color:#4c6477}:is(html,body).dark-theme .om-service-category .cat-title a{color:#e4eff8!important}:is(html,body).dark-theme .om-service-category .cat-title sup{background:#345166!important;color:#e3f0f9!important}
@media(max-width:760px){body nav.om-unified-bottom>a.om-bottom-add{max-width:100%}}

body .om-invite-details{display:none}
@media(max-width:760px){
 body .om-resident-invite .om-invite-description{display:none}
 body .om-resident-invite .om-invite-details{display:block;margin-top:5px;border:0;padding:0;background:transparent;box-shadow:none}
 body .om-invite-details>summary{display:list-item;cursor:pointer;width:fit-content;padding:7px 0;font:14px/1.4 Arial,sans-serif;color:inherit}
 body .om-invite-details>summary:focus-visible{outline:2px solid #0784e7;outline-offset:3px;border-radius:3px}
 body .om-invite-details .om-invite-less,body .om-invite-details[open] .om-invite-more{display:none}
 body .om-invite-details[open] .om-invite-less{display:inline}
 body .om-invite-details p{margin:4px 0 0}
}
