/* Floating contact-widget styles extracted from index.html. */
.fab-wrapper { position: fixed; bottom: 30px; left: 30px; z-index: 9998; display: flex; flex-direction: column; align-items: center; gap: 15px; }
    .fab-menu { display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.8); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; }
    .fab-wrapper.active .fab-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
    .fab-main { width: 60px; height: 60px; background-color: var(--gold); color: var(--dark); border: none; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4); transition: transform 0.3s, background-color 0.3s; animation: pulseGold 2s infinite; }
    .fab-wrapper.active .fab-main { background-color: var(--dark2); color: var(--gold); border: 2px solid var(--gold); animation: none; transform: rotate(90deg); }
    .fab-wrapper.active .fab-icon-chat { display: none; }
    .fab-wrapper.active .fab-icon-close { display: block !important; }
    .fab-item { width: 48px; height: 48px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; position: relative; }
    .fab-item:hover { transform: scale(1.1); }
    .fab-phone { background-color: #4CAF50; }
    .fab-max { background: linear-gradient(135deg, #4cf, #53e, #93d); }
    .fab-tg { background-color: #2AABEE; }
    .fab-form { background-color: var(--gold); color: var(--dark); }
    .fab-item::before { content: attr(title); position: absolute; left: 60px; background: rgba(14, 14, 14, 0.9); color: #fff; padding: 5px 12px; border-radius: 4px; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; white-space: nowrap; width: max-content; opacity: 0; visibility: hidden; transition: all 0.2s; border: 1px solid var(--grey2); }
    .fab-item:hover::before { opacity: 1; visibility: visible; }
.fab-intro {
    position: absolute;
    left: 78px;
    bottom: 6px;

    width: 310px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 15px 14px 16px;

    background: rgba(14,14,14,.94);
    border: 1px solid rgba(197,160,89,.22);
    border-left: 3px solid var(--gold);
    box-shadow: 0 16px 38px rgba(0,0,0,.42);
    border-radius: 10px;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all .28s ease;
    pointer-events: none;
}

.fab-intro::after {
    content: 'быстрая связь';
    position: absolute;
    top: -10px;
    left: 14px;
    padding: 3px 8px;
    background: var(--dark);
    border: 1px solid rgba(197,160,89,.25);
    border-radius: 999px;
    color: var(--gold);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: var(--tracking-control);
    text-transform: uppercase;
}

.fab-wrapper:hover .fab-intro,
.fab-wrapper.active .fab-intro,
.fab-wrapper.fab-hint .fab-intro {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.fab-intro img {
    width: 48px;
    height: 58px;
    border-radius: 7px;
    object-fit: cover;
    object-position: top;
    border: 1px solid rgba(197,160,89,.38);
    filter: grayscale(22%);
    flex-shrink: 0;
}

.fab-intro-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 5px;
}

.fab-intro-text {
    font-size: .74rem;
    line-height: 1.5;
    color: #bdb3a3;
}

@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

@media (max-width: 600px) {
    .fab-wrapper {
        bottom: 20px !important;
        left: 20px !important;
    }

    .fab-main {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 700px) {
    .fab-intro {
        left: 0;
        bottom: 88px;
        width: min(340px, calc(100vw - 40px));
        min-height: 96px;
        padding: 14px 14px 14px 14px;
        transform: translateY(10px);
        z-index: 3;
    }

    .fab-intro img {
        width: 62px;
        height: 74px;
        min-width: 62px;
        display: block;
    }

    .fab-intro-title {
        font-size: 1rem;
        padding-top: 2px;
    }

    .fab-intro-text {
        font-size: .72rem;
        line-height: 1.45;
    }

    .fab-wrapper:hover .fab-intro,
    .fab-wrapper.fab-hint .fab-intro {
        transform: translateY(0);
    }

    .fab-wrapper.active .fab-intro {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
