﻿/* Start mobile viewport bug fix */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}
/* End mobile viewport bug fix */

/* Start ctr */
.ctr__table {
    letter-spacing: 0.01em;
    margin-top: 27px;
}

.ctr__table p {
    margin: 0;
}

.ctr__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 0 16px;
    border-bottom: 1px solid #e9e9ea;
}

.ctr__table-body .ctr__row {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 14px 16px;
}

.ctr__table-body .ctr__col {
    -webkit-padding-end: 6px;
    padding-inline-end: 6px;
}

.ctr__col {
    text-align: right;
}

.ctr__col--first {
    text-align: left;
    width: 20.18%;
}

.ctr__col--second {
    width: 14.36%;
}

.ctr__table-body .ctr__col.ctr__col--second {
    -webkit-padding-end: 0;
    padding-inline-end: 0;
}

.ctr__col--third {
    width: 13.24%;
}

.ctr__col--fourth {
    width: 10.78%;
}

.ctr__col--fifth {
    width: 13.03%;
}

.ctr__col--sixth {
    width: 13.12%;
}

.ctr__col--seventh {
    width: 15.29%;
}
/* End ctr */

/* Start strategy */
.strategy {
    color: #1f252d;
}

.strategy.hover {
    position: relative;
}

.strategy.hover .ctr__col {
    position: relative;
    z-index: 1;
}

.strategy.hover::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 0;
    display: block;
    width: 100vw;
    height: 100%;
    background-color: #f3f5f6;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.strategy.hover .highcharts-background {
    fill: #f3f5f6;
}

.strategy:hover {
    color: inherit;
}

.strategy__title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    word-break: break-word;
}

.strategy__subtitle {
    font-size: 13px;
    color: #6f797e;
}

.strategy__text {
    font-size: 16px;
    line-height: 1.5;
}

.strategy__chart {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 138px;
    height: 52px;
    overflow: hidden;
}

.strategy__chart-container {
    width: 100%;
    height: 100%;
}
/* End strategy */

/* Start highcharts */
.highcharts-credits {
    display: none;
}
/* End highcharts */

/* Start mobile__modal */
.mobile__modal {
    position: fixed;
    z-index: 100001;
    right: 0;
    top: 0;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    height: 100vh;
    width: 330px;
    -webkit-box-shadow: -10px 0px 32px rgba(161, 177, 191, 0.25);
    box-shadow: -10px 0px 32px rgba(161, 177, 191, 0.25);
    background: #fff;
    -webkit-transform: translateX(150%);
    -ms-transform: translateX(150%);
    transform: translateX(150%);
    -webkit-transition: -webkit-transform .3s ease;
    transition: -webkit-transform .3s ease;
    -o-transition: transform .3s ease;
    transition: transform .3s ease;
    transition: transform .3s ease, -webkit-transform .3s ease;
    overflow: hidden;
}

.mobile__modal.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.mobile__modal-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.mobile__modal-header,
.mobile__modal-body,
.mobile__modal-footer {
    width: 100%;
}

.mobile__modal-header {
    margin-bottom: 32px;
    padding: 40px 24px 0;
}

.mobile__modal-footer {
    padding: 0 24px 40px;
}

.mobile__modal-header__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.mobile__modal-body {
    width: 98%;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0px;
    flex: 1 1 0;
    padding: 0 24px;
    margin-bottom: 32px;
    overflow-y: auto;
}

.mobile__modal-body::-webkit-scrollbar {
    width: 4px;
}

.mobile__modal-body::-webkit-scrollbar-thumb {
    background: #d2d3d5;
    border-radius: 2px;
}

.mobile__modal-body::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 2px;
}

.mobile__modal-close {
    display: block;
    width: 40px;
    height: 40px;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
    -webkit-inline-end: auto;
    margin-inline-end: -10px;
    background-color: transparent;
    background-image: url(../image/close-icon.svg);
    background-size: 13px;
    background-position: center center;
    background-repeat: no-repeat;
}

.mobile__modal-reset {
    color: #68ad5c;
}

.mobile__modal-submit {
    width: 100%;
    border: none;
    background: #1f252d;
    border-radius: 5px;
    padding: 18px 20px;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    outline: none;
}
/* End mobile__modal */

/* Start mobile__toggles */
.mobile__toggles {
    position: fixed;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 10;
    display: none;
    padding: 12px 0;
    margin: 0;
}

.mobile__toggles-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: #272e36;
    border-radius: 50%;
    border: 0;
    margin: 0 8px;
}

.mobile__toggles-btn.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
/* End mobile__toggles */

/* Start noresult */
.noresult {
    display: none;
    letter-spacing: 0.01em;
    padding: 64px 0;
    text-align: center;
}

.noresult.active {
    display: block;
}

.noresult-title {
    font-weight: 700;
    font-size: 26px;
}

.noresult-text {
    font-size: 16px;
}
/* End noresult */

.increased {
    color: #68ad5c;
}

.decreased {
    color: #fa564d;
}

.overflow-hidden {
    height: 100% !important;
    min-height: 100% !important;
}

/* RTL start */
.rtl .mobile__modal {
    left: 0;
    right: auto;
    -webkit-transform: translateX(-150%);
    -ms-transform: translateX(-150%);
    transform: translateX(-150%);
}

.rtl .mobile__modal.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.rtl .text-number {
    font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
    direction: ltr;
}

.rtl .ctr__col {
    text-align: left;
}

.rtl .ctr__col--first {
    text-align: right;
}
/* RTL end */

@media (hover: hover) and (pointer: fine) {
    .strategy:hover,
    .strategy:hover .highcharts-background {
        color: inherit;
        background-color: #f3f5f6;
        fill: #f3f5f6;
    }
}

@media only screen and (max-width: 1024px) {
    .mobile__modal-header {
        padding: 24px 16px 0;
    }

    .mobile__modal-body {
        padding: 0 16px;
    }

    .mobile__modal-footer {
        padding: 0 16px 24px;
    }
}

@media only screen and (max-width: 991px) {
    .ctr__col--second {
        width: 19.2%;
    }

    .ctr__col--third {
        width: 20.89%;
    }

    .ctr__col--fourth {
        width: 18.7%;
    }

    .ctr__col--fifth {
        width: 20.95%;
    }

    .ctr__col--sixth {
        display: none;
    }

    .ctr__col--seventh {
        display: none;
    }
}

@media only screen and (max-width: 767px),
(max-height: 480px) and (orientation: landscape) {
    .ctr__row {
        padding: 0;
    }

    .mobile__toggles {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .ctr__table-head .ctr__col:not(.ctr__col--first, .ctr__col.show),
    .ctr__table-body .ctr__col:not(.ctr__col--first, .ctr__col--second) {
        display: none;
    }

    .ctr__table-head .ctr__col.show,
    .ctr__table-body .ctr__col.show {
        display: block !important;
    }

    .ctr__table-body .ctr__row {
        padding: 14px 0;
    }

    .ctr__table-head .ctr__col--second {
        display: none !important;
    }

    .ctr__table-head .ctr__col:not(.ctr__col--first) {
        width: 60%;
    }

    .ctr__table-head .ctr__col--first,
    .ctr__table-body .ctr__col--first {
        width: 40%;
    }

    .ctr__table-body .ctr__col:not(.ctr__col--first) {
        width: 30%;
    }

    .strategy__chart {
        max-width: 100%;
    }

    .mobile__modal {
        width: 100%;
        height: calc(var(--vh, 1vh) * 100); /* из archive.js добавляется --vh */
    }

    .mobile__modal-header {
        margin-bottom: 0;
        padding: 16px;
    }

    .mobile__modal-body {
        width: 100%;
        margin: 0;
    }

    .mobile__modal-footer {
        padding: 16px;
    }
}

@media only screen and (max-width: 576px) {
    .strategy__chart {
        height: 40px;
    }
}

@media only screen and (max-width: 400px) {
    .strategy__title,
    .strategy__text {
        font-size: 14px;
    }

    .strategy__subtitle {
        font-size: 11px;
    }
}

@media (max-width: 360px),
(max-height: 360px) and (orientation: landscape) {
    .mobile__modal-header__row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
}
