/*Общие условия*/
.palette-box .palette-small,
.palette-box .palette-small .part{
display: flex;
justify-content: space-between;
}
/*first item*/
.palette-box:first-child .palette-small {
flex-direction: column-reverse;
justify-content: center;
}
.palette-box:first-child .palette-small .color-3 {
align-self: center;
order: 2;
}
.palette-box:first-child .palette-small .color-4 {
align-self: center;
order: -2
}
/*two item*/
.palette-box:nth-child(2) .palette-small {
flex-direction: column-reverse;
}
.palette-box:nth-child(2) .palette-small .color-2,
.palette-box:nth-child(2) .palette-small .color-6{
align-self: flex-end;
}
.palette-box:nth-child(2) .palette-small .color-4,
.palette-box:nth-child(2) .palette-small .color-1{
align-self: flex-start;
}
/*three item and*/
.palette-box:nth-child(3) .palette-small .part {
flex-direction: column;
}
/*four item*/
.palette-box:nth-child(4) .palette-small .part:last-child {
flex-direction: column-reverse;
}