/* schema */
.schema_wrapper {
    position: relative;
    overflow-x: auto;
    padding-bottom: 40px;
}

.schema_wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.schema_wrapper::-webkit-scrollbar-track {
  background: #0f141e;
}

.schema_wrapper::-webkit-scrollbar-thumb {
  background-color: #3f434b;
  border-radius: 20px;
}

.schema_border {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    display: flex;
}

.schema_border-left,
.schema_border-right {
    width: 100%;
    max-width: 50%;
    height: 100%;
    padding-left: 136px;
    display: grid;
    grid-template-rows: 134px 110px 220px 170px 1fr;
}

.schema_border-left div,
.schema_border-right div {
    width: 100%;
    height: 100%;
}

.schema_border-right {
    padding-right: 136px;
    padding-left: 0;
    grid-template-rows: 134px 110px 220px 170px 170px;
}

.schema_border-left div:nth-child(2) {
    border-top:  1px solid #c7c5c5;;
    border-radius: 25px 0 0 0;
    border-left:  1px solid #c7c5c5;;
}

.schema_border-left div:nth-child(3),
.schema_border-left div:nth-child(4) {
    border-bottom:  1px solid #c7c5c5;;
    width: 35%;
    margin: 0 0 0 auto;
}

.schema_border-right div:nth-child(1) {
    border-left:  1px solid #c7c5c5;;
    margin: auto 0 0 0;
    height: 45%;
}

.schema_border-right div:nth-child(2) {
    border-top:  1px solid #c7c5c5;;
    border-radius: 0 25px 0 0;
    border-right:  1px solid #c7c5c5;;
    border-left:  1px solid #c7c5c5;;
}

.schema_border-right div:nth-child(3) {
    border-bottom:  1px solid #c7c5c5;;
    border-left:  1px solid #c7c5c5;;
    width: 35%;
}

.schema_border-right div:nth-child(4) {
    border-bottom:  1px solid #c7c5c5;;
    border-left:  1px solid #c7c5c5;;
    width: 35%;
}

.schema_border-right div:nth-child(5) {
    border-bottom:  1px solid #c7c5c5;;
    border-left:  1px solid #c7c5c5;;
    width: 35%;
    border-radius: 0 0 0 25px;
}

.schema_wrapper .common__list_item_card {
    color: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    /* font-family: 'NunitoSans'; */
    font-size: 18px;
    line-height: 26px;
    padding: 21px;
    font-weight: 500;
}

.schema_top {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
}

.schema_center {
    display: flex;
    column-gap: 20px;
    margin-bottom: 100px;
}

.schema_bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 50px;
    margin: 0 auto;
    max-width: 695px;
}

.schema_top .common__list_item_card {
    background-color: #3E3183;
    font-size: 34px;
    min-width: auto;
    max-width: 160px;
    padding: 29px 24px;
}

.schema_center .common__list_item_card {
    background-color: #4136C3;
}

.schema_bottom .common__list_item_card {
    background-color: #1E2837;
    max-width: 272px;
    padding: 21px 14px;
    min-height: 120px;
}

.schema_bottom-top {
    display: flex;
    column-gap: 150px;
}

.schema_bottom-center {
    width: 100%;
    display: flex;
    justify-content: space-between;
    column-gap: 150px;
}

.schema_bottom-bot {
    width: 100%;
    display: flex;
    justify-content: end;
}

.schema_bottom-bot .common__list_item_card {
    padding: 21px;
}

/**  VERSION FOR THE VISUALLY IMPAIRED **/
/* средний шрифт */

/* body.version_impaired.medium-font .schema_border-left {
    grid-template-rows: 134px 110px 285px 194px 1fr;
}
body.version_impaired.medium-font .schema_border-right {
    grid-template-rows: 134px 110px 285px 194px 170px;
} */

body.version_impaired.small-font .schema_bottom .common__list_item_card,
body.version_impaired.medium-font .schema_bottom .common__list_item_card,
body.version_impaired.big-font .schema_bottom .common__list_item_card,
body.version_impaired.lineheight_1 .schema_bottom .common__list_item_card,
body.version_impaired.lineheight_15 .schema_bottom .common__list_item_card,
body.version_impaired.lineheight_2 .schema_bottom .common__list_item_card,
body.version_impaired.letterspacing_1 .schema_bottom .common__list_item_card,
body.version_impaired.letterspacing_15 .schema_bottom .common__list_item_card,
body.version_impaired.letterspacing_2 .schema_bottom .common__list_item_card,
body.version_impaired.small-font .common__list_item_table td *,
body.version_impaired.medium-font .common__list_item_table td *,
body.version_impaired.big-font .common__list_item_table td *,
body.version_impaired.lineheight_1 .common__list_item_table td *,
body.version_impaired.lineheight_15 .common__list_item_table td *,
body.version_impaired.lineheight_2 .common__list_item_table td *,
body.version_impaired.letterspacing_1 .common__list_item_table td *,
body.version_impaired.letterspacing_15 .common__list_item_table td *,
body.version_impaired.letterspacing_2 .common__list_item_table td *,
body.version_impaired.small-font .common__list_item_table td,
body.version_impaired.medium-font .common__list_item_table td,
body.version_impaired.big-font .common__list_item_table td,
body.version_impaired.lineheight_1 .common__list_item_table td,
body.version_impaired.lineheight_15 .common__list_item_table td,
body.version_impaired.lineheight_2 .common__list_item_table td,
body.version_impaired.letterspacing_1 .common__list_item_table td,
body.version_impaired.letterspacing_15 .common__list_item_table td,
body.version_impaired.letterspacing_2 .common__list_item_table td {
    word-break: break-all;
}
/**  VERSION FOR THE VISUALLY IMPAIRED **/

@media (max-width: 1440px) {
    .schema_border-left {
        grid-template-rows: 134px 123px 233px 170px 1fr;
    }

    .schema_border-right {
        grid-template-rows: 134px 123px 233px 170px 170px;
    }
}

@media (max-width: 1280px) {
    .schema_border-left {
        padding-left: 64px;
    }

    .schema_border-right {
        padding-right: 64px;
    }
}

@media (max-width: 1024px) {
    .schema_center {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 120px);
        gap: 20px;
        justify-content: center;
    }

    .schema_center .common__list_item_card:nth-child(3) {
        grid-area: 3 / 1 / 4 / 3;
    }

    .schema_bottom {
        max-width: 100%;
        align-items: center;
    }

    .schema_bottom-top {
        gap: 50px;
    }

    .schema_bottom-center,
    .schema_bottom-bot {
        justify-content: center;
    }

    .schema_bottom-bot .common__list_item_card {
        margin-left: calc(50% - 36px);
    }
    .schema_bottom-center {
        gap: 50px;
    }

    .schema_border-left {
        padding-left: 175px;
    }
    .schema_border-right {
        padding-right: 175px;
    }

    .schema_border-left {
        grid-template-rows: 134px 110px 500px 170px 1fr;
    }

    .schema_border-right {
        grid-template-rows: 134px 110px 500px 170px 170px;
    }
}

@media (max-width: 768px) {
    .schema_bottom-top,
    .schema_bottom-center {
        width: 100%;
        justify-content: space-between;
    }

    .schema_bottom-bot {
        justify-content: flex-end;
    }

    .schema_bottom-center .common__list_item_card,
    .schema_bottom-bot .common__list_item_card {
        margin-left: 0;
    }
    .schema_border-left div:nth-child(3), 
    .schema_border-left div:nth-child(4),
    .schema_border-right div:nth-child(3),
    .schema_border-right div:nth-child(4),
    .schema_border-right div:nth-child(5) {
        width: 50%;
    }
}

@media (max-width: 675px) {
    .schema_center {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 120px);
    }

    .schema_center .common__list_item_card:nth-child(3) {
        grid-area: 5 / 1 / 6 / 1;
    }

    .schema_bottom-top,
    .schema_bottom,
    .schema_bottom-center {
        gap: 20px;
    }

    .schema_bottom-top,
    .schema_bottom-center {
        flex-direction: column;
    }

    .schema_bottom .common__list_item_card {
            max-width: 100%;
    }

    .schema_bottom-bot .common__list_item_card {
        padding: 21px 14px;
    }

    .schema_top,
    .schema_center {
        margin-bottom: 50px;
    }

    .schema_border-left,
    .schema_border-right {
        grid-template-rows: repeat(10, 1fr);
    }

    .schema_border-right div {
        border-left:  1px solid #c7c5c5 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
    }

    .schema_border-left div {
        border: 0 !important;
    }
}

/* schema end*/
