.site-assistant {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1040;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.site-assistant-avatar {
    width: 82px;
    height: 104px;
    border: 0;
    padding: 0;
    background: transparent;
    position: relative;
    pointer-events: auto;
    cursor: help;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.site-assistant-head {
    position: absolute;
    left: 11px;
    top: 0;
    width: 60px;
    height: 58px;
    border-radius: 24px 24px 20px 20px;
    background: linear-gradient(145deg, #7aa7ff, #4268d9);
    box-shadow: inset 0 -8px 0 rgba(15, 38, 116, 0.28);
}

.site-assistant-head::before,
.site-assistant-head::after {
    content: "";
    position: absolute;
    top: 19px;
    width: 17px;
    height: 21px;
    border-radius: 50%;
    background: #537be8;
}

.site-assistant-head::before {
    left: -9px;
}

.site-assistant-head::after {
    right: -9px;
}

.site-assistant-screen {
    position: absolute;
    left: 12px;
    top: 17px;
    width: 36px;
    height: 23px;
    border-radius: 8px;
    background: #07111f;
    border: 2px solid rgba(67, 214, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-assistant-eye {
    width: 7px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    border-bottom: 2px solid #43d6ff;
}

.site-assistant-body {
    position: absolute;
    left: 18px;
    top: 54px;
    width: 46px;
    height: 43px;
    border-radius: 17px 17px 14px 14px;
    background: linear-gradient(145deg, #628bff, #365bd6);
    box-shadow: inset 0 -7px 0 rgba(15, 38, 116, 0.24);
}

.site-assistant-body::before,
.site-assistant-body::after {
    content: "";
    position: absolute;
    top: 11px;
    width: 13px;
    height: 30px;
    border-radius: 999px;
    background: #416be0;
}

.site-assistant-body::before {
    left: -11px;
    transform: rotate(23deg);
}

.site-assistant-body::after {
    right: -11px;
    transform: rotate(-23deg);
}

.site-assistant-mark {
    position: absolute;
    left: 50%;
    top: 11px;
    transform: translateX(-50%);
    width: 21px;
    height: 17px;
    border-radius: 7px;
    background: rgba(7, 17, 31, 0.45);
    color: #43d6ff;
    font-family: "Rajdhani", sans-serif;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}

.site-assistant-bubble {
    max-width: 285px;
    min-width: 220px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(7, 17, 31, 0.95);
    border: 1px solid rgba(67, 214, 255, 0.32);
    color: #d9e2ec;
    font-size: 0.88rem;
    line-height: 1.35;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-assistant-bubble::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 28px;
    width: 13px;
    height: 13px;
    background: rgba(7, 17, 31, 0.95);
    border-right: 1px solid rgba(67, 214, 255, 0.32);
    border-bottom: 1px solid rgba(67, 214, 255, 0.32);
    transform: rotate(-45deg);
}

.site-assistant:hover .site-assistant-bubble,
.site-assistant.is-open .site-assistant-bubble {
    opacity: 1;
    transform: translateY(0);
}

.site-assistant:hover .site-assistant-avatar {
    animation: site-assistant-bob 1.1s ease-in-out infinite;
}

@keyframes site-assistant-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 767px) {
    .site-assistant {
        right: 14px;
        bottom: 16px;
    }

    .site-assistant-avatar {
        width: 66px;
        height: 84px;
        transform: scale(0.82);
        transform-origin: bottom right;
    }

    .site-assistant-bubble {
        max-width: min(250px, calc(100vw - 104px));
        min-width: 0;
        font-size: 0.8rem;
    }
}
