.frontend-user-profile {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

.frontend-user-profile__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.frontend-user-profile__tabs a,
.frontend-user-profile button {
    border: 1px solid #1f6feb;
    border-radius: 6px;
    background: #1f6feb;
    color: #fff;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
}

.frontend-user-profile__tabs a {
    background: #fff;
    color: #1f2937;
    border-color: #d0d7de;
}

.frontend-user-profile__message {
    border-radius: 6px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #eef6ff;
    border: 1px solid #9ec5fe;
    color: #17324d;
}

.frontend-user-profile__message--error {
    background: #fff1f0;
    border-color: #ffccc7;
    color: #5c1d18;
}

.frontend-user-profile__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.frontend-user-profile__form label,
.frontend-user-profile__check {
    display: grid;
    gap: 6px;
}

.frontend-user-profile__form input,
.frontend-user-profile__form select {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px 12px;
}

.frontend-user-profile__check {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.frontend-user-profile__item {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 16px;
}

.frontend-user-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.frontend-user-profile__actions form {
    margin: 0;
}

@media (max-width: 640px) {
    .frontend-user-profile {
        padding: 16px 12px;
    }

    .frontend-user-profile__tabs,
    .frontend-user-profile__actions {
        flex-direction: column;
    }
}
