/* ===== Ярлык «Помощь» (вертикальный, справа, ниже тарифного бейджа) ===== */
.support-badge {
    position: fixed;
    right: 0;
    /* Тарифный бейдж занимает центр экрана, ярлык помощи ставим ниже него. */
    top: calc(50% + 150px);
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: linear-gradient(180deg, #5c6bc0 0%, #283593 100%);
    color: #fff;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: padding 0.15s ease, box-shadow 0.15s ease;
}

.support-badge:hover {
    color: #fff;
    padding-right: 12px;
    box-shadow: -4px 2px 16px rgba(0, 0, 0, 0.35);
}

.support-badge__icon {
    font-size: 1.1rem;
}

.support-badge__text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    max-height: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Offcanvas «Помощь» ===== */
.support-offcanvas {
    width: 400px;
}

.support-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.support-intro {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.support-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.support-form textarea {
    resize: vertical;
    min-height: 140px;
}

.support-form .form-text {
    font-size: 0.8rem;
}

.support-submit {
    margin-top: 8px;
}

/* Предпросмотр выбранного изображения */
.support-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    border: 1px dashed var(--bs-border-color, #e0e0e0);
    border-radius: 10px;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.support-preview__img {
    max-width: 88px;
    max-height: 88px;
    border-radius: 8px;
    object-fit: cover;
}

.support-preview__clear {
    padding: 0;
    font-size: 0.85rem;
}

/* ===== Контакты техподдержки под формой ===== */
.support-contacts {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #e0e0e0);
}

.support-contacts__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.support-contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.support-contacts__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.support-contacts__list li i {
    color: #5c6bc0;
    width: 16px;
    text-align: center;
}

.support-contacts__list a {
    text-decoration: none;
    word-break: break-word;
}

.support-contacts__hint {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ===== Адаптив: на небольших экранах ярлык поднимаем выше ===== */
@media (max-width: 768px) {
    .support-badge {
        top: calc(50% + 130px);
        padding: 10px 8px;
    }

    .support-offcanvas {
        width: 100%;
    }
}

@media (max-height: 640px) {
    .support-badge {
        top: calc(50% + 80px);
    }
}
