/* ==========================================================================
   ГЛОБАЛЬНЫЕ СТИЛИ СТРАНИЦЫ ПОМОЩИ (СВЕТЛАЯ ТЕМЫ AMAZING)
   ========================================================================== */
.help-page-body {
    background-color: #ffffff !important;
    color: #111827 !important;
    padding-top: 0 !important;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.fixed-size {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   ФИРМЕННЫЙ ХЕДЕР ПОМОЩИ (ТОЧНО КАК В ОРИГИНАЛЕ)
   ========================================================================== */
/* ==========================================================================
   ФИРМЕННЫЙ КРАСНЫЙ БАННЕР ШАПКИ ПОМОЩИ (ФИКС СЛИЯНИЯ С КАРТИНКОЙ)
   ========================================================================== */
.help-page-header {
    width: 100%;
    min-height: 250px; /* Высота строго как в оригинале */
    /* [ФИКС]: Объединяем сочный красный градиент Amazing и картинку в одно бесшовное правило */
    background-image: linear-gradient(135deg, #cc1818 0%, #b31212 100%) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(204, 24, 24, 0.1);
}

/* [ФИКС]: Затемнение переделано в адаптивную градиентную маску для сочности картинки */
.help-page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(204, 24, 24, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
    z-index: 0;
    pointer-events: none;
}

/* Стилизация и отступы внутренних элементов */
.help-page-header .fixed-size {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.help-page-header-content {
    text-align: left;
    padding: 50px 0; /* Комфортные вертикальные отступы для текста */
}

.help-page-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.help-page-description {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Адаптив для мобильных экранов */
@media (max-width: 768px) {
    .help-page-header {
        min-height: 200px;
    }
    .help-page-title {
        font-size: 1.8rem !important;
    }
    .help-page-description {
        font-size: 0.95rem !important;
    }
    .help-page-header-content {
        padding: 35px 0;
    }
}
/* ==========================================================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ========================================================================== */
.help-main-container {
    width: 100%;
    background-color: #ffffff;
    padding-top: 50px;
}

.help-page-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    padding-bottom: 100px;
}

/* ==========================================================================
   ЛЕВОЕ МЕНЮ (КАРТОЧКИ КАТЕГОРИЙ)
   ========================================================================== */
.help-sidebar-menu {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.help-category-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 26px 24px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.help-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: #e5e7eb;
}

.help-category-card.active {
    border-color: #e5e7eb;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
    background-color: #fafafa;
}

/* ЗЕЛЕНАЯ КНОПКА ПОДДЕРЖКИ */
.help-category-card.item-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3) !important;
    overflow: visible !important;
}

.help-category-card.item-green:hover {
    background: linear-gradient(135deg, #32de7c, #2cbc69) !important;
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.4) !important;
}

/* Анимация пульсации для зеленой кнопки */
.pulse-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid #2ecc71;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 0;
    animation: helpPulseWave 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

@keyframes helpPulseWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.15, 1.25);
        opacity: 0;
        filter: blur(1px);
    }
}

.help-category-row {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.help-category-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.help-category-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.4px;
}

.help-category-card.item-green .help-category-title,
.help-category-card.item-green .help-category-description {
    color: #ffffff !important;
}

.help-category-description {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   ПРАВАЯ ЧАСТЬ: СПИСОК ВОПРОСОВ (АККОРДЕОН)
   ========================================================================== */
.help-content-area {
    flex: 1;
}

.help-section-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Шапка раздела */
.help-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-section-header-icon-box {
    width: 54px;
    height: 54px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-section-header-icon-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.help-section-header-text h2 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.help-section-desc {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
}

/* Список вопросов */
.help-questions-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Карточка вопроса (аккордеон) */
.help-question-accordion {
    background-color: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
    overflow: hidden;
}

.help-question-trigger {
    display: flex;
    align-items: center;
    padding: 18px 10px;
    cursor: pointer;
    user-select: none;
    gap: 16px;
    transition: background-color 0.2s ease;
    border-radius: 12px;
}

.help-question-trigger:hover {
    background-color: #fcfcfc;
}

.help-question-icon-col {
    display: flex;
    align-items: center;
}

.question-mark-circle {
    width: 26px;
    height: 26px;
    background-color: #f3f4f6;
    border-radius: 50%;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-question-text-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.question-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    transition: color 0.15s ease;
}

.help-question-trigger:hover .question-title {
    color: #ff5722;
}

/* Бейдж NEW */
.badge-new {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Блок ответа (скрыт по умолчанию) */
.help-question-body {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-answer-content {
    padding: 10px 10px 24px 42px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 500;
    border-left: 2px solid #ff5722;
    margin-left: 12px;
}
/* Стили для футера ответа (оценка полезности) */
.help-answer-footer {
    padding: 10px 10px 20px 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

.helpful-text {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

.helpful-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.help-empty-questions {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border-radius: 16px;
    color: #6b7280;
}