/* ------------- HEADER ----------------   */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans serif,'Manrope';
    background-repeat:no-repeat;
}


header {
    position: sticky;
    background: var(--tt-dark-gray);
    top: 0;
    z-index: 999;
    padding: 10px 0px 0;
    height: 100px;
    * {
        white-space:nowrap;
    }

    .fa:before,
    .far:before,
    .fas:before,
    .fal:before {
        display:block;
        text-align:center;
        font-size:20px;
    }

    ul{
        display:flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-flow:row nowrap;
        flex-grow:0;
        list-style:none;
    }
    .icons{
        flex-flow:row nowrap;
        justify-content:right;
        gap:0;
        font-size:12px;
        height: 100%;
        align-items: center;
        a {
            flex-flow:row nowrap;
            justify-content:right;
            padding:15px 15px;
        }
        span{
            background:rgba(255, 0, 0, 0.6);
            color:white;
            display:inline-block;
            padding:0 .4em;
            min-width:1.4em;
            text-align:center;
            position:absolute;
            margin-left:-.7em;
            margin-top:-.5em;
            border-radius:2em;
            font-size:x-small;
        }
        .header-cart span {background:rgba(0,128, 0, 0.7);}
    }
}

header a, footer a{
    color:var(--tt-bg-gray);
    text-decoration:none;
}

.header-top {
    margin:3px 0 5px;
    height: 32px;
}

header ul.left-panel{
    justify-content:left;
    overflow:hidden;
    flex-grow:1;
    flex-wrap: wrap;
}

.header-top ul.left-panel {
    height: 32px;
    font-size:smaller;
    gap:15px;
    min-width:260px;
    align-items:center;

    a {
        height:36px;
        padding-top:6px;
    }

    li:last-child {
        flex-grow: 1;
    }
}

.header-logo {
    width:240px;
    background-image:url(/local/templates/termotronik_bitrix/images/logo2.svg);
    background-size:240px;
    background-position:center left;
    background-repeat:no-repeat;
}

.header-top, header nav {
    gap:10px;
    overflow:hidden;
}

header .icon:hover  {
    color:var(--tt-green);
}

.icon.header-phone {
    display:none;
}

header nav {
    height:50px;
    display: flex;
}

header nav.flex > ul {
    flex-wrap:nowrap;
    gap:0;
}

header nav > ul a {
    padding:15px;
    border-radius:.2em 0.2em 0 0;
    transition: .3s;
    flex-shrink: 0;
}

.menu-items { gap:0 }
/*  -----------------------  SHOW MENU  -----------------------  */

header nav > ul >li:hover,
.mobile-menu a:hover  {
    background-color:var(--tt-green);
    transition: .3s;
}

header nav >ul li.have-child:hover .child-menu {
    display: flex;
    padding:var(--radius-small);
}

header .header-init-menu {
    display:none;
}

.open-mobile-menu {
    width: 60px;
    height: 50px;
    background-image: url(/local/templates/termotronik_bitrix/images/smnu.svg);
    background-size: 32px;
    padding: 15px 15px;
    background-position: center;
}



/*  -----------------------  CHILD MENU  -----------------------  */

.child-menu {
    justify-content:left;
    display: none;
    flex-flow: row nowrap;
    position: absolute;
    z-index: 9999;
    top: 95%;
    left: 15px;
    right: 15px;
    background-color: white;
    border-radius:var(--radius-small);
    color: var(--primary);
    white-space: nowrap;
    box-shadow: 0 0 10px 0 #666;
    min-height: 100px;

    p{
        color:var(--tt-green);
        font-weight:bold;
    }

    ul {
        display: flex;
        flex-flow: column nowrap;
        gap: 0;
        align-items: start;
        letter-spacing: -.3px;
        margin-bottom:1em;
    }
    .fa:before{
        font-size:.9em;
        padding-left:.75em;
    }

    .child-menu_column {
        padding: 20px 20px 0;
        background: #fff;
        &:last-of-type {
            flex-grow:1;
        }
        &.promo{
            &:before{
                content:'здесь промо';
            }
            display: block;
            background:#ecd;
        }
        a{
            &:hover{
                color:#fff;
                background:var(--tt-green);
            }
            color:#000;
            padding:2px 10px;
        }

    }

}

/*  ------- CHILD MENU contacts -------  */

.child-menu.contacts .promo { /* карта */
    position: relative;
    padding:0;
    height:300px;
    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f5f5f0;
    }
}


/*  -----------------------  MOBILE MENU  -----------------------  */


.mobile-menu {
    position: fixed;
    z-index: 999;
    background: #fff;
    top: 0;
    left: 0;
    height: 100%;
    display: none;
    width: 100%;
    width: 100vw;
    overflow: hidden;
    .container {
        padding:50px 0 0;
        width:90dvw;
    }

    &.menu-active {
        display: block;
    }

    li {
        display:flex;
        flex-flow:row nowrap;
        align-items:center;
        justify-content:space-between;

        &:hover  {
            color:#fff;
            background:var(--tt-green);
            .fa:before {
                background:orangered;
           }
        }

        &:not(:first-of-type ) {
            border-bottom:dotted 1px var(--tt-green);
        }

        a:not(.icon) {
            padding: 10px 15px 10px 10px;
            margin:0;
            font-size: 18px;
            text-align:left;
            transition: .3s;
            width:10em;
        }

    }

    .fa:before,
    .fas:before {
        color:white;
        background:#555;
        min-width: 1.4em;
        display:block;
        text-align:center;
        border-radius:2em;
        font-size:20px;
        padding:.4em .2em .4em;
        margin:3px;
    }
}



/* ------------- BREADCRUMB --------------- */

.breadcrumb {
    margin: 30px 0;
    display: flex;
    flex-flow:wrap;
    gap: 5px;

    div {
        white-space:nowrap;
    }
}

/* -------------  FOOTER  ----------------- */

footer {
    background: var(--tt-dark-gray);
    padding: 40px 0;

    .fa {
        font-size:smaller;
    }

    h4 {
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: .7px;
        font-weight: 700;
        margin-bottom: 8px;
    }
}


.footer-top{
    color: #fff;
    display:flex;
    flex-flow:row nowrap;
    justify-content:space-between;;
    gap:50px 30px;

    p {
        margin-bottom: 5px;
    }
    div ul {
        list-style-type: none;
    }

    .social-list {
        display: flex;
        flex-flow:row nowrap;
        gap:20px;
        margin-bottom:30px;
        a {
            width: 40px;
            height: 40px;
        }
    }
}

.footer-left {
    display:flex;
    flex-flow:column nowrap;
    min-width:300px;

    .footer-phone {
        font-size: 22px;
        letter-spacing: 1.2px;
        font-weight: 700;
    }
}

.footer-right{
    display:flex;
    flex-flow:row wrap;
    justify-content: left;
    gap:30px 50px;
    flex-grow:1;
}



.footer-bottom {
    color:var(--tt-bg-gray);
    padding-top: 1em;
    display:flex;
    flex-flow:row wrap;
    gap:.3em;
    align-items:flex-start;
    justify-content: center;

    * { white-space:nowrap;}

    .header-logo {
        width:150px;
        height:25px;
        background-size:contain;
        vertical-align:middle;
    }
}
