/* -------- Общие стили виджета -------- */
.widget-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------- Виджет-контейнер -------- */
.widget-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -------- Кнопка-трубка -------- */
.phone-button {
    width: 72px;
    height: 72px;
    background: #25a769;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 167, 105, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    outline: none;
    position: relative;
    z-index: 2;
}

.phone-button i {
    color: #fff;
    font-size: 34px;
    transition: transform 0.2s;
}

.phone-button:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 32px rgba(37, 167, 105, 0.5);
}

.phone-button:active i {
    transform: rotate(12deg) scale(0.94);
}

/* -------- Выпадающее меню -------- */
.contact-menu {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #ffffff;
    border-radius: 28px;
    padding: 12px 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom center;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

.contact-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* -------- Пункты меню -------- */
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 22px 10px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #1e1e2a;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: background 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.menu-item i {
    width: 24px;
    font-size: 20px;
    text-align: center;
    flex-shrink: 0;
}

.menu-item span {
    line-height: 1.2;
}

.menu-item.telegram i { color: #0088cc; }
.menu-item.whatsapp i { color: #25d366; }
.menu-item.call i { color: #34b7f1; }

.menu-item:hover {
    background: #f2f6fc;
}

.menu-item.telegram:hover { background: #e6f3fa; }
.menu-item.whatsapp:hover { background: #e6f9ee; }
.menu-item.call:hover { background: #e6f4fc; }

/* -------- Адаптив -------- */
@media (max-width: 480px) {
    .phone-button {
        width: 64px;
        height: 64px;
    }
    .phone-button i {
        font-size: 28px;
    }
    .contact-menu {
        min-width: 170px;
        padding: 10px 4px;
        bottom: 80px;
    }
    .menu-item {
        padding: 8px 16px 8px 14px;
        font-size: 14px;
        gap: 10px;
    }
    .menu-item i {
        font-size: 18px;
        width: 20px;
    }
}