.artman-fab{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:9997;
    display:flex;
    flex-direction:column;
    align-items:center;
    direction:rtl;
    font-family:inherit;
}

.artman-fab__items{
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    gap:11px;
    margin-bottom:12px;
    pointer-events:none;
}

.artman-fab__item{
    --artman-fab-bg:#1e212b;

    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:50%;
    background:var(--artman-fab-bg);
    color:#fff;
    text-decoration:none;
    box-shadow:
        0 8px 24px rgba(15,20,32,.16),
        0 2px 5px rgba(15,20,32,.10);
    opacity:0;
    transform:
        translateY(14px)
        scale(.72);
    transition:
        opacity .2s ease,
        transform .24s ease,
        box-shadow .2s ease;
    transition-delay:0s;
}

.artman-fab.is-open .artman-fab__items{
    pointer-events:auto;
}

.artman-fab.is-open .artman-fab__item{
    opacity:1;
    transform:
        translateY(0)
        scale(1);
    transition-delay:
        calc(var(--artman-fab-index) * 45ms);
}

.artman-fab__item:hover,
.artman-fab__item:focus-visible{
    transform:
        translateY(-2px)
        scale(1.045);
    color:#fff;
    box-shadow:
        0 12px 30px rgba(15,20,32,.22),
        0 3px 8px rgba(15,20,32,.12);
}

.artman-fab__item--instagram{
    --artman-fab-bg:#d62976;
}

.artman-fab__item--telegram{
    --artman-fab-bg:#229ed9;
}

.artman-fab__item--whatsapp{
    --artman-fab-bg:#25d366;
}

.artman-fab__item--phone{
    --artman-fab-bg:#004fff;
}

.artman-fab__icon{
    width:23px;
    height:23px;
    display:grid;
    place-items:center;
}

.artman-fab__icon svg{
    width:23px;
    height:23px;
    overflow:visible;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.artman-fab__item--telegram
.artman-fab__icon svg{
    fill:currentColor;
    stroke:currentColor;
    stroke-width:1;
}

.artman-fab__icon img{
    display:block;
    width:25px;
    height:25px;
    object-fit:contain;
    border-radius:5px;
}

.artman-fab__label{
    position:absolute;
    right:59px;
    top:50%;
    transform:
        translateY(-50%)
        translateX(5px);
    white-space:nowrap;
    padding:7px 10px;
    border-radius:8px;
    background:#1e212b;
    color:#fff;
    font-size:12px;
    font-weight:700;
    line-height:1.2;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    box-shadow:0 5px 15px rgba(15,20,32,.14);
    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}

.artman-fab__item:hover
.artman-fab__label,
.artman-fab__item:focus-visible
.artman-fab__label{
    opacity:1;
    visibility:visible;
    transform:
        translateY(-50%)
        translateX(0);
}

.artman-fab__toggle{
    position:relative;
    display:block;
    width:58px;
    height:58px;
    flex:0 0 58px;
    padding:0;
    border:0;
    border-radius:50%;
    appearance:none;
    cursor:pointer;
    background:#004fff;
    color:#fff;
    box-shadow:
        0 11px 30px rgba(0,79,255,.30),
        0 3px 8px rgba(15,20,32,.18);
    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.artman-fab__toggle:hover,
.artman-fab__toggle:focus-visible{
    background:#003fd0;
    transform:translateY(-2px);
    box-shadow:
        0 14px 34px rgba(0,79,255,.35),
        0 4px 10px rgba(15,20,32,.18);
}

.artman-fab__toggle span{
    position:absolute;
    top:50%;
    left:50%;
    width:22px;
    height:2.5px;
    border-radius:99px;
    background:currentColor;
    transform:
        translate(-50%,-50%);
    transition:transform .22s ease;
}

.artman-fab__toggle span:last-child{
    transform:
        translate(-50%,-50%)
        rotate(90deg);
}

.artman-fab.is-open
.artman-fab__toggle span:first-child{
    transform:
        translate(-50%,-50%)
        rotate(45deg);
}

.artman-fab.is-open
.artman-fab__toggle span:last-child{
    transform:
        translate(-50%,-50%)
        rotate(-45deg);
}


@media(max-width:767px){

    .artman-fab{
        right:16px;
        bottom:
            max(
                18px,
                env(safe-area-inset-bottom)
            );
    }

    .artman-fab__toggle{
        width:54px;
        height:54px;
        flex-basis:54px;
    }

    .artman-fab__item{
        width:46px;
        height:46px;
        flex-basis:46px;
    }

    .artman-fab__label{
        display:none;
    }

}


@media(prefers-reduced-motion:reduce){

    .artman-fab *,
    .artman-fab *::before,
    .artman-fab *::after{
        transition:none!important;
    }

}
