.telegram-channel {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9989;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: calc(100vw - 32px);
    min-height: 44px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #007eaf;
    color: #fff;
    box-shadow: 0 3px 14px rgba(0, 126, 175, 0.22);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    animation: telegram-channel-nudge 12s ease-in-out infinite;
}

.telegram-channel svg {
    flex-shrink: 0;
}

.telegram-channel:hover,
.telegram-channel:focus-visible {
    background: #006a94;
    color: #fff;
    text-decoration: none;
    animation: none;
}

.telegram-channel:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

@keyframes telegram-channel-nudge {
    0%, 90%, 100% { box-shadow: 0 3px 14px rgba(0, 126, 175, 0.22); }
    95% { box-shadow: 0 3px 18px rgba(0, 126, 175, 0.38); }
}

body.test-in-progress .telegram-channel,
body.feedback-modal-open .telegram-channel {
    display: none;
}

@media (max-width: 768px) {
    .telegram-channel {
        left: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .telegram-channel span {
        display: none;
    }
}

@media (max-width: 576px) {
    .telegram-channel {
        left: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 380px) {
    .telegram-channel {
        left: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .telegram-channel {
        min-width: 48px;
        min-height: 48px;
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .telegram-channel {
        left: calc(16px + env(safe-area-inset-left));
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .telegram-channel {
        animation: none;
    }
}
