/* v79: messenger buttons (see assets/js/messengers-v1.js). */
.msg-link{text-decoration:none!important;-webkit-tap-highlight-color:transparent}
.msg-badge{display:grid;place-items:center;flex:none;border-radius:50%;color:#fff}
.msg-badge svg{display:block;fill:currentColor}
.msg-whatsapp .msg-badge{background:#25d366}
.msg-telegram .msg-badge{background:#2aabee}
.msg-vk .msg-badge{background:#0077ff}
.msg-max .msg-badge{background:linear-gradient(135deg,#2f7bff 0%,#6b4bff 55%,#a03dff 100%)}
.msg-row{display:flex;flex-wrap:wrap;gap:8px}
.msg-title{margin:0 0 8px}

/* header icons */
.msg-header{display:flex;align-items:center;flex:none}
.msg-header .msg-row{flex-wrap:nowrap;gap:7px}
.msg-ico .msg-badge{width:34px;height:34px;box-shadow:0 3px 10px rgba(16,43,58,.16);transition:transform .15s,box-shadow .15s}
.msg-ico .msg-badge svg{width:20px;height:20px}
.msg-whatsapp.msg-ico .msg-badge svg{width:19px;height:19px}
.msg-telegram.msg-ico .msg-badge svg{width:22px;height:22px;margin-left:-1px}
.msg-vk.msg-ico .msg-badge svg{width:23px;height:23px}
.msg-max.msg-ico .msg-badge svg{width:26px;height:26px}
.msg-ico:hover .msg-badge{transform:translateY(-2px);box-shadow:0 6px 16px rgba(16,43,58,.24)}
.site-header .msg-header{margin-left:0;padding-right:16px;border-right:1px solid var(--line,#dfe6e2)}
@media(max-width:1050px){.site-header .msg-header{margin-left:auto}.site-header .msg-header+.header-contact{margin-left:0!important}}
@media(max-width:760px){.site-header .msg-header{display:none}}

/* labelled pills: mobile menu, «Остались вопросы?», footer */
.msg-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px 6px 6px;border-radius:999px;font-size:14.5px;font-weight:800;line-height:1;transition:background .15s,transform .15s}
.msg-pill .msg-badge{width:32px;height:32px}
.msg-pill .msg-badge svg{width:19px;height:19px}
.msg-telegram.msg-pill .msg-badge svg{width:21px;height:21px;margin-left:-1px}
.msg-vk.msg-pill .msg-badge svg{width:22px;height:22px}
.msg-max.msg-pill .msg-badge svg{width:25px;height:25px}
.msg-pill:hover{transform:translateY(-1px)}

.msg-menu{padding:14px 0 4px;border-top:1px solid var(--line,#dfe6e2)}
.msg-menu .msg-title{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#5d6b66)}
.msg-menu .msg-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mobile-menu .msg-menu a.msg-pill{display:flex;padding:6px 12px 6px 6px;border:1px solid var(--line,#dfe6e2);background:#fff;color:var(--ink,#102b3a)}
.mobile-menu .msg-menu a.msg-pill:first-child{border-top:1px solid var(--line,#dfe6e2)}

.msg-callback{margin-top:16px}
.msg-callback .msg-title{font-size:15px;font-weight:700;letter-spacing:.02em;color:#f3cf7d;text-transform:uppercase}
.msg-callback .msg-pill,.msg-footer .msg-pill{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);color:#fff!important}
.msg-callback .msg-pill:hover,.msg-footer .msg-pill:hover{background:rgba(255,255,255,.22)}

.msg-footer{margin:12px 0 6px}
.msg-footer .msg-title{margin:0 0 8px!important;font-size:13px;color:#d7e9f2}
.msg-footer .msg-row{gap:10px}
.footer-col .msg-footer a.msg-ico{display:block;margin:0}
.msg-footer .msg-ico .msg-badge{width:42px;height:42px;box-shadow:0 4px 12px rgba(0,0,0,.22)}
.msg-footer .msg-ico .msg-badge svg{width:24px;height:24px}
.msg-footer .msg-vk.msg-ico .msg-badge svg,.msg-footer .msg-telegram.msg-ico .msg-badge svg{width:26px;height:26px}
.msg-footer .msg-max.msg-ico .msg-badge svg{width:30px;height:30px}

/* «Остались вопросы?»: one row on a computer, two equal columns on a phone */
@media(min-width:861px){.msg-callback .msg-row{gap:6px;flex-wrap:nowrap}.msg-callback .msg-pill{padding-right:12px;font-size:14px;gap:7px}.msg-callback .msg-pill .msg-badge{width:30px;height:30px}}
@media(max-width:860px){.msg-callback .msg-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.msg-callback .msg-pill{justify-content:flex-start}}

/* laptops 1051–1240px: a little tighter so the header keeps one line with four icons */
@media(min-width:1051px) and (max-width:1240px){
 .site-header .header-inner{gap:16px}
 .site-header .desktop-nav{gap:16px}
 .site-header .msg-header{padding-right:12px}
 .site-header .msg-header .msg-row{gap:5px}
 .site-header .msg-ico .msg-badge{width:30px;height:30px}
 .site-header .msg-ico .msg-badge svg{width:18px;height:18px}
 .site-header .msg-telegram.msg-ico .msg-badge svg,.site-header .msg-vk.msg-ico .msg-badge svg{width:20px;height:20px}
 .site-header .msg-max.msg-ico .msg-badge svg{width:24px;height:24px}
}

/* phone: icons in the bottom bar */
@media(max-width:760px){
 .mobile-bar.msg-bar,.mobile-bar.msg-bar.fab-mode{display:flex!important;gap:6px!important;padding-left:10px!important;padding-right:10px!important}
 .mobile-bar.msg-bar>a.msg-ico{flex:0 0 46px!important;width:46px!important;min-height:46px!important;padding:0!important;display:grid!important;place-items:center;border-radius:12px;background:#f3f7f5;border:1px solid var(--line,#dfe6e2)}
 .mobile-bar.msg-bar>a.msg-ico .msg-badge{width:34px;height:34px;box-shadow:none}
 .mobile-bar.msg-bar>a[href^="tel:"]{flex:1 1 0!important;min-width:0!important;padding:8px 6px!important;font-size:12.5px!important}
 .mobile-bar.msg-bar>.capture-action{flex:1.25 1 0!important;min-width:0!important;padding:8px 6px!important;font-size:12px!important;line-height:1.15!important;white-space:normal!important}
}
@media(max-width:380px){
 .mobile-bar.msg-bar{gap:5px!important;padding-left:8px!important;padding-right:8px!important}
 .mobile-bar.msg-bar>a.msg-ico{flex-basis:42px!important;width:42px!important}
 .mobile-bar.msg-bar>a.msg-ico .msg-badge{width:32px;height:32px}
 .mobile-bar.msg-bar>a[href^="tel:"],.mobile-bar.msg-bar>.capture-action{font-size:11.5px!important}
}
@media(max-width:340px){
 .mobile-bar.msg-bar>a.msg-ico{flex-basis:38px!important;width:38px!important}
 .mobile-bar.msg-bar>a.msg-ico .msg-badge{width:30px;height:30px}
}
@media(max-width:760px){
 .mobile-bar.msg-bar.msg-n4>a[href^="tel:"]{flex:0 0 46px!important;width:46px!important;padding:0!important;font-size:0!important;color:transparent!important;background:#205a42!important;border-color:#205a42!important;border-radius:12px!important;position:relative!important}
 .mobile-bar.msg-bar.msg-n4>a[href^="tel:"]::before{content:"";position:absolute;inset:0;margin:auto;width:22px;height:22px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat}
}
@media(max-width:380px){.mobile-bar.msg-bar.msg-n4>a[href^="tel:"],.mobile-bar.msg-bar.msg-n4>a.msg-ico{flex-basis:40px!important;width:40px!important}.mobile-bar.msg-bar.msg-n4>a.msg-ico .msg-badge{width:30px;height:30px}}
@media(max-width:340px){.mobile-bar.msg-bar.msg-n4>a[href^="tel:"],.mobile-bar.msg-bar.msg-n4>a.msg-ico{flex-basis:36px!important;width:36px!important}.mobile-bar.msg-bar.msg-n4>a.msg-ico .msg-badge{width:28px;height:28px}.mobile-bar.msg-bar.msg-n4{gap:4px!important}}
