/* Contact FAB — floating contact / social / bot panel */

.contact-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-fab__btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #3C65F5 0%, #2563EB 100%);
    box-shadow: 0 8px 28px rgb(60 101 245 / .4);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-fab__btn i {
    font-size: 20px;
    transition: transform .25s ease;
}

.contact-fab:hover .contact-fab__btn,
.contact-fab.is-open .contact-fab__btn {
    transform: scale(1.06);
    box-shadow: 0 12px 36px rgb(60 101 245 / .5);
}

.contact-fab.is-open .contact-fab__btn i {
    transform: rotate(15deg);
}

.contact-fab__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(340px, calc(100vw - 32px));
    background: #fff;
    border: 2px solid #E0E9FF;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgb(60 101 245 / .2);
    padding: 18px 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
}

.contact-fab:hover .contact-fab__panel,
.contact-fab.is-open .contact-fab__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.contact-fab__panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 18px;
}

.contact-fab__panel::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-right: 2px solid #E0E9FF;
    border-bottom: 2px solid #E0E9FF;
    transform: rotate(45deg);
}

.contact-fab__title {
    font-size: 15px;
    font-weight: 700;
    color: #05264c;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-fab__text {
    font-size: 13px;
    line-height: 1.55;
    color: #66789C;
    margin: 0 0 10px;
}

.contact-fab__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.contact-fab__actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
}

.contact-fab__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #E0E9FF 20%, #E0E9FF 80%, transparent);
    margin: 16px 0 14px;
}

.contact-fab__follow-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #66789C;
    margin-bottom: 10px;
}

.contact-fab__socials {
    display: flex;
    gap: 10px;
}

.contact-fab__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #4F5E64;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.contact-fab__social:hover {
    color: #fff;
    transform: translateY(-2px);
}

.contact-fab__social.telegram:hover {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    box-shadow: 0 8px 20px rgb(0 136 204 / .35);
}

.contact-fab__social.twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    box-shadow: 0 8px 20px rgb(29 161 242 / .35);
}

.contact-fab__social.linkedin:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    box-shadow: 0 8px 20px rgb(0 119 181 / .35);
}

.contact-fab__bot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f9ff 100%);
    border: 1px solid #cde8f7;
}

.contact-fab__bot-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-fab__bot-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    color: #0088cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgb(0 136 204 / .15);
}

.contact-fab__bot-text {
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    margin: 0;
}

.contact-fab__bot-free {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.contact-fab__bot-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    background: #0088cc;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}

.contact-fab__bot-cta:hover {
    background: #0077b3;
    color: #fff !important;
}

@media (max-width: 576px) {
    .contact-fab {
        right: 16px;
        bottom: 16px;
    }

    .contact-fab__btn {
        width: 52px;
        height: 52px;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* Keep FAB above hub quick-nav on tablet/mobile */
@media (max-width: 1099px) {
    body:has(.hub-quicknav-toggle) .contact-fab {
        bottom: 84px;
    }
}
