/* Кнопки связи: компактный столбик в правом нижнем углу, появляется после прокрутки */
.cw {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .45s cubic-bezier(.22, .61, .36, 1), transform .45s cubic-bezier(.22, .61, .36, 1);
}
.cw.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.cw-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e6edf3;
  color: #218dcc;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(20, 50, 80, .14);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cw-btn:hover { transform: translateX(-3px); box-shadow: 0 6px 18px rgba(20, 50, 80, .2); color: #fff; border-color: transparent; }
.cw-call:hover { background: #218dcc; }
.cw-wa { color: #1fa855; }
.cw-wa:hover { background: #1fa855; }
.cw-tg { color: #229ed9; }
.cw-tg:hover { background: #229ed9; }
.cw-mail { color: #6c4fd6; }
.cw-mail:hover { background: #6c4fd6; }

/* подпись при наведении (только на устройствах с мышью) */
@media (hover: hover) {
  .cw-btn::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    padding: 6px 10px;
    border-radius: 8px;
    background: #1c2733;
    color: #fff;
    font: 600 12px/1 'Open Sans', Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    transform: translate(6px, -50%);
    pointer-events: none;
    transition: opacity .25s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
  }
  .cw-btn:hover::after { opacity: 1; transform: translate(0, -50%); }
}

@media (max-width: 480px) {
  .cw { right: 12px; bottom: 12px; gap: 8px; }
  .cw-btn { width: 40px; height: 40px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw, .cw * { transition-duration: .01ms !important; }
}
