/* Стили для стартовой страницы ibank */

/* Подключение шрифтов ============================================================================================== */

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Regular.ttf');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Light.ttf');
    font-style: normal;
    font-weight: 300;
}

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Medium.ttf');
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: Roboto;
    src: url('../fonts/Roboto-Bold.ttf');
    font-style: normal;
    font-weight: 700;
}



/* Static =========================================================================================================== */

* {
    margin: 0;
    padding: 0;
}

html,
body {height: 100%}

body {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    min-height: 650px;
    min-width: 1000px;
}

.margT20 {margin-top: 20px}



/* Дизайн =========================================================================================================== */

.header {
    background: #fff;
    height: 80px;
}

.header a {
    color: #333;
    text-decoration: none;
}

.header,
.footer {
    display: table;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 70px;
}

.header > div,
.footer > div {
    display: table-cell;
    vertical-align: middle;
    white-space: nowrap;
}

.header .header__logo {font-size: 0}

.header .header__logo img {max-height: 40px}

.header .header__contacts {
    width: 100%;
    text-align: right;
}

.header .header__contacts a,
.footer .footer__links_drivers,
.footer .footer__links_docs {
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: left center;
    cursor: pointer;
}

.header .header__contacts_phone {
    background-image: url('../img/icon-phone.svg');
    margin-right: 35px;
}

.header .header__contacts .header__contacts_mail {
    background-image: url('../img/icon-mail.svg');
    padding-left: 40px;
    margin-right: 50px;
}

.header .header__changeLang {text-transform: uppercase}

.header .header__changeLang a {
    text-decoration: none;
    opacity: 0.5;
}

.header .header__changeLang a + a {margin-left: 20px}

.header .header__changeLang .header__changeLang_active {
    border-bottom: 3px solid #83c648;
    opacity: 1;
    cursor: default;
    pointer-events: none;
}



/* Контент ========================================================================================================== */

.content {
    height: calc(100% - 80px);
    background-image: url('../img/bg-start.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.container {
    max-width: 1170px;
    min-width: 980px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 500px;
    height: calc(100% - 100px);
    position: relative;
}

.panelLink {
    color: #fff;
    box-sizing: border-box;
    width: 585px;
    background: rgba(25, 118, 210, 0.9);
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -250px;
    padding: 90px 0 90px 70px;
    line-height: 1;
}

.panelLink:after {
    content: "";
    position: absolute;
    width: 100%; /* для браузеров, которые не поддерживают vw*/
    width: 100vw;
    height: 100%;
    left: 100%;
    top: 0;
    background: rgba(25, 118, 210, 0.9);
}

.panelLink__logo {
    font-size: 90px;
    font-weight: 500;
}

.panelLink__alternate {font-size: 18px}

.panelLink__alternate span,
.panelLink__alternate a {opacity: 0.5}

.panelLink__alternate a {color: #fff}

.panelLink__alternate a:hover {opacity: 1}

.title {
    font-size: 30px;
    margin: 25px 0 30px;
    font-weight: 300;
}



/* Модальное окно =================================================================================================== */

.modal-window {
    display: none;
    background: #fff;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 30px;
    box-sizing: border-box;
    z-index: 5;
}

.modal-window__header {
    background: #1976d2;
    padding: 20px 60px 20px 50px;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    position: relative;
}

.modal-window__close {
    width: 20px;
    height: 20px;
    background: url('../img/icon-close.svg') no-repeat center;
    background-size: cover;
    position: absolute;
    right: 40px;
    top: 50%;
    margin-top: -10px;
    cursor: pointer;
}

.modal-window__content {
    padding: 20px 100px 20px 50px;
    font-size: 14px;
    height: calc(100% - 70px);
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-window__title {
    font-size: 18px;
    border-bottom: 1px solid #1976d2;
    padding-bottom: 10px;
    margin: 10px 0;
}

.overlay {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    z-index: 4;
    top: 0;
    left: 0;
}



/* Список документов ================================================================================================ */

.doclist {margin-bottom: 20px}

.doclist li {
    list-style-type: none;
    line-height: 1.8
}

.doclist li a {
    color: #333;
    text-decoration: none;
}

.doclist li a:hover {
    color: #1976d2;
    text-decoration: underline;
}



/* Кнопки =========================================================================================================== */

.btn-block {font-size: 0}

.btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 12px 20px;
    font-size: 18px;
}

.btn + .btn {margin-left: 20px}

.btn.btn_primary,
.btn.btn_primary:hover {
    background: #83c648;
    border-color: #83c648;
}

.btn:hover {
    background: #fff;
    color: #1976d2;
}

.btn.btn_primary:hover {
    color: #fff;
    border-color: #76b241;
    background: #76b241
}



/* Футер ============================================================================================================ */

.footer {
    height: 100px;
    color: #fff;
    font-weight: 400;
}

.footer .footer__links_drivers {
    display: inline-block;
    position: relative;
    margin-right: 20px;
    background-image: url('../img/icon-settings.svg');
}

.footer .footer__links_drivers:hover {background-image: url('../img/icon-settings_hover.svg');}

.footer .footer__links_drivers:hover .footer__links_driversBox {display: block}

.footer .footer__links_driversBox {
    display: none;
    background: #1976d2;
    color: #fff;
    padding: 30px;
    position: absolute;
    width: 400px;
    box-sizing: border-box;
    bottom: 35px;
    left: -40px;
    white-space: normal;
}

.footer .footer__links_driversBox:hover {cursor: default}

.footer .footer__links_driversBox:before {
    content: '';
    position: absolute;
    border: 15px solid transparent;
    border-top: 15px solid #1976d2;
    bottom: -25px;
    left: 36px;
}

.footer .footer__links_driversBox:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
}

.footer .footer__links_driversBox a,
.footer .footer__links_driversBox span {
    font-size: 14px;
    color: #fff;
    margin-right: 20px;
    opacity: 0.7;
}

.footer .footer__links_driversBox span {margin-right: 0}

.footer .footer__links_driversBox a:hover {opacity: 1}

.footer .footer__links_docs {background-image: url('../img/icon-docs.svg');}

.footer .footer__links_docs:hover {background-image: url('../img/icon-docs_hover.svg');}

.footer .footer__copyright {text-align: right;}



/* Экраны с разрешением до 1600 ===================================================================================== */

@media screen and (max-width: 1599px) {

    .panelLink {
        padding: 50px 0 50px 70px;
        margin-top: -200px;
    }

    .panelLink__logo {font-size: 70px}

    .title {
        font-size: 24px;
        margin-top: 30px;
    }

    .btn + .btn {margin-left: 15px}

    .btn,
    .header,
    .footer,
    .panelLink__alternate {font-size: 14px}

    .header {
        height: 50px;
        padding: 10px 70px;
    }

    .header .header__logo img {height: 30px}

    .content {height: calc(100% - 50px);}

    .header .header__contacts_phone,
    .footer .footer__links_drivers,
    .footer .footer__links_docs {background-size: 16px}

    .header .header__contacts_mail {background-size: 24px 16px}
}