.hero-modifier {
    background-color: #f8f5f7;
    max-width: 100%;
    padding: 170px 115px 70px 115px;
    background-repeat: no-repeat;
}

.selected-program-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selected-program-main-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #5f698a;
}

.selected-program-description {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.selected-program__img {
    width: 350px;
}

.selected-program-img-modifier {
    height: fit-content;
}

.hero-text-modifier {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 40%;
    justify-content: space-evenly;
}

.selected-program_text {
    font-size: 24px;
    font-weight: normal;
    color: #5f698a;
}

.hero-btn-modifier {
    width: 60%;
}

.who-need-program {
    display: flex;
    flex-direction: column;
    padding: 4% 10%;
    gap: 20px;
}

.who-need-program-description {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.who-need-program__item {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.prgoram__item {
    display: flex;
    flex-direction: column;
    gap: 62px;
    border: 1px solid #5F698A;
    text-align: left;
    width: 60%;
    padding: 5% 2%;
}

.who-need-program-title {
    font-size: 26px;
    font-weight: bold;
    color: #5f698a;
    padding: 3%;
}

.who-need-program-desc {
    font-size: 26px;
    font-weight: normal;
    color: #5f698a;
}

.who-need-program__img {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40%;
    gap: 18px;
}

.who-need-img {
    width: 100%;
}

.why-btn-modifier {
    width: 100%;
}

.who-need-program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    align-items: stretch;
}

/*.program-grid-modifier {*/
/*    grid-template-columns: repeat(3, 1fr);*/
/*}*/

.program-card {
    border: 1px solid #5F698A;
    padding: 1%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.program_card_modifier {
    border: none;
}

.why-btn-modifier {
    width: 100%;
    text-align: center;
}

.program-benefits {
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
}

.program-benefits__title {
    display: inline-block;
    font-size: 26px;
    font-weight: 600;
    color: #5F698A;
    padding: 4px 10px;
    margin-bottom: 16px;
    text-align: center;
}

.program-benefits__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.program-benefits__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 22px;
    line-height: 1.5;
    color: #5F698A;
    margin-bottom: 6px;
}

.program-benefits__item::before {
    content: "✓";
    font-size: 22px;
    color: #5f698a;
}

.course-methods-grid {
    display: flex;
    gap: 20px;
}

.grid-modifier {
    padding: 4% 2%;
}

.course-methods-grid .program-card {
    flex: 0 1 calc(33.333% - 20px);
    border: 1px solid #5F698A;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.test-modif {
    justify-content: center;
}

/*.course-methods-grid {*/
/*    align-items: stretch;*/
/*}*/

.work-format {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.work-format-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    margin: 0 auto;
    gap: 16px;
}

.work-format-items__item {
    color: #5F698A;
    font-size: 28px;
    width: 60%;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    border: 1px solid #5F698A;
}

.work-format-btn-modifier {}

.program-title-modifier {
    padding: 0 16%;
}

.program-desc-modifier {
    flex-direction: column;
}

.card-modifier {
    padding: 4% 8%;
}

/* 1600 */
@media (max-width: 1600px) {
    .who-need-img {
        height: fit-content;
    }

    .who-need-program__img {
        width: 60%;
    }

    .prgoram__item {
        width: 50%;
        padding: 5% 1%;
    }
}

/* 1410 */
@media (max-width: 1410px) {
    .hero-text-modifier {
        width: 100%;
    }

    .who-need-program {
        padding: 4% 1%;
    }
}

/* 1140 */
@media (max-width: 1140px) {
    .who-need-program {
        padding: 4% 0;
    }

    .who-need-program-description {
        gap: 12px;
    }

    .who-need-program__item {
        gap: 8px;
    }

    .prgoram__item,
    .who-need-program__img {
        width: 100%;
    }
}

/* 1130 – сгруппировано */
@media (max-width: 1130px) {
    .program-benefits__title {
        font-size: 24px;
    }

    .program-benefits__item {
        font-size: 20px;
    }

    .course-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-methods-grid .program-card {
        flex: 1 1 calc((100% - 32px) / 2); /* 2 в ряд */
    }
}

@media (max-width: 975px) {
    .program-title-modifier {
        font-size: 28px;
        padding: 0;
    }
}

/* 940 */
@media (max-width: 940px) {
    .hero-modifier {
        padding: 120px 40px 70px;
    }

    .prgoram__item {
        gap: 42px;
        text-align: center;
    }

    .who-need-program-title,
    .who-need-program-desc {
        font-size: 20px;
    }
}

/* 784 */
@media (max-width: 784px) {
    .selected-program__img {
        height: fit-content;
        width: 280px;
    }
}

/* 770 – сгруппировано */
@media (max-width: 770px) {
    .program-benefits {
        margin: 24px auto 0;
        padding: 0 16px;
    }

    .program-benefits__title {
        font-size: 22px;
    }

    .program-benefits__item {
        font-size: 18px;
        padding-left: 22px;
    }

    .program-benefits__item::before {
        font-size: 20px;
    }

    .course-methods {
        padding: 0 5%;
    }

    .course-methods-grid {
        grid-template-columns: 1fr;
    }

    .course-methods-grid .program-card {
        flex: 1 1 100%; /* 1 в ряд */
        text-align: center;
    }

    .who-need-program-title {
        font-size: 18px;
    }

    .who-need-program-description,
    .who-need-program__item {
        flex-direction: column;
    }

    .who-need-img {
        width: 50%;
        margin: 0 auto;
    }

    .work-format-items {
        flex-direction: column;
        gap: 16px;
    }

    .work-format-items__item {
        width: 100%;
        border: none;
    }
}

/* 550 */
@media (max-width: 550px) {
    .selected-program-description {
        flex-direction: column;
        gap: 24px;
    }

    .selected-program__img {
        width: 100%;
    }

    .hero-btn-modifier {
        width: 100%;
    }

    .program-benefits {
        padding: 0 10px;
    }

    .program-benefits__title {
        font-size: 20px;
        padding: 3px 8px;
    }

    .program-benefits__item {
        font-size: 16px;
        padding-left: 20px;
    }

    .program-benefits__item::before {
        font-size: 18px;
    }

    .who-need-program-grid {
        display: flex;
        flex-direction: column;
    }

    .program-card {
        text-align: center;
        justify-content: center;
    }

    .program-title-modifier {
        font-size: 24px;
    }

    .course-methods-grid {
        flex-direction: column;
    }
}

/* 510 */
@media (max-width: 510px) {
    .hero-modifier {
        padding: 18% 1%;
    }

    .hero-text-modifier {
        padding: 0;
        text-align: center;
    }

    .who-need-program-main-title {
        font-size: 28px;
    }

    .who-need-program__item {
        padding: 0 1%;
    }
}

/* 450 – сгруппировано */
@media (max-width: 450px) {
    .who-need-program-title {
        font-size: 20px;
    }
}


/*@media (max-width: 1600px) {*/
/*    .who-need-img {*/
/*        height: fit-content;*/
/*    }*/

/*    .who-need-program__img {*/
/*        width: 60%;*/
/*    }*/

/*    .prgoram__item {*/
/*        width: 50%;*/
/*        padding: 5% 1%;*/
/*    }*/
/*}*/

/*@media (max-width: 1410px) {*/
/*    .hero-text-modifier {*/
/*        width: 100%;*/
/*    }*/

/*    .who-need-program {*/
/*        padding: 4% 1%;*/
/*    }*/
/*}*/

/*@media (max-width: 1140px) {*/
/*    .who-need-program {*/
/*        padding: 4% 0;*/
/*    }*/

/*    .who-need-program-description {*/
/*        gap: 12px;*/
/*    }*/

/*    .who-need-program__item {*/
/*        gap: 8px;*/
/*    }*/

/*    .prgoram__item {*/
/*        width: 100%;*/
/*    }*/

/*    .who-need-program__img {*/
/*        width: 100%;*/
/*    }*/
/*}*/

/*@media (max-width: 940px) {*/
/*    .hero-modifier {*/
/*        padding: 120px 40px 70px;*/
/*    }*/

/*    .prgoram__item {*/
/*        gap: 42px;*/
/*        text-align: center;*/
/*    }*/

/*    .who-need-program-title {*/
/*        font-size: 20px;*/
/*    }*/

/*    .who-need-program-desc {*/
/*        font-size: 20px;*/
/*    }*/
/*}*/

/*@media (max-width: 784px) {*/
/*    .selected-program__img {*/
/*        height: fit-content;*/
/*        width: 280px;*/
/*    }*/
/*}*/

/*@media (max-width: 550px) {*/
/*    .selected-program-description {*/
/*        flex-direction: column;*/
/*        gap: 24px;*/
/*    }*/

/*    .selected-program__img {*/
/*        width: 100%;*/
/*    }*/

/*    .hero-btn-modifier {*/
/*        width: 100%;*/
/*    }*/
/*}*/

/*@media (max-width: 1130px) {*/
/*    .program-benefits__title {*/
/*        font-size: 24px;*/
/*    }*/

/*    .program-benefits__item {*/
/*        font-size: 20px;*/
/*    }*/
/*}*/

/*@media (max-width: 770px) {*/
/*    .program-benefits {*/
/*        margin: 24px auto 0;*/
/*        padding: 0 16px*/
/*    }*/

/*    .program-benefits__title {*/
/*        font-size: 22px;*/
/*    }*/

/*    .program-benefits__item {*/
/*        font-size: 18px;*/
/*        padding-left: 22px;*/
/*    }*/

/*    .program-benefits__item::before {*/
/*        font-size: 20px;*/
/*    }*/
/*}*/

/*@media (max-width: 1130px) {*/
/*    .course-methods-grid {*/
/*        grid-template-columns: repeat(2, 1fr);*/
/*    }*/
/*}*/

/*@media (max-width: 450px) {*/
/*    .program-benefits {*/
/*        padding: 0 10px;*/
/*    }*/

/*    .program-benefits__title {*/
/*        font-size: 20px;*/
/*        padding: 3px 8px;*/
/*    }*/

/*    .program-benefits__item {*/
/*        font-size: 16px;*/
/*        padding-left: 20px;*/
/*    }*/

/*    .program-benefits__item::before {*/
/*        font-size: 18px;*/
/*    }*/
/*}*/

/*@media (max-width: 770px) {*/
/*    .course-methods {*/
/*        padding: 0 5%;*/
/*    }*/

/*    .course-methods-grid {*/
/*        grid-template-columns: 1fr;*/
/*    }*/

/*    .program-card {*/
/*        text-align: center;*/
/*    }*/

/*    .who-need-program-title {*/
/*        font-size: 18px;*/
/*    }*/

/*    .who-need-program-description {*/
/*        flex-direction: column;*/
/*    }*/

/*    .who-need-program__item {*/
/*        flex-direction: column;*/
/*    }*/

/*    .who-need-img {*/
/*        width: 50%;*/
/*        margin: 0 auto;*/
/*    }*/
/*}*/

/*@media (max-width: 450px) {*/
/*    .who-need-program-title {*/
/*        font-size: 20px;*/
/*    }*/
/*}*/

/*@media (max-width: 1130px) {*/
/*    .course-methods-grid .program-card {*/
/*        flex: 1 1 calc((100% - 32px) / 2);  !* 2 в ряд *!*/
/*    }*/
/*}*/

/*@media (max-width: 770px) {*/
/*    .course-methods-grid .program-card {*/
/*        flex: 1 1 100%;                     !* 1 в ряд *!*/
/*    }*/
/*}*/

/*@media (max-width: 510px) {*/
/*    .hero-modifier {*/
/*        padding: 18% 1%;*/
/*    }*/

/*    .hero-text-modifier {*/
/*        padding: 0;*/
/*        text-align: center;*/
/*    }*/

/*    .who-need-program-main-title {*/
/*        font-size: 28px;*/
/*    }*/

/*    .who-need-program__item {*/
/*        padding: 0 1%;*/
/*    }*/
/*}*/