/* Shared customer interface. Desktop navigation is preserved. */
.ux-menu-toggle{display:none}.ux-hours{font-size:14px;line-height:1.6;color:#554b46}
.ux-offer{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.ux-offer span{padding:8px 12px;border-radius:8px;background:#f4eae5;color:#65121c;font-size:15px;font-weight:700;line-height:1.5}
.ux-offer-note{font-size:14px!important;line-height:1.6!important;color:#655a54}.ux-contact-hours{padding:18px 0;margin:8px 0 20px;border-bottom:1px solid #ded5cc}
#service-request{scroll-margin-top:165px!important}#request{scroll-margin-top:165px}
#service-request .sr-hours{font-size:14px;line-height:1.6;color:#554b46;margin-top:8px}
.ux-home-cases{padding-block:30px}.ux-home-cases h2{margin-top:0}.ux-home-cases p{max-width:850px;line-height:1.7}
.ux-home-case-links{display:flex;flex-wrap:wrap;gap:12px}.ux-home-case-links a{padding:12px 16px;border:1px solid #d7c8bf;border-radius:9px;line-height:1.5}
body[data-ux-home] .seo-home,body[data-ux-home] .organic-copy{display:none}
@media(max-width:900px){
 header.ux-menu-ready .wrap.nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;min-height:0;padding:10px 16px!important;align-items:center}
 header.ux-menu-ready .brand{grid-column:1;grid-row:1;max-width:170px}
 header.ux-menu-ready .brand img{width:100%;height:auto;max-height:40px;object-fit:contain;object-position:left center}
 header.ux-menu-ready .ux-menu-toggle{display:flex;align-items:center;justify-content:center;gap:8px;grid-column:2;grid-row:1;min-height:44px;padding:9px 12px;border:1px solid #bba9a0;border-radius:8px;background:#fff;color:#72141e;font:700 15px/1.2 Arial;cursor:pointer}
 .ux-menu-icon{font-size:20px;line-height:1}.ux-menu-toggle[aria-expanded=true]{background:#f4eae5!important}
 header.ux-menu-ready .header-contacts{grid-column:1/-1;grid-row:2;display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-direction:row;max-width:100%}
 header.ux-menu-ready .header-phone{font-size:17px!important;white-space:nowrap;min-height:36px;display:flex;align-items:center}
 header.ux-menu-ready .header-messengers{display:flex;gap:7px;align-items:center;margin-left:auto}
 header.ux-menu-ready .header-messengers .messenger{width:32px;height:32px;min-width:32px}
 header.ux-menu-ready .header-search{position:static}
 header.ux-menu-ready .header-search>summary{width:34px;height:34px}
 header.ux-menu-ready .header-search-panel{right:16px;left:16px;top:100%;width:auto;box-sizing:border-box;max-height:calc(100dvh - 130px);overflow:auto}
 header.ux-menu-ready nav[aria-label="Основная навигация"]{display:none!important;grid-column:1/-1;grid-row:3;width:100%;padding:8px 0 2px!important;gap:4px 12px!important;max-height:calc(100dvh - 132px);overflow:auto}
 header.ux-menu-ready.ux-menu-open nav[aria-label="Основная навигация"]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 header.ux-menu-ready nav[aria-label="Основная навигация"]>a{display:flex;align-items:center;min-height:44px;padding:8px 10px!important;box-sizing:border-box;font-size:16px!important;white-space:normal}
 header.ux-menu-ready .nav-hit span{position:static!important;margin-left:7px!important;width:28px!important;height:20px!important;font-size:8px!important;flex-shrink:0}
 .topline{display:none!important}
 #service-request{scroll-margin-top:116px!important}#request{scroll-margin-top:116px}
 .ux-menu-toggle:focus-visible{outline:3px solid #8e0b18;outline-offset:3px}
}
@media(max-width:380px){header.ux-menu-ready .header-phone{font-size:15px!important}header.ux-menu-ready .brand{max-width:155px}}
@media(max-width:700px){
 body[data-ux-home] #services .card{padding:20px;min-height:0}
 body[data-ux-home] #services .card>img{height:120px;width:100%;object-fit:cover;margin-bottom:14px}
 body[data-ux-home] #services .section-top{margin-bottom:20px}
 body[data-ux-home] #services{padding-top:32px;padding-bottom:32px}
 body[data-ux-home] .showcase{margin-bottom:26px}
 body[data-ux-home] .journey-home{margin-bottom:18px}
 .ux-home-case-links{display:grid}.ux-home-cases{padding-block:24px}
}

/* Keep closed search panels out of document layout. */
.header-search:not([open])>.header-search-panel{display:none!important}
.ap-catalog-head{flex-wrap:wrap;gap:12px}.ap-catalog-head>div{min-width:0;max-width:100%;flex:1 1 220px}
.ap-catalog-direction,.ap-catalog-head h2{overflow-wrap:anywhere}.ap-catalog-more{white-space:normal}
.priority-details{max-width:1160px;width:calc(100% - 36px);box-sizing:border-box;margin:24px auto;border:1px solid #d8ccc3;border-radius:12px;background:#fffaf5}
.priority-details>summary{padding:18px 20px;cursor:pointer;font-weight:700;line-height:1.5;color:#75171e}
.priority-detail-body{min-width:0;padding:0 18px 18px}.priority-detail-body>.wrap{width:100%;max-width:100%;padding-inline:0;box-sizing:border-box}
.priority-detail-body>.showcase{margin-bottom:0}.priority-price-note{font-size:14px;line-height:1.5;max-width:60ch;margin:8px 0 16px;color:#4f4540}
body[data-ux-home] #services .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-ux-home] #services .card{display:block;padding:16px;min-height:0;border-radius:12px}
body[data-ux-home] #services .card h3{font-size:20px;line-height:1.35;margin:0 0 7px}
body[data-ux-home] #services .card p{font-size:14px;line-height:1.5;margin:0}
body[data-ux-home] #services .section-top h2{font-size:clamp(26px,4vw,38px);line-height:1.2}
body[data-ux-home] #services .section-top{margin-bottom:18px}
body[data-ux-home] #services{padding-top:24px;padding-bottom:24px}
body[data-ux-home] #services .tabs{margin-bottom:16px}
body[data-ux-home] #services .card .service-card-target{display:block;text-decoration:none}
body[data-ux-home] #services .card:has(.service-card-target:hover){border-color:#871922}
body[data-ux-home] .real-works{padding-block:20px}
body[data-ux-home] .real-works-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-ux-home] .real-work-card img{height:150px;object-fit:contain}
@media(max-width:700px){
 .wrap,.ap-catalog-card,.ap-catalog-groups,.ap-catalog-group{min-width:0;box-sizing:border-box;max-width:100%}
 .priority-details{margin-block:18px}.priority-details>summary{padding:15px}
 .priority-detail-body{padding-inline:14px}
 body[data-ux-home] #services .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ux-home] #services .card{padding:12px}
 body[data-ux-home] #services .card h3{font-size:17px}
 body[data-ux-home] .real-work-card img{height:105px}
 body[data-ux-home] .real-work-card h3{font-size:14px;line-height:1.35}
 #service-request{width:calc(100% - 36px);max-width:100%;box-sizing:border-box}
 .article-layout{min-width:0}.article-layout>*{min-width:0}
}
h1,.page-title{overflow-wrap:anywhere}
@media(max-width:380px){
 .ap-catalog-head h2{font-size:26px;line-height:1.2}
 main h1,main h1.page-title{font-size:clamp(32px,10vw,38px)!important;line-height:1.12!important}
}
