* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F6F6F6;
    height: 200vh;
}

header {
    background-color: #fff;
    /* border-bottom: .5px #C4C4C4 solid; */
    font-family: 'Rubik', sans-serif;
    color: #404040;
    z-index: 1;
}

.relative {
    position: relative;
}

header .nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 15px 0;
}

header .logo {
    padding: 0;
}

header .logo img {
    height:50px;
}

header .nav-toolbar {
    width: 100%;
    /* background-color: coral; */
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}


/* Contacts */

header .contacts {
    /* font-weight: 500; */
    font-size: 16px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

header .contacts a {
    text-decoration: none;
    color: #404040;
    display: block;
    margin-bottom: 5px;
}

header .contacts a img {
    display: none;
}

header .toolbar .contacts button {
    font-size: 18px;
    padding: 0 10px;
    font-weight: 400;
    color: #404040;
    position: relative;
}

header .toolbar .contacts button a {
    display: inline;
}

header .toolbar .contacts button img { margin-right: 10px; }

header .toolbar .front-menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 0;
    height: 0;
}

/* Contacts */



/* Addresses */
header .address-btn {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    background-color: #F1F5F9;
    padding: 5px 8px;
    border: none;
    border-radius: 10px;
    /* font-weight: 500; */
    font-size: 16px;
    color: #404040;
    position: relative;
}

header .address-btn .address-text {
    text-align: center;
    line-height: 12px;
}

header .address-btn img {
    margin-right: 5px;
    height: 10px;
}

header .address-btn div {
    margin: 0;
    display: none;
}

header .address-btn .menu {
    margin: 0;
    position: absolute;
    z-index: 10;
    max-width: 280px;
    width: 280px;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 8px 28px -6px rgba(24, 39, 75, 0.08), 0px 18px 88px -4px rgba(24, 39, 75, 0.08);
    top: 100%;
    left: 0;
    margin-bottom: 0;
}

header .address-btn:hover div {
    display: block;
}

header .address-btn .menu li {
    list-style-type: none;
    text-align: left;
    border: #F1F5F9 3px solid;
    border-radius: 5px;
    margin-bottom: 10px;
}

header .address-btn .menu li .contact-title {
    width: 100%;
    text-align: center;
    background-color: #F1F5F9;
    font-size: 16px;
}

header .address-btn .menu li .contact-info, header .address-btn .menu li .contact-info li {
    border: none;
    width: 100%;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
    font-size: 14px;
}

header ul.contact-info  {
    margin: 0;
}

header .address-btn .menu li:last-child { margin-bottom: 0; }

header .address-btn .menu li a:not(.contact-title) {
    display: none;
}

/* Addresses */


/* nav-front */
header .nav-front {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

header .nav-front .buttons {
    margin-left: 20px;
}

header .nav-front .buttons button {
    background-color: #F1F5F9;
    border: none;
    border-radius: 9px;
    padding: 8px;
    height: 36px;
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header .nav-front .buttons button img {
    height: 17px;
    margin-bottom: 0;
}
/* nav-front */


/* nav-pc */

header .nav-pc:hover {
    color: #C1C2C2;
}

header .nav-pc ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding-left: 15px;
}

header .nav-pc ul li {
    margin-right: 20px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    transition: color .4s;
}

header .nav-pc ul li:hover {
    color: #404040;
}

header .nav-pc ul li:last-child {
    margin-right: 0;
}

header .nav-pc ul li .sub-menu {
    display: block;
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 8px 28px -6px rgba(24, 39, 75, 0.08), 0px 18px 88px -4px rgba(24, 39, 75, 0.08);
    padding: 15px;
    padding-top: 10px;
}

header .nav-pc ul li:hover .sub-menu {
    display: block;
}

header .nav-pc ul li .sub-menu, header .nav-pc ul li .sub-menu a {
    line-height: 16px;
    vertical-align: middle;
}

header .nav-pc ul li .sub-menu li {

    margin-bottom: 20px;
}

header .nav-pc ul li .sub-menu a {
    font-weight: 400;
    color: #929292;
    text-decoration: none;
    font-size: 16px;
}

header .nav-pc ul li .sub-menu li:last-child {
    margin-bottom: 0;
}

header .nav-pc ul li:hover .sub-menu a:hover {
    color: #404040;
}

header .main-menu {
    position: relative;
    z-index: 3;
}

/* !nav-pc */


/* full-menu */

header .full-menu-container {
    display: none;
    width: 100%;
    background-color: #fff;
    z-index: 2;
    left: 0;
    position: absolute;
    /* height: 100%; */
    max-height: calc(100vh - 80px);
}

header.show-full-menu .full-menu-container {
    display: block;
}

header .fill-menu-underlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: coral;
    height: 100vh;
    background: none;
    z-index: 1;
}

header.show-full-menu .fill-menu-underlay {
    display: block;
}

header .full-menu-container::after {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: #F1F5F9;
    top: 0;
    transform: translate(-50%, 0);
    left: 50%;
}

header .full-menu h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    color: #C4C4C4;
}

header .full-menu ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
}

header .full-menu ul li {
    margin-right: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    max-width: 150px;
    line-height: 16px;
    font-size: 18px;
}

header .full-menu ul li:last-child { margin-right: 0; }

header .full-menu ul.sub-menu {
    flex-direction: column;
    padding: 0;
    margin-top: 20px;
}

header .full-menu ul.sub-menu li {
    margin-right: 0;
    margin-bottom: 20px;
}

header .full-menu ul.sub-menu a {
    color: #929292;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
}

header .full-menu ul.sub-menu a:hover {
    color: #404040;
}


/* !full-menu */

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0px;
    }
    header .nav-pc {
        display: none;
    }
    header .logo img {
        height: 40px;
    }
    header .address-btn img {
        height: 8px;
    }
    header .contacts, header .address-btn {
        font-size: 14px;
    }
    header .full-menu-container {
        max-height: calc(100vh - 73px);
    }
    header .full-menu-container .relative {
        max-height: calc(100vh - 73px);
        overflow: auto;
    }
    header .address-btn .menu {
        position: fixed;
        top: 73px;
        left: 50%;
        transform: translate(-50%, 0);
    }
}