﻿@import "../font.less";

@mainColor2: #4BA3D5;

.icon-plus-white-small {
    background: url("/Content/themes/img/icn-plus.svg") 0 0 no-repeat;
    display: inline-block;
    background-size: contain;
    width: 24px;
    height: 24px;
}

header {
    &.header-landing {
        .main-menu .search-wr {
            display: none;
        }

        &.root-header--modify {
            .wrap-main {
                padding-bottom: 0;
            }
        }
    }

    padding-top: 28px;

    h1 {
        font-size: 60px;
        margin: 0;
    }

    .sendProject {
        &--red {
            padding: 17px 23px 17px 17px;
            background-color: #D50E3E;
            line-height: 1;
            font-size: 16px;
            color: @white;

            i {
                margin-right: 4px;
            }

            span {
                color: @white;
            }

            i, span {
                display: inline-block;
            }
        }
    }

    .main-menu a {
        .sendProject {
            &--red {
                span {
                    color: @white;
                }
            }
        }
    }

    .menu-timer {
        .bubble {
            background: @step1;
            border-radius: 50%;
            width: calc(~'100% - 10px');
            margin-top: calc(~'-50% - 4px');
            margin-right: 5px;
            margin-left: 5px;
            z-index: -1;
            height: 0;
            padding-bottom: calc(~'100% - 10px');
        }

        .budget-timer {
            margin-top: -21px;
            min-height: 46px;
            margin-left: -50px;
            width: calc(~'100% + 100px');
        }
    }

    .main-menu {
        /*position: relative;*/
        margin-bottom: 15px;

        .main-menu-cont {
            /*position: relative;*/
            z-index: 1000;

            &--btw {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .complexBorder {
                position: absolute;
                width: 100%;
                height: 2px;
                background-color: @white;
            }

            .complexBorder2 {
                position: absolute;
                width: 100%;
                height: 2px;
                bottom: 0;
                background-color: @white;
            }
        }

        .search-wr {
            position: absolute;
            bottom: 0;
            height: 53px;
            left: 20px;
            font-size: 0;

            &.active {
                .search-button {
                    input {
                        background-color: #37373c;
                    }
                }

                .search-menu.ng-hide {
                    display: inline-block !important
                }
            }

            .search-buttonW {
                position: absolute;
                top: 0;
                bottom: 0;
                margin: auto;
                left: 16px;
                font-size: 0;
            }

            a {
                padding: 18px 15px;
                color: @Gray;
                display: inline-block;

                &:hover, .active {
                    background: none;
                    color: @white;
                }

                &.search-button {
                    text-decoration: none;
                    position: relative;
                    top: -2px;
                    padding: 0;

                    input {
                        padding: 18px 15px 18px 55px;

                        &:focus {
                            background-color: #37373c;
                        }
                    }
                }
            }
        }


        .base-href {
            min-width: 100px;
        }

        .new-proj {
            /*border-right: 2px solid @white;*/
            position: absolute;
            right: 0;
            bottom: 0;
            padding: 0;
        }

        .right-meenu-cont {
            align-items: center;
        }

        .auth {
            /*border-right: 2px solid @white;*/
            /*border-right: 2px solid @white;*/
            /*border-bottom: 1px solid @Gray;*/
        }

        a {
            font-family: @fontMedium;
            font-size: 16px;
            text-align: center;
            padding: 20px 30px 20px 25px;
            cursor: pointer;
            color: @Gray;

            &.dem {
                text-transform: uppercase;
                padding-left: 18px;
            }

            span {
                color: @Gray;
            }

            i, span, > div {
                display: inline-block;
                vertical-align: middle;
            }

            .icon-menu {
                width: 24px;
                height: 24px;
                background-repeat: no-repeat;
                background-position: 0 0;
                background-size: 100%;
                margin-right: 14px;

                &--about {
                    background-image: url("/Content/themes/img/icn-about.svg");
                }

                &--autorise {
                    background-image: url("/Content/themes/img/icn-authorise.svg");
                }

                &--place {
                    background-image: url("/Content/themes/img/icn-place.svg");
                }

                &--arrow-left {
                    background-image: url("/Content/themes/img/icn-arrow-left.svg");
                }
            }

            &:hover, .active {

                span {
                    color: @white;
                }

                background-color: @bgGray;

                .icon-menu {

                    &--about {
                        background-image: url("/Content/themes/img/icn-about-white.svg");
                    }

                    &--autorise {
                        background-image: url("/Content/themes/img/icn-authorise-white.svg");
                    }

                    &--place {
                        background-image: url("/Content/themes/img/icn-place-white.svg");
                    }

                    &--arrow-left {
                        background-image: url("/Content/themes/img/icn-arrow-left-white.svg");
                    }
                }
            }

            .rectangle {
                /*margin-right: 10px;
                padding-left: 2px;*/
            }

            .rectangleB {
                /*margin-right: 10px;
                padding-left: 2px;*/
                display: none;
            }
        }

        .search-button {
            text-align: start;
            cursor: default;

            img {
                vertical-align: top;
                margin: 0 19px 0 19px;
                cursor: pointer;
                outline: none;
            }

            input {
                font-size: 16px;

                .placeholder( {
                    color: @GrayFont !important;
                }

                )
            }

            .search-buttonB {
                display: none;
            }

            .search-buttonW {
                background: url("/Content/themes/img/icn-search.svg") 0 0 no-repeat;
                display: inline-block;
                width: 24px;
                height: 24px;
                margin-right: 7px;
                cursor: pointer;
                outline: none;

                &:hover {
                    background-image: url("/Content/themes/img/icn-search-white.svg");
                }
            }

            input {
                background: transparent;
                border: none;
                color: @white;
                max-width: 172px;
                outline: none;

                &::-webkit-input-placeholder {
                    color: @white;
                }

                &::-moz-placeholder {
                    color: @white;
                }

                &:-ms-input-placeholder {
                    color: @white;
                }

                &:-moz-placeholder {
                    color: @white;
                }
            }

            @media screen and (max-width: 1100px) {
                input {
                    max-width: 122px;
                }

                img {
                    margin: 0 5px 0 15px;
                }
            }
        }

        #city-logo-top {
            width: 30px;
            height: 36px;
            padding: 9px;
        }
    }

    .is-sticky {
        overflow-y: hidden;
        background-color: @white;
        margin-bottom: 5px;
        border-bottom: 2px solid #4BA3D5;

        .main-menu {
            outline: 0;
            border: 0;

            a {
                color: #4BA3D5;

                &:last-child {
                    padding-left: 10px;
                    padding-right: 10px;
                }

                .rectangle {
                    display: none;
                }

                .rectangleB {
                    display: inline-block;
                    margin-right: 5px;
                }
            }

            a.new-proj {
                color: @white;
            }

            .contacts {
                padding-right: 10px;
            }

            .main-menu-cont {
                outline: 0;
                border: 0;

                .complexBorder, .complexBorder2 {
                    display: none;
                }
            }

            .base-href, .contacts {
                border: 0;
            }

            .search-button {
                input {
                    color: #4BA3D5;

                    &::-webkit-input-placeholder {
                        color: @placeholder;
                    }

                    &::-moz-placeholder {
                        color: @placeholder;
                    }

                    &:-ms-input-placeholder {
                        color: @placeholder;
                    }

                    &:-moz-placeholder {
                        color: @placeholder;
                    }
                }

                img {
                    margin: 0 15px 0 20px;
                }

                .search-buttonW {
                    display: none;
                }

                .search-buttonB {
                    display: inline-block;
                }
            }
        }
    }

    md-toolbar {
        height: 56px;
        min-height: 56px;
        display: none;
        background-color: @white !important;
        z-index: 900;
        border-bottom: 2px solid #4BA3D5;

        .md-toolbar-tools {
            padding-left: 15px;
            padding-right: 0px;
            height: 56px;
            min-height: 56px;

            .m-main-menu-cont {
                height: 56px;
                position: relative;
                z-index: 1000;
                width: 100%;
            }

            .m-base-href {
                padding-left: 5px;
                padding-right: 5px;
                min-width: 100px;
            }

            a {
                font-family: @fontMedium;
                color: #4BA3D5;
                font-size: 16px;
                text-align: center;
                padding-top: 18px;
                cursor: pointer;

                .rectangle {
                    margin-right: 4px;
                    padding-left: 4px;
                }
            }

            .cityIcon {
                margin: 0;
                padding: 0;
            }

            .m-right-meenu-cont {
                a {
                    padding-left: 10px;
                    padding-right: 10px;
                }

                .m-search-button {
                    text-align: start;
                    cursor: default;
                    padding-left: 0px;
                    padding-right: 0px;

                    img {
                        vertical-align: top;
                        margin: 0 5px 0 5px;
                        cursor: pointer;
                        outline: none;
                        -webkit-transform: rotate(90deg);
                        -moz-transform: rotate(90deg);
                        -o-transform: rotate(90deg);
                        -ms-transform: rotate(90deg);
                        transform: rotate(90deg);
                    }

                    input {
                        background: transparent;
                        border: none;
                        color: #4BA3D5;
                        max-width: 142px;
                        outline: none;

                        &::-webkit-input-placeholder {
                            color: @placeholder;
                        }

                        &::-moz-placeholder {
                            color: @placeholder;
                        }

                        &:-ms-input-placeholder {
                            color: @placeholder;
                        }

                        &:-moz-placeholder {
                            color: @placeholder;
                        }
                    }
                }

                .m-more {
                    padding-top: 11px;

                    img {
                        width: 36px;
                    }
                }
            }

            #m-city-logo-top {
                width: 30px;
                //height: 36px;
                margin-top: 9px;
                margin-right: 2px;
            }
        }
    }
}

    @media screen and (max-width: 970px) {
        header {
            padding-top: 0;

            .main-menu, .is-sticky {
                display: none;
            }

            md-toolbar {
                display: block;
                top: 0;
                right: 0; 
                left: 0;
                position: fixed;
            }
        }

        .root-header .centerCont {
            padding-top: 20px;
            z-index: 2;
        }
    }

.m-menu {
    background: white;
    box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
    width: 200px;
    margin-left: -10px;
    margin-top: 9px;

    > div {
        align-items: center;
        cursor: pointer;
        height: 48px;
        transition: background 0.15s linear;
        width: 100%;
        position: relative;
    }

    a {
        //display: block;
        width: 100%;
        height: 100%;
        //position: absolute;
        //vertical-align: central;
        color: @TextBlue;
        font-family: @fontMedium;
        font-size: 16px;

        div {
            display: inline-block;
            margin-left: 15px;
            padding-right: 5px;
            //margin-top: 14px;
            color: @TextBlue;
            font-family: @fontMedium;
            font-size: 16px;
        }
    }

    a:hover {
        background-color: @TextBlueSecond;

        div {
            color: #4BA3D5;
            color: #fff;
        }
    }
}

.cabinetPanel {
        .m-menu {
            margin-top: 2px;
        }
    }

.citiesPanel {
        .m-menu {
            margin-top: 2px;
            margin-left: 0;
        }
    }

.helpMobile {
        top: 50px !important;
        left: auto !important;
        right: 0px !important;
    }

.m-cities-menu {
        width: 360px;
        margin-top: 0;
        margin-left: -22px;
    }
