/* ==========================================================================
   Страница раздела вопросов
   ========================================================================== */

.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-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;
    line-height: 1.35;
}

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

/* ==========================================================================
   Адаптив
   ========================================================================== */

@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;
    }
}

@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;
    }
}



/* =========================================================
   QUESTIONS SECTIONS
   /questions/
   ========================================================= */

.bxclub-question-sections {
    width: 100%;
    min-width: 0;
}


/* Header */

.bxclub-question-sections__header {
    margin-bottom: 24px;
}

.bxclub-question-sections__title {
    margin: 0 0 7px;

    color: #181a1e;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.bxclub-question-sections__subtitle {
    max-width: 680px;

    margin: 0;

    color: #7b8088;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   List
   ========================================================= */

.bxclub-question-sections__list {
    display: flex;

    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   Section card
   ========================================================= */

.bxclub-question-section {
    display: flex;

    width: 100%;
    min-width: 0;
    min-height: 180px;

    overflow: hidden;

    border: 1px solid #e6e8ec;
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, .02),
        0 5px 18px rgba(0, 0, 0, .025);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.bxclub-question-section:hover {
    transform: translateY(-2px);

    border-color: #d6dae1;

    box-shadow:
        0 3px 5px rgba(0, 0, 0, .02),
        0 10px 28px rgba(0, 0, 0, .05);
}


/* =========================================================
   Picture
   ========================================================= */

.bxclub-question-section__picture {
    position: relative;

    display: flex;

    flex: 0 0 180px;

    width: 180px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f5f7f9;

    text-decoration: none;
}

.bxclub-question-section__picture img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.bxclub-question-section:hover
.bxclub-question-section__picture img {
    transform: scale(1.035);
}


.bxclub-question-section__picture-placeholder {
    display: flex;

    width: 76px;
    height: 76px;

    align-items: center;
    justify-content: center;

    border: 1px solid #e3e7ec;
    border-radius: 20px;

    background: #fff;

    color: #1769d2;

    font-size: 31px;
    line-height: 1;
    font-weight: 700;

    box-shadow:
        0 5px 18px rgba(40, 75, 120, .07);
}


/* =========================================================
   Content
   ========================================================= */

.bxclub-question-section__content {
    display: flex;

    flex: 1;
    min-width: 0;

    align-items: stretch;

    padding: 22px;
}


/* =========================================================
   Information
   ========================================================= */

.bxclub-question-section__info {
    display: flex;

    flex: 1;
    min-width: 0;

    flex-direction: column;

    padding-right: 28px;
}


/* Name */

.bxclub-question-section__name {
    margin: 0 0 8px;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.bxclub-question-section__name a {
    color: #191b1f;

    text-decoration: none;

    transition: color .15s ease;
}

.bxclub-question-section__name a:hover {
    color: #1769d2;
}


/* Description */

.bxclub-question-section__description {
    display: -webkit-box;

    max-width: 640px;
    max-height: 48px;

    margin-bottom: 18px;

    overflow: hidden;

    color: #7c8189;

    font-size: 13px;
    line-height: 1.7;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* Link */

.bxclub-question-section__link {
    display: inline-flex;

    width: max-content;

    align-items: center;

    gap: 7px;

    margin-top: auto;

    color: #1769d2;

    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;

    text-decoration: none;
}

.bxclub-question-section__link svg {
    transition: transform .2s ease;
}

.bxclub-question-section__link:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   Stats
   ========================================================= */

.bxclub-question-section__stats {
    display: grid;

    flex: 0 0 305px;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    align-self: center;
}


/* Stat */

.bxclub-question-section__stat {
    display: flex;

    min-width: 0;
    min-height: 88px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 12px 8px;

    border-radius: 10px;

    background: #f5f6f8;

    text-align: center;
}

.bxclub-question-section__stat strong {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 4px;

    margin-bottom: 5px;

    color: #262a2f;

    font-size: 21px;
    line-height: 1.1;
    font-weight: 700;
}

.bxclub-question-section__stat span {
    color: #92979e;

    font-size: 10px;
    line-height: 1.3;

    white-space: nowrap;
}


/* Solved */

.bxclub-question-section__stat--solved {
    background: #eef9f2;
}

.bxclub-question-section__stat--solved strong {
    color: #258349;
}


/* Unanswered */

.bxclub-question-section__stat--unanswered {
    background: #fff6e9;
}

.bxclub-question-section__stat--unanswered strong {
    color: #c46f1e;
}


/* =========================================================
   Empty
   ========================================================= */

.bxclub-question-sections__empty {
    padding: 40px 24px;

    border: 1px solid #e6e8ec;
    border-radius: 14px;

    background: #fff;

    color: #81868d;

    font-size: 14px;
    text-align: center;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .bxclub-question-section__picture {
        flex-basis: 150px;

        width: 150px;
    }

    .bxclub-question-section__content {
        flex-direction: column;
    }

    .bxclub-question-section__info {
        padding-right: 0;
    }

    .bxclub-question-section__stats {
        flex: none;

        width: 100%;

        margin-top: 20px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {

    .bxclub-question-sections__header {
        margin-bottom: 18px;
    }

    .bxclub-question-sections__title {
        font-size: 24px;
    }

    .bxclub-question-sections__subtitle {
        font-size: 13px;
    }

    .bxclub-question-sections__list {
        gap: 12px;
    }

    .bxclub-question-section {
        min-height: 0;

        flex-direction: column;
    }

    .bxclub-question-section__picture {
        flex: none;

        width: 100%;
        height: 160px;
    }

    .bxclub-question-section__content {
        padding: 17px;
    }

    .bxclub-question-section__name {
        font-size: 18px;
    }

    .bxclub-question-section__description {
        margin-bottom: 15px;

        font-size: 12px;
    }

    .bxclub-question-section__stats {
        gap: 5px;

        margin-top: 18px;
    }

    .bxclub-question-section__stat {
        min-height: 76px;

        padding: 9px 4px;
    }

    .bxclub-question-section__stat strong {
        font-size: 17px;
    }

    .bxclub-question-section__stat span {
        font-size: 8px;
    }

}