.floating-contact {
    position: fixed;
    right: 10px;
    bottom: 80px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-contact.floating-contact--left {
    left: 10px;
    right: auto;
    align-items: flex-start;
}

.floating-contact * {
    box-sizing: border-box;
}

.floating-contact .contact-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 54px;
    height: 54px;
    padding: 0 17px;
    overflow: hidden;
    white-space: nowrap;
    color: #222;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: width 0.35s ease, transform 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.floating-contact .contact-item:hover {
    width: 220px;
    transform: translateX(-8px);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.floating-contact .contact-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: block;
}

.floating-contact .contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.floating-contact .contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s ease 0.08s;
}

.floating-contact .contact-item:hover .contact-text {
    opacity: 1;
    transform: translateX(0);
}

.floating-contact .contact-title {
    font-size: 14px;
    font-weight: 700;
}

.floating-contact .contact-subtitle {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.86;
}

.floating-contact .contact-item:hover {
    background: var(--usmaxim-brand, #222);
}

.floating-contact .hotline {
    animation: usmaximHotlinePulse 1.8s infinite;
}

@keyframes usmaximHotlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.32), 0 14px 35px rgba(0, 0, 0, 0.14);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(0, 166, 81, 0), 0 14px 35px rgba(0, 0, 0, 0.14);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 166, 81, 0), 0 14px 35px rgba(0, 0, 0, 0.14);
    }
}

@media (max-width: 768px) {
    .floating-contact {
        left: 10px;
        right: 10px;
        bottom: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 9px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .floating-contact.floating-contact--left {
        left: 10px;
        right: 10px;
        align-items: center;
    }

    .floating-contact .contact-item {
        width: 48px;
        height: 48px;
        min-width: 48px;
        padding: 0;
        justify-content: center;
        gap: 0;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        animation: none;
    }

    .floating-contact .contact-item:hover,
    .floating-contact .contact-item:focus {
        width: 48px;
        transform: none;
        color: #fff;
    }

    .floating-contact .contact-text {
        display: none;
    }

    .floating-contact .contact-icon {
        width: 19px;
        height: 19px;
        min-width: 19px;
    }

    .floating-contact .hotline {
        animation: usmaximMobileHotlinePulse 1.8s infinite;
    }

    .floating-contact .contact-item {
        color: var(--usmaxim-brand, #222);
    }

    .floating-contact .contact-item:hover,
    .floating-contact .contact-item:focus {
        background: var(--usmaxim-brand, #222);
    }

    @keyframes usmaximMobileHotlinePulse {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 166, 81, 0.34), 0 8px 18px rgba(0, 0, 0, 0.08);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 166, 81, 0), 0 8px 18px rgba(0, 0, 0, 0.08);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 166, 81, 0), 0 8px 18px rgba(0, 0, 0, 0.08);
        }
    }
}

@media (max-width: 380px) {
    .floating-contact {
        gap: 6px;
        padding: 8px;
    }

    .floating-contact .contact-item {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .floating-contact .contact-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}
