/*styles for
preheader,
header,
main-content-logo,
content-holder,
footer sections for new design
*/

@media screen and (min-width: 1400px) {
    .container {
        width: 1360px;
    }
}

.nonedecoration,
.nonedecoration:hover,
.nonedecoration:focus {
    text-decoration: none;
}

.popup-lnk {
    cursor: pointer;
}

/*--------------------------------------------------------------------------------------------------------------------
.wrapper
--------------------------------------------------------------------------------------------------------------------*/
.wrapper {
    position: relative;
    min-height: 100vh;
}

/*--------------------------------------------------------------------------------------------------------------------
.desktop and .mobile
--------------------------------------------------------------------------------------------------------------------*/
.desktop {
    display: none;
}
.mobile {
    display: unset;
}

@media screen and (min-width: 767px) {
    .desktop {
        display: unset;
    }
    .mobile {
        display: none;
    }
}

/*--------------------------------------------------------------------------------------------------------------------
.preheader-main
--------------------------------------------------------------------------------------------------------------------*/
.preheader-main {
    margin: 0;
    padding: 0;
    background-color: #2b0e62;
    position: relative;
}

.preheader-main:after {
    content: " ";
    display: block;
    clear: both;
}

.preheader-main__design {
    height: 3px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5%;
    background-color: #0054a6;
}

.preheader-main__main {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.preheader-main__social-site {
    margin: 35px 0 35px -15px;
    -webkit-order: -1;
    order: -1;
    white-space: nowrap;
}

.preheader-main__item {
    max-width: 32px;
    max-height: 32px;
}

@-webkit-keyframes blink2 {
    50% {
        color: red;
    }
    51% {
        color: rgba(34, 34, 34, 0);
    }
    100% {
        color: rgba(34, 34, 34, 0);
    }
}

@keyframes blink2 {
    50% {
        color: red;
    }
    51% {
        color: rgba(34, 34, 34, 0);
    }
    100% {
        color: rgba(34, 34, 34, 0);
    }
}

.preheader-main__blink {
    margin-top: 35px;
    color: red;
    text-align: center;
    -webkit-order: 0;
    order: 0;
    -webkit-animation: blink2 2s linear infinite;
    animation: blink2 2s linear infinite;
}

.preheader-main__buttons {
    -webkit-order: 1;
    order: 1;
}

.preheader-main__table {
    margin: 0 0 0 auto;
}

div.note::after, span.note::after {
    display: inline-block;
    position: absolute;
    content: "!";
    float: right;
    color: #2b0e62;
    font-size: 1.5em;
    font-weight: 900;
    font-family: "Roboto";
    text-align: center;
    margin-left: 5px;
    top: -2px;
}

.preheader-main__button {
    display: block;
    border-radius: 2px;
    background-color: #d7d7d7;
    margin: 0 5px 0 0;
    text-transform: uppercase;
    color: #440e62;
    padding: 2px 20px;
    text-align: center;
    white-space: nowrap;
}

.preheader-main__button:hover, .preheader-main__button:focus {
    color: inherit;
    text-decoration: none;
}

.preheader-main__table td:first-child a {
    margin-left: 0;
}

.preheader-main__table td:last-child a {
    margin-right: 0;
}

@media screen and (min-width: 1400px) {
    .preheader-main__buttons {
        margin: 35px 25px 35px 0;
    }
}

@media screen and (max-width: 1400px) {
    .preheader-main__buttons {
        margin: 35px 7px 35px 0;
    }
}

@media screen and (max-width: 1200px) {
    .preheader-main__buttons {
        margin: 35px 15px 35px 0;
    }
}

@media screen and (max-width: 992px) {
    .preheader-main__buttons {
        margin: 35px 0 35px 0;
    }
}

@media screen and (max-width: 767px) {
    .preheader-main__social-site {
        display: none;
    }

    .preheader-main__design {
        top: 6px;
    }

    .preheader-main__main {
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .preheader-main__table {
        margin: auto auto;
    }

    .preheader-main__buttons {
        margin: 15px auto 15px;
        float: none;
    }

    .preheader-main__button {
        background-color: #440e62;
        padding: 2px 8px;
    }

    .preheader-main__button > span {
        font-family: Arial, Helvetica, sans-serif;
        color: #fff;
    }

    .preheader-main__blink {
        display: none;
        margin: 10px 0 25px;
        text-align: center;
        -webkit-order: 1;
        order: 1;
    }

}

/*--------------------------------------------------------------------------------------------------------------------
.header-menu
--------------------------------------------------------------------------------------------------------------------*/

.collapse {
    display: block;
}

@media screen and (max-width: 767px) {
    .collapse {
        display: none;
    }
}


.header-menu {
    margin: 0;
    padding: 0;
    background-color: #534781;
}

.header-menu__menu {
    margin: 0 -15px 0 -15px;
}

.header-menu__items {
    margin: 0;
    padding: 0;
    width: 100%;
    display: -webkit-flex;
    display: flex;
}

/*basic menu el*/
/*-------------------------------------*/
.header-menu__item {
    padding: 0;
    text-align: center;
    width: 16.66%; /*100% делим на количество столбцов*/
    list-style-type: none;
}

.header-menu__item > a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: #fbfafd;
}

.header-menu__item > a > .caret {
    border-top-width: 10px;
    border-right-width: 10px;
    border-left-width: 10px;
    margin-left: 10px;
}

@media screen and (max-width: 992px) {
    .header-menu__item > a > .caret {
        border-top-width: 8px;
        border-right-width: 8px;
        border-left-width: 8px;
        margin-left: 8px;
    }
}

/*-------------------------------------*/

/*first el of basic menu*/
.header-menu__item:last-child > a {
    color: #f88818;
}
/*-------------------------------------*/

/*behavior basic menu el*/
/*-------------------------------------*/
.header-menu__item > a:hover,
.header-menu__item.open > a,
.header-menu__item.open > a:hover,
.header-menu__item.open > a:focus {
    background-color: #343163;
}
/*-------------------------------------*/

/*nested menu block*/
/*-------------------------------------*/
.header-menu__item .dropdown-menu {
    -webkit-box-shadow: none;
    box-shadow: none;
}
/*-------------------------------------*/

/*behavior nested menu el*/
/*-------------------------------------*/
.dropdown-menu > li > a {
    display: flex;
    color: #515051;
}

.dropdown-menu > li > a.green {
    background: #37d567;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: #b0b0b0;
    background-color: #0054a6;
}

.header-menu__item .dropdown-menu > li.open > a,
.header-menu__item .dropdown-menu > li.open > a:hover,
.header-menu__item .dropdown-menu > li.open > a:focus {
    color: #b0b0b0;
    background-color: #e1e1e1;
}

.header-menu__item .header-menu__caret {
    transform: rotate(-90deg);
    position: absolute;
    right: 5%;
    color: #4f70bc;
    margin-top: 8px;
}

.header-menu__item .dropdown-menu > li.open > a > .header-menu__caret,
.header-menu__item .dropdown-menu > li.open > a:hover > .header-menu__caret,
.header-menu__item .dropdown-menu > li.open > a:focus > .header-menu__caret {
    color: #b0b0b0;
}

.header-menu__item li.open > .dropdown-menu{
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -4px;
    border-radius: 0 4px 4px;
}
/*-------------------------------------*/

/*button for mobile device on desktop*/
/*-------------------------------------*/
.header-menu .header-menu__button {
    display: none;
}
/*-------------------------------------*/

/*on desktop menu auto height*/
/*-------------------------------------*/
@media screen and (min-width: 768px) {
    .header-menu {
        display: none;
    }
    .header-menu__menu {
        height: auto !important;
    }
}
/*-------------------------------------*/

/*чтобы в этих разрешениях меню помещалось и не появлялся скроллинг*/
@media screen and (min-width: 768px) and (max-width: 991px) {
    .header-menu__menu .dropdown-menu {
        font-size: 12px;
        min-width: 0;
    }
}

@media screen and (max-width: 767px) {

    .header-menu {
        background-color: #e7e7e7;
    }

    /*for menu button. */
    /*-------------------------------------*/
    .header-menu > .container:after {
        clear: none;
    }
    /*-------------------------------------

    .header-menu__items {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
*/
    /*basic mobile menu el*/
    /*-------------------------------------*/
    .header-menu__item {
        padding: 0 50px 0 0;
        text-align: right;
        width: 100%;
        list-style-type: none;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .header-menu__item > a {
        position: relative;
        padding: 10px 0;
        color: #493554;
        text-transform: uppercase;
        font-family: 'Roboto Condensed';
    }

    .header-menu__item > a > .caret {
        position: absolute;
        left: 100%;
        border-top: 6px solid;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        margin-left: 6px;
        margin-top: 8px;
        color: #493554;
    }
    /*-------------------------------------*/

    /*behavior basic menu el*/
    /*-------------------------------------*/
    .header-menu__item > a:hover,
    .header-menu__item.open > a,
    .header-menu__item.open > a:hover,
    .header-menu__item.open > a:focus {
        background-color: transparent;
    }
    /*-------------------------------------*/

    /*behavior nested menu block*/
    /*-------------------------------------*/
    .header-menu__item .dropdown-menu {
        position: static;
        width: auto;
        margin-top: 0;
        margin-right: 10px;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .header-menu__item li.open {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .header-menu__item li.open > .dropdown-menu{
        margin-top: 0;
    }
    /*-------------------------------------*/

    /*behavior nested menu el*/
    /*-------------------------------------*/
    .dropdown-menu > li > a,
    .header-menu__item li.open .dropdown-menu > li > a {
        justify-content: flex-end;
        padding: 3px 0;
        color: #777777;
    }

    .dropdown-menu > li > a:hover,
    .dropdown-menu > li > a:focus,
    .header-menu__item li.open .dropdown-menu > li > a:hover,
    .header-menu__item li.open .dropdown-menu > li > a:focus {
        color: #777777;
        background-color: transparent;
    }

    .dropdown-menu > li > a.green:hover,
    .dropdown-menu > li > a.green:focus {
        color: #777777;
        background: #37d567;
    }

    .header-menu__item .dropdown-menu > li.open > a,
    .header-menu__item .dropdown-menu > li.open > a:hover,
    .header-menu__item .dropdown-menu > li.open > a:focus {
        color: #777777;
        background-color: transparent;
    }

    .header-menu__item .header-menu__caret {
        transform: none;
        left: 100%;
        color: #493554;
        margin-top: 8px;
    }

    .header-menu__item .dropdown-menu > li.open > a > .header-menu__caret,
    .header-menu__item .dropdown-menu > li.open > a:hover > .header-menu__caret,
    .header-menu__item .dropdown-menu > li.open > a:focus > .header-menu__caret {
        color: #493554;
    }

    /*-------------------------------------*/

    /*button for mobile device*/
    /*-------------------------------------*/
    .header-menu .header-menu__button {
        display: block;
        margin: 0;
        padding: 0;
    }

    .header-menu .header-menu__button button {
        margin: 8px 0 0 0;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .header-menu .header-menu__button-span {
        height: 5px !important;
        width: 32px !important;
        background-color: #440e62;
    }

    .header-menu .header-menu__button button.open .header-menu__button-span{
        background-color: #0f50b3;
    }
    /*-------------------------------------*/

}

/*--------------------------------------------------------------------------------------------------------------------
.main-content-logo
--------------------------------------------------------------------------------------------------------------------*/
.main-content-logo {
    padding-top: 40px;
}

.main-content-logo > .container:after {
    clear: none;
}

.main-content-logo__logo-ksi {
    width: 15%;
    float: left;
}

.main-content-logo__logo-ksi.right {
    float: right;
}

.main-content-logo__logo {
    width: 100%;
}

.main-content-logo__partners-logo {
    width: 15%;
    float: right;
}

.main-content-logo__partners-logo > a {
    display: block;
    width: 50%;
    margin-left: 37%;
    margin-top: 25px;
}

.main-content-logo__partners-logo > a > img {
    width: 100%;
}

.main-content-logo__partners-logo > a:first-child {
    margin-top: 0;
}

@media screen and (max-width: 767px) {

    .main-content-logo {
        padding: 0;
    }

    .main-content-logo__logo-ksi {
        margin: 8px 0 0 0;
        height: 40px;
        width: auto;
    }

    .main-content-logo__logo {
        width: auto;
        height: 100%;
    }

    .main-content-logo__partners-logo,
    .main-content-logo__logo-ksi.able-hide {
        display: none;
    }
}

/*--------------------------------------------------------------------------------------------------------------------
.content-holder
--------------------------------------------------------------------------------------------------------------------*/

.content-holder {
    margin: 0;
    padding: 0 0 calc((5% - 10px) / 99 * 16 + 67px) 0; /* приведение к диапазону */
    width: 100%;
}

@media screen and (max-width: 767px) {
    .content-holder {
        width: 100%;
    }
}

/*--------------------------------------------------------------------------------------------------------------------
.row-footer
--------------------------------------------------------------------------------------------------------------------*/
.row-footer {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

.row-footer__text {
    margin: 19px -15px 0 -15px;
    overflow: hidden;
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .row-footer {
        display: none;
    }

}