.programs {
    margin-top: 96px;
}

.programs__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.programs__wrapper h2 {
    font-family: Ermilov;
    font-weight: 700;
    font-style: Bold;
    font-size: 56px;
    leading-trim: NONE;
    line-height: 80px;
    letter-spacing: -3%;
    color: #2E2E2E;
}

.programs-items__wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.programs-items__item {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 28px;
    width: calc(50% - 64px);
}



.programs-items__item:nth-of-type(1) {
    border-radius: 196px 44px 44px 44px;
    border: 1px solid #E2E2E2;
    background: #668DC6;

}

.programs-items__item:nth-of-type(1) .img-wrapper {
    border-radius: 180px 16px 16px 16px;
}
.programs-items__item:nth-of-type(1), .programs-items__item:nth-of-type(3){
    align-items: end;
    }
    .programs-items__item:nth-of-type(2), .programs-items__item:nth-of-type(4){
    align-items: start;
    }
.programs-items__item:nth-of-type(1) .text-sections ,.programs-items__item:nth-of-type(3) .text-sections {
    max-width:80%;
    }
    .programs-items__item:nth-of-type(2) .text-sections ,.programs-items__item:nth-of-type(4) .text-sections {
    max-width:80%;
    }
    
.programs-items__item:nth-of-type(1) .item-btn {
    margin: auto 0 0 auto;
    color: black;
    background: white;
}
.programs-items__item:nth-of-type(1) .item-btn  svg path{
    fill: black;
}

.programs-items__item:nth-of-type(2) {
    border-radius: 44px 196px 44px 44px;
    border: 1px solid #E2E2E2;
    background: #A20164;

}

.programs-items__item:nth-of-type(2) .img-wrapper {
    border-radius: 16px 180px 16px 16px;
}

.programs-items__item:nth-of-type(2) .item-btn {
    margin: auto auto 0 0;
    color: black;
    background: white;

}

.programs-items__item:nth-of-type(2) .item-btn svg path {
    fill: black;
}

.programs-items__item:nth-of-type(2) .text-sections h5,
.programs-items__item:nth-of-type(2) .text-sections .desc {
    text-align: left;
}

.programs-items__item:nth-of-type(3) {
    flex-direction: column-reverse;
    border-radius: 44px 44px 44px 196px;
    border: 1px solid #E2E2E2;
    background: #3C7460;

}

.programs-items__item:nth-of-type(3) .img-wrapper {
    border-radius: 16px 16px 16px 180px;
}

.programs-items__item:nth-of-type(3) .item-btn {
    margin: auto 0 0 auto;
    color: black;
    background: white;
}
.programs-items__item:nth-of-type(3) .item-btn svg path {
    fill: black;
}

.programs-items__item:nth-of-type(3) .text-sections h5,
.programs-items__item:nth-of-type(3) .text-sections .desc {
    text-align: right;
}

.programs-items__item:nth-of-type(4) {
    flex-direction: column-reverse;
    border-radius: 44px 44px 196px 44px;
    border: 1px solid #E2E2E2;
    background: #E08E29;

}

.programs-items__item:nth-of-type(4) .img-wrapper {
    border-radius: 16px 16px 180px 16px;
}

.programs-items__item:nth-of-type(4) .item-btn {
    margin: auto auto 0 0;
    color: black;
    background:white;
}
.programs-items__item:nth-of-type(4) .item-btn svg path{
    fill: black;
}

.programs-items__item:nth-of-type(4) .text-sections h5,
.programs-items__item:nth-of-type(4) .text-sections .desc {
    text-align: left;
}


.programs-items__item .img-wrapper {
    height: 181px;
    overflow: hidden;
    width: 100%;
}

.programs-items__item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programs-items__item .text-sections {
    display: flex;
    flex-direction: column;
    height: 208px;
    justify-content: space-between;
}

.programs-items__item .text-sections h5 {
    font-family: Ermilov;
    font-weight: 700;
    font-style: Bold;
    font-size: 32px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: -2%;
    text-align: right;
    color: white;
    margin-bottom: 16px;
}

.programs-items__item .text-sections .desc {
    font-family: Manrope;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: -2%;
    text-align: right;
    color: white;


}

.item-btn {
    font-family: Manrope;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: -3%;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #2E2E2E;
    text-decoration: none;
    padding: 17px 24px;
    background: white;
    width: fit-content;
    border-radius: 40px;
}


@media screen and (max-width:1024px) {

.programs-items__item:nth-of-type(1), .programs-items__item:nth-of-type(3){
    align-items: start;
    }
    .programs-items__item:nth-of-type(2), .programs-items__item:nth-of-type(4){
    align-items: start;
    }
.programs-items__item:nth-of-type(1) .text-sections ,.programs-items__item:nth-of-type(3) .text-sections {
    max-width:100%;
    }
    .programs-items__item:nth-of-type(2) .text-sections ,.programs-items__item:nth-of-type(4) .text-sections {
    max-width:100%;
    }

    .programs {
        margin-top: 45px;
    }

    .programs__wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .programs__wrapper h2 {
        font-size: 24px;
        line-height: 36px;
    }

    .programs-items__wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .programs-items__item {
        display: flex;
        flex-direction: column;
        gap: 16px;
        ;
        padding: 16px;
        width: calc(100% - 32px);
    }

    .programs-items__item:nth-of-type(1) {
        border-radius: 88px 32px 32px 32px;
    }

    .programs-items__item:nth-of-type(1) .img-wrapper {
        border-radius: 76px 16px 16px 16px;
    }

    .programs-items__item:nth-of-type(1) .item-btn {
        margin: 20px 0 0 0;

    }

    .programs-items__item:nth-of-type(2) {
        border-radius: 32px 88px 32px 32px;
    }

    .programs-items__item:nth-of-type(2) .img-wrapper {
        border-radius: 16px 76px 16px 16px;
    }

    .programs-items__item:nth-of-type(2) .item-btn {
        margin: 20px 0 0 0;
    }

    .programs-items__item:nth-of-type(2) .text-sections h5,
    .programs-items__item:nth-of-type(2) .text-sections .desc {
        text-align: left;
    }

    .programs-items__item:nth-of-type(3) {
        flex-direction: column;
        border-radius: 88px 32px 32px 32px;
    }

    .programs-items__item:nth-of-type(3) .img-wrapper {
        border-radius: 76px 16px 16px 16px;
    }

    .programs-items__item:nth-of-type(3) .item-btn {
        margin: 20px 0 0 0;
    }

    .programs-items__item:nth-of-type(3) .text-sections h5,
    .programs-items__item:nth-of-type(3) .text-sections .desc {
        text-align: left;
    }

    .programs-items__item:nth-of-type(4) {
        flex-direction: column;
        border-radius: 16px 76px 16px 16px;
    }

    .programs-items__item:nth-of-type(4) .img-wrapper {
        border-radius: 16px 76px 16px 16px;
    }

    .programs-items__item:nth-of-type(4) .item-btn {
        margin: 20px 0 0 0;

    }

    .programs-items__item:nth-of-type(4) .text-sections h5,
    .programs-items__item:nth-of-type(4) .text-sections .desc {
        text-align: left;
    }


    .programs-items__item .img-wrapper {
        height: 180px;
        overflow: hidden;
        width: 100%;
    }

    .programs-items__item .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .programs-items__item .text-sections {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 4px;
        justify-content: space-between;
    }

    .programs-items__item .text-sections h5 {
        font-size: 20px;
        line-height: 28px;
        text-align: left;
        margin-bottom: 0;
    }

    .programs-items__item .text-sections .desc {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -2%;
        text-align: left;
    }

    .item-btn {
        margin-top: 20px;
        font-size: 14px;
        leading-trim: NONE;
        line-height: 100%;
        gap: 8px;
        height: 44px;
        padding: 0 20px;
        border-radius: 40px;
    }

}
