.social {
  display: flex;
  align-items: center;
  position: relative;
}
.social__more {
  margin: 0;
}
.social__items {
  display: flex;
  flex-wrap: wrap;
  margin: -3px -8px;
  padding: 0;
}
.social__item:before,
.main ul.social__items li:before {
  display: none;
}
.social--picture-image .social__items {
  margin: -3px;
}
.social__item {
  padding: 3px 8px;
  margin: 0;
  display: flex;
  align-items: center;
}
.social__item--image {
  padding: 3px;
}
.social__link {
  display: flex;
}
.social__link .svg {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social__link svg * {
  fill: #333;
  fill: var(--white_text_black);
  opacity: 0.5;
  /* transition: opacity 0.1s ease-in-out; */
}
.social__link:hover svg * {
  opacity: 1;
}

.social__more-dots {
  display: flex;
  margin: 0 15px;
  padding-bottom: 7px;
  letter-spacing: 1.8px;
  cursor: pointer;
}
.social__more-dots:hover ~ .social__more,
.social__more:hover {
  opacity: 1;
  visibility: visible;
}
.social__more {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  position: absolute;
  right: -2px;
  top: 100%;
  background: #fff;
  background: var(--card_bg_black);
  -webkit-box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin-top: 9px;
}
.social__more .social__item {
  padding: 10px 15px;
}

html:not(.mobile) .social__item.hide_on_desktop {
  display: none;
}

html.mobile .social__item.hide_on_mobile {
  display: none;
}
.social-light .social__items--size-large.social__items--type-icon .social__item.social__item--image.max a:not(:hover) {
    background-image: url(/bitrix/templates/aspro-allcorp3medc/images/svg/max-grey.svg);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: center;
    background-position-y: center;
	opacity: 1;
	background-color: inherit;
}
.social__items--size-large .social__item.social__item--image.max a {
    background-image: url(/bitrix/templates/aspro-allcorp3medc/images/svg/max-white.svg);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: center;
    background-position-y: center;
	background-color: #404be9;
}

.social.social--picture-svg  .social__item.social__item--image.max a:not(:hover) {
	background-image: url(/bitrix/templates/aspro-allcorp3medc/images/svg/max-grey.svg);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: center;
    background-position-y: center;
}
.social.social--picture-svg .social__item.social__item--image.max a {
	background-image: url(/bitrix/templates/aspro-allcorp3medc/images/svg/max-grey.svg);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: center;
    background-position-y: center;
}
.social.social--picture-svg .social__item.social__item--image.max a:hover {
	filter: brightness(0) saturate(100%) invert(67%) sepia(30%) saturate(447%) 
            hue-rotate(141deg) brightness(91%) contrast(91%);
}
.phones__dropdown-item .social__item.social__item--image.max a:not(:hover), .contacts__col .social__item.social__item--image.max a:not(:hover) {
	background-image: url(/bitrix/templates/aspro-allcorp3medc/images/svg/max-white.svg);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: center;
    background-position-y: center;
	background-color: #404be9;
}
.phones__dropdown-item .social__item.social__item--image.max a:hover, .contacts__col .social__item.social__item--image.max :hover {
	background-image: url(/bitrix/templates/aspro-allcorp3medc/images/svg/max-white.svg);
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-x: center;
    background-position-y: center;
	background-color: #404be9;
}
