.social-contact {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(96px, 13vw, 122px);
  z-index: 58;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.social-contact__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(332px, calc(100vw - 28px));
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(13, 40, 54, 0.08);
  box-shadow: 0 20px 46px rgba(10, 18, 30, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.26s ease;
}

.social-contact.is-open .social-contact__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-contact__panel-head {
  min-height: 42px;
  padding: 10px 14px 10px 18px;
  background: #0c2b3b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-contact__panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.social-contact__panel-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.social-contact__panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.social-contact__panel-close svg,
.social-contact__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-contact__toggle svg {
  width: 26px;
  height: 26px;
}

.social-contact__list {
  background: #ffffff;
}

.social-contact__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
  color: #17212b;
  background: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-contact__item + .social-contact__item {
  border-top: 1px solid rgba(12, 43, 59, 0.08);
}

.social-contact__item:hover {
  background: #f7fafc;
}

.social-contact__item-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.social-contact__icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-contact__icon-fallback {
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.social-contact__item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.social-contact__item-copy strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #18212b;
}

.social-contact__item-copy span {
  font-size: 12px;
  line-height: 1.35;
  color: #7a828a;
  word-break: break-word;
}

.social-contact__toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #123444 0%, #0c2b3b 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 18px 36px rgba(10, 18, 30, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.social-contact__toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(10, 18, 30, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.social-contact.is-open .social-contact__toggle svg {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .social-contact {
    right: 14px;
    bottom: 88px;
  }

  .social-contact__panel {
    bottom: calc(100% + 10px);
    width: min(320px, calc(100vw - 20px));
  }

  .social-contact__toggle {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 374px) {
  .social-contact {
    right: 10px;
    bottom: 78px;
  }

  .social-contact__panel {
    width: calc(100vw - 20px);
    right: -10px;
  }

  .social-contact__toggle {
    width: 46px;
    height: 46px;
  }

  .social-contact__toggle svg {
    width: 22px;
    height: 22px;
  }

  .social-contact__item {
    padding: 8px 12px;
  }

  .social-contact__item-icon {
    width: 36px;
    height: 36px;
  }

  .social-contact__item-copy strong {
    font-size: 13px;
  }
}
