/* Кнопка обращения с 1024px. Ниже — только «Обращение» в подвале. */

.rechai-support {
    display: none;
}

@media (min-width: 1024px) {
    .rechai-support {
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 40;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-family: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .rechai-support__label {
        overflow: hidden;
        white-space: nowrap;
        max-width: 220px;
        margin-right: 10px;
        padding: 11px 16px;
        border: 0;
        border-radius: 18px;
        background: #1c2030;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        color: #f4f4f5;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        animation: rechai-support-label 16s ease-in-out infinite;
    }

    .rechai-support__orb {
        position: relative;
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, #9333ea, #a855f7 55%, #6366f1);
        box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
    }

    .rechai-support__flip {
        display: grid;
        place-items: center;
        width: 20px;
        height: 20px;
    }

    .rechai-support__face {
        grid-area: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #fff;
    }

    .rechai-support__face svg {
        display: block;
        width: 20px;
        height: 20px;
    }

    .rechai-support__face--brand {
        animation: rechai-support-mic 16s ease-in-out infinite;
    }

    .rechai-support__face--chat {
        animation: rechai-support-chat 16s ease-in-out infinite;
    }

    .rechai-support:hover .rechai-support__orb,
    .rechai-support:focus-visible .rechai-support__orb {
        box-shadow: 0 10px 26px rgba(168, 85, 247, 0.55);
    }

    .rechai-support:focus-visible {
        outline: 2px solid rgba(168, 85, 247, 0.7);
        outline-offset: 4px;
        border-radius: 999px;
    }

    .rechai-support:hover .rechai-support__label,
    .rechai-support:focus-visible .rechai-support__label {
        animation: none;
        max-width: 220px;
        opacity: 1;
        margin-right: 10px;
        padding: 11px 16px;
    }

    .rechai-support:hover .rechai-support__face,
    .rechai-support:focus-visible .rechai-support__face {
        animation: none;
    }

    .rechai-support:hover .rechai-support__face--brand,
    .rechai-support:focus-visible .rechai-support__face--brand {
        opacity: 1;
        transform: none;
    }

    .rechai-support:hover .rechai-support__face--chat,
    .rechai-support:focus-visible .rechai-support__face--chat {
        opacity: 0;
    }
}

@keyframes rechai-support-label {
    0%, 40% {
        max-width: 220px;
        opacity: 1;
        margin-right: 10px;
        padding: 11px 16px;
    }
    46%, 90% {
        max-width: 0;
        opacity: 0;
        margin-right: 0;
        padding: 11px 0;
    }
    96%, 100% {
        max-width: 220px;
        opacity: 1;
        margin-right: 10px;
        padding: 11px 16px;
    }
}

@keyframes rechai-support-mic {
    0%, 42% { opacity: 1; transform: scaleX(1); }
    46%, 92% { opacity: 0; transform: scaleX(0); }
    96%, 100% { opacity: 1; transform: scaleX(1); }
}

@keyframes rechai-support-chat {
    0%, 42% { opacity: 0; transform: scaleX(0); }
    46%, 92% { opacity: 1; transform: scaleX(1); }
    96%, 100% { opacity: 0; transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rechai-support__label,
    .rechai-support__face--brand,
    .rechai-support__face--chat {
        animation: none;
    }

    .rechai-support__face--chat {
        opacity: 0;
    }
}

/* Форма обращения в кабинете — на главной те же правила уже в странице. */
.feedback-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 12px 0 4px;
}

.feedback-form label:first-child { margin-top: 0; }

.feedback-form .input,
.feedback-form textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.feedback-form textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}

.feedback-form__err {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 10px;
}
