.profile-modal {
    position: fixed;
    top: 0;
    bottom: unset;
    right: -400px;
    /* Начальная позиция - скрыто справа */
    width: 300px;
    /*height: 50vh;*/
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
}

.profile-modal.show {
    transform: translateX(-100%);
}

.profile-modal-content {
    padding: 10px 10px 30px 10px;
    height: 100%;
    box-sizing: border-box;
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.profile-modal-close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.profile-modal-close-button:hover {
    color: #333;
}

.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.profile-modal-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .profile-modal {
        top: unset;
        bottom: 0;
    }
}