/* widget.css */
#subscribe-widget {
  position: fixed;
  bottom: 28px;
  right: -280px; /* спрятан в бок */
  width: 300px;
  background: rgba(15,22,38,0.88);
  border-radius: 16px;
  padding: 22px;
  color: #fff;
  font-family: "Inter", sans-serif;
  z-index: 9999;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 18px rgba(130,85,255,0.25);
  transition: right 0.5s ease, transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
}

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

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

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

#subscribe-widget .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, #8255ff, #ad5eff);
  transition: background 2s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.6s ease;
}

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

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

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

/* ручка для мобильных */
#subscribe-widget .handle {
  position: absolute;
  top: 50%;
  left: -14px;
  width: 12px;
  height: 48px;
  background: linear-gradient(180deg, #8255ff, #ad5eff);
  border-radius: 10px 0 0 10px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10000; /* на всякий случай выше остальных элементов */
}

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

