.flex {
    display: flex;
}

.f-column {
    flex-direction: column;
}

section.max-width-theme {
    margin-bottom: 100px;
}

.heading_wrapper {
    margin-bottom: 32px;
    color: var(--gray-color);
}

.bottom_line {
    border-bottom: 1px solid #565655;
}

/* Heading */
.resident_heading {
    background-image: url("/images/resident/resident_heading.png");
    background-size: cover;
    /*height: 750px;*/
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.resident_heading:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #20377C80;
    z-index: -1;
}

.resident_heading .heading {
    color: #ffffff;
}

.resident_heading .left-side .left_info {
    background-color: #B9CBFF33;
    width: 100%;
    border-radius: 14px;
    max-width: 325px;
}

.resident_heading .left-side .left_info .info_item {
    max-width: 260px;
    border-bottom: 3px solid #ABBEE2;
    margin: 32px 49px 32px 16px;
}

.resident_heading .left-side .info_block, .resident_heading .left-side .btns {
    display: none;
}

.resident_heading .text-heading-big {
    font-size: 112px;
}

.resident_heading .text-heading-medium {
    font-size: 23px;
}

.resident_heading .right_block {
    padding-top: 56px;
    padding-right: 20px;
}

/* Блок со шкалой времени */
.timeline-block {
    color: #fff;
    padding: 60px 20px 40px;
    height: 300px;
    display: flex;
    align-items: flex-end;
}

.mobile_timeline {
    display: none;
}

.timeline-container {
    width: 100%;
    position: relative;
    height: 100%;
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

.timeline-markers::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fff;
    transform: translateY(-50%);
    z-index: 0;
}

.marker-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;

    width: 100%;
    height: 100%;
    justify-content: center;
}

.marker-item:nth-child(2n - 1):before {
    content: '';
    height: 50%;
    border-left: 1px solid #ffffff;
    position: absolute;
    top: 0;
    left: 0;
}

.marker-item:nth-child(2n):before {
    content: '';
    height: 50%;
    border-left: 1px solid #ffffff;
    position: absolute;
    bottom: 0;
    left: 0;
}

.marker-item:nth-child(2n) .date {
    bottom: -20px;
    top: unset;
}

.marker-item:nth-last-child(2) {
    flex: 1 0 50%;
}

.marker-item:last-child {
    width: 0;
}

.marker-item:last-child:before {
    right: 0;
    left: unset;
}

.marker-item:last-child .date {
    right: 5px;
    left: unset;
}

.marker-item:last-child .marker-dot {
    right: -7px;
    left: unset;
}

.marker-dot {
    width: 15px;
    height: 15px;
    background-color: #3261EC;
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 8px);
    left: -7px;
}

.percentage {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 50px;
}

.date {
    font-size: 1rem;
    position: absolute;
    top: -20px;
    left: 5px;
    font-weight: 300;
}

.description-text {
    font-size: 20px;
    max-width: 50%;
    position: absolute;
    right: 10%;
    bottom: 5%;
    text-align: left;
    font-weight: 300;
    line-height: 95%;
}
/* Блок со шкалой времени */

.bottom_block {
    justify-content: space-between;
    margin-top: 40px;
}

.bottom_block > div {
    flex: 0 1 40%;
}

.resident_heading .info_block {
    background-color: var(--light-blue-color);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    justify-content: space-between;
}

.resident_heading .info_block > div {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    justify-content: space-between;
    padding: 10px;
}

.resident_heading .info_block > div {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    justify-content: space-between;
    padding: 10px;
}

.resident_heading .info_block > div:nth-child(2n - 1) {
    background-color: var(--light-blue-color);
}

.resident_heading .info_block > div:nth-child(2n) {
    background-color: #009AE7;
}

.resident_heading .info_block > div div:first-child {
    font-size: 30px;
    flex-basis: 35%;
    font-weight: 300;
    margin: auto;
    white-space: nowrap;
    width: 150px;
}

.resident_heading .info_block > div div:last-child {
    flex-basis: 65%;
    font-size: 14px;
}

.bottom_block .btns .resident-btn {
    color: #24318A;
    margin-right: 4px;
}

.bottom_block .btns a {
    white-space: nowrap;
}

.icon-file:before {
    content: url("/images/docs-icon.svg");
    margin-right: 10px;
}

/* Calculator */
.calculator .heading_wrapper {
    text-align: center;
}

.calculator_container {
    gap: 20px;
    /*justify-content: space-between;*/
}

.calculator_item {
    flex-basis: 30%;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 26px;
    flex-grow: 1;
}

.calculator_item:first-child {
    padding: 0;
}

.calculator_item.image {
    background-image: url("/images/resident/calculator.jpg");
    background-size: cover;
}

.calculator_item.main {

}

.calculator_item.main .flex {
    justify-content: space-between;
}

.calculator_item.main .flex > div {
    margin-bottom: 20px;
}

.calculator_item.main .calc-title {
    font-size: 23px;
}

.calculator_item.main .input_wrapper {
    position: relative;
}

.calculator_item.main .input_wrapper:after {
    content: url("/images/resident/ruble_icon.svg");
    position: absolute;
    right: 10px;
    top: 5px;
}

.calculator_item.main input {
    border: 1px solid #ECECEC;
    border-radius: 4px;
    color: #9A9A9A;
    width: 100%;
    padding: 6px 0 6px 10px;
    font-size: 13px;
}

.calculator_item.main .descr {
    color: #565655;
    font-size: 16px;
    margin-bottom: 4px;
}

.calculator_item.main .btns {
    max-width: 190px;
}

.calculator_item.right_block {
    gap: 8px;
    background-color: inherit;
    border: 1px solid var(--main-color);
}

.calculator_item.right_block > div {
    border-radius: 10px;
    padding: 12px;
    gap: 8px;
    background-color: #ffffff;
}

.calculator_item.right_block > div:nth-child(2n) {
    background-color: #D7E6F2;
}

.calculator_item.right_block .profit_value {
    font-size: 40px;
    font-weight: 300;
}

.calculator_item.right_block > div:first-child .profit_value {
    font-weight: bold;
    color: var(--main-color);
}

.calculator_item.right_block .profit_text {
    color: var(--text-color);
}


/* Privileges */
.privileges .heading_wrapper {
    text-align: center;
}

.privileges_wrapper {
    margin-top: 36px;
    margin-bottom: 48px;
    justify-content: space-between;
    gap: 20px;
}

.privileges_wrapper > div {
    border-right: 1px solid var(--light-blue-color);
    flex-grow: 1;
}

.privileges_wrapper > div:last-child {
    border-right: unset;
}

.privileges_wrapper .percents {
    font-size: 112px;
}

.privileges_wrapper .title {
    color: var(--gray-color);
    font-size: 23px;
}

.privileges_wrapper .descr_text_wrapper {
    color: var(--text-color);
    font-size: 16px;
}

.privileges .descr {
    color: var(--gray-color);
    max-width: 575px;
    font-size: 23px;
}

.privileges .descr {
    color: var(--gray-color);
    max-width: 575px;
    font-size: 23px;
    margin-bottom: 24px;
}

.privileges .btns {
    max-width: 190px;
}

/* Banner */
/*section.banner {*/
/*    background-color: var(--main-color);*/
/*    border-radius: 14px;*/
/*}*/

section.banner .banner_wrapper {
    position: relative;
    min-height: 240px;
    background-color: var(--main-color);
    border-radius: 14px;
}

section.banner .note {
    position: absolute;
    background-color: var(--blue-color);
    border-radius: 3px;
    top: 20px;
    left: 16px;
}

section.banner .descr {
    position: absolute;
    bottom: 20px;
    left: 16px;
    max-width: 400px;
    font-size: 12px;
}

section.banner .main_text {
    font-size: 40px;
    padding: 82px 150px;
}

section.banner .btns {
    position: absolute;
    bottom: 20px;
    right: 16px;
}

/* Stages */

.stages_wrapper {
    padding-bottom: 100px;
    gap: 20px;
    font-size: 23px;
}

.stages_wrapper > div {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 40px 24px;
    flex-basis: 25%;
    gap: 48px;
}

.stages_wrapper .text_final {
    color: var(--light-blue-color);
}

/* Progress */
.progress.max-width-theme {
    padding-bottom: 100px;
}

.progress_wrapper {
    background-color: #D7E6F2;
    padding: 28px 24px;
    border-radius: 20px;
    gap: 20px;
}

.progress_wrapper > div {
    flex-basis: 50%;
}

.progress_wrapper .main_img {
    object-fit: cover;
}

.progress_wrapper .main_block .img_wrapper {
    display: none;
}

.progress_wrapper .main_title {
    color: var(--gray-color);
    font-size: 32px;
    margin-bottom: 12px;
}

.progress_wrapper .main_descr {
    color: var(--gray-color);
    font-size: 23px;
    margin-bottom: 24px;
}

.progress_wrapper .sub_wrapper {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 16px;
    gap: 16px;
}

.progress_wrapper .sub_wrapper img {
    min-height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.progress_wrapper .sub_wrapper .sub_title {
    color: var(--text-color);
    font-weight: 400;
}

.progress_wrapper .btns {
    margin-top: auto;
    max-width: 170px;
}

/* Questions */
.questions_wrapper {
    gap: 12px;
    margin-bottom: 40px;
}

.questions_wrapper .question_item {
    font-size: 23px;
    padding: 27px 20px;
    background-color: #ffffff;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.questions_wrapper .question_item span {
    margin: auto 0;
}

.questions_wrapper .question_item span:first-child {
    flex-basis: 90%;
    color: var(--gray-color);
}

.questions_wrapper .question_item span.show_more {
    content: '+';
    /*font-size: 12px;*/
    width: 56px;
    height: 56px;
    text-align: center;
    padding: 14px 22px;
    background-color: #F3F7FA;
    border-radius: 28px;
    cursor: pointer;
}

.questions_wrapper .question_item .question_descr {
    display: none;
    flex-basis: 100%;
    font-size: 16px;
    color: var(--text-color);
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid #B5B5B5;
}

.bottom_wrapper {
    gap: 15%;
}

.bottom_wrapper .bottom_text {
    font-size: 32px;
    color: #132561;
    margin-top: 15px;
}

.bottom_wrapper .btns {
    max-width: 250px;
}

/* Docs */
.max-width-theme.docs {
    margin-bottom: 0;
}

.docs .heading {
    text-align: center;
}

.docs_wrapper {
    flex-wrap: wrap;
    gap: 10px 0;
    justify-content: space-between;
}

.docs_wrapper > div {
    flex-basis: 49%;
    border: 1px solid #D7E6F2;
    border-radius: 14px;
    padding: 20px;
    gap: 10px;
}

.docs_wrapper .img_wrapper {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
}

.docs_wrapper .img_wrapper img {
    height: 100%;
    max-width: unset;
}

.docs_wrapper .text_wrapper {
    justify-content: space-between;
}

.docs_wrapper .text_wrapper a {
    color: var(--gray-color);
}

.docs_wrapper .text_wrapper > div:last-child {
    font-size: 12px;
    color: var(--text-color);
}

@media (max-width: 1170px) {
    /* Heading */
    .resident_heading .info_block > div div:first-child {
        font-size: 24px;
    }

    .resident_heading .info_block > div div:last-child {
        font-size: 12px;
    }

    .bottom_block {
        gap: 10px;
    }

    .bottom_block > div {
        flex-direction: column;
        gap: 10px;
    }

    .bottom_block .btns .resident-btn {
        margin-right: 0;
    }


    /* Progress */
    .progress_wrapper .btns {
        margin-top: 32px;
    }
}

@media (max-width: 900px) {
    .max-width-theme .h3 {
        font-size: 36px;
    }

    section.max-width-theme {
        margin-bottom: 70px;
    }

    /* Heading */
    .resident_heading .max-width-theme.main-first {
        flex-direction: row;
    }

    .resident_heading .left-side {
        padding: 36px 20px 0 10px;
        justify-content: space-between;
    }

    .resident_heading .text-heading-big {
        font-size: 80px;
    }

    .resident_heading .text-heading-medium {
        font-size: 16px;
    }

    .resident_heading .left-side .left_info {
        margin-bottom: 45px;
        max-width: unset;
    }

    .resident_heading .left-side .left_info .info_item {
        margin: 24px 16px 20px;
    }

    .resident_heading .info_block > div div:first-child {
        font-size: 24px;
        /*margin: auto 10px auto auto;*/
    }

    .resident_heading .info_block > div div:last-child {
        font-size: 10px;
    }

    .resident_heading .left-side .info_block {
        display: flex;
    }

    .description-text {
        font-size: 13px;
    }

    .bottom_block {
        justify-content: flex-end;
        margin-right: 40px;
    }

    .bottom_block .info_block {
        display: none;
    }

    /* Calculator */
    .calculator_item.image {
        display: none;
    }

    .calculator_item.right_block {
        height: fit-content;
    }

    /* Privileges */
    .privileges_wrapper .percents {
        font-size: 48px;
    }

    .privileges_wrapper .title {
        font-size: 16px;
    }

    .privileges_wrapper .descr_text_wrapper {
        font-size: 13px;
    }

    .privileges_wrapper > div:last-child {
        border-right: 1px solid var(--light-blue-color);
    }

    .privileges .descr {
        max-width: unset;
        text-align: center;
    }

    .privileges .btns {
        margin: 0 auto;
    }

    /* Banner */
    section.banner .main_text {
        font-size: 36px;
    }

    section.banner .note, section.banner .descr {
        font-size: 10px;
    }

    /* Stages */
    .stages_wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .stages_wrapper > div {
        flex-basis: 48%;
    }

    /* Progress */
    .progress_wrapper .main_img {
        height: 100%;
        object-fit: cover;
    }

    .progress_wrapper .sub_wrapper {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .progress_wrapper .sub_wrapper div {
        flex-direction: row;
        gap: 20px;
    }

    .progress_wrapper .sub_wrapper img {
        width: 64px;
        height: 64px;
        border-radius: 7px;
        min-height: unset;
    }

    .progress_wrapper .sub_wrapper .sub_title {
        font-size: 13px;
    }

    /* Questions */
    .questions_wrapper {
        margin-bottom: 24px;
    }

    .bottom_wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .bottom_wrapper .bottom_text {
        margin-top: 0;
        font-size: 16px;
    }

    .bottom_wrapper .btns {
        padding: 0;
        max-width: 200px;
    }

    .bottom_wrapper .btns a {
        font-size: 13px;
    }

    /* Docs */
    .docs_wrapper .img_wrapper {
        padding: 12px;
        width: 48px;
        height: 48px;
    }

    .docs_wrapper .text_wrapper {
        font-size: 13px;
        gap: 12px;
    }
}

@media (max-width: 670px) {
    section.banner .main_text {
        padding: 80px 80px;
    }
}

@media (max-width: 520px) {
    .max-width-theme .h3 {
        font-size: 26px;
    }

    .heading_wrapper {
        margin-bottom: 24px;
    }

    section.max-width-theme {
        margin-bottom: 60px;
    }

    /* Heading */
    .resident_heading .max-width-theme.main-first {
        flex-direction: column;
    }

    .resident_heading .left-side {
        order: 1;
        padding-top: 15px;
        padding-right: 10px;
    }

    .resident_heading .left-side .left_info {
        margin-bottom: 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .resident_heading .left-side .left_info .info_item {
        margin: 16px;
    }

    .resident_heading .text-heading-medium {
        font-size: 12px;
    }

    .main-first .left-side .btns {
        margin: 0 0 20px;
    }

    .resident_heading .right_block {
        order: 0;
        padding-top: 24px;
        padding-right: 0;
    }

    .bottom_block {
        margin-top: 0;
    }

    .bottom_block > div {
        display: none;
    }

    .timeline-block {
        padding: 16px 0 20px;
        height: 200px;
    }

    .timeline-container {
        display: flex;
        flex-direction: column;
    }

    .timeline-markers {
        order: 1;
    }

    .description-text {
        order: 0;
        margin-bottom: 30px;
        max-width: unset;
        position: unset;
    }

    /* Second date line */
    .timeline {
        display: none;
    }

    .mobile_timeline {
        display: flex;
        position: relative;
        margin: 16px 0 24px;
    }

    .mobile_timeline .timeline-markers {
        width: 95%;
    }

    .mobile_timeline .timeline-markers::before {
        width: 110%;
    }

    .mobile_timeline .timeline-markers.second:before {
        /*content: '';*/
        /*position: absolute;*/
        left: -15px;
        /*right: -20px;*/
        /*height: 2px;*/
        /*background-color: #fff;*/
        /*transform: translateY(-50%);*/
        /*z-index: 0;*/
        width: 105%;
    }

    .mobile_timeline .timeline-markers.second {
        width: 75%;
        position: absolute;
        top: 60px;
    }

    .mobile_timeline .second .marker-item {
        width: 100%;
    }

    .mobile_timeline .marker-item:last-child:before {
        content: '';
        height: 50%;
        border-left: 1px solid #ffffff;
        position: absolute;
        top: 0;
        right: 0;
        left: unset;
    }


    .mobile_timeline .second .marker-item:last-child:before {
        content: '';
        height: 30%;
        border-left: 1px solid #ffffff;
        position: absolute;
        bottom: 20%;
        right: 0;
        left: unset;
        top: unset;
    }

    .mobile_timeline .marker-item:last-child .date {
        right: 5px;
        font-size: 1rem;
        position: absolute;
        top: -20px;
        left: unset;
        font-weight: 300;
    }

    .mobile_timeline .second .marker-item:last-child .date {
        bottom: 15%;
        top: unset;
        right: -40px;
    }

    .mobile_timeline .second .percentage {
        margin-top: 50px;
        margin-bottom: unset;
    }


    .mobile_timeline .marker-item:nth-child(2n):before {
        content: '';
        height: 50%;
        border-left: 1px solid #ffffff;
        position: absolute;
        top: 0;
        left: 0;
    }

    .mobile_timeline .marker-item:nth-child(2n) .date {
        font-size: 1rem;
        position: absolute;
        top: -20px;
        left: 5px;
        font-weight: 300;
    }

    /* Calculator */
    .calculator_container {
        flex-direction: column;
    }

    .calculator_item {
        padding: 24px 16px;
    }

    .calculator_item.main .btns {
        max-width: 135px;
    }

    .calculator_item.main .calc-title {
        font-size: 14px;
    }

    .calculator_item.main .descr {
        font-size: 13px;
        margin-top: 8px;
    }

    /* Privileges */
    .privileges_wrapper {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 24px;
    }

    .privileges_wrapper > div {
        border-right: none;
        border-bottom: 1px solid var(--light-blue-color);
        flex: 1;
        height: fit-content;
        padding-bottom: 12px;
        flex-basis: 40%;
    }

    .privileges_wrapper > div:last-child {
        border-right: none;
    }

    .privileges .descr {
        font-size: 14px;
    }

    .privileges .btns {
        max-width: 135px;
    }

    /* Banner */
    section.banner > div {
        padding: 70px 16px;
    }

    section.banner .note {
        left: 50%;
        transform: translateX(-50%);
    }

    section.banner .note, section.banner .descr {
        text-align: center;
        font-size: 8px;
    }

    section.banner .main_text {
        padding: 0;
        margin-bottom: 16px;
    }

    section.banner .btns {
        position: initial;
        max-width: 100px;
        margin: 0 auto;
    }

    /* Stages */
    .stages_wrapper {
        font-size: 12px;
    }

    .stages_wrapper > div {
        width: 50%;
        padding: 20px 12px;
        gap: 20px;
        flex-basis: 45%;
    }

    /* Progress */
    .progress_wrapper {
        flex-direction: column;
    }

    .progress_wrapper > .img_wrapper {
        display: none;
    }

    .progress_wrapper .main_title {
        font-size: 18px;
    }

    .progress_wrapper .main_descr {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .progress_wrapper .main_block .img_wrapper {
        display: block;
        margin-bottom: 16px;
    }

    .progress_wrapper .sub_wrapper {
        margin-bottom: 20px;
    }

    /* Questions */
    .questions_wrapper .question_item {
        /*flex-wrap: nowrap;*/
    }

    .questions_wrapper .question_item span:first-child {
        flex-basis: 70%;
        font-size: 14px;
    }

    .questions_wrapper .question_item span.show_more {
        width: 36px;
        height: 36px;
        padding: 3px 0 0 0;
    }

    .questions_wrapper .question_item .question_descr {
        font-size: 12px;
    }

    .bottom_wrapper {
        align-items: center;
        text-align: center;
    }

    /* Docs */
    .docs_wrapper {
        flex-direction: column;
    }

    .docs_wrapper .img_wrapper {
        padding: 6px;
        width: 32px;
        height: 32px;
    }

    .docs_wrapper .text_wrapper {
        font-size: 12px;
        gap: 12px;
    }
}






