/* v66: direct messaging and a compact, aligned footer brand block. */
.footer-reference .footer-reference-brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:start;min-width:0}
.footer-reference-brand>a{display:block;width:210px;max-width:100%;line-height:0}
.footer-reference .footer-reference-brand .footer-logo{width:100%;height:auto;margin:0}
.footer-reference .footer-reference-brand p{max-width:230px;margin:0;font-size:15px;line-height:1.5;color:#536678;text-wrap:balance}
.footer-reference .footer-reference-brand .footer-socials{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 0}
.footer-reference .footer-socials a{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:44px;min-height:44px;padding:0 12px;border-radius:12px;box-sizing:border-box;font-size:13px;line-height:1.2;white-space:nowrap;text-decoration:none}
.footer-reference .footer-socials .footer-vk{color:#0863b8;background:#eef5ff}
.footer-reference .footer-socials .footer-vk svg{width:22px;height:22px;fill:currentColor}
.footer-reference .footer-socials .footer-max{color:#243253;background:#f1efff}
.footer-max img{width:26px;height:26px}
.max-widget{position:fixed;right:24px;bottom:24px;z-index:24;display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 20px 10px 10px;border:1px solid #deddf3;border-radius:18px;box-shadow:0 6px 24px #26375b20;background:#fff;color:#162b42;text-decoration:none;font-family:inherit;font-size:15px;font-weight:600;line-height:1.3;box-sizing:border-box}
.max-widget img{width:44px;height:44px;flex:none}
.max-widget span{display:flex;flex-direction:column;gap:3px}
.max-widget small{font-size:12px;font-weight:400;color:#59657c}
.max-widget:hover{border-color:#7567d6;background:#faf9ff}
.max-widget:focus-visible,.footer-socials a:focus-visible,.mobile-dock .mobile-max:focus-visible{outline:3px solid #4c3fb7;outline-offset:4px}
body:has(dialog[open]) .max-widget{display:none}
.mobile-dock .mobile-max img{width:26px;height:26px;object-fit:contain;flex:none}
@media(max-width:760px){.max-widget{display:none}.footer-reference .footer-reference-brand{gap:10px}.footer-reference-brand>a{width:200px}.footer-reference .footer-reference-brand p{max-width:none}.footer-reference .footer-socials a{font-size:13px}}
