html {
    height: 100%;
    box-sizing: border-box;
}
main{
    box-sizing: border-box;
    min-height: calc(100% - 175px);
}
body {
    background: #fff;
    height: 100%;
}
body.scroll-disabled {
	overflow: hidden;
}


/* default template */
#html > h1 {
    font-size: 36px;
    line-height: 38px;
    margin-bottom: 30px;
}
#html .text {
    max-width: 800px;
}

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


/* Footer */
#footer {
    margin-top: 50px;
    padding: var(--default-spacing) var(--main-spacing);
}
#footer ul li a {
    font-family: var(--title-font-family);
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media only screen and (min-width: 768px) {
    main{
        box-sizing: border-box;
        min-height: calc(100% - 125px);
    }
     /* footer */
    #footer ul {
        display: flex;
    }
    #footer ul li {
        margin-right: 40px;
    }
    #html .text {
        max-width: 800px;
        box-sizing: border-box;
        padding-right
    }
    #html .text {
        box-sizing: border-box;
        padding-right: var(--default-spacing);
    }
}


/* 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;
    position: relative;
    z-index: 200;
}
#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;
    }
}
@media only screen and (min-width: 1024px) {
    #logo {
        flex-grow: 0;
    }
}
#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-left: 15px;
    flex-shrink: 0;
}
body.menu_expanded #menu_button {
    background: url('../img/close.svg') no-repeat;
    background-size: 100%;
}

/* Search */
#search form button {
    display: none;
}

#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 input[type=text] {
    width: 80vw;
    font-size: 18px;
    padding: 5px;
}
#search .close {
    position: absolute;
    right: var(--main-spacing);
    top: 33px;
    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 input[type=text] {
        height: 70px;
        width: 80vw;
        font-size: 30px;
        padding: 10px;
    }

    /*#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;
    align-items: center;
}
/*.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:first-child {
  margin-left: 30px;
}
.tools .langs li:last-child {
  margin-left: 10px;
}
.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: var(--default-spacing) var(--main-spacing) var(--default-spacing) var(--main-spacing);
    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: 50%;
        right: 10vw;
        transform: translateY(-50%);
    }
    body.menu_expanded.scrolling #menu {
        top: 0;
    }
    
}

@media only screen and (min-width: 1024px) {
    #menu_button {
        display: none;
    }
    #menu {
        background: transparent;
        z-index: 100;
        top: 0;
        right: 0;
        padding: 67px 0 0 0;
        transform: translateY(0);
    }
    body.scrolling #menu {
        padding: 10px 0 0 0;
    }
    #menu > .wrapper {
        padding-right: 50px;
        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;
    }
}












