/* Shared contact buttons respond to their container, including narrow sidebars. */
.messengers{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.messengers-label{font-size:13px;color:#526258;margin-right:3px}
.messenger-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:9px 12px;border:1px solid #d4dfd6;border-radius:12px;color:#203c32;background:#fff;text-decoration:none;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;transition:background .15s,border-color .15s}
.messenger-link:hover{background:#edf3ed;border-color:#708b78}
.messenger-link:focus-visible{outline:3px solid #a2bb84;outline-offset:3px}
.messenger-link svg{width:21px;height:21px;flex:none;fill:currentColor}
.messenger-link span{min-width:0;white-space:nowrap}
.messenger-link--tg{color:#1679a4}.messenger-link--vk{color:#0769da}.messenger-link--max{color:#6250bb}
.header-messengers{margin-left:auto;flex-wrap:nowrap;flex-shrink:0}
.header-messengers .messenger-link{padding:9px;width:44px;flex:0 0 44px}
.contact-choice{margin-top:18px;padding:16px;border:1px solid #d8e0d7;border-radius:16px;background:#f5f7f1;min-width:0;max-width:100%}
.contact-choice p{font-size:14px;line-height:1.5;margin:0 0 12px}
.contact-choice small{display:block;margin-top:10px;font-size:12px;line-height:1.5;color:#526258}
.price-card .contact-choice{background:#fff;color:#203c32}.price-card .contact-choice p{color:#203c32}
.contact-choice .messengers,.contact-footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;width:100%;container:messenger-links / inline-size}
.contact-choice .messenger-link,.contact-footer .messenger-link{width:100%;padding:10px 6px}
.contact-footer{margin-top:12px;max-width:420px;flex:1 1 320px}
.contact-footer .messengers-label{grid-column:1/-1;margin:0 0 2px}
body>header{height:auto;min-height:95px;padding-top:16px;padding-bottom:16px;gap:18px;flex-wrap:wrap}
@container messenger-links (max-width:300px){
 .contact-choice .messenger-link,.contact-footer .messenger-link{flex-direction:column;gap:6px;min-height:68px;padding:10px 3px;font-size:12px}
}
@media(max-width:1050px) and (min-width:761px){
 body>header nav{order:3;flex-basis:100%;justify-content:center;gap:24px}
}
@media(max-width:760px){
 body>header{min-height:76px;padding:14px 16px;gap:12px;justify-content:center}
 body>header>.logo{min-width:0;max-width:100%}
 .header-messengers{flex-basis:100%;margin-left:0;justify-content:center;gap:10px}
 .header-messengers .messengers-label{font-size:12px}
 body>header nav{order:3;width:100%;justify-content:space-between;gap:8px}
 .contact-choice .messengers{gap:6px}
 .contact-footer{max-width:none;flex-basis:100%}
}
/* Container-query fallback also keeps short labels readable on small phones. */
@media(max-width:360px){
 .contact-choice .messenger-link,.contact-footer .contact-choice .messenger-link,.contact-footer .messenger-link{flex-direction:column;gap:6px;min-height:68px;padding:10px 3px;font-size:12px}
}

/* Compact one-row phone header. */
@media(max-width:760px){
 body>header{height:60px;min-height:60px;padding:8px 12px;gap:8px;flex-wrap:nowrap;justify-content:space-between}
 body>header>.logo{flex:1 1 auto;min-width:0;gap:7px}
 body>header>.logo>img{width:32px;height:32px}
 body>header .brand-wordmark{min-width:0;max-width:none}
 body>header .brand-wordmark b{font-size:15px;line-height:1.2;letter-spacing:-.4px;white-space:nowrap}
 body>header .brand-wordmark small{display:none}
 .header-messengers{flex:0 0 auto;margin:0;gap:4px}
 .header-messengers .messengers-label{display:none}
 .header-messengers .messenger-link{width:36px;min-height:36px;height:36px;flex:0 0 36px;padding:7px;border-radius:10px}
 .header-messengers .messenger-link svg{width:20px;height:20px}
}
@media(max-width:360px){
 body>header{padding-left:10px;padding-right:10px;gap:6px}
 body>header>.logo{gap:6px}
 body>header>.logo>img{width:28px;height:28px}
 body>header .brand-wordmark b{font-size:13px;letter-spacing:-.3px}
}
