/* ===== Единый стандарт иконок мессенджеров: шапка + подвал (02.12.2026) =====
   Референс: белый круг 40px, тонкая рамка, моно-иконка 20px, MAX — оригинальная иконка (моно). */
.rk-topbar__socials,
#rk-footer-new .rkft-social{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}

.rk-topbar__socials a,
#rk-footer-new .rkft-social a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;
  flex:0 0 40px!important;padding:0!important;border-radius:50%!important;
  border:1px solid #E4E8EB!important;background:#fff!important;color:#6B7075!important;
  box-shadow:none!important;text-decoration:none!important;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}

.rk-topbar__socials a svg,
#rk-footer-new .rkft-social a svg{
  width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;
  display:block!important;fill:currentColor!important;color:inherit!important}
.rk-topbar__socials a svg [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]),
#rk-footer-new .rkft-social a svg [fill]:not([fill="none"]):not([fill="#fff"]):not([fill="#ffffff"]):not([fill="white"]){fill:currentColor!important}

.rk-topbar__socials a .rk-mx-icon,
#rk-footer-new .rkft-social a .rk-mx-icon{
  display:block!important;width:20px!important;height:20px!important;min-width:20px!important;
  background:url('/assets/icons/max-mono-icon-20261201.webp') center/contain no-repeat!important}

.rk-topbar__socials a.rk-messenger:hover,
.rk-topbar__socials a.rk-messenger:focus-visible,
#rk-footer-new .rkft-social a:hover,
#rk-footer-new .rkft-social a:focus-visible{
  background:#F4F5F6!important;border-color:#C3C8CD!important;color:#17191B!important;transform:translateY(-1px)}

/* старые правила для подвала/шапки не должны перебивать стандарт */
.rk-footer .rk-footer__social a,
.rk-footer__social a{/* устаревший скрытый подвал */}
#rk-footer-new .rkft-social a::before,#rk-footer-new .rkft-social a::after{content:none!important}

@media(max-width:760px){
  .rk-topbar__socials a,
  #rk-footer-new .rkft-social a{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;flex-basis:36px!important}
  .rk-topbar__socials a svg,
  #rk-footer-new .rkft-social a svg,
  .rk-topbar__socials a .rk-mx-icon,
  #rk-footer-new .rkft-social a .rk-mx-icon{width:18px!important;height:18px!important;min-width:18px!important}
}

/* Перебиваем старый home-вариант «голых» иконок: везде стандарт — круг 40px */
html body[data-page="home"] .rk-topbar__socials{gap:8px!important;margin-left:6px!important}
html body[data-page="home"] .rk-topbar__socials a{
  width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;flex:0 0 40px!important;
  border:1px solid #E4E8EB!important;border-radius:50%!important;background:#fff!important;color:#6B7075!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;box-shadow:none!important}
html body[data-page="home"] .rk-topbar__socials a svg{
  width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
  display:block!important;color:inherit!important;filter:grayscale(1) brightness(.55)!important;opacity:1!important}
html body[data-page="home"] .rk-topbar__socials a .rk-mx-icon{
  width:20px!important;height:20px!important;min-width:20px!important;
  background:url('/assets/icons/max-mono-icon-20261201.webp') center/contain no-repeat!important;filter:none!important}
html body[data-page="home"] .rk-topbar__socials a:hover{
  background:#F4F5F6!important;border-color:#C3C8CD!important;color:#17191B!important}
html body[data-page="home"] .rk-topbar__socials a:hover svg{filter:none!important;color:#17191B!important}
html body[data-page="home"] .rk-topbar__socials a[aria-label="MAX"] svg{filter:none!important}
@media(max-width:760px){
  html body[data-page="home"] .rk-topbar__socials a{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;flex-basis:36px!important}
}
