/* Плавающая кнопка «Обратный звонок» — на всех страницах */
@keyframes callback-fab-pulse {
    0%, 100% {
        box-shadow:
            0 12px 36px rgba(26, 26, 26, 0.26),
            0 0 0 0 rgba(184, 149, 107, 0.4);
    }
    50% {
        box-shadow:
            0 16px 42px rgba(26, 26, 26, 0.3),
            0 0 0 14px rgba(184, 149, 107, 0);
    }
}

.callback-fab {
    position: fixed;
    right: clamp(1.35rem, 4vw, 2.15rem);
    bottom: clamp(1.35rem, 4vw, 2.15rem);
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #b8956b;
    color: #fff;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 36px rgba(26, 26, 26, 0.26);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    animation: callback-fab-pulse 2.6s ease-in-out infinite;
}

.callback-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    animation: none;
}

.callback-fab:hover {
    background: #a6845d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(26, 26, 26, 0.32);
    animation: none;
}

.callback-fab:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.callback-fab-icon {
    flex-shrink: 0;
    width: 1.3rem;
    height: 1.3rem;
}

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

/* Пока виден баннер cookie — FAB не перекрывает кнопки согласия */
body.cookie-consent-visible .callback-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    animation: none;
}

@media (max-width: 575.98px) {
    .callback-fab {
        width: 3.75rem;
        height: 3.75rem;
        padding: 0;
        border-radius: 50%;
    }

    .callback-fab-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
