.max-support-link {
    --max-blue: #471AFF;
    --max-purple: #9500FF;
    --max-cyan: #00BFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    max-width: 100%;
    padding: 7px 12px;
    border: 1px solid rgba(110, 26, 255, .34);
    border-radius: 999px;
    background: rgba(10, 18, 24, .94);
    color: #9fb2ba;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .34);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.max-support-link:hover {
    color: #FFFFFF;
    border-color: rgba(0, 191, 255, .56);
    background: rgba(13, 24, 32, .98);
    box-shadow: 0 9px 22px rgba(0, 0, 0, .40);
}

.max-support-link:active {
    transform: translateY(1px);
    background: rgba(8, 14, 19, .98);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .34);
}

.max-support-link:focus-visible {
    outline: 3px solid rgba(0, 191, 255, .48);
    outline-offset: 3px;
}

.max-support-link__icon {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--max-cyan) 0%, var(--max-blue) 48%, var(--max-purple) 100%);
    color: #FFFFFF;
}

.max-support-link__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.max-support-link__label {
    min-width: 0;
    white-space: nowrap;
}

/* На телефоне это постоянный нижний док. Ссылка больше не участвует в сетке
   конкретного состояния страницы, поэтому при переходах не прыгает вместе с
   формой, карточками или текстом ошибки. */
@media (max-width: 700px) {
    .max-support-link {
        position: fixed;
        z-index: 9000;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        width: auto;
        max-width: calc(100vw - 32px);
        transform: translateX(-50%);
    }

    .max-support-link:hover {
        transform: translateX(-50%);
    }

    .max-support-link:active {
        transform: translate(-50%, 1px);
    }

    /* Док остаётся доступным и при открытой клавиатуре. Мобильный браузер и
       WebView уменьшают visual viewport, поэтому fixed-позиция переносит его
       к верхней границе клавиатуры без отдельного переключателя по фокусу. */
}

@media (prefers-reduced-motion: reduce) {
    .max-support-link {
        transition: none;
    }
}
