/* Floating Messenger Widget */
.floating-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
.floating-widget-buttons {
    display: none;
    flex-direction: column;
    gap: 0.625rem;
}
.floating-widget.active .floating-widget-buttons {
    display: flex;
}
.floating-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.floating-btn--telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}
.floating-btn--max {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}
.floating-btn svg, .floating-btn img {
    width: 1.5rem;
    height: 1.5rem;
}
.floating-btn-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.floating-btn:hover .floating-btn-tooltip {
    opacity: 1;
    visibility: visible;
}
.floating-widget-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4FBAD5 0%, #3a9ab8 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 186, 213, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.floating-widget-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(79, 186, 213, 0.5);
}
.floating-widget-toggle .icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.floating-widget-toggle .icon-open {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.floating-widget.active .floating-widget-toggle .icon-open {
    opacity: 0;
    transform: rotate(90deg);
}
.floating-widget.active .floating-widget-toggle .icon-close {
    opacity: 1;
    transform: rotate(0);
}
.floating-widget-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}
.floating-widget.active .floating-widget-toggle::after {
    animation: none;
    opacity: 0;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Footer Social */
.legal-footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}
.legal-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
}
.legal-footer__social a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Mobile */
@media (max-width: 767.98px) {
    .floating-widget { bottom: 1rem; right: 1rem; }
    .floating-btn { width: 3rem; height: 3rem; }
    .floating-btn svg, .floating-btn img { width: 1.375rem; height: 1.375rem; }
    .floating-widget-toggle { width: 3.5rem; height: 3.5rem; }
    .floating-btn-tooltip { display: none; }
}
