/* ------------------------------------------------------------------
   Виджет соцсетей (правый нижний угол).

   Перенесён с оригинала один в один: `/bitrix/css/aritin.social/
   social-static.css` + правила контейнера, которые на старом сайте
   лежали в отдельном <style> внутри шаблона. Своих значений не
   придумывали — иначе кружки «поплывут» относительно кнопки «наверх».
   ------------------------------------------------------------------ */

.social-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.social-main-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.social-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.social-main-btn.active {
  background: #7a7a7a;
  transform: rotate(45deg) scale(1.1);
}

.social-main-btn.active .social-icon {
  transform: rotate(135deg);
}

.social-items {
  position: absolute;
  bottom: 85px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  right: 0;
}

.social-items.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.social-item {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  animation: socialBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

.social-item:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-item:nth-child(1) { animation-delay: 0.1s; }
.social-item:nth-child(2) { animation-delay: 0.2s; }
.social-item:nth-child(3) { animation-delay: 0.3s; }
.social-item:nth-child(4) { animation-delay: 0.4s; }
.social-item:nth-child(5) { animation-delay: 0.5s; }
.social-item:nth-child(6) { animation-delay: 0.6s; }

.social-item:hover .social-icon {
  transform: scale(1.1);
}

.social-tooltip {
  position: absolute;
  right: 80px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.social-tooltip:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(0, 0, 0, 0.85);
}

.social-item:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-5px);
}

.social-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@keyframes socialSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes socialPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes socialBounceIn {
  0% { opacity: 0; transform: scale(0.3) translateY(20px); }
  50% { opacity: 1; transform: scale(1.05) translateY(-5px); }
  70% { transform: scale(0.95) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}

.social-main-btn.pulse {
  animation: socialPulse 2s infinite;
}

/* На телефоне виджет поднимается над нижней панелью магазина
   (`.shop-panel`, 55 px), иначе кнопки перекрывают друг друга. */
@media (max-width: 768px) {
  .social-widget {
    bottom: 122px;
    right: 10px;
  }

  .social-main-btn,
  .social-item {
    width: 65px;
    height: 65px;
  }

  .social-items {
    bottom: 80px;
  }
}
