/* ============================================================
   Smilora — плаваюча кнопка зв'язку (FAB) з випадаючим меню
   ============================================================ */

.fab-contact {
    position: fixed;
    bottom: 60px;
    right: 80px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    font-family: inherit;
}

.fab-contact__menu {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.fab-contact.is-open .fab-contact__menu {
    pointer-events: auto;
}

.fab-contact__action {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(58, 68, 152, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.72);
    transition:
        opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.32s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fab-contact.is-open .fab-contact__action {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-contact.is-open .fab-contact__action--phone {
    transition-delay: 0.04s;
}

.fab-contact.is-open .fab-contact__action--telegram {
    transition-delay: 0.1s;
}

.fab-contact.is-open .fab-contact__action--lead {
    transition-delay: 0.16s;
}

.fab-contact__action--phone {
    background: #1e2138;
}

.fab-contact__action--phone:hover {
    background: #000;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.fab-contact__action--telegram {
    background: #229ed9;
}

.fab-contact__action--telegram:hover {
    background: #1a8bc4;
    box-shadow: 0 10px 26px rgba(34, 158, 217, 0.38);
}

.fab-contact__action--lead {
    background: var(--primary--color);
}

.fab-contact__action--lead:hover {
    background: var(--black--family--color2);
    box-shadow: 0 10px 26px rgba(58, 68, 152, 0.36);
}

.fab-contact__action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.fab-contact__main {
    position: relative;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background-color: var(--lavender--color);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(153, 153, 220, 0.45);
    transition: background-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-animation: spineer 2s infinite;
    animation: spineer 2s infinite;
}

.fab-contact__main:hover {
    transform: translateY(-4px);
}

.fab-contact.is-open .fab-contact__main {
    background-color: var(--primary--color);
    animation: none;
    transform: rotate(0deg);
}

.fab-contact__main-icon {
    width: 28px;
    height: 28px;
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fab-contact.is-open .fab-contact__main-icon {
    transform: rotate(90deg) scale(0.92);
}

.fab-contact__main-icon path,
.fab-contact__main-icon circle {
    fill: currentColor;
}

@media (max-width: 1440px) {
    .fab-contact {
        right: 30px;
    }
}

@media (max-width: 1199px) {
    .fab-contact {
        bottom: 72px;
    }

    .fab-contact__main {
        width: 60px;
        height: 60px;
    }

    .fab-contact__action {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .fab-contact {
        bottom: 74px;
        right: 30px;
    }

    .fab-contact__main {
        width: 55px;
        height: 55px;
    }

    .fab-contact__main-icon {
        width: 24px;
        height: 24px;
    }

    .fab-contact__action {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .fab-contact {
        bottom: 35px;
        right: 35px;
    }

    .fab-contact__main {
        width: 50px;
        height: 50px;
    }

    .fab-contact__action {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .fab-contact {
        bottom: 35px;
        right: 35px;
    }

    .fab-contact__main {
        width: 45px;
        height: 45px;
    }

    .fab-contact__main-icon {
        width: 22px;
        height: 22px;
    }

    .fab-contact__action {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab-contact__main,
    .fab-contact__action,
    .fab-contact__main-icon {
        animation: none;
        transition: none;
    }
}
