/* ============================================
   AMAN FLOATING CONTACT MENU
============================================ */

.aman-floating-contact {
    --aman-green: #062b27;
    --aman-gold: #fdbd06;

    position: fixed;

    right: 30px;
    bottom: 30px;

    z-index: 9998;

    width: 60px;
    height: 60px;

    font-family: 'Montserrat', sans-serif;

    /* важно для drag */
    user-select: none;
}


/* ============================================
   MAIN BUTTON
============================================ */

.aman-floating-main {
    position: absolute;

    left: 0;
    bottom: 0;

    z-index: 10;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--aman-gold);

    color: var(--aman-green);

    cursor: grab;

    box-shadow:
        0 8px 25px rgba(0,0,0,.18),
        0 0 0 5px rgba(253,189,6,.10);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.aman-floating-main:hover {
    transform: scale(1.07);

    box-shadow:
        0 10px 30px rgba(0,0,0,.22),
        0 0 0 7px rgba(253,189,6,.12);
}


.aman-floating-main:active {
    cursor: grabbing;
}


/* MAIN ICON */

.aman-floating-open-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    line-height: 1;

    transition:
        opacity .25s ease,
        transform .25s ease;
}


.aman-floating-close-icon {
    position: absolute;

    font-size: 35px;
    line-height: 1;

    font-weight: 300;

    opacity: 0;

    transform: rotate(-90deg) scale(.5);

    transition:
        opacity .25s ease,
        transform .25s ease;
}


/* OPEN */

.aman-floating-contact.open
.aman-floating-main {

    background: var(--aman-green);

    color: #fff;
}


.aman-floating-contact.open
.aman-floating-open-icon {

    opacity: 0;

    transform: rotate(90deg) scale(.5);
}


.aman-floating-contact.open
.aman-floating-close-icon {

    opacity: 1;

    transform: rotate(0) scale(1);
}


/* ============================================
   CONTACT ITEMS
============================================ */

.aman-floating-items {
    position: absolute;

    left: 5px;
    bottom: 70px;

    width: 50px;

    display: flex;

    flex-direction: column-reverse;

    gap: 12px;

    pointer-events: none;
}


.aman-floating-item {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff !important;

    text-decoration: none !important;

    box-shadow:
        0 6px 18px rgba(0,0,0,.18);

    opacity: 0;

    transform:
        translateY(20px)
        scale(.5);

    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s ease,
        box-shadow .25s ease;
}


.aman-floating-item span {
    font-size: 20px;
}


/* OPEN ITEMS */

.aman-floating-contact.open
.aman-floating-items {

    pointer-events: auto;
}


.aman-floating-contact.open
.aman-floating-item {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


/* animation delays */

.aman-floating-contact.open
.aman-floating-item:nth-child(4) {
    transition-delay: .03s;
}

.aman-floating-contact.open
.aman-floating-item:nth-child(3) {
    transition-delay: .08s;
}

.aman-floating-contact.open
.aman-floating-item:nth-child(2) {
    transition-delay: .13s;
}

.aman-floating-contact.open
.aman-floating-item:nth-child(1) {
    transition-delay: .18s;
}


/* ============================================
   COLORS
============================================ */

.aman-floating-whatsapp {
    background: #25D366;
}


.aman-floating-telegram {
    background: #229ED9;
}


.aman-floating-wechat {
    background: #07C160;
}


.aman-floating-email {
    background: var(--aman-green);
}


/* HOVER */

.aman-floating-item:hover {
    transform: scale(1.10) !important;

    box-shadow:
        0 8px 22px rgba(0,0,0,.25);
}


/* ============================================
   MOBILE
============================================ */

@media (max-width: 767px) {

    .aman-floating-contact {
        right: 18px;
        bottom: 18px;

        width: 56px;
        height: 56px;
    }


    .aman-floating-main {
        width: 56px;
        height: 56px;
    }


    .aman-floating-items {
        left: 4px;

        bottom: 66px;

        width: 48px;

        gap: 10px;
    }


    .aman-floating-item {
        width: 48px;
        height: 48px;
    }

}