/* =============================================
   FLOATING PHONE BUTTON
   ============================================= */
.float-phone {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--darkest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  box-shadow: 0 6px 24px rgba(14,12,10,.35);
  transition: transform .25s ease, background .25s ease;
  cursor: pointer;
  animation: phonePulse 2.2s infinite;
}

.float-phone svg {
  width: 26px;
  height: 26px;
  color: var(--white);
  transition: transform .25s ease;
}

.float-phone:hover {
  transform: scale(1.08);
  background: var(--ash);
  animation: none;
}

.float-phone:hover svg {
  transform: rotate(-8deg);
}

/* Tooltip с номера (desktop) */
.float-phone-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--darkest);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 4px 16px rgba(14,12,10,.25);
}

.float-phone-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--darkest);
}

.float-phone:hover .float-phone-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pulse animation */
@keyframes phonePulse {
  0% {
    box-shadow: 0 6px 24px rgba(14,12,10,.35), 0 0 0 0 rgba(14,12,10,.4);
  }
  70% {
    box-shadow: 0 6px 24px rgba(14,12,10,.35), 0 0 0 16px rgba(14,12,10,0);
  }
  100% {
    box-shadow: 0 6px 24px rgba(14,12,10,.35), 0 0 0 0 rgba(14,12,10,0);
  }
}

/* Mobile — по-малък, без tooltip */
@media (max-width: 768px) {
  .float-phone {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .float-phone-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-phone {
    animation: none;
  }
}
