/* ==========================================================================
   Страница раздела
   ========================================================================== */

.bxclub-section-page {
    width: 100%;
    min-width: 0;
}

.bxclub-section-content {
    min-width: 0;
}

/* ==========================================================================
   Шапка раздела
   ========================================================================== */

.bxclub-section-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 22px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(92, 82, 220, 0.15),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbfaff 100%
        );
    border: 1px solid #e5e6ed;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(25, 27, 40, 0.04);
}

.bxclub-section-header::before {
    position: absolute;
    top: -85px;
    right: -45px;
    width: 210px;
    height: 210px;
    background: rgba(92, 82, 220, 0.06);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.bxclub-section-header::after {
    position: absolute;
    right: 85px;
    bottom: -100px;
    width: 180px;
    height: 180px;
    background: rgba(92, 82, 220, 0.035);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.bxclub-section-header__image-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 130px;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    padding: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dedbff;
    border-radius: 50%;
    box-shadow:
        0 14px 32px rgba(56, 48, 145, 0.14),
        0 0 0 7px rgba(92, 82, 220, 0.05);
}

.bxclub-section-header__image,
.bxclub-section-header__placeholder {
    display: flex;
    width: 116px;
    height: 116px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.bxclub-section-header__image {
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.bxclub-section-header__placeholder {
    color: #ffffff;
    background: linear-gradient(135deg, #7369ef, #483dc5);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.bxclub-section-header__content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.bxclub-section-header__title {
    margin: 0;
    color: #17191f;
    font-size: 32px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.bxclub-section-header__count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin-top: 11px;
    padding: 6px 11px;
    color: #564bca;
    background: #efedff;
    border: 1px solid #e2dfff;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.bxclub-section-header__count svg {
    flex: 0 0 auto;
}

.bxclub-section-header__description {
    max-width: 780px;
    margin-top: 14px;
    color: #687082;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.bxclub-section-header__description p {
    margin: 0 0 9px;
}

.bxclub-section-header__description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Список вопросов
   ========================================================================== */

.bxclub-questions-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.bxclub-question-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7ed;
    border-radius: 17px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.bxclub-question-card:hover {
    border-color: #cac6f5;
    box-shadow: 0 15px 36px rgba(26, 28, 40, 0.075);
    transform: translateY(-2px);
}

.bxclub-question-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    min-width: 0;
}

.bxclub-question-card__content {
    min-width: 0;
    padding: 22px 24px;
}

.bxclub-question-card__author {
    position: relative;
    z-index: 3;
    display: flex;
    width: fit-content;
    min-width: 0;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}

.bxclub-question-card__avatar {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #7167eb, #5045cd);
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(80, 69, 205, 0.16);
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
}

.bxclub-question-card__avatar img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: center;
}

.bxclub-question-card__author-info {
    min-width: 0;
}

.bxclub-question-card__author-name {
    overflow: hidden;
    color: #292c34;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bxclub-question-card__group {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-top: 4px;
    padding: 3px 7px;
    overflow: hidden;
    color: #5b51c9;
    background: #f0efff;
    border: 1px solid #e3e0ff;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bxclub-question-card__title {
    position: relative;
    z-index: 3;
    margin: 17px 0 0;
    color: #17191f;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.42;
    letter-spacing: -0.02em;
}

.bxclub-question-card__title a {
    color: inherit;
    text-decoration: none;
}

.bxclub-question-card__title a:hover {
    color: #5146ce;
    text-decoration: none;
}

.bxclub-question-card__meta {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    width: fit-content;
    margin-top: 17px;
}

.bxclub-question-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #858c99;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.bxclub-question-card__date svg {
    flex: 0 0 auto;
}

/* ==========================================================================
   Крупный квадрат количества ответов
   ========================================================================== */

.bxclub-question-card__answers {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px 10px;
    color: #5146ce;
    background:
        linear-gradient(
            145deg,
            #f8f7ff 0%,
            #ebe9ff 100%
        );
    text-align: center;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
        border-radius: 20px;
}

.bxclub-question-card__answers::before {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: rgba(81, 70, 206, 0.18);
    border-radius: 50%;
    content: "";
}

.bxclub-question-card:hover .bxclub-question-card__answers {
    color: #ffffff;
    background: linear-gradient(145deg, #685ee6, #4c41c8);
    border-color: #5146ce;
}

.bxclub-question-card:hover .bxclub-question-card__answers::before {
    background: rgba(255, 255, 255, 0.3);
}

.bxclub-question-card__answers-number {
    display: block;
    font-size: 38px;
    font-weight: 850;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.bxclub-question-card__answers-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   Статусы
   ========================================================================== */

.bxclub-question-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.bxclub-question-status__dot {
    display: block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.bxclub-question-status--open {
    color: #17774f;
    background: #e9f7f0;
}

.bxclub-question-status--open .bxclub-question-status__dot {
    background: #24a46d;
}

.bxclub-question-status--waiting {
    color: #9e6216;
    background: #fff4dc;
}

.bxclub-question-status--waiting .bxclub-question-status__dot {
    background: #e69a2c;
}

.bxclub-question-status--solved {
    color: #4052ad;
    background: #edf0ff;
}

.bxclub-question-status--solved .bxclub-question-status__dot {
    background: #6171d2;
}

.bxclub-question-status--closed {
    color: #686f7c;
    background: #eff1f4;
}

.bxclub-question-status--closed .bxclub-question-status__dot {
    background: #8e95a2;
}

/* Ссылка на всю карточку */

.bxclub-question-card__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
}

.bxclub-questions-navigation {
    margin-top: 27px;
}

/* ==========================================================================
   Пустой раздел
   ========================================================================== */

.bxclub-section-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 25px;
    color: #707785;
    background: #ffffff;
    border: 1px solid #e5e7ed;
    border-radius: 17px;
    text-align: center;
}

.bxclub-section-empty__icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    color: #5c52dc;
    background: #efedff;
    border-radius: 17px;
}

.bxclub-section-empty__title {
    margin: 17px 0 0;
    color: #1c1e24;
    font-size: 20px;
    font-weight: 750;
}

.bxclub-section-empty__text {
    margin-top: 8px;
    font-size: 13px;
}

/* ==========================================================================
   Планшет и мобильная версия
   ========================================================================== */

@media (max-width: 767px) {
    .bxclub-section-header {
        align-items: flex-start;
        gap: 20px;
        padding: 22px;
        border-radius: 16px;
    }

    .bxclub-section-header__image-wrap {
        flex: 0 0 96px;
        width: 96px;
        height: 96px;
        padding: 5px;
    }

    .bxclub-section-header__image,
    .bxclub-section-header__placeholder {
        width: 84px;
        height: 84px;
    }

    .bxclub-section-header__placeholder {
        font-size: 30px;
    }

    .bxclub-section-header__title {
        font-size: 25px;
    }

    .bxclub-section-header__description {
        font-size: 13px;
        line-height: 1.6;
    }

    .bxclub-question-card__body {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .bxclub-question-card__content {
        padding: 19px 17px;
    }

    .bxclub-question-card__answers {
        padding: 14px 7px;
    }

    .bxclub-question-card__answers-number {
        font-size: 31px;
    }

    .bxclub-question-card__answers-label {
        font-size: 8px;
    }

    .bxclub-question-card__title {
        margin-top: 15px;
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .bxclub-section-header {
        gap: 15px;
        padding: 18px;
    }

    .bxclub-section-header__image-wrap {
        flex: 0 0 76px;
        width: 76px;
        height: 76px;
        padding: 4px;
        box-shadow:
            0 9px 22px rgba(56, 48, 145, 0.12),
            0 0 0 4px rgba(92, 82, 220, 0.04);
    }

    .bxclub-section-header__image,
    .bxclub-section-header__placeholder {
        width: 66px;
        height: 66px;
    }

    .bxclub-section-header__placeholder {
        font-size: 24px;
    }

    .bxclub-section-header__title {
        font-size: 21px;
    }

    .bxclub-section-header__count {
        min-height: 28px;
        margin-top: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .bxclub-section-header__description {
        margin-top: 11px;
        font-size: 12px;
    }

    .bxclub-question-card {
        border-radius: 14px;
    }

    .bxclub-question-card__body {
        grid-template-columns: minmax(0, 1fr) 76px;
    }

    .bxclub-question-card__content {
        padding: 17px 14px;
    }

    .bxclub-question-card__avatar,
    .bxclub-question-card__avatar img {
        width: 36px;
        height: 36px;
    }

    .bxclub-question-card__avatar {
        flex-basis: 36px;
        font-size: 13px;
    }

    .bxclub-question-card__author-name {
        font-size: 12px;
    }

    .bxclub-question-card__group {
        max-width: 130px;
        font-size: 9px;
    }

    .bxclub-question-card__title {
        font-size: 16px;
        line-height: 1.45;
    }

    .bxclub-question-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 13px;
    }

    .bxclub-question-card__answers {
        gap: 6px;
        padding: 10px 5px;
    }

    .bxclub-question-card__answers-number {
        font-size: 27px;
    }

    .bxclub-question-card__answers-label {
        font-size: 7px;
    }
}