body {
  --scrollbar-width: calc(100vw - 100%);
}

.social-popup {
  display: block;
  position: fixed;
  z-index: 20;
  left: auto;
  right: calc((100vw - var(--scrollbar-width) - 1440px) / 2 + 32px);
  bottom: 100px;
  border-radius: 0;
  padding: 40px;
  width: 762px;
  height: 280px;
  border: none;
  margin: 0;
  box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.5);
  background: #3f69ff url(../images/social-banner.png) no-repeat right 8px /
    contain;
  background: #3f69ff url(../images/social-banner.webp) no-repeat right 8px /
    contain;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.125s linear, opacity 0.125s linear;
}

.social-popup[open] {
  visibility: visible;
  opacity: 1;
}

.social-popup__data-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.social-popup__call {
  color: #ffffff;
  font-size: 36px;
  font-weight: 500;
  line-height: 110%;
  margin: 0;
}

.social-popup__links {
  display: flex;
  gap: 10px;
}

.social-popup__link {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  width: 66px;
  height: 39px;
  padding: 14px 20px;
  background-color: #f4f4f4;
}

.social-popup__close-button {
  position: absolute;
  display: flex;
  background-color: transparent;
  bottom: calc(100% + 10px);
  border: none;
  right: 0;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .social-popup {
    right: 32px;
    bottom: 60px;
    padding: 20px;
    width: 464px;
    height: 158px;
    background-position: calc(100% - 17px) 10px;
    background-size: 176px 136px;
  }

  .social-popup__call {
    font-size: 22px;
  }

  .social-popup__link {
    width: 63px;
    height: 30px;
  }

  .social-popup__close-button {
    bottom: calc(100% + 8px);
  }

  .social-popup__close-button svg {
    width: 32px;
    height: 31px;
  }
}

@media (max-width: 767px) {
  .social-popup {
    left: 32px;
    right: 32px;
    width: auto;
    height: 384px;
    background-position: center 20px;
    background-size: 311px 237px;
  }

  .social-popup__data-wrapper {
    justify-content: end;
    align-items: center;
    gap: 16px;
  }

  .social-popup__call {
    text-align: center;
  }

  .social-popup__link {
    width: 64px;
    height: 32px;
    padding: 9px 20px;
  }
}

@media (max-width: 440px) {
  .social-popup {
    left: 16px;
    right: 16px;
  }
}
