:root {
    --bxclub-user-text: #171717;
    --bxclub-user-muted: #747474;
    --bxclub-user-border: #e5e7ea;
    --bxclub-user-card: #ffffff;
    --bxclub-user-soft: #f5f6f7;
    --bxclub-user-dark: #151515;
    --bxclub-user-accent: #e24a44;
    --bxclub-user-radius: 22px;
}

.bxclub-user-profile,
.bxclub-user-profile *,
.bxclub-user-profile *::before,
.bxclub-user-profile *::after {
    box-sizing: border-box;
}

.bxclub-user-profile {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 44px 0 80px;
    color: var(--bxclub-user-text);
}

.bxclub-user-profile__back {
    margin-bottom: 22px;
}

.bxclub-user-profile__back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bxclub-user-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bxclub-user-profile__back a:hover {
    color: var(--bxclub-user-accent);
}

.bxclub-user-profile__back svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.bxclub-user-profile__back a:hover svg {
    transform: translateX(-3px);
}

/* Карточка профиля без верхней декоративной шапки */

.bxclub-user-profile__card {
    overflow: hidden;
    border: 1px solid var(--bxclub-user-border);
    border-radius: var(--bxclub-user-radius);
    background: var(--bxclub-user-card);
    box-shadow: 0 16px 45px rgba(25, 29, 34, 0.055);
}

.bxclub-user-profile__content {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 280px;
    padding: 48px;
}

/* Аватар */

.bxclub-user-profile__avatar {
    display: flex;
    flex: 0 0 170px;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            var(--bxclub-user-accent),
            #ff837d
        );
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    box-shadow:
        0 0 0 1px var(--bxclub-user-border),
        0 18px 38px rgba(226, 74, 68, 0.15);
}

.bxclub-user-profile__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация */

.bxclub-user-profile__info {
    min-width: 0;
}

.bxclub-user-profile__name {
    margin: 0;
    color: var(--bxclub-user-dark);
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

/* Группы */

.bxclub-user-profile__groups {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.bxclub-user-profile__group {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(226, 74, 68, 0.15);
    border-radius: 999px;
    background: rgba(226, 74, 68, 0.08);
    color: var(--bxclub-user-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

/* Дата регистрации */

.bxclub-user-profile__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.bxclub-user-profile__meta-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--bxclub-user-soft);
    color: var(--bxclub-user-dark);
}

.bxclub-user-profile__meta-icon svg {
    width: 21px;
    height: 21px;
}

.bxclub-user-profile__meta-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bxclub-user-profile__meta-content span {
    color: var(--bxclub-user-muted);
    font-size: 11px;
    line-height: 1.4;
}

.bxclub-user-profile__meta-content strong {
    color: var(--bxclub-user-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* Мобильная версия */

@media (max-width: 767px) {
    .bxclub-user-profile {
        padding: 27px 0 55px;
    }

    .bxclub-user-profile__card {
        border-radius: 18px;
    }

    .bxclub-user-profile__content {
        align-items: center;
        flex-direction: column;
        gap: 22px;
        min-height: 0;
        padding: 30px 20px;
        text-align: center;
    }

    .bxclub-user-profile__avatar {
        flex-basis: 136px;
        width: 136px;
        height: 136px;
        border-width: 5px;
        font-size: 51px;
    }

    .bxclub-user-profile__info {
        width: 100%;
    }

    .bxclub-user-profile__name {
        font-size: 36px;
    }

    .bxclub-user-profile__groups {
        justify-content: center;
        margin-top: 13px;
    }

    .bxclub-user-profile__meta {
        justify-content: center;
        margin-top: 22px;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .bxclub-user-profile__name {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bxclub-user-profile__back a,
    .bxclub-user-profile__back svg {
        transition: none;
    }
}