/* Scoped detail layout; preserve contact and gallery controls. */
body .om-service-article .grid_service_block{align-items:start!important;gap:24px!important}
body .om-service-article .grid_service_block>.main_company_logo{height:auto!important;min-height:0!important;align-self:start!important}
body .om-service-article .main_company_logo>.zoom-image{height:auto!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important;position:relative!important}
body .om-service-article .main_company_logo>.zoom-image>img{position:static!important;width:100%!important;height:auto!important;max-height:340px!important;object-fit:contain!important;display:block}
body .om-service-article .service_info_block{display:flex!important;flex-direction:column!important;gap:18px!important;justify-content:flex-start!important;min-height:0!important}
body .om-service-article .service_info_block>.item_tags:has(>div:empty){display:none!important}
body .om-service-article .service_info_block>.item_category,body .om-service-article .service_info_block>.grid_service_phone{margin:0!important}
body .om-service-article .other_service:empty{display:none!important}
body .os-related{margin:24px 0;padding:22px;border:1px solid #dce5ea;border-radius:16px}
body .os-related h2{font-size:23px;margin:0 0 18px;color:inherit}
body .os-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body .os-related-card{border:1px solid #dce5ea;border-radius:12px;padding:14px;min-width:0}
body .os-related-card>a{display:block;color:inherit;text-decoration:none}
body .os-related-card img{width:100%;height:160px;object-fit:contain;border-radius:8px}
body .os-related-card h3{font-size:17px;margin:12px 0;line-height:1.4}
body .os-related-card>strong{font-size:16px}
body .os-related-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;background:#edf6fc;color:#265772;border-radius:8px;font-size:22px;font-weight:700}
body .os-related-placeholder small{font-size:14px;font-weight:400;margin-top:8px}
/* The legacy circle belongs to the hidden module heading, not its wrapper. */

@media(max-width:750px){body .os-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body .os-related{padding:14px}body .os-related-card{padding:10px}body .os-related-card img{height:120px}body .os-related-card h3{font-size:15px}body .om-service-article .service_info_block{gap:14px!important}}
body .om-service-article .other_service:not(:has(.os-related)){display:none!important}

body .os-related-vip .os-related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body .os-vacancy p{font-size:14px;line-height:1.45;color:inherit;opacity:.8}
body .os-vacancy .os-related-placeholder{gap:8px;padding:16px 8px;font-size:21px;box-sizing:border-box}
body .os-vacancy .os-related-placeholder strong{font-size:16px;margin-top:12px}
body .os-vacancy-action{display:inline-block;color:#ac4b12;font-weight:700;font-size:14px;margin:8px 0}
body .os-vacancy a:focus-visible{outline:2px solid #167bb5;outline-offset:4px}
@media(max-width:1000px){body .os-related-vip .os-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact VIP service teasers: details remain on the full service page. */
body :is(.vip_service,.vip_catalog) :is(.dogovor_price_item,.price_item,.item_tip_price,.item_mini_rating,.mini_rating,.main_rating,.favorite_button){display:none!important}
body :is(.vip_service,.vip_catalog) :has(>.dogovor_price_item),body :is(.vip_service,.vip_catalog) :has(>.price_item){min-height:0!important;margin-top:0!important;padding-top:0!important;padding-bottom:0!important}

body .olf-brand-placeholder{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;width:100%;height:100%;min-height:180px;padding:24px;background:linear-gradient(135deg,#eaf5fc,#f4f9fd);color:#255c78;text-align:center;border-radius:16px;font-family:Arial,sans-serif}
body .olf-brand-placeholder>span{font-size:38px;color:#2a9e9c;line-height:1}
body .olf-brand-placeholder strong{font-size:clamp(22px,3vw,36px);line-height:1.2}
body .olf-brand-placeholder small{font-size:16px;color:#688497}
/* Actual service detail, including the separate mobile PHP layout. */
body #go_title.om-service-article .service_info_block{height:auto!important;min-height:0!important;justify-content:flex-start!important;align-content:start!important;gap:14px!important;padding:0!important;margin:0!important}
body #go_title.om-service-article .service_info_block>.service_info_block{flex:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;gap:12px!important}
body #go_title.om-service-article .grid_item_rating_rezhim{margin:0!important;padding:0!important;height:auto!important;min-height:0!important;gap:12px!important;align-items:center!important}
body #go_title.om-service-article .mini_avatar{display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;padding:0!important;min-width:0;min-height:0!important}
body #go_title.om-service-article .mini_img_avatar{width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;flex:none!important}
body #go_title.om-service-article .mini_avatar img{width:44px!important;height:44px!important;object-fit:contain!important;border-radius:12px!important}
body #go_title.om-service-article .mini_avatar_user{font-size:14px!important;line-height:1.4!important;margin:0!important;padding:0!important}
body #go_title.om-service-article .mini_avatar_user a{display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}
body #go_title.om-service-article .mini_avatar_user small{font-size:12px!important}
body #go_title.om-service-article .item_category{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.5!important}
body #go_title.om-service-article .item_tags{margin:0!important;padding:0!important;min-height:0!important;line-height:1.5!important;font-size:13px!important}
body #go_title.om-service-article .item_tags ul{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0!important;padding:0!important;list-style:none}
body #go_title.om-service-article .item_tags li{margin:0!important;padding:0!important;font-size:13px!important}
body #go_title.om-service-article .grid_price_service{height:auto!important;min-height:0!important;flex:none!important;margin:0!important;padding:14px 0 0!important;gap:12px!important}
body #go_title.om-service-article .grid_service_block{grid-template-columns:minmax(0,320px) minmax(0,1fr);margin:0 0 22px!important;min-height:0!important;align-items:start!important}
body #go_title.om-service-article .price_item,body #go_title.om-service-article .dogovor_price_item{margin:0!important;font-size:23px!important;line-height:1.35!important}
@media(max-width:760px){
 body #go_title.om-service-article.service-page{padding:14px!important;border-radius:16px!important;box-sizing:border-box}
 body #go_title.om-service-article .grid_mobile_service{display:flex!important;flex-direction:column!important;gap:16px!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
 body #go_title.om-service-article .mobile_img{margin:0!important;width:100%!important;max-width:100%;height:auto!important;min-height:0!important;border-radius:12px;overflow:hidden;background:#f3f7fa}
 body #go_title.om-service-article .mobile_img>img{width:100%!important;height:auto!important;max-height:260px!important;object-fit:contain!important;display:block}
 body #go_title.om-service-article .mobile_item_title{margin:0!important;padding:0!important}
 body #go_title.om-service-article h1{font-size:25px!important;line-height:1.25!important;letter-spacing:-.3px;margin:0!important;padding:0!important}
 body #go_title.om-service-article .mini_icons{margin:0!important;padding:0!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 14px!important;font-size:12px!important}
 body #go_title.om-service-article .mini_icons .item_address{width:100%;margin:0!important;font-size:13px!important;line-height:1.45}
 body #go_title.om-service-article .grid_price_service{display:flex!important;flex-direction:column;align-items:stretch!important;gap:12px!important}
 body #go_title.om-service-article .grid_service_block{grid-template-columns:minmax(0,1fr)!important;padding:14px!important}
 body #go_title.om-service-article .main_content{padding:14px!important}
 body #go_title.om-service-article .btn_user_callback{width:100%;box-sizing:border-box}
 body #go_title.om-service-article .btn_user_callback>div{box-sizing:border-box;min-height:44px!important}
}

body .om-service-article .os-owner-tools{margin:0 0 20px;border:1px solid #d5e3ee;border-radius:14px;background:#fff;min-width:0;max-width:100%}body .om-service-article .os-owner-tools>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;padding:14px 16px;min-height:48px;cursor:pointer;color:#24658e;font-size:16px;font-weight:600}body .om-service-article .os-owner-tools>summary::-webkit-details-marker{display:none}body .om-service-article .os-owner-tools[open]>summary span{transform:rotate(180deg)}body .om-service-article .os-owner-tools>.edit_block{margin:0!important;border:0!important;border-top:1px solid #e0e8f0!important;border-radius:0 0 14px 14px!important;padding:16px!important}body .om-service-article .os-owner-tools .grid_edit_block_top,body .om-service-article .os-owner-tools .grid_edit_block_top>div{display:flex!important;flex-wrap:wrap;gap:10px;align-items:center}body .om-service-article .os-owner-tools .delete_content_btn{min-height:44px;height:auto!important;padding:10px 16px!important}body .om-service-article .os-owner-tools summary:focus-visible{outline:3px solid #087ee9;outline-offset:2px}

/* Service contact hierarchy, desktop and mobile. */
body #go_title.om-service-article .os-service-contacts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;margin:4px 0 0!important}
body #go_title.om-service-article .os-service-contact-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:13px 14px;border:1px solid #dce7f0;background:#fff;border-radius:12px;box-sizing:border-box}
body #go_title.om-service-article .os-service-phone-label{font-size:12px;line-height:1.4;color:#6a8193}
body #go_title.om-service-article .os-service-contact-card .item_phone{display:block!important;margin:0!important;padding:0!important;width:auto!important;min-width:0;max-width:100%;font-size:20px!important;line-height:1.4;cursor:pointer}
body #go_title.om-service-article .os-service-contact-card .grid_item_phone{display:flex!important;align-items:center;gap:7px;max-width:100%;flex-wrap:wrap}
body #go_title.om-service-article .os-service-contact-card .messagers{display:flex!important;flex-wrap:wrap;gap:8px;margin:0!important;padding:0!important;justify-content:flex-start!important}
body #go_title.om-service-article .os-service-contact-card .messager{margin:0!important}
body #go_title.om-service-article .oms-trigger{display:inline-flex!important;align-self:flex-start;margin:0!important;padding:8px 12px!important;min-height:38px!important;height:auto!important;font-size:12px!important;border-radius:10px!important}
body #go_title.om-service-article .grid_price_service{display:flex!important;align-items:center!important;justify-content:space-between;gap:14px;border-top:1px solid #dce7ef;padding-top:14px!important}
body #go_title.om-service-article .btn_user_callback{display:block!important;width:auto!important;min-width:0!important;flex:none!important}
body #go_title.om-service-article .btn_user_callback>.item_phone{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:46px!important;height:auto!important;width:auto!important;padding:12px 18px!important;margin:0!important;border-radius:11px!important;font-size:14px!important;line-height:1.4;box-sizing:border-box;background:#087fc9!important;color:#fff!important}
body #go_title.om-service-article .btn_user_callback>.item_phone img{width:19px!important;height:19px!important;object-fit:contain}
body #go_title.om-service-article .main_company_logo .zoom-image{display:flex;align-items:center;justify-content:center;min-height:220px;background:#edf3f8;border-radius:14px;overflow:hidden}
body #go_title.om-service-article .main_company_logo .zoom-image>img{display:block;width:100%!important;height:auto!important;max-height:340px;object-fit:contain!important}
body #go_title.om-service-article .mobile_img>a{display:block;width:100%;height:auto}
body #go_title.om-service-article .mobile_img>a>img{display:block;width:100%!important;height:auto!important;max-height:300px!important;object-fit:contain!important}
@media(max-width:760px){body #go_title.om-service-article .os-service-contacts{grid-template-columns:minmax(0,1fr);gap:10px}body #go_title.om-service-article .os-service-contact-card{padding:12px}body #go_title.om-service-article .grid_price_service{align-items:stretch!important;flex-direction:column!important}body #go_title.om-service-article .btn_user_callback,body #go_title.om-service-article .btn_user_callback>.item_phone{width:100%!important}}

/* Unified service management buttons, 1.58.92. */
body #go_title.om-service-article .os-owner-tools>summary{min-height:50px;padding:14px 16px!important;font-size:16px!important;line-height:1.4!important}
body #go_title.om-service-article .os-owner-tools .grid_edit_block_top{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:0!important}
body #go_title.om-service-article .os-owner-tools .grid_edit_block_top>div{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;float:none!important;margin:0!important;width:auto!important}
body #go_title.om-service-article .os-owner-tools .grid_edit_block_top :is(a,button,.delete_content_btn,.open_pay_block){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;height:auto!important;min-height:44px!important;margin:0!important;padding:10px 14px!important;box-sizing:border-box!important;border:1px solid #cbdde9!important;border-radius:10px!important;background:#f4f9fd!important;color:#24658e!important;font-size:14px!important;font-weight:600!important;line-height:1.4!important;text-decoration:none;box-shadow:none!important;white-space:normal!important;cursor:pointer}
body #go_title.om-service-article .os-owner-tools .grid_edit_block_top :is(a,button,.delete_content_btn,.open_pay_block)>img{width:18px!important;height:18px!important;object-fit:contain!important}
body #go_title.om-service-article .os-owner-tools .grid_edit_block_top .delete_content_btn{color:#b63e4a!important;background:#fff6f7!important;border-color:#edcbd0!important}
@media(max-width:650px){body #go_title.om-service-article .os-owner-tools .grid_edit_block_top>div{width:100%!important;flex-wrap:wrap!important}body #go_title.om-service-article .os-owner-tools .grid_edit_block_top :is(a,button,.delete_content_btn,.open_pay_block){flex:1 1 auto!important;min-width:120px!important}}
