/* Согласованная наружная шапка. Размеры содержимого страниц не меняются. */
.header.zrh-header{padding:0;background:#fff}
.zrh-header .zrh-shell{width:1100px;max-width:calc(100% - 32px);margin:0 auto;display:grid;grid-template-columns:235px minmax(0,1fr) auto auto;gap:20px 22px;align-items:center;padding:22px 0 18px;font:16px/1.5 Arial,sans-serif;color:#242832}
.zrh-header .zrh-description{grid-area:1/2;font:16px/1.5 SFProText-Light,Arial,sans-serif;display:block}
.zrh-header .zrh-description small{display:block;margin-top:5px;font-size:14px;line-height:1.5;color:#626775}
.zrh-header .zrh-contacts{grid-area:1/3;display:flex;flex-direction:column;align-items:center;gap:12px}
.zrh-header .zrh-direct{display:flex;flex-direction:column;gap:5px;align-items:center}
.zrh-header .zrh-phone{font:18px/1.3 SFProText-Medium,Arial,sans-serif;color:#242832;white-space:nowrap;text-decoration:none}
.zrh-header .zrh-email{font:16px/1.4 SFProText-Light,Arial,sans-serif;color:var(--zv-brand,#565ce0);text-decoration:none}
.zrh-header .zrh-email:hover{text-decoration:underline;text-underline-offset:3px}
.zrh-header .zrh-messengers{display:flex;gap:8px;align-items:center}
.zrh-header .zrh-messengers>a,.zrh-header .zrh-messengers>button{width:48px;height:48px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid var(--zv-brand-border,#dcdffa);border-radius:12px;background:var(--zv-brand-soft,#eeefff);padding:0;cursor:pointer}
.zrh-header .zrh-messengers img{display:block;object-fit:contain;max-width:26px;max-height:26px}
.zrh-header .zrh-messengers>a:hover,.zrh-header .zrh-messengers>button:hover{background:#e3e5ff}
.zrh-header .zrh-callback{grid-area:1/4;display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border:0;border-radius:12px;background:var(--zv-brand,#565ce0);color:#fff;white-space:nowrap;font:16px/1.5 SFProText-Medium,Arial,sans-serif;cursor:pointer}
.zrh-header .zrh-callback:hover{background:var(--zv-brand-hover,#4247b9)}
.zrh-header .zrh-logo{grid-area:1/1;min-width:0}
.zrh-header .zrh-logo a{display:block;line-height:0}
.zrh-header .zrh-logo img{display:block;width:235px;height:auto;max-width:100%;aspect-ratio:267/89;object-fit:contain}
.zrh-header .zrh-navigation{grid-area:2/1/3/5;min-width:0}
.zrh-header a:focus-visible,.zrh-header button:focus-visible,.zrh-header summary:focus-visible{outline:2px solid var(--zv-brand,#565ce0);outline-offset:3px}
@media(min-width:1024px){
 .zrh-header #zv-mega-menu{width:100%;max-width:none;margin:0;position:relative;z-index:100}
 .zrh-header #zv-mega-menu .zm-bar{width:100%;max-width:none;padding:0}
 .zrh-header #zv-mega-menu .zm-panel{left:auto;right:0;width:min(1100px,calc(100vw - 32px))}
 .zrh-header>.zrh-shell>.zm-control-slot{display:none}
}
@media(min-width:1024px) and (max-width:1199px){
 .zrh-header .zrh-shell{grid-template-columns:220px minmax(0,1fr) auto auto;column-gap:16px}
 .zrh-header .zrh-description{display:block}
 .zrh-header .zrh-description small{display:block;margin-top:4px}
 .zrh-header .zrh-contacts{gap:12px}
 .zrh-header .zrh-callback{padding:12px 16px}
 .zrh-header .zrh-logo img{width:220px}
}
@media(max-width:1023px){
 .zrh-header .zrh-shell{width:calc(100% - 32px);max-width:none;grid-template-columns:minmax(0,1fr) 48px;gap:16px;padding:18px 0}
 .zrh-header .zrh-logo{grid-area:1/1}
 .zrh-header .zrh-logo img{width:235px}
 .zrh-header>.zrh-shell>.zm-control-slot{display:block;grid-area:1/2;position:relative;width:48px;height:48px}
 .zrh-header #zm-mobile-control{right:0}
 body.zm-icon-floating .zrh-header #zm-mobile-control,body.zm-menu-open .zrh-header #zm-mobile-control{right:16px}
 .zrh-header .zrh-description{grid-area:2/1/3/3;display:block}
 .zrh-header .zrh-description small{display:block;margin-top:4px}
 .zrh-header .zrh-contacts{grid-area:3/1/4/3;flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:12px}
 .zrh-header .zrh-direct{align-items:flex-start}
 .zrh-header .zrh-callback{grid-area:4/1/5/3;width:100%;min-height:48px}
 .zrh-header .zrh-navigation{grid-area:auto;display:contents}
}
@media(prefers-reduced-motion:reduce){.zrh-header *{scroll-behavior:auto}}

/* На 320px прежняя сетка статистики расширяла viewport на 7px при загрузке Nitro. */
@media(max-width:360px){
 .wp-clients-section .wp-stats-card{padding:20px!important}
 .wp-clients-section .wp-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
 .wp-clients-section .wp-stat-text{overflow-wrap:anywhere}
}

/* Переходный десктоп сохраняет прежний контейнер меню 960px. */
@media(min-width:1024px) and (max-width:1199px){.zrh-header .zrh-shell{width:960px}.zrh-header #zv-mega-menu .zm-panel{width:960px;max-width:calc(100vw - 32px)}}

/* Форма звонка прокручивается внутри окна на низких горизонтальных экранах. */
@media(max-height:600px){
 html body .popup>.popup__content{box-sizing:border-box;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;justify-content:flex-start}
 html body .popup>.popup__content>.wpcf7{flex-shrink:0}
}
