body {
    background: #fff;
}
body.scroll-disabled {
	overflow: hidden;
}

/* Container */
#container {
    max-width: var(--max-width);
    margin: auto;
    position: relative;
    background: white;
}


/* Header */
#header {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    left: 0;
}
#header > .wrapper {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: auto;
    padding: var(--main-spacing);
    background: white;
    transition: 0.2s;
    box-sizing: border-box;
}
body.scrolling #header > .wrapper {
    transition: 0.2s;
    padding: 10px var(--main-spacing);
}
#logo {
    flex-grow: 2;
}
#logo a {
    width: 100px;
    height: 37px;
    transition: 0.2s;
    display: block;
}
body.scrolling #logo a {
    width: 93px;
    height: 35px;
    transition: 0.2s;
}
@media only screen and (min-width: 768px) {
    #logo a {
        width: 187px;
        height: 70px;
    }
}
#logo h1 {
    width: 100%;
    height: 100%;
    font-size: 0;
    background: url('../img/logo.svg') no-repeat;
    background-size: 100%;
}
#path {
    display: none;
    text-transform: uppercase;
    padding-right: var(--default-spacing);
    transition: 0.3s;
    opacity: 1;
}
#path h1 {
    font-size: 36px;
    line-height: 36px;
    font-family: var(--title-font-family);
}
body.catalog.index #path {
    /*display: none;*/
}
#menu_button {
    width: 29px;
    height: 29px;
    background: url('../img/menu.svg') no-repeat;
    background-size: 100%;
    cursor: pointer;
    flex-shrink: 0;
}
#search_button {
    width: 29px;
    height: 29px;
    background: url('../img/search.svg') no-repeat;
    background-size: 100%;
    cursor: pointer;
    margin-right: 20px;
    flex-shrink: 0;
}
body.menu_expanded #menu_button {
    background: url('../img/close.svg') no-repeat;
    background-size: 100%;
}

/* Search */
#search form button {
    display: none;
}
@media only screen and (max-width: 767px) {
    #search {
        display: none;
        position: fixed;
        z-index: 100000;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9);
    }
    body.search_expanded #search {
        display: block;
    }
    #search .close {
        position: absolute;
        right: var(--main-spacing);
        top: 50px;
        display: block;
        width: 29px;
        height: 29px;
        background: url('../img/close.svg') no-repeat;
        background-size: 100%;
        font-size: 0;
        cursor: pointer;
        margin-left: 10px;
    }
    #search .wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media only screen and (min-width: 768px) {
    #search > .wrapper {
        height: 29px;
        display: flex;
    }
    #search form {
    }
    #search form input[type=text]{
        background: transparent;
        line-height: 35px;
        font-size: 17px;
        transition: 0.5s;
        width: 0;
        transition: 0.2s;
    }
    body.search_expanded #search form input[type=text] {
        width: 150px;
        transition: 0.2s;
    }
}


/* Tools */
.tools {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-top: 40px;
}
/*.tools .search {
    display: none;
}
.tools .search form {
    background: url('../img/search.svg') no-repeat left center;
    background-size: 35px;
    border: 0;
    font-size: 0;
    cursor: pointer;
    overflow: hidden;
}
.tools .search form input[type=text]{
    background: transparent;
    margin-left: 40px;
    line-height: 35px;
    font-size: 17px;
    width: 0;
    transition: 0.5s;
}
.tools .search form.expanded input[type=text] {
    width: 150px;
    transition: 0.5s;
}
.tools .search button {
    display: none;
}*/
.tools .langs {
    display: flex;
    font-size: 40px;
    line-height: 30px;
}
.tools .langs li {
    margin-left: 30px;
}
.tools .networks {
    display: flex;
}
.tools .networks a {
    display: block;
    width: 35px;
    height: 35px;
    font-size: 0;
    margin-left: 10px;
}
.tools .networks a.fb {
    background: url('../img/fb.svg') no-repeat center center;
    background-size: 100%;
}
.tools .networks a.ig {
    background: url('../img/ig.svg') no-repeat center center;
    background-size: 100%;
}
.tools .networks a.ln {
    background: url('../img/ln.svg') no-repeat center center;
    background-size: 100%;
}


/* Menu */
#menu {
    position: fixed;
    transform: translateY(calc(-100% - var(--header-height)));
    transition: 0.5s;
    z-index: 100;
    left: 0;
    right: 0;
    top: var(--header-height);
    font-family: var(--title-font-family);
    text-transform: uppercase;
    padding: var(--default-spacing) var(--main-spacing) var(--default-spacing) var(--main-spacing);
    background: white;
}
body.menu_expanded #menu {
    transform: translateY(0);
    transition: 0.5s;
}
body.menu_expanded.scrolling #menu {
    padding: 10px;
    top: 55px;
}
#menu nav ul li {
    text-align: right;
    margin-bottom: 15px;
}
#menu nav ul li a {
    font-size: 40px;
    line-height: 30px;
}
#menu nav ul li a:hover,
#menu nav ul li.selected a,
.langs li a:hover,
.langs .selected {
    color: var(--blue);
}


/* Main */
main {
    padding: var(--default-spacing) var(--main-spacing);
    padding-top: var(--header-height);
}

.back_to_top {
	position: fixed;
    z-index: 100000;
	right: 20px;
	bottom: 20px;
  	cursor: pointer;
  	width: 20px;
    height: 20px;
    background: url('../img/top.svg') no-repeat;
    background-size: 100%;
	opacity: 0;
	transition: 0.5s;
}
.back_to_top.display {
	opacity: 1;
	transition: 0.5s;
}


@media only screen and (min-width: 768px) {
    #path {
        display: block;
    }
    #search .close {
        top: 70px;
    }
    body.menu_expanded.scrolling #menu {
        top: 0;
    }
    
}

@media only screen and (min-width: 1024px) {
    #menu {
        background: transparent;
        z-index: 300;
        top: 0;
        right: 0;
        padding: 67px 0 0 0;
    }
    #menu > .wrapper {
        padding-right: 145px;
        max-width: var(--max-width);
        margin: auto;
        display: flex;
        justify-content: flex-end;
        box-sizing: border-box;
    }
    #menu nav ul {
        text-align: right;
    }
    .langs li,
    #menu nav ul li {
        display: inline-block;
        margin-bottom: 0;
    }
    .tools .langs,
    .langs li a,
    #menu nav ul li a {
        font-size: 36px !important;
        line-height: 36px !important;
    }
    .tools {
        margin: 0;
    }
    .tools .langs {
        margin-left: 15px;
    }
    #menu nav ul li {
        margin-left: 15px;
    }
    body.menu_expanded #path {
        opacity: 0;
        transition: 0.3s;
    }
}















