.customprofile {
    max-width: 480px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: var(--text-color);
}

/* .customprofile__card — это <article>, Pico автоматически даёт фон/тень/padding/радиус.
   Модификаторы:
     --identity  — карточка с аватаром + ссылками профиля (auth)
     --login     — карточка с login-формой (guest)
     --settings  — карточка с переключателем темы (auth + guest)
     --anketas   — карточка со ссылками на анкеты (auth) */

/* Whole-card link: вся карточка identity кликабельна → ведёт на /my/.
   Псевдо-ссылка через ::before покрывает всю карточку; текст и аватар
   остаются доступны для выделения благодаря z-index. */
.customprofile__card--identity {
    position: relative;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.customprofile__card--identity:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.customprofile__card-link::before {
    content: '';
    position: absolute;
    inset: 0;
}

.customprofile__section-title {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hint-color);
    font-weight: 600;
}

.customprofile__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customprofile__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.customprofile__identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customprofile__name {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

.customprofile__email {
    color: var(--hint-color);
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-all;
}

.customprofile__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.customprofile__menu li {
    margin: 0;
    padding: 0;
}

.customprofile__menu li + li {
    border-top: 1px solid var(--menu-list-border);
}

.customprofile__menu a,
.customprofile__menu label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.customprofile__menu a:hover {
    color: var(--link-hover-color);
}

.customprofile__menu label input[type="checkbox"] {
    margin: 0;
}

/* Standalone-меню вне карточек: logout + secondary nav */
.customprofile__menu--logout,
.customprofile__menu--secondary {
    text-align: center;
    margin-top: 0.5rem;
}

.customprofile__menu--logout li,
.customprofile__menu--secondary li {
    border: none;
}

.customprofile__menu--logout a,
.customprofile__menu--secondary a {
    justify-content: center;
    padding: 0.5rem 0;
}

.customprofile__menu--logout a {
    color: var(--link-color);
}

.customprofile__menu--secondary {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.customprofile__menu--secondary li + li {
    border: none;
}

.customprofile__login {
    margin: 0;
}
