/* widget2.css */
#subscribe-widget-2 {
  position: fixed;
  bottom: 28px;
  left: -280px; /* спрятан в бок слева */
  width: 300px;
  background: rgba(20,28,48,0.88);
  border-radius: 16px;
  padding: 22px;
  color: #fff;
  font-family: "Inter", sans-serif;
  z-index: 9998; /* чуть ниже первого */
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 18px rgba(85,130,255,0.25);
  transition: left 0.5s ease, transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
}

#subscribe-widget-2.visible {
  left: 0px;
}

#subscribe-widget-2 h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

#subscribe-widget-2 p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  opacity: 0.85;
}

#subscribe-widget-2 .sub-links a {
  display: block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #5580ff, #55d8ff);
  transition: background 2s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.6s ease;
}

#subscribe-widget-2 .sub-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(85,130,255,0.45);
  background: linear-gradient(135deg, #55d8ff, #5580ff);
  filter: drop-shadow(0 0 6px rgba(85,130,255,0.6));
}

/* дыхание виджета */
@keyframes breathe2 {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 18px rgba(85,130,255,0.25); }
  50% { transform: scale(1.03); box-shadow: 0 14px 32px rgba(0,0,0,0.5), 0 0 22px rgba(85,130,255,0.35); }
}

#subscribe-widget-2.breathe {
  animation: breathe2 4s ease-in-out infinite;
}

/* ручка для мобильных */
#subscribe-widget-2 .handle {
  position: absolute;
  top: 50%;
  right: -14px; /* виджет у тебя слева или справа? */
  width: 12px;
  height: 48px;
  background: linear-gradient(180deg, #5580ff, #55d8ff);
  border-radius: 0 10px 10px 0;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 9999;
}

/* мобильное устройство */
@media (hover: none) and (pointer: coarse) {
  #subscribe-widget-2 {
    left: -260px; /* чуть видна ручка слева */
  }
  #subscribe-widget-2.visible {
    left: 0;
  }
}

