.widget-block {
    position: fixed;
    bottom: 160px;
    right: 140px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.widget-list {
    position: absolute;
    bottom: 67px;
    right: 10px;
}

.widget-list .widget-btn {
    width: 50px;
    height: 50px;
    opacity: 0;
    transform: scale(0);
    transition-delay: 0ms;
    transition: all .3s;
}

.widget-list.active .widget-btn {
    opacity: 1;
    transform: scale(1);
}

.widget-list .widget-btn.widget-tg {
    top: -65px;
    transition-delay: 100ms;
}

.widget-btn {
    padding: 0;
    width: 70px;
    height: 70px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    right: 0;
}

.widget-max {
    background-image: url('https://img.danila-master.ru/uploads/articlesImages/site/icons/max.svg');
}

.widget-tg {
    background-image: url('https://img.danila-master.ru/uploads/articlesImages/site/icons/tg.svg');
    background-size: cover;
}

.widget-open,
.widget-open-mob {
    opacity: 1;
    transform: rotateY(0deg);
    background-image: url('https://img.danila-master.ru/uploads/articlesImages/site/icons/icon-call.svg');
    background-size: cover;
}

.widget-btn.active {
    opacity: 1;
    transform: rotateY(0deg);
}

.widget-btn.inactive {
    opacity: 0;
    transform: rotateY(-90deg);
}

@media screen and (max-width: 768px) {
    .widget-block {
        right: 20px;
        bottom: 85px;
    }

    .widget-btn {
        width: 65px;
        height: 65px;
    }
}