@charset "UTF-8";
/* ------------- HEADER MENU BREADCRUMB FOOTER ----------------   */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-repeat:no-repeat;
}


header {
    position: sticky;
    background: var(--tt-dark-gray);
    top: 0;
    z-index: 99;
    padding: 10px 0px 0;
    height: 100px;
    * {
        white-space:nowrap;
    }

    ul{
        display:flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-flow:row nowrap;
        list-style:none;
    }
	.icons{
        flex-flow:row nowrap;
        justify-content:right;
        gap:0;
        font-size:28px;
        height: 100%;
        align-items: center;
        a {
            flex-flow:row nowrap;
            justify-content:right;
            padding:12px;
        }
        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:-1em;
            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);
}

.header-top {
    margin:3px 0 5px;
    height: 32px;
    ul:last-child{flex-grow:1}
}

header ul.left-panel{
    justify-content:left;
    overflow:hidden;
    flex-wrap: wrap;
}

.header-top ul.left-panel {
    gap:15px;
    min-width:260px;

    a {
        height:36px;
        padding-top:6px;
    }

    li:last-child {
        flex-grow: 1;
    }
}

.header-logo {
    width:240px;
    background-image:url(/logo.svg);
    background-size:240px;
    background-position:center left;
    background-repeat:no-repeat;
}

.header-top, header nav {
    overflow:hidden;
}

header .icon:hover  {
    color:var(--tt-green);
}

.icon.header-phone {
    display:none;
}

header nav {
    height:50px;
    display: flex;
    &.flex-row { gap: 0;}
}

header nav.flex > ul {
    flex-wrap:nowrap;
    gap:0;
}

header nav > ul a {
    padding:15px;
    border-radius:.5em;
    transition: .3s;
    flex-shrink: 0;
}

.menu-items { gap:0 }
/*  -----------------------  SHOW MENU  -----------------------  */

header nav > ul >li:hover {
    background-color:var(--tt-green);
    border-radius: var(--radius-small);
    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;
    align-items:stretch;
    display: none;
    flex-flow: row wrap;
    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;
    overflow:hidden;
    .child-menu_column {
        padding: 15px 30px 0 20px;
        position: relative;
        overflow:hidden;
        &:last-of-type { flex-grow:1;}
        p {
            color:var(--green-s);
            font-weight:600;
        }
        ul {
            display: flex;
            flex-flow: column nowrap;
            gap: 0;
            align-items: start;
            letter-spacing: -.2px;
            margin:0 0 7px 2px;
            line-height:1.6;
        }
        a {
            color:inherit;
            padding:0 0.5em 0.1em 0;
            position:relative;
            &:not([class^=zicon]){
                &:before{
                	position:absolute;
                	content:'';
                	left: -1em;
                }
                &:hover {
                    text-decoration:underline;
                    &:before {
                        content:'■';
                        color:orangered;
                    }
                }
            }
            &.menu_gear:before{
                content:var(--gear);
                color:var(--green-xxs);'⛭';
            }
        }
    }
}



.child-menu .rays,
.child-menu a.whitebox:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cdefs%3E%3CradialGradient id='a' cx='400' cy='400' r='50%25' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='1' stop-color='%2301D7FF'/%3E%3C/radialGradient%3E%3CradialGradient id='b' cx='400' cy='400' r='70%25' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='1' stop-color='%230FF'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='800' height='800'/%3E%3Cg fill-opacity='.8'%3E%3Cpath fill='url(%23b)' d='M998.7 439.2c1.7-26.5 1.7-52.7 0.1-78.5L401 399.9c0 0 0-0.1 0-0.1l587.6-116.9c-5.1-25.9-11.9-51.2-20.3-75.8L400.9 399.7c0 0 0-0.1 0-0.1l537.3-265c-11.6-23.5-24.8-46.2-39.3-67.9L400.8 399.5c0 0 0-0.1-0.1-0.1l450.4-395c-17.3-19.7-35.8-38.2-55.5-55.5l-395 450.4c0 0-0.1 0-0.1-0.1L733.4-99c-21.7-14.5-44.4-27.6-68-39.3l-265 537.4c0 0-0.1 0-0.1 0l192.6-567.4c-24.6-8.3-49.9-15.1-75.8-20.2L400.2 399c0 0-0.1 0-0.1 0l39.2-597.7c-26.5-1.7-52.7-1.7-78.5-0.1L399.9 399c0 0-0.1 0-0.1 0L282.9-188.6c-25.9 5.1-51.2 11.9-75.8 20.3l192.6 567.4c0 0-0.1 0-0.1 0l-265-537.3c-23.5 11.6-46.2 24.8-67.9 39.3l332.8 498.1c0 0-0.1 0-0.1 0.1L4.4-51.1C-15.3-33.9-33.8-15.3-51.1 4.4l450.4 395c0 0 0 0.1-0.1 0.1L-99 66.6c-14.5 21.7-27.6 44.4-39.3 68l537.4 265c0 0 0 0.1 0 0.1l-567.4-192.6c-8.3 24.6-15.1 49.9-20.2 75.8L399 399.8c0 0 0 0.1 0 0.1l-597.7-39.2c-1.7 26.5-1.7 52.7-0.1 78.5L399 400.1c0 0 0 0.1 0 0.1l-587.6 116.9c5.1 25.9 11.9 51.2 20.3 75.8l567.4-192.6c0 0 0 0.1 0 0.1l-537.3 265c11.6 23.5 24.8 46.2 39.3 67.9l498.1-332.8c0 0 0 0.1 0.1 0.1l-450.4 395c17.3 19.7 35.8 38.2 55.5 55.5l395-450.4c0 0 0.1 0 0.1 0.1L66.6 899c21.7 14.5 44.4 27.6 68 39.3l265-537.4c0 0 0.1 0 0.1 0L207.1 968.3c24.6 8.3 49.9 15.1 75.8 20.2L399.8 401c0 0 0.1 0 0.1 0l-39.2 597.7c26.5 1.7 52.7 1.7 78.5 0.1L400.1 401c0 0 0.1 0 0.1 0l116.9 587.6c25.9-5.1 51.2-11.9 75.8-20.3L400.3 400.9c0 0 0.1 0 0.1 0l265 537.3c23.5-11.6 46.2-24.8 67.9-39.3L400.5 400.8c0 0 0.1 0 0.1-0.1l395 450.4c19.7-17.3 38.2-35.8 55.5-55.5l-450.4-395c0 0 0-0.1 0.1-0.1L899 733.4c14.5-21.7 27.6-44.4 39.3-68l-537.4-265c0 0 0-0.1 0-0.1l567.4 192.6c8.3-24.6 15.1-49.9 20.2-75.8L401 400.2c0 0 0-0.1 0-0.1L998.7 439.2z'/%3E%3C/g%3E%3C/svg%3E");
    background-color: #FFF;
    background-size: cover;
    background-position: center;
}


/*  -----------------------  P R O M O  -----------------------  */
.child-menu .child-menu_column.promo {
    &.industries { /* фон */
        background-image:url(/upload/medialibrary/248/o70f4p17gjtz3efs24iebg4frwzfrf9r/bgwin.jpg);
        background-repeat:repeat-x;
        background-size:auto 100% ;
    }

    &.service {
        display:flex;
        flex-flow:column;
        justify-content:flex-start;
        align-items:center;
        gap:5px;
        padding:5px 0 10px;
        p {
            color:var(--text-primary);
            font-size:20px;
        }
        strong {font-size:1.5em}
    }

    &.docs {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    &.about {
        grid-template-columns: .5fr 1fr 1fr 1fr;
        li {
            list-style-type: none;
            padding-left:0;
        }
    }

    &.docs,
    &.about {
        min-height:150px;
        margin-bottom:10px;
        gap:15px;
        a.whitebox {
            align-items:flex-start;
            border-radius:var(--radius-big);
            background-color:#f3f7f5;
            padding:30px 30px 15px;
            width:99%;
            text-align:center;
            white-space: normal;
            hyphens:none;
            overflow:hidden;
            &:hover{text-decoration:unset;}
            h2 {
                color:var(--green-s);
                text-shadow: unset;
                text-align:inherit;
            }
        }
    }

    &.contact { /* карта */
        padding:0;
        a {
            position:unset;
            img {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: #f5f5f0;
                object-fit:cover;
            }
        }
    }
}


/* ------------- BREADCRUMB --------------- */
.breadcrumb {
    margin: 30px 0;
    display: flex;
    flex-flow:wrap;
    gap: 5px;

    div {
        white-space:nowrap;
    }
}


/* -------------  FOOTER  ----------------- */
footer {
    color: #ddd;
    background: var(--tt-dark-gray);
    padding: 30px 0;
    a {color:inherit;}

    h4 {
        text-transform: uppercase;
        font-size: 15px;
        letter-spacing: .7px;
        font-weight: 700;
        margin:4px 0;
    }
}


.footer-top{
    color:currentColor;
    gap:15px;
    justify-content: space-evenly !important;

    div {
        display:flex;
        flex-flow:column nowrap;
        gap:5px;
        &:first-of-type{
            .footer-phone {
                font-size: 22px;
                letter-spacing: 1.2px;
                font-weight: 700;

            }
        }
    }

    ul {
        color:inherit;
        line-height:1.6;
        li{
            padding:0;
        }
        a {
            color:inherit;
            &:hover{text-decoration:underline;}
        }
    }

    .social-list {
        display: flex;
        flex-flow:row nowrap;
        gap:20px;
        margin-bottom:15px;
        a {
            width: 40px;
            height: 40px;
        }
    }
}


.footer-bottom {
    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;
    }
}

/*  -----------------------  MOBILE MENU  -----------------------  */
main.menu-active,
footer.menu-active {
    display:none;
}

.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: 0;
    }

    &.menu-active {
        display: block;
    }

    li {
        display:flex;
        flex-flow:row nowrap;
        align-items:stretch;
        justify-content:center;
        padding:0 10px;
        line-height:40px;
        &:nth-of-type(2n+1){
            background-color:#f7f7f3;
        }

        &:first-of-type {
            height:62px;
            background-color:#333;
        }

        a {
            display: flex;
            justify-content: left;
            align-items: center;
            &:first-of-type {
                flex-grow:1;
                &:not(.header-logo) {
                    font-size: 18px;
                }
            }
        }
    }
}



@media only screen and (max-width: 930px) {
    header .icons {display:none;}
    .footer-top {
        grid-template-columns: repeat(auto-fill, minmax(250px, 60%));
    }
}
