[31/31]. Нужна помощь

.palette-small {
display: flex;
}

.part {
display: flex;
}

/-------------------------1--------------------------/
.exam .palette-box:first-of-type .palette-small {
flex-direction: column;
justify-content: center;
}

.exam .palette-box:first-of-type .palette-small .color-2 {
order: 1;
}

.exam .palette-box:first-of-type .palette-small .color-3 {
order: 0;
align-self: center;
}

.exam .palette-box:first-of-type .palette-small .color-4 {
order: 4;
align-self: center;
}
/-------------------------1--------------------------/

/-------------------------2--------------------------/
.exam .palette-box:nth-of-type(2) .palette-small {
flex-direction: column-reverse;
justify-content: space-between;
}

.exam .palette-box:nth-of-type(2) .palette-small .color-1 {
align-self: flex-start;
}

.exam .palette-box:nth-of-type(2) .palette-small .color-2 {
align-self: flex-end;
}

.exam .palette-box:nth-of-type(2) .palette-small .color-4 {
align-self: flex-start;
}

.exam .palette-box:nth-of-type(2) .palette-small .color-6 {
align-self: flex-end;
}
/-------------------------2--------------------------/

/-------------------------3--------------------------/
.exam .palette-box:nth-of-type(3) .palette-small .part {
flex-direction: column;
justify-content: space-between;
}
/-------------------------3--------------------------/

/-------------------------4--------------------------/
.exam .palette-box:nth-of-type(4) .palette-small .part:last-of-type {
flex-direction: column-reverse;
justify-content: space-between;
}

/-------------------------4--------------------------/

Этот код очень страшный. Но я надеюсь, что кто-то таки поймет его :slight_smile:
Вот лично я никак не могу понять кок переместить вторую часть третего и четвертого блока (второй класс .part) в начало поперечной оси

Спасибо большое за любую помощь!

.palette-box:nth-of-type(3) .palette-small {
justify-content: space-between;
flex-direction: row;
}

.palette-box:nth-of-type(4) .part {
display: flex;
flex-direction: row;
justify-content: space-between;
}

Получилось!
Огромнейшее спасибо!!