.resident_heading div.max-width-theme.main-first {
    grid-template-columns: 20% 80%;
}

.resident_heading .left-side .left_info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: unset;
}

.resident_heading .left-side .left_info .info_item {
    border: unset;
    background-color: #B9CBFF33;
    margin: unset;
    padding: 22px 20px 28px 20px;
    border-radius: 12px;
}

.resident_heading .text-heading-big {
    font-size: 56px;
}

.resident_heading .text-heading-medium {
    font-size: 16px;
}

.resident_heading div.left_block, .resident_heading div.right_block {
    padding-bottom: 56px;
}

.resident_heading div.right_block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.resident_heading .right_block .heading {
    margin: 0;
    /*width: 444px;*/
    /*height: 68px;*/

    /*font-family: 'Onest';*/
    font-style: normal;
    font-weight: 700;
    font-size: 26px;
    line-height: 34px;
    /* or 130% */
    display: flex;
    align-items: center;

    color: #FFFFFF;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}

.timeline_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}

.year_icon {
    padding: 11px;
    border: 1px solid #ffffff;
    border-radius: 24px;
    max-width: 48px;
}

.timeline_item {
    padding: 14px 35px;
    border: 1px solid #FFFFFF66;
    border-radius: 10px;
    background-color: #FFFFFF0F;
    flex-basis: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.timeline_item .title {
    /*width: 44px;*/
    /*height: 30px;*/

    /*font-family: 'Onest';*/
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 30px;
    /* identical to box height, or 100% */
    display: flex;
    align-items: center;
    text-align: center;

    color: #FFFFFF;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;


}

.timeline_wrapper .descr {
    /*width: 101px;*/
    /*height: 15px;*/

    /*font-family: 'Onest';*/
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    display: flex;
    align-items: center;
    text-align: center;

    color: #FFFFFF;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;

}

.line {
    flex-grow: 1;         /* Линия займет все свободное место между блоками */
    height: 1px;
    background-color: #fff;
}

.time_item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time_item .dot {
    border: 5px solid #fff;
    border-radius: 50%;
}

.descr_block {
    /*margin: 18px 0;*/
}

/*.time_item:not(:last-child)::after {*/
/*!*.timeline_wrapper > div:after {*!*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 50%;                  !* Центрируем по вертикали *!*/
/*    left: 100%;                !* Начинаем от правого края блока *!*/
/*    width: 40px;               !* Длина линии (равна gap в контейнере) *!*/
/*    height: 1px;               !* Толщина линии *!*/
/*    background-color: #fff;    !* Цвет линии *!*/
/*    transform: translateY(-50%);*/
/*}*/

.resident_heading div.info_block {
    border-radius: 14px 14px 14px 14px;
    gap: 1px;
    background-color: transparent;
    flex-basis: 35%;
}

.resident_heading div.info_block > div {
    padding: 0;
    min-height: 50%;
}

.resident_heading div.info_block .flex:first-child {
    border-radius: 14px 14px 0 0;
    /*padding: 10px;*/
}

.resident_heading div.info_block .flex:last-child {
    border-radius: 0 0 14px 14px;
}

.resident_heading div.info_block > div div:first-child {
    font-weight: 700;
    font-size: 19px;
    text-align: center;
    background-color: #0FA4F5;
    margin: 0;

}

.resident_heading div.info_block > div div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 15px;
}

.resident_heading div.info_block > div:first-child div:first-child {
    border-radius: 14px 0 0 0;

}

.resident_heading div.info_block > div:first-child div:last-child {
    border-radius: 0 14px 0 0;
    font-size: 13px;
}

.resident_heading div.info_block > div div:last-child {
    background-color: #2F7FCE;

}

.resident_heading div.info_block > div:last-child div:first-child {
    border-radius: 0 0 0 14px;
}

.resident_heading div.info_block > div:last-child div:last-child {
    border-radius: 0 0 14px 0;
    font-size: 13px;
}

/*div.resident_heading .info_block > div {*/
/*border-top-left-radius: 0;*/
/*border-top-right-radius: 0;*/
/*}*/

.bottom_block {
    margin-top: 0;
}

.bottom_block .theme-btn {
    font-size: 16px;
    height: 44px;
    padding: 0 12px;
}

.bottom_block .btns {
    gap: 10px;
    align-items: center;
    flex-basis: 60%;
}

.bottom_block .btns .theme-btn a {
    color: #24318A;
}

.bottom_block .btns .theme-btn:hover {
    color: #ffffff;
    background-color: #192e72;
}

.bottom_block .btns .theme-btn:hover a {
    color: #ffffff;
}

.resident_heading .left-side.mobile {
    display: none;
}

@media (max-width: 1999px) {
    .resident_heading div.max-width-theme.main-first {
        grid-template-columns: 25% 75%;
    }
}

@media (max-width: 1260px) {
    .resident_heading div.info_block {
        flex: 0 0 30%;
    }
}

@media (max-width: 1200px) {
    .resident_heading div.info_block {
        flex: 1 0 50%;
    }

    .bottom_block .btns {
        flex-basis: 40%;
    }
}

@media (max-width: 740px) {
    .resident_heading div.max-width-theme.main-first {
        /*padding: 0;*/
    }

    .resident_heading .right_block .heading {
    margin: 0;
        font-size: 19px;
    }

    .resident_heading .left-side .left_info {
        display: none;
    }

    .resident_heading .left-side.mobile {
        display: flex;
        order: unset;
        padding: 0;
        margin-top: 20px;
    }

    .resident_heading .left-side.mobile .left_info {
        display: flex;
        flex-direction: row;
        margin-bottom: 0;
    }

    .resident_heading .left-side.mobile .left_info .info_item {
        padding: 16px 14px;
        flex-basis: 50%;
        max-width: unset;
    }

    .resident_heading .text-heading-big {
        font-size: 32px;
    }

    .resident_heading .text-heading-medium {
        font-size: 14px;
    }

    .resident_heading div.left_block {
        padding-top: 0;
        padding-bottom: 30px;
        display: none;
    }

    .resident_heading div.right_block {
        padding: 30px 0 0 0;
    }

    .timeline_wrapper {
        flex-wrap: wrap;
        gap: 14px 4px;
    }

    .line {
        display: none;
    }

    .time_item {
        flex-basis: 40%;
    }

    .timeline_item {
        padding: 14px 30px;
    }

    .timeline_item:nth-last-child(1 of .timeline_item) {
        flex-basis: 85%;
    }

    .descr_block {
        font-size: 12px;
        margin: 18px 0;
    }

    .resident_heading div.info_block > div:last-child div:first-child, .resident_heading div.info_block > div:last-child div:last-child {
        border-radius: 0;
    }

    .main-first .left-side .btns {
        order: 1;
        margin: 20px 0 0;
        flex-direction: column;
        gap: 10px;
    }

    .theme-btn {
        min-height: 45px;
    }

    .btns .theme-btn a {
        color: #24318A;
    }
}

@media (max-width: 520px) {
    .resident_heading .left-side .info_block {
        display: flex;
    }

    .resident_heading div.right_block {
        padding-bottom: 30px;
    }

    .bottom_block {
        flex-direction: column;
    }

    .bottom_block > div {
        display: flex;
    }

    .bottom_block .btns .theme-btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .time_item {
        flex: 1 0 35%;
    }
}