.favorites-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    max-width: 1050px
}

.favorite-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative
}

.person-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dce8ff, #8fb0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 900;
    font-size: 18px;
    flex: none
}

.person-info {
    min-width: 0;
    padding-right: 28px
}

.person-info h2 {
    font-size: 17px;
    margin: 0 0 4px;
    color: var(--navy)
}

.person-info p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #56637b
}

.person-info span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px
}

.person-info strong {
    font-size: 13px;
    color: #d28b18
}

.remove {
    position: absolute;
    right: 14px;
    top: 14px;
    border: 0;
    background: #fff0f1;
    color: #d84c58;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px
}

.empty {
    min-height: 280px;
    max-width: 1050px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px
}

.empty>div {
    font-size: 52px;
    color: #8ea5d7
}

.empty h2 {
    margin: 10px 0 6px;
    color: var(--navy)
}

.empty p {
    color: var(--muted);
    margin: 0 0 18px
}

@media(max-width:600px) {
    .favorites-head {
        align-items: flex-start;
        flex-direction: column
    }
}