@font-face {
    font-family: "MyriadPro-Regular";
url("../templates/fonts/MyriadPro-Regular/MyriadPro-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

/* Clearfix */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

/* Основные стили */
body {
    background-color: #ece8e5;
}
nav {
    height: 40px;
    width: 100%;
    font-size: 11pt;
    font-family: 'PT Sans', Myriad Pro, sans-serif;
    font-weight: bold;
    position: relative;
    text-transform: uppercase;
    padding-top: 25px;

}
nav ul {
    padding: 0;
    margin: 0 auto;
    height: 40px;
    list-style:none;
    margin:0;
    padding:0;
    position:relative;
    text-align:center;
}
nav li {
    display: inline;
    float: left;
    display:block;
    list-style:none;
    margin:0;
    padding:0;
    position:relative;

}
nav a {
    color: #ef7f1a!important;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 40px;
    padding-left: 23px;

}
nav li a {

    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
nav li:last-child a {
    border-right: 0;
}
nav a:hover, nav a:active {
    color: #ffffff !important;
}
nav a#pull {
    display: none;
}

/* Стили для экранов 600px и меньше */
@media screen and (max-width: 1000px) {
    nav {
        height: auto;
    }
    nav ul {
        width: 100%;
        display: block;
        height: auto;
    }
    nav li {
        width: 50%;
        float: left;
        position: relative;
    }
    nav li a {
        border-bottom: 1px solid #576979;
        border-right: 1px solid #576979;
    }
    nav a {
        text-align: left;
        width: 100%;
        background-color: #283744;
    }
}

/*Стили для экранов 515px и меньше*/
@media only screen and (max-width : 1000px) {
    nav {
        border-bottom: 0;
    }
    nav ul {
        display: none;
        height: auto;
    }
    nav a#pull {
        display: block;
        background-color: #283744;
        width: 100%;
        position: relative;
    }
    nav a#pull:after {
        content:"";
        background: url('nav-icon.png') no-repeat;
        width: 30px;
        height: 30px;
        display: inline-block;
        position: absolute;
        right: 15px;
        top: 10px;
    }
}

/* Смартфоны */
@media only screen and (max-width : 320px) {
    nav li {
        display: block;
        float: none;
        width: 100%;
    }

}