/* =========================================================
   PROFILE HOME - ПОДРОБНАЯ СТАТИСТИКА
   ========================================================= */
.profile-home__content-grid {
    align-items: start;
}

.profile-home__details {
    min-width: 0;
    margin-top: 10px;
}

.profile-home__details>summary {
    list-style: none;
}

.profile-home__details>summary::-webkit-details-marker {
    display: none;
}

.profile-home__details .profile-home__details-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #6756c8;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(118deg, #6756c8 0%, #7867df 100%);
    box-shadow: 0 7px 18px rgba(103, 86, 200, .16);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.profile-home__details .profile-home__details-link>span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.profile-home__details .profile-home__details-link:hover,
.profile-home__details .profile-home__details-link:focus-visible {
    border-color: #5949b8;
    color: #fff;
    background: linear-gradient(118deg, #5949b8 0%, #6756c8 100%);
    box-shadow: 0 9px 22px rgba(103, 86, 200, .22);
    transform: translateY(-1px);
    outline: none;
}

.profile-home__details-chevron {
    flex: 0 0 auto;
    font-size: 13px;
    transition: transform .18s ease;
}

.profile-home__details[open] .profile-home__details-chevron {
    transform: rotate(180deg);
}

.profile-home__details-panel {
    min-width: 0;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #ded9f4;
    border-radius: 13px;
    background: linear-gradient(145deg, #faf9ff 0%, #fff 72%);
    box-shadow: 0 7px 22px rgba(50, 43, 105, .04);
}

.profile-home__details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-home__details-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e7e4f3;
    border-radius: 11px;
    background: rgba(255, 255, 255, .92);
}

.profile-home__details-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin-bottom: 9px;
}

.profile-home__details-card-head h3 {
    min-width: 0;
    margin: 0;
    color: var(--home-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.profile-home__details-icon {
    display: inline-flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    color: var(--home-primary);
    background: #eeeaff;
    font-size: 14px;
}

.profile-home__details-icon--warning {
    color: #b96b22;
    background: #fff3e6;
}

.profile-home__details-subtitle {
    margin: 10px 0 4px;
    padding-top: 8px;
    border-top: 1px solid #eeecf6;
    color: #7f879b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.profile-home__details-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 4px 0;
    color: #697087;
    font-size: 12px;
    line-height: 1.4;
}

.profile-home__details-row>span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-home__details-row>strong {
    flex: 0 0 auto;
    color: var(--home-text);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.profile-home__details-row--muted {
    color: #949bad;
}

.profile-home__details-row--total {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid #e7e4f3;
    color: var(--home-text);
    font-weight: 700;
}

.profile-home__details-empty {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 54px;
    color: #718097;
    font-size: 12px;
    line-height: 1.4;
}

.profile-home__details-empty i {
    color: #25965b;
    font-size: 16px;
}

.profile-home__details-journals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.profile-home__details-journals a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #e2def3;
    border-radius: 9px;
    color: var(--home-primary);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.profile-home__details-journals a:hover,
.profile-home__details-journals a:focus-visible {
    border-color: #bcb3eb;
    color: var(--home-primary-hover);
    background: #f8f6ff;
    outline: none;
}

@media (max-width: 767px) {
    .profile-home__details .profile-home__details-link {
        min-height: 48px;
        padding: 12px 13px;
        font-size: 13px;
    }

    .profile-home__details-panel {
        padding: 10px;
    }

    .profile-home__details-grid,
    .profile-home__details-journals {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-home__details-card {
        padding: 12px;
    }

    .profile-home__details-card-head h3 {
        font-size: 13px;
    }

    .profile-home__details-row,
    .profile-home__details-row>strong,
    .profile-home__details-empty,
    .profile-home__details-journals a {
        font-size: 12px;
    }
}

